/* ------------------- */
/* Basic Setup & Resets */
/* ------------------- */
:root {
    --primary-color: #0a4d68;
    --secondary-color: #088395;
    --accent-color: #37B7C3;
    --light-bg-color: #f8f9fa;
    --dark-font-color: #333;
    --light-font-color: #ffffff;
    --grey-font-color: #555;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-font-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 80px 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--grey-font-color);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav .logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999; /* Higher z-index to ensure it's clickable */
    position: relative;
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1001;
}

@media (min-width: 1025px) {
    /* Desktop: Force dropdown to be hidden by default, even with active class */
    .dropdown .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: none !important;
    }
    
    /* Desktop: Only show on hover */
    .dropdown:hover .dropdown-menu,
    .dropdown:hover.active .dropdown-menu {
        display: block !important;
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

/* ------------------- */
/* Enhanced Hero Section */
/* ------------------- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-font-color);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(10, 77, 104, 0.2)), url('assets/Patients waiting at clinic.jpg') no-repeat center center/cover;
    position: relative;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-font-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 300;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--light-font-color);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero highlights removed for cleaner design */

.cta-button {
    background-color: var(--secondary-color);
    color: var(--light-font-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(8, 131, 149, 0.3);
}

.cta-button:hover {
    background-color: #076d7b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 131, 149, 0.4);
}

.cta-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.cta-button-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-font-color);
    transform: translateY(-2px);
}

/* ------------------- */
/* Enhanced About Section */
/* ------------------- */
#about {
    background-color: var(--light-bg-color);
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image img {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recognition-badge {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: var(--primary-color);
    color: var(--light-font-color);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.recognition-badge span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--grey-font-color);
    line-height: 1.7;
}

.key-achievements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.achievement h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.achievement ul {
    list-style: none;
    padding-left: 0;
}

.achievement li {
    margin-bottom: 8px;
    color: var(--grey-font-color);
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.achievement li::before {
    content: '🏆';
    margin-right: 10px;
    font-size: 1.1rem;
}

.about-text p {
    max-width: 65ch; /* Limit line length for readability */
}

/* ------------------- */
/* Credentials Section */
/* ------------------- */
.credentials-section {
    background-color: #ffffff;
    border-top: 4px solid var(--accent-color);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto 0;
}

.credential-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.1);
}

.credential-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat .label {
    font-size: 0.9rem;
    color: var(--grey-font-color);
    font-weight: 600;
}

.credential-card ul {
    list-style: none;
    padding-left: 0;
}

.credential-card li {
    margin-bottom: 8px;
    color: var(--grey-font-color);
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.credential-card li::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ------------------- */
/* Enhanced Services Section */
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto 0;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.service-card.featured {
    border-top: 4px solid var(--secondary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--grey-font-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.service-details small {
    color: var(--grey-font-color);
    font-size: 0.85rem;
}

/* New styles for the services summary on the homepage */
.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.summary-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.summary-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.summary-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.summary-card p {
    font-size: 1rem;
    color: var(--grey-font-color);
}

/* ------------------- */
/* Technology Section */
/* ------------------- */
.technology-section {
    background-color: var(--light-bg-color);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto 0;
}

.tech-category {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.tech-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-category:nth-of-type(1) h3::before { content: '🔬'; }
.tech-category:nth-of-type(2) h3::before { content: '📊'; }
.tech-category:nth-of-type(3) h3::before { content: '⚡'; }
.tech-category:nth-of-type(4) h3::before { content: '🏥'; }

.tech-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Custom Scrollbar for Webkit browsers */
.tech-list::-webkit-scrollbar {
    width: 8px;
}

.tech-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tech-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.tech-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.tech-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-bottom: none;
}

.tech-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.tech-item strong {
    font-size: 1.1rem;
    color: var(--dark-font-color);
    margin-bottom: 3px;
}

.tech-item span {
    font-size: 0.95rem;
    color: var(--grey-font-color);
}

/* ------------------- */
/* Enhanced Conditions Section */
/* ------------------- */
#conditions {
    background-color: #ffffff;
}

.accordion {
    max-width: 1000px;
    margin: 30px auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-button {
    background-color: var(--light-bg-color);
    border: none;
    width: 100%;
    text-align: left;
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    font-family: 'Lato', sans-serif;
}

.accordion-button:hover {
    background-color: #e9ecef;
}

.accordion-button::after {
    content: '+';
    font-size: 1.8rem;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.accordion-button.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 25px;
    background-color: #ffffff;
}

.condition-content {
    padding: 25px 0;
}

.condition-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.condition-content ul {
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
}

.condition-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--grey-font-color);
}

.condition-content li::before {
    content: "→";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.treatment-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-font-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
}

/* ------------------- */
/* Education Section */
/* ------------------- */
.education-section {
    background-color: var(--light-bg-color);
    text-align: center;
}

.education-summary {
    max-width: 800px;
    margin: 0 auto;
}

.education-summary p {
    margin-bottom: 2rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto 0;
}

.education-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.guide-topics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.topic ul {
    list-style: none;
    padding-left: 0;
}

.topic li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    font-size: 0.9rem;
    color: var(--grey-font-color);
}

.topic li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.warning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.warning-item {
    padding: 15px;
    border-radius: 8px;
    background-color: var(--light-bg-color);
    border-left: 4px solid var(--warning-color);
}

.warning-item.urgent {
    border-left-color: var(--danger-color);
    background-color: #fff5f5;
}

.warning-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.warning-item span {
    font-size: 0.85rem;
    color: var(--grey-font-color);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.faq-item p {
    color: var(--grey-font-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ------------------- */
/* FAQ Section */
/* ------------------- */
.faq-section {
    background-color: #ffffff;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.faq-tab-button {
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: max-content;
}

.faq-tab-button.active,
.faq-tab-button:hover {
    background-color: var(--primary-color);
    color: var(--light-font-color);
    transform: translateY(-2px);
}

.faq-category-content {
    display: none;
}

.faq-category-content.active {
    display: block;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--light-bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(10, 77, 104, 0.1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 60px 20px 25px;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
    display: block;
    word-wrap: break-word;
}

.faq-question:hover {
    background-color: rgba(10, 77, 104, 0.05);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(8, 131, 149, 0.1);
}

.faq-item.active .faq-question {
    background-color: rgba(10, 77, 104, 0.05);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.3s ease-in-out;
    padding: 0 30px;
    background-color: #ffffff;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
    padding: 25px 30px 30px 30px;
    /* max-height is set by JS */
}

.faq-answer p {
    margin-bottom: 15px;
    color: var(--grey-font-color);
    line-height: 1.6;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--grey-font-color);
    line-height: 1.5;
}

.faq-answer li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.faq-answer em {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
}

/* FAQ Content Grids */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.treatment-method {
    background-color: var(--light-bg-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.treatment-method h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.treatment-method p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stage {
    background-color: var(--light-bg-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.stage h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.stage p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.recovery-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.recovery-phase {
    background-color: var(--light-bg-color);
    padding: 20px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
}

.recovery-phase h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1rem;
}

.recovery-phase ul {
    margin-bottom: 0;
}

.recovery-phase li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.emergency-signs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.urgent-sign {
    background-color: #fff5f5;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--danger-color);
}

.warning-sign {
    background-color: #fffbf0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.urgent-sign h4,
.warning-sign h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.urgent-sign ul,
.warning-sign ul {
    margin-bottom: 0;
}

.urgent-sign li,
.warning-sign li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ------------------- */
/* Enhanced Gallery Section */
/* ------------------- */
#gallery {
    background: var(--light-bg-color);
    padding: 80px 0;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery-tab {
    background: white;
    border: 1px solid #ddd;
    color: var(--grey-font-color);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 77, 104, 0.2);
}

.gallery-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(10, 77, 104, 0.2);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    flex: 1 1 320px;
    max-width: 380px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px; /* This sets a standard height for all gallery images. */
    object-fit: cover; /* This makes the image cover the area without distortion. */
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 40px 20px 20px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.gallery-overlay h3 {
    font-size: 1.15rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.4;
}

/* Gallery filtering functionality */
.gallery-item.hidden {
    display: none;
}

/* Horizontal scrolling preview gallery */
.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 20px;
    gap: 20px;
}

.gallery-item-scrolling {
    flex: 0 0 300px;
    white-space: normal;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item-scrolling img {
    width: 100%;
    height: 220px; /* This sets a standard height for all gallery images. */
    object-fit: cover; /* This makes the image cover the area without distortion. */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-scrolling:hover img {
    transform: scale(1.05);
}

.gallery-subtitle {
    margin: 40px 0 20px;
    color: var(--primary-color);
    text-align: left;
    font-size: 1.5rem;
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ------------------- */
/* Enhanced Contact Section */
/* ------------------- */
#contact {
    background-color: #ffffff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1300px;
    margin: 30px auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-info h4 {
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
    font-size: 1.1rem;
}

.clinic-address, .clinic-hours, .other-locations, .emergency-contact {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg-color);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.emergency-contact {
    border-left-color: var(--danger-color);
    background-color: #fff5f5;
}

.location {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.location:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.location strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.social-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-font-color);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ------------------- */
/* Appointment Form */
/* ------------------- */
.appointment-form {
    flex: 1;
    min-width: 400px;
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.appointment-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--grey-font-color);
    text-align: center;
    margin-top: 10px;
}

/* ------------------- */
/* Footer */
/* ------------------- */
.main-footer {
    background-color: #082f4e; /* Darker blue */
    color: #e0f2fe; /* Light blue-white text */
    padding: 60px 0 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column.footer-about {
    flex-basis: 30%;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: var(--light-font-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column p, .footer-column li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a5d8ff; /* Lighter blue for text */
    margin-bottom: 10px;
}

.footer-column a {
    color: #a5d8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-social {
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.map-container {
    height: 250px; /* Reduced map height */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a5d8ff;
}

/* Contact Form Styling */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-container h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-container p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--grey-font-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ------------------- */
/* Enhanced Modal Styles */
/* ------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: none;
    width: 85%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    animation: slideInFromTop 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes slideInFromTop {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-body ul {
    list-style-position: inside;
    padding-left: 10px;
}

.modal-body li {
    margin-bottom: 8px;
    color: var(--grey-font-color);
    line-height: 1.5;
}

/* ------------------- */
/* Responsive Design   */
/* ------------------- */

/* ----- Tablet (1024px) ----- */
@media (max-width: 1024px) {
    .main-nav ul.nav-links:not(.active) {
        display: none; /* Hide main nav by default on tablet and below */
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease-in-out;
        gap: 40px;
        z-index: 9998; /* Just below hamburger menu */
    }

    .nav-links.active,
    .main-nav ul.nav-links.active {
        right: 0 !important;
        display: flex !important; /* Show when active */
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: flex;
        position: relative;
        z-index: 9999; /* Higher z-index to ensure it's above everything */
        /* Ensure proper touch area on mobile */
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
        cursor: pointer;
        /* Make sure it's clickable */
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        /* Force hardware acceleration for better touch response */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container, .contact-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .about-image, .about-text {
        max-width: 600px;
    }

    .credentials-grid, .services-grid, .technology-grid, .education-grid, .post-op-grid, .resources-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Mobile Dropdown Styles - Only when nav is active */
    .dropdown-toggle {
        cursor: pointer;
    }
    
    .nav-links .dropdown-menu {
        display: none;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 10px 0 0 20px;
        list-style: none;
    }
    
    .nav-links .dropdown-menu a {
        font-size: 1.2rem;
        color: var(--secondary-color);
    }
    
    .nav-links.active .dropdown.active > .dropdown-menu {
        display: block !important;
    }
    
    .nav-links .dropdown.active .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}

/* ----- Mobile (768px) ----- */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 2.2rem;
    }

    .main-nav ul {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-highlights,
    .credentials-grid, 
    .services-grid, 
    .technology-grid, 
    .education-grid, 
    .post-op-grid, 
    .resources-grid,
    .gallery-grid,
    .treatment-grid, 
    .stages-grid, 
    .emergency-signs {
        grid-template-columns: 1fr;
    }

    /* Horizontal scroll for card sections on mobile */
    .credentials-grid,
    #testimonials .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 20px 30px 20px;
        margin: 0 -20px;
    }

    .credentials-grid > .credential-card,
    #testimonials .testimonials-grid > .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    
    /* Hide scrollbar for a cleaner look */
    .credentials-grid::-webkit-scrollbar,
    #testimonials .testimonials-grid::-webkit-scrollbar {
        display: none;
    }
    .credentials-grid,
    #testimonials .testimonials-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .faq-categories {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 15px;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    .faq-tab-button {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.8rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .faq-question {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 20px 20px 25px 20px;
    }

    .post-op-grid, .resources-grid, .gallery-grid {
        gap: 20px;
    }
}

/* ----- Small Mobile (480px) ----- */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .contact-info {
        text-align: center;
    }
}

/* Post-Operative Care Section */
#post-operative {
    background-color: var(--light-bg-color);
}

.post-op-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-op-category {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

.post-op-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.post-op-category h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.post-op-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.post-op-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.post-op-list li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-size: 1rem;
}

.emergency-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.3);
    border-left: 5px solid #fff;
    position: relative;
    overflow: hidden;
}

.emergency-warning::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.warning-icon {
    font-size: 3.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    z-index: 2;
    position: relative;
}

.warning-content {
    z-index: 2;
    position: relative;
}

.warning-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.warning-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.warning-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.warning-content li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

.post-op-resources h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.resource-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.resource-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.resource-tag {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    color: var(--grey-font-color);
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '“';
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 0;
    display: block;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.map-container {
    flex: 1;
    min-width: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Clinic Tour Button & Modal Styles */
.clinic-tour-button {
    margin-left: 15px; /* Space between buttons */
}

.video-modal-content {
    max-width: 900px; /* Wider for video */
    padding-bottom: 20px; /* Adjust padding for video aspect ratio */
}

.video-modal-content h2 {
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px; /* Optional: if you want rounded corners for the video iframe */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .hero-content .cta-button,
    .hero-content .clinic-tour-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    .hero-content .clinic-tour-button {
        margin-top: 1rem;
    }
    .video-modal-content {
        padding: 1rem;
        width: 95%;
    }
}

/* Doctor's Message Section */
.doctors-message-section {
    background-color: var(--light-bg-color); /* Or #ffffff if preferred */
    padding: 60px 20px; /* Standard section padding */
}

.doctors-message-section .container {
    max-width: 900px; /* Optimal width for text content */
    margin: 0 auto;
    text-align: left; /* Align text to the left for readability */
}

.doctors-message-section h2 {
    text-align: center; /* Center the main title of the section */
    margin-bottom: 40px; /* Space below the title */
    font-size: 2.5rem;
    color: var(--primary-color);
}

.doctors-message-content {
    background-color: #ffffff; /* White background for the message block */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

.doctors-message-content p {
    margin-bottom: 1.2em; /* Space between paragraphs */
    line-height: 1.7;
    color: var(--grey-font-color);
    font-size: 1.05rem;
}

.doctors-message-content p:first-child {
    font-weight: bold; /* "Dear Human," can be bold */
    color: var(--primary-color);
}

.doctors-message-content p:nth-last-child(2) { /* Targeting "Our Motto" paragraph */
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--accent-color);
    text-align: center;
    color: var(--secondary-color);
}

.doctors-message cite {
    display: block;
    text-align: right;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

.motto {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    text-align: center;
    font-style: normal;
}
.motto p {
    margin-bottom: 5px;
    line-height: 1.5;
}
.motto p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .doctors-message-section {
        padding: 40px 20px;
    }
    .doctors-message-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .doctors-message-content {
        padding: 25px 20px;
    }
    .doctors-message-content p {
        font-size: 1rem;
    }
}

/* Research Read More Button Styling */
.research-read-more {
    display: inline-block;
    margin-top: 1rem;
}

/* Associate Doctor Section */
.associate-doctor-section {
    background-color: #ffffff; /* Or var(--light-bg-color) */
    padding: 60px 20px;
}

.associate-doctor-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.associate-doctor-section .section-title {
    margin-bottom: 50px;
}

.associate-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 40px;
    padding: 30px;
    background-color: var(--light-bg-color); /* Card-like background */
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

.associate-photo-placeholder {
    flex: 0 0 250px; /* Fixed width for photo area */
    height: 300px; /* Fixed height */
    background-color: #e0e0e0; /* Placeholder color */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #777;
    text-align: center;
    border: 2px dashed #ccc;
}
.associate-photo-placeholder::after {
    content: "Photo Coming Soon";
}


.associate-bio-placeholder {
    flex: 1; /* Takes remaining space */
    text-align: left;
}

.associate-bio-placeholder h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.associate-bio-placeholder .subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.associate-bio-placeholder p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--grey-font-color);
}

.associate-bio-placeholder p em { /* For the "Bio and information loading..." text */
    color: #888;
    font-style: italic;
}

/* Actual Associate Doctor Styles (not placeholder) */
.associate-photo {
    flex: 0 0 250px; /* Fixed width for photo area */
    height: 300px; /* Fixed height */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.associate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.associate-bio {
    flex: 1; /* Takes remaining space */
    text-align: left;
}

.associate-bio h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.associate-bio .subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.associate-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--grey-font-color);
}

.associate-bio .education-background,
.associate-bio .interests,
.associate-bio .current-practice {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.associate-bio h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.associate-bio ul {
    margin-left: 20px;
    margin-top: 10px;
}

.associate-bio li {
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .associate-container {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        text-align: center;
    }
    .associate-photo-placeholder {
        width: 200px; /* Adjust for smaller screens */
        height: 240px;
        margin-bottom: 20px;
    }
    .associate-bio-placeholder {
        text-align: center; /* Center text for stacked layout */
    }
    .associate-bio-placeholder h3 {
        font-size: 1.5rem;
    }
    
    /* Mobile styles for actual associate doctor */
    .associate-photo {
        flex: 0 0 200px; /* Smaller fixed width for mobile */
        width: 200px;
        height: 240px;
        margin-bottom: 20px;
    }
    .associate-bio {
        text-align: center; /* Center text for stacked layout */
    }
    .associate-bio h3 {
        font-size: 1.5rem;
    }
    .associate-bio .education-background,
    .associate-bio .interests,
    .associate-bio .current-practice {
        text-align: left; /* Keep content sections left-aligned for readability */
        margin-top: 20px;
    }
}

/* Footer Social Links Enhancement */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icons/links */
    margin-top: 15px;
}

.social-icon {
    /* Existing styles should be fine, ensure it's display: inline-flex or flex for alignment if not already */
    display: inline-flex; /* Or flex */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline */
}

.google-reviews-link {
    color: #a5d8ff; /* Match other footer link colors */
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px; /* Pill shape */
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent wrapping */
}

.google-reviews-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.google-reviews-link .stars { /* If you choose to wrap stars in a span */
    color: #ffc107; /* Gold color for stars */
    margin-left: 5px;
}

/* Education Hub Page */
.education-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.education-resource-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.education-resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.education-resource-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.education-resource-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 1rem 0 0.5rem;
    padding: 0 1rem 1rem;
    margin-bottom: 0;
}

.education-resource-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    padding: 0 1rem 1rem;
    margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* New Blockquote Style for Doctor's Message */
.doctors-message {
    background-color: #f8f9fa;
    border-left: 5px solid var(--secondary-color);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    color: var(--grey-font-color);
}

.doctors-message p {
    margin-bottom: 1rem;
}

.doctors-message p:last-child {
    margin-bottom: 0;
}

.doctors-message cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
}

/* ------------------- */
/* Internal Page Headers */
/* ------------------- */
.page-header-section {
    padding: 120px 20px;
    text-align: center;
    color: var(--light-font-color);
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 77, 104, 0.7);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-section h1 {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-header-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* ------------------- */
/* Brochure List Styles */
/* ------------------- */
.brochure-list {
    margin-top: 40px;
}

.brochure-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.brochure-list li {
    background-color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e9ecef;
}

.brochure-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 77, 104, 0.15);
}

.brochure-list a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

.brochure-list a::before {
    content: '📄'; /* PDF icon */
    margin-right: 10px;
    font-size: 1.2rem;
}

.brochure-list a:hover {
    color: var(--secondary-color);
}

/* Virtual Tours Section */
.virtual-tours-section {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.tours-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tour-video {
    flex: 1;
    min-width: 300px;
    max-width: 560px;
}

.tour-video h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .tours-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .tour-video {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    .tour-video h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .virtual-tours-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .tour-video h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .virtual-tours-section {
        padding: 2rem 1rem;
    }
    
    .tours-container {
        gap: 1.5rem;
    }
}