/* =============================
   Hero Section
============================= */

.hero {
    height: 70vh;
    /* Increased height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    padding: 20px;
    margin-top: -80px;
    /* Offset fixed header space */
    padding-top: 100px;
}

.hero-home {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-banner.jpg') center/cover no-repeat;
}

/* Page Specific Hero Banners */
.hero-about {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/cognitive-training.jpg') center/cover no-repeat;
}

.hero-services {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/pain-management.jpg') center/cover no-repeat;
}

.hero-blog {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/spasticity-management.jpg') center/cover no-repeat;
}

.hero-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contactus.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: white;
    padding: 16px 40px;
    /* Larger padding */
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    min-width: 200px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    color: white;
}

/* Secondary Hero Button (WhatsApp) */
.btn-secondary {
    background: white;
    /* Contrast to gradient */
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* =============================
   Services Section Helpers
============================= */

.services-header {
    margin-bottom: 5px;
    color: #b8860b;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* =============================
   Contact Page Styles
============================= */

.contact-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
}

/* Center "Meet Our Experts" */

.team-title {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Team Section */

.team {
    text-align: center;
    padding: 40px;
    background: var(--light-color);
}

/* Team Member Styling */

/* Founders Layout (Centered) */
.founders-layout {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Subtitle */
.team-subtitle {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Specialists Grid */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Specialist Card (Compact) */
.specialist-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.15);
}

.specialist-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.specialist-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.specialist-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
    /* aligns buttons */
}

/* Small Button for specialists */
.know-more-btn.small-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.know-more-btn.small-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Keep existing .team-member for Founders but refine if needed */
.team-member {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 50px;
    width: 500px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    color: #b8860b;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 180px;
    /* Slightly larger for founders */
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.team-details {
    display: none;
}


/* =============================
   404 Page Styles
============================= */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 100px;
    color: var(--primary-color);
}

.error-page p {
    font-size: 22px;
    margin-bottom: 20px;
}

.error-page .btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s;
}

.error-page .btn:hover {
    background-color: var(--secondary-color);
}


/* Highlights Section */

.highlights {
    padding: 45px;
    text-align: center;
    background: #fff;
}

.highlights h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}


/* Grid Layout for Cards */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* Search Results Page Specifics */
.result-page-header {
    list-style: none;
    margin-top: 20px;
}

.result-page-header h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.result-page-header ul {
    list-style: none;
    padding-left: 0;
}

.result-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
    transition: background 0.2s;
}

.result-item:hover {
    background: #efefef;
}

.result-item a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
}

.loading,
.no-results {
    font-size: 18px;
    color: var(--dark-color);
    padding: 20px;
}

/* =============================
   Blog Placeholder (CLS Fix)
============================= */
.blog-placeholder {
    min-height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hero-achievements {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/achievements-banner.png') center/cover no-repeat;
}

.hero-gallery {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery-banner.png') center/cover no-repeat;
}

/* =============================
   About Us Page Refinements
============================= */

.section-title-center {
    text-align: center;
    margin-bottom: 40px;
}

.difference-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    transition: transform 0.3s ease;
}

.difference-row:hover {
    transform: translateY(-5px);
}

.difference-image {
    flex: 1;
    position: relative;
}

.difference-content {
    flex: 1;
}

.difference-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.difference-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.difference-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Ensure Button Alignment */
.difference-content .know-more-btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    /* Modern pill shape */
}

/* Responsive Styles */
@media (max-width: 991px) {
    .difference-row {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }

    /* Since we manually ordered the DOM for 'reverse' (Content, Image), 
       column-reverse will put Image (2nd child) on top, Content (1st child) on bottom. 
    */
    .difference-row.reverse {
        flex-direction: column-reverse;
    }

    .difference-image img {
        height: auto;
        max-height: 300px;
    }

    .difference-content h3 {
        font-size: 1.8rem;
    }

    .difference-content .know-more-btn {
        margin: 0 auto;
    }
}

/* Smooth Text Expansion */
.text-container {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.text-container.expandable {
    max-height: 75px;
    /* Approx 3 lines / 100 chars */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.text-container.expanded {
    max-height: 500px;
    /* Large enough to fit content */
    mask-image: none;
    -webkit-mask-image: none;
}

.know-more-btn {
    margin-top: 15px;
    transition: all 0.3s ease;
}

/* Desktop Zigzag Fix */
@media (min-width: 992px) {
    .difference-row.reverse {
        flex-direction: row-reverse;
    }
}