/*
* BaatKaro - Mental Health Professional Marketplace
* Main Styles
*/

/* Import CSS Variables */
@import url('variables.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a6acf;
    --primary-dark: #4a59b5;
    --primary-light: #7b88e3;
    --secondary-color: #30c39e;
    --secondary-dark: #27a285;
    --secondary-light: #4fe0b8;
    --tertiary-color: #b84a3d; /* New tertiary color */
    --accent-color: #ff8c69;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #717171;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(to right, var(--primary-color), var(--primary-light));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px; /* Base font size */
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--tertiary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout & Containers */
.container {
    max-width: 1200px; /* Updated max width */
    margin: 0 auto;
    padding: 0 20px; /* Updated padding */
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    color: var(--text-dark);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(90, 106, 207, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #48a0af; /* Darker shade of secondary color */
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: #ddd;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 8px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    padding: 0 8px;
}

.search-bar:hover {
    box-shadow: var(--shadow-md);
}

.search-item {
    padding: 12px 16px;
    flex: 1;
}

.search-item span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
}

.search-item input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    font-family: var(--font-family);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.user-menu {
    display: flex;
    align-items: center;
}

.become-pro {
    font-weight: 500;
    margin-right: 16px;
    padding: 8px 16px;
    border-radius: 24px;
    transition: var(--transition);
    color: var(--text-dark);
}

.become-pro:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.profile-dropdown {
    position: relative;
}

.dropdown-button {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-button:hover {
    box-shadow: var(--shadow-sm);
}

.dropdown-button i {
    margin: 0 4px;
}

.dropdown-button .fa-user-circle {
    font-size: 24px;
    color: var(--text-light);
}

.dropdown-content {
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    display: none;
    z-index: 10;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-content .divider {
    width: 100%;
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

/* Hero Section */
.hero {
    background-image: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 0;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    padding: 14px 32px;
    font-size: 18px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.benefit-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 32px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.category-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Featured Professionals Section */
.featured-professionals {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* General professionals grid styles - these are overridden on search page */
.featured-professionals .professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.professional-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pro-favorite {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    color: var(--accent-color);
}

.pro-favorite i {
    margin-right: 6px;
    color: var(--accent-color);
}

.professional-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.professional-info {
    padding: 20px;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating i {
    color: var(--accent-color);
    margin-right: 5px;
}

.rating .light {
    color: var(--text-light);
    font-weight: normal;
    font-size: 14px;
    margin-left: 4px;
}

.professional-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.professional-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.specialties {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-medium);
}

.session-fee {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 16px;
}

.session-fee span {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
}

.availability {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.view-more-container {
    text-align: center;
    margin-top: 48px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235a6acf' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.step {
    flex: 1;
    padding: 30px;
    position: relative;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(90, 106, 207, 0.3);
}

.step-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    color: var(--primary-light);
    font-size: 32px;
    margin-bottom: 16px;
}

.testimonial-text {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
}

.testimonial-text p {
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #f0f0f0;
}

.testimonial-author h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.testimonial-author p {
    font-size: 14px;
    color: var(--text-light);
}

/* For Professionals Section */
.for-professionals {
    padding: 100px 0;
    background-color: white;
}

.pro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.pro-text {
    flex: 1;
}

.pro-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.pro-text p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.6;
}

.pro-benefits {
    margin-bottom: 32px;
}

.pro-benefits li {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-medium);
    display: flex;
    align-items: center;
}

.pro-benefits li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.pro-image {
    flex: 1;
}

.pro-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
}

/* Download App Section */
.download-app {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.app-text {
    flex: 1;
}

.app-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.app-text p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-button {
    display: flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.app-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.app-button img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
}

.app-button span {
    font-size: 12px;
    display: block;
    line-height: 1;
}

.app-button h4 {
    font-size: 16px;
    font-weight: 600;
}

.app-image {
    flex: 1;
    padding: 20px;
}

.app-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 16px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    line-height: 1.6;
}

.newsletter {
    max-width: 400px;
}

.newsletter h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.newsletter p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-family);
    font-size: 14px;
}

.newsletter-form button {
    white-space: nowrap;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    width: 23%;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-left: 12px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 28px;
    }

    .steps-container, .pro-content, .app-content {
        flex-direction: column;
    }

    .app-image, .pro-image {
        order: -1;
    }

    .app-buttons {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}

@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .footer-section {
        width: 48%;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .search-container {
        display: none;
    }

    .header-content {
        justify-content: space-between;
    }

    .professionals-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .step {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 30px;
    }

    .footer-section {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .social-links {
        margin-top: 16px;
        justify-content: center;
    }

    .social-links a {
        margin: 0 6px;
    }

    .become-pro {
        display: none;
    }

    .category-grid, .professionals-grid, .testimonial-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .app-button {
        width: 100%;
    }
}
