
:root {
    --primary-dark: #1B513B;
    --accent-terracotta: #79321F;
    --sage-green: #6E8C65;
    --soft-rose: #AA6D5F;
    --mint-pale: #C2D1BE;
    --dusty-pink: #D3AFA7;
    --bg-light-green: #ECF3EA;
    --bg-light-rose: #F2E4E2;
    --white: #ffffff;
    --br-custom: 30px 0 30px 0;
    --green-overlay: rgba(27, 81, 59, 0.4); 
}

::selection {
    background-color: var(--mint-pale); /* The background of the highlight */
    color: var(--primary-dark);        /* The color of the text when highlighted */
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
}

body {
    background-color: var(--bg-light-green);
    color: var(--primary-dark);
    overflow-x: hidden;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    z-index: 1000;
    background: rgba(236, 243, 234, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    box-shadow: 0 10px 30px rgba(27, 81, 59, 0.1);
}

.logo-container img { height: 50px; vertical-align: middle; }
nav ul { display: flex; list-style: none; gap: 30px; }

/* Menu Hover Effects */
nav ul li a { 
    text-decoration: none; 
    color: var(--primary-dark); 
    transition: 0.3s; 
    font-size: 1.1rem; 
    font-weight: 400; 
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--soft-rose);
    transition: width 0.3s ease;
}
nav ul li a:hover { color: var(--soft-rose); }
nav ul li a:hover::after { width: 100%; }

nav ul li {
    position: relative; /* Necessary to position the dropdown relative to the parent */
    padding: 10px 0;
}

/* .dropdown {
    position: absolute;
    top: 100%;  Sits exactly below the parent link 
    left: 0;
    background: rgba(236, 243, 234, 0.95);
    backdrop-filter: blur(15px);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: column;
    z-index: 1100;
} */

/* --- Compact Dropdown Styles --- */
.dropdown {
    position: absolute;
    top: 100%; 
    left: 0;
    background: rgba(236, 243, 234, 0.98); /* Slightly more opaque for readability */
    backdrop-filter: blur(15px);
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 12px; /* Slightly tighter radius */
    padding: 8px 0;      /* Reduced from 15px */
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    border: 1px solid rgba(27, 81, 59, 0.1); /* Soft border for definition */
}

/* Show dropdown on hover */
nav ul li:hover .dropdown {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown li a {
    padding: 2px 18px;   /* Significantly reduced vertical padding (from 10px to 6px) */
    display: block;
    font-size: 0.9rem;   /* Slightly smaller font for a compact look */
    white-space: nowrap; 
    transition: background 0.2s ease;
}

.dropdown li a::after {
    display: none; 
}

.dropdown li a:hover {
    background: var(--mint-pale);
    color: var(--accent-terracotta);
}

/* New sub hero */
/* --- Sub-Hero Enhancements --- */
.sub-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 20px;
}

/* --- Service Detail Section --- */
.service-details-section {
    padding: 80px 10%;
    background: var(--white);
}

.service-flex-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Space between image and text */
}

.service-main-image {
    flex: 1; /* Takes 50% width */
}

.service-main-image img {
    width: 80%;
    height: auto;
    border-radius: 15px 50px 30px 15px; /* Rounded corners for a modern look */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-text-content {
    flex: 1; /* Takes 50% width */
    line-height: 1.8;
}

.service-text-content h2 {
    color: var(--accent-terracotta);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.service-tags {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.service-tags span {
    background: var(--bg-light-green);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.options-list {
    list-style: none; /* Remove default dots */
    padding-left: 0;
    margin-bottom: 30px;
}

.options-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.4;
}

/* Custom Medical-style Bullet (Green Circle) */
.options-list li::before {
    content: "\f058"; /* FontAwesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #2c5f50; /* Your brand green */
    font-size: 1.1rem;
}

/* Highlight the "Best Seller" text if you want */
.options-list li:nth-child(2) {
    font-weight: 500;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .service-flex-container {
        flex-direction: column; /* Stacks image on top of text on tablets/phones */
        text-align: center;
        gap: 40px;
    }
    
    .service-details-section {
        padding: 50px 20px;
    }
}

/* Page Hero (Specific for Sub-pages) */
.sub-hero {
    height: 50vh;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.header-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle { 
    cursor: pointer; 
    font-size: 0.85rem; 
    border: 1px solid var(--mint-pale); 
    padding: 4px 12px; 
    border-radius: 15px; 
    font-weight: 400; 
    transition: 0.3s;
}
.lang-toggle:hover { background: var(--mint-pale); }

/* Button Hover Effects */
.btn-main {
    background: var(--accent-terracotta);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--br-custom);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 400;
    display: inline-block;
}
.btn-main:hover {
    background: var(--soft-rose);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(121, 50, 31, 0.3);
}

/* --- Hero Section Restored --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80vh; 
    min-height: 550px; 
    /* background: var(--bg-light-green); */
    background: linear-gradient(
        to bottom, 
        #ECF3EA 0%,   /* Your pale mint color starts at the top */
        #ECF3EA 75%,  /* It stays pale until 90% of the height */
        #1B513B 75%,  /* It switches to Dark Green at exactly 90% */
        #1B513B 100%  /* It stays Dark Green until the very bottom */
    );
    overflow: hidden;
    position: relative;
    padding: 0;
}

/* Left Side: Content with Fade-In from Bottom */
.hero-content {
    flex: 0.8; 
    z-index: 10;
    padding: 0 5% 0 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Restore Fade-In Animation */
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
}

.content-wrapper {
    max-width: 450px;
}

/* Scaled Down Logo */
.hero-logo-main {
    width: 190px; /* Compact size */
    height: auto;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-grey);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Right Side: Edge-to-Edge Slider */
.hero-slider {
    flex: 1.2;
    height: 100%;
    position: relative;
    background-color: var(--bg-light-green);
    
    /* Apply rounding only to the top-left and bottom-left corners */
    /* Syntax: top-left top-right bottom-right bottom-left */
    border-radius: 0 0 30px 70px; 
    
    /* This is CRITICAL: it clips the images to the border of the container */
    overflow: hidden; 
    
    /* Optional: add a slight margin to make the curve visible against the background */
    margin-left: 20px; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 2;
    animation: heroCarousel 15s infinite;
    
    /* Ensure the slides also follow the curve to prevent sharp edges during fades */
    border-radius: 50px 0 0 50px;
}

/* Image Paths */
.slide-3 { 
    background-image: url('carousel_main_photos/Therapis-2478.jpg'); 
    animation-delay: 10s;
    background-position: center 35%; /* Focus on the top of the image */
}

.slide-2 { 
    background-image: url('carousel_main_photos/Therapis-2525.jpg'); 
    animation-delay: 5s; 
    background-position: center 38%;
}

/* Head crop adjustment */
.slide-1 { 
    background-image: url('carousel_main_photos/Therapis-2624.jpg'); 
    background-position: center top; /* Moves the image down slightly to show the head */
}

/* --- Restored Animations --- */

/* Content Fade-in from Bottom */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Carousel Logic (No Blending) */
@keyframes heroCarousel {
    0% { opacity: 0; }
    /* Image stays invisible slightly longer to ensure the previous one is gone */
    2% { opacity: 0; } 
    /* Fade in faster */
    7% { opacity: 1; }   
    /* Stay visible longer */
    30% { opacity: 1; }  
    /* Fade out slightly slower */
    35% { opacity: 0; }  
    100% { opacity: 0; } 
}

/* Mobile Fix */
/* @media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        height: auto;
        padding-top: 100px;
    }
    .hero-content {
        width: 100%;
        padding: 40px 10%;
        text-align: left;
    }
    .hero-slider {
        width: 100%;
        height: 400px;
    }
} */

/* --- Callback --- */
.callback-section { padding: 80px 10%; background: var(--bg-light-green); }
.callback-container { max-width: 900px; margin: 0 auto; background: var(--mint-pale); padding: 40px; border-radius: var(--br-custom); }
.callback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.callback-form input, .callback-form textarea { padding: 18px; border: 1px solid var(--sage-green); border-radius: 10px 0 10px 0; background: var(--bg-light-green); font-size: 1rem; outline: none; transition: 0.3s; }
.callback-form input:focus, .callback-form textarea:focus { border-color: var(--accent-terracotta); }

.btn-call { 
    background: var(--primary-dark); 
    color: white; 
    border: none; 
    border-radius: 10px 0 10px 0; 
    cursor: pointer; 
    font-size: 1.1rem; 
    transition: all 0.3s; 
}
.btn-call:hover { background: var(--sage-green); transform: scale(1.02); }

/* --- Reviews --- */
.reviews-section { background: var(--dusty-pink); padding: 100px 0; text-align: center; }
.review-container { max-width: 1100px; margin: 0 auto; position: relative; height: 200px; overflow: hidden; }
.review-triplet { position: absolute; width: 100%; display: flex; justify-content: space-around; gap: 20px; opacity: 0; animation: tripletFade 12s infinite; }
.review-triplet:nth-child(2) { animation-delay: 6s; }

@keyframes tripletFade { 
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
        pointer-events: none; 
    }
    10%, 40% { /* Stays fully visible and interactive for longer */
        opacity: 1; 
        transform: translateY(0); 
        pointer-events: auto; 
        z-index: 10;
    }
    50% { 
        opacity: 0; 
        transform: translateY(-20px); 
        pointer-events: none; 
    }
    100% { 
        opacity: 0; 
    }
}

/* 2. Adjust the timing slightly if needed */
.review-triplet {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    /* 12s is fine, but the smoother keyframes above make it feel slower */
    animation: tripletFade 12s infinite ease-in-out; 
}

/* 2. Pause and Blur Effect */
/* When any box is hovered, pause animation and blur all boxes... */
.review-container:has(.review-box:hover) .review-triplet {
    animation-play-state: paused;
}

.review-container:has(.review-box:hover) .review-box {
    filter: blur(0.6px);
    opacity: 0.6;
    transform: scale(0.95);
}

/* ...EXCEPT the one being hovered! */
.review-box:hover {
    filter: blur(0) !important;
    opacity: 1 !important;
    transform: translateY(-12px) scale(1.05) !important; /* Slight lift and grow */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--soft-rose);
    z-index: 100;
}

/* Smooth transition for all effects */
.review-box {
    background: var(--white); padding: 25px; border-radius: var(--br-custom); flex: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s;
}


/* --- FAQ RESTRUCTURED --- */
.faq { background: var(--primary-dark); overflow: hidden; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; align-items: stretch; }
.faq-list { padding: 100px 10%; display: flex; flex-direction: column; justify-content: center; }
.faq-list h2 { margin-bottom: 40px; text-align: left; font-size: 2.5rem; color: var(--mint-pale);}
.faq-image-side { position: relative; width: 100%; height: 100%; }
.faq-image-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.faq-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(27, 81, 59, 0.6); }

/* FAQ Interactive Effects */
.faq-item { 
    background: var(--white); 
    margin-bottom: 15px; 
    border-radius: 15px 0 15px 0; 
    border: 1px solid var(--mint-pale); 
    overflow: hidden; 
    transition: background-color 0.4s ease, transform 0.3s ease; 
}

/* Question Hover */
.faq-question { 
    padding: 20px 25px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 400; 
    font-size: 1.05rem; 
    transition: background-color 0.3s ease;
}
.faq-question:hover { background-color: var(--bg-light-green); }
.faq-question i { transition: transform 0.3s ease; }

/* Answer Background Change on Active */
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out, padding 0.3s ease, background-color 0.4s ease; 
    padding: 0 25px; 
    color: #555; 
    line-height: 1.6; 
}

.faq-item.active { border-color: var(--sage-green); }
.faq-item.active .faq-answer { 
    max-height: 300px; 
    padding-bottom: 25px; 
    padding-top: 10px;
    /* background-color: var(--mint-pale);  Changed background when expanded */
}
.faq-item.active .faq-question { border-bottom: 1px solid rgba(0,0,0,0.05); }
.faq-item.active .faq-question i { transform: rotate(45deg); color: var(--accent-terracotta); }

/* --- Footer & Floats --- */
.float-btn { position: fixed; bottom: 30px; z-index: 999; width: 55px; height: 55px; border-radius: 15px 0 15px 0; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.3s; }
.float-btn:hover { transform: translateY(-5px); filter: brightness(1.1); }
.go-top { left: 30px; background: var(--mint-pale); color: var(--primary-dark); }
.contact-float { right: 30px; background: var(--accent-terracotta); }

footer { background: var(--bg-light-green); padding: 80px 10% 40px; border-top: 1px solid var(--dusty-pink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr 0.8fr; gap: 50px; }
.footer-block { border-right: 1px solid var(--dusty-pink); padding-right: 30px; font-size:large;}
.footer-block:last-child { border-right: none; }
.footer-links a { display: block; color: var(--primary-dark); text-decoration: none; margin-bottom: 12px; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent-terracotta); padding-left: 5px; }
.footer-logo img { 
    height: 110px;            /* Adjust this value to change the size */
    width: auto;             /* Keeps the proportions correct */
    margin-bottom: 25px;     /* Space between logo and links below it */
    transition: transform 0.3s ease; /* Adds a smooth feel if you decide to hover it */
}

/* Optional: Subtle hover effect for the logo */
.footer-logo img:hover {
    transform: scale(1.05);
}
.social-icons { display: flex; gap: 20px; margin-top: 20px; }
.social-icons a { font-size: 1.8rem; color: var(--primary-dark); transition: 0.3s; }
.social-icons a:hover { color: var(--soft-rose); transform: scale(1.1); }

@media (max-width: 1024px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-image-side { height: 400px; order: -1; }
    .faq-list { padding: 60px 5%; }
    .footer-grid, .callback-form { grid-template-columns: 1fr; }
    header nav { display: none; }
    .review-triplet { flex-direction: column; position: static; animation: none; opacity: 1; margin-bottom: 20px; }
    .review-container { height: auto; overflow: visible; }
}


/* --- Nested Dropdown Logic --- */
/* Hide the sub-menu names by default */
/* 1. Make the parent a reference point */
.has-sub-menu {
    position: relative; /* Essential so the sub-menu aligns to this item */
}

/* 2. Position the sub-menu sideways */
.sub-menu {
    display: none;
    list-style: none;
    position: absolute;
    
    /* Position it to the right of the parent */
    top: 0;
    left: 100%; 
    
    /* Look & Feel */
    min-width: 200px;
    background: rgba(236, 243, 234, 0.98);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    /* background: #ffffff;  Use a solid color so it's readable */
    border-left: 3px solid var(--accent-terracotta); /* Subtle brand accent */
    z-index: 100;
    padding: 10px 0;
}

/* 3. Show on hover */
.has-sub-menu:hover > .sub-menu {
    display: block;
}

/* 4. Refined Link Styles */
.sub-menu li a {
    font-size: 0.85rem !important;
    color: var(--primary-dark);
    padding: 10px 10px !important;
    display: block; /* Makes the whole area clickable */
    white-space: nowrap; /* Prevents names from wrapping to a second line */
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    color: var(--accent-terracotta) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    text-decoration: none !important;
    padding-left: 25px !important; /* Slight "nudge" effect on hover */
}


/* --- Services Section Styling --- */
.services-preview {
    padding: 80px 20px;
    background-color: var(--primary-dark);
}

.section-title {
    text-align: center;
    color: var(--bg-light-green);
    margin-bottom: 50px;
    font-size: 2rem;
}

.services-grid {
    display: flex;         /* Change grid to flex */
    flex-wrap: wrap;       /* Allows cards to move to the next row */
    gap: 40px;
    justify-content: center; /* This centers the 3 cards in the bottom row */
    max-width: 1400px;      /* Increased to fit 4 cards across (4 x 320px + gaps) */
    margin: 0 auto;
}

/* Optional: Ensure circles don't shrink if the screen gets slightly smaller */
.service-card {
    flex: 0 0 320px;       /* Do not grow, do not shrink, stay 320px */
    background: var(--bg-light-green);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Hover Effect: Minor scale */
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.service-img {
    width: 80px;      /* Fixed size for the icon area */
    height: 80px;     /* Fixed size */
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Ensures the whole SVG is visible */
    margin-bottom: 15px; /* Spacing between icon and title */
}

.service-content {
    padding: 0; /* Content is handled by the flexbox in service-card */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-content h3 {
    color: #2c5f50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'Ubuntu', sans-serif;
}

.service-content p {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    max-width: 250px; /* Limits width so text doesn't hit circle edges */
}

.details-link {
    margin-top: auto;
    text-decoration: none;
    color: #2c5f50;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}


/* Toggle to mobile view */
/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet & Small Desktop (Below 1100px) */
@media (max-width: 1100px) {
    .services-grid {
        max-width: 800px; /* Only fits 2-3 cards across */
    }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 768px) {
    /* 1. Header & Nav */
    .menu-toggle {
        display: block; /* Show the hamburger icon */
        font-size: 1.5rem;
        color: #2c5f50;
        cursor: pointer;
    }

    nav {
        display: none; /* Hide original nav */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block; /* Show when toggled */
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .hide-mobile {
        display: none; /* Hide the big button on mobile header to save space */
    }

    /* 2. Hero Section */
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    /* 3. Circular Service Cards */
    .service-card {
        width: 280px;  /* Slightly smaller circles for mobile */
        height: 280px;
        flex: 0 0 280px;
    }

    /* 4. FAQ & Footer */
    .faq-grid, .footer-grid {
        grid-template-columns: 1fr; /* Stack everything in 1 column */
        gap: 30px;
    }

    .faq-image-side {
        display: none; /* Hide side image on mobile for faster loading */
    }

    /* 5. Callback Form */
    .callback-form {
        flex-direction: column;
        padding: 0 20px;
    }
}

/* Style for the Viber link to look like plain text in the contact card */
.viber-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Takes the color from the <p> or parent card */
    display: inline-block;
    transition: color 0.3s ease;
}

/* Optional: Add a subtle color change on hover so users know it's a link */
.viber-link:hover {
    color: #7360f2; /* A soft Viber-purple or use var(--accent-terracotta) */
    text-decoration: underline;
}

/* Removes blue color and underline from ALL contact links */
.contact-link {
    text-decoration: none;
    color: inherit; /* Inherits the text color of the paragraph it's in */
    transition: all 0.3s ease;
    display: inline-block;
}

/* Optional: A subtle hover effect so users know it's a link */
.contact-link:hover {
    color: var(--bg-light-green); /* Or your brand green */
    opacity: 0.8;
    text-decoration: none; /* Keeps it clean even on hover */
}

/* Special fix for the Footer: ensures the footer links aren't forced to a weird color */
footer .contact-link {
    color: inherit; /* Or whatever your footer text color is */
    margin-top: 2%;
}

footer .contact-link:hover {
    color: var(--accent-terracotta); /* A lighter highlight for the dark footer */
}

/* ---------- Gallery Row Adjustment like the one in pelvic ----------------- */
.image-gallery-row {
    gap: 30px; /* Adjust the space between the two images */
}

.image-gallery-row .service-main-image {
    flex: 1; /* Forces both containers to grow equally */
    width: 100%;
}

.image-gallery-row .service-main-image img {
    width: 80%;
    height: 400px; /* Optional: Set a fixed height for symmetry */
    object-fit: cover; /* Ensures images fill the area without stretching */
    border-radius: 15px; /* Keeps consistent with your medical theme */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Responsive: Stack them on mobile */
@media (max-width: 768px) {
    .image-gallery-row {
        flex-direction: column;
    }
    
    .image-gallery-row .service-main-image img {
        height: 300px; /* Slightly shorter on mobile */
    }
}

/* ---------------------- Parallax effect in pelvic section --------------------------- */
.parallax-window {
    /* The "Window" height */
    height: 50vh; 
    
    /* Background Image Setup */
    background-image: url('service_photos/Therapis part 2-41227_pelvic.jpg');
    background-attachment: fixed; /* This creates the parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Light Filter (Overlay) */
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using a soft brand color filter (dark green/teal with 40% opacity) */
    background-color: var(--primary-dark); 
    opacity: 0.65;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.parallax-content h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* ⚠️ MOBILE FIX: Parallax usually breaks on mobile devices */
@media (max-width: 1024px) {
    .parallax-window {
        background-attachment: scroll; /* Disables parallax for smoother mobile scrolling */
        height: 30vh;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for laptop */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.bio-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* --- THE HOVER EFFECT --- */
.bio-avatar-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden; /* Clips image to circle */
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bio-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.bio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 95, 80, 0.4); /* Brand dark green tint */
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px;
}

.bio-overlay h3 {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

/* Hover States */
.bio-avatar-wrapper:hover .bio-avatar {
    filter: grayscale(100%) blur(3px);
    transform: scale(1.1);
}

.bio-avatar-wrapper:hover .bio-overlay {
    opacity: 1;
}

/* Bio Info & Button */
.bio-info h4 {
    color: var(--accent-terracotta);
    margin-bottom: 15px;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--accent-terracotta);
    text-decoration: underline;
}

/* Mobile View */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* Keep the large circles from before */
.team-selection-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 120px;
}

.bio-avatar-wrapper.large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hover: Blur and Grayscale */
.bio-avatar-wrapper.large:hover img {
    filter: grayscale(100%) blur(4px);
    transform: scale(1.05);
}

/* Individual Bio Rows */
.individual-bio-row {
    padding: 60px 0;
    max-width: 850px;
    margin: 0 auto;
}

.bio-header {
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-terracotta);
    padding-left: 20px;
}

.bio-header h2 {
    color: var(--primary-dark);
    font-size: 2rem;
}

.individual-bio-row p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.bio-divider {
    width: 100px;
    border: 0;
    border-top: 2px solid var(--accent-terracotta);
    margin: 40px auto;
    opacity: 0.3;
}

.team-selection-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 120px;
    scroll-margin-top: 150px; /* Helps the "Back to Team" button land perfectly */
}

/* THE FIX: Centering the Card Content */
.avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally centers children */
    text-align: center;
    cursor: pointer;
    width: 300px; /* Matches the image width */
}

.team-name {
    margin-top: 20px;
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Back to Team Button Styling */
.back-to-team {
    margin-top: 30px;
    background: transparent;
    border: 1px solid var(--accent-terracotta);
    color: var(--accent-terracotta);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-team:hover {
    background: var(--accent-terracotta);
    color: white;
    transform: translateY(-3px);
}

.individual-bio-row p a {
    color: var(--accent-terracotta);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.individual-bio-row p a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.bio-list {
    margin: 20px 0;
    padding-left: 20px;
    list-style-type: none; /* We will use custom dots */
}

.bio-list li {
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
    color: #555;
}

/* Custom brand-colored bullet points */
.bio-list li::before {
    content: "•";
    color: var(--accent-terracotta);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* -------------------------- Infinite loop of logos -------------------------- */
.logo-carousel-section {
    padding: 60px 0;
    background-color: white; /* Or var(--white) */
    overflow: hidden; /* Important: hides the logos off-screen */
}

.carousel-title {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.logo-slider {
    position: relative;
    width: 100%;
    display: flex;
}

/* The moving track */
.logo-track {
    display: flex;
    width: calc(250px * 18); /* Width of one logo * total logos (including repeats) */
    animation: scrollInfinite 40s linear infinite;
}

/* Individual logo container */
.logo-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-item img {
    max-width: 150px;
    max-height: 80px;
    filter: grayscale(100%); /* Makes logos look uniform and professional */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Hover effect: Color comes back */
.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Infinite Animation Logic */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 9)); /* Move by exactly half the track width */
    }
}

/* Pause on hover so people can read the logos */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}