@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --color-primary: #138086; /* Teal */
    --color-primary-dark: #0e6b6f;
    --color-secondary: #e9effa;
    --color-dark: #0a2d3e; /* Dark Blue/Green */
    --color-text: #0a2d3e;
    --color-text-light: #fff;
    --color-background: #f9f9f9;
    --color-light-bg: #e6f5f5;
    --color-border: #dee2e6;
    --color-footer-bg: #1c2939;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
    position: relative; /* Helps with positioning of injected elements like the translate dropdown */
}

.page-wrapper {
    overflow-x: hidden; /* Prevents horizontal scrollbars from appearing */
}

/* Final override for Google Translate positioning issue */
html.translated-ltr body, html.translated-rtl body {
    top: 0 !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Unified Header --- */
header.site-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease-in-out;
}

.site-header .container {
    width: 95%; /* Use more of the screen width for the header */
    max-width: 1500px; /* Allow header to be wider on large screens */
    padding: 0; /* Reset padding as width and margin handle it */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    vertical-align: middle;
    transition: height 0.3s ease-in-out;
}

.header-right {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 1.6rem; /* Final adjustment for more spacing */
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap; /* Prevents link text from breaking into two lines */
    padding-bottom: 5px;
    font-size: 0.98rem; /* Final adjustment for better visibility */
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.main-nav a:hover {
    color: var(--color-light-bg);
    border-bottom-color: var(--color-light-bg);
}

.main-nav a.active {
    border-bottom-color: #fff;
}

/* Responsive tweaks for navigation to prevent wrapping on common laptop screens */
@media (min-width: 992px) and (max-width: 1450px) {
    .main-nav {
        gap: 1.1rem; /* Final adjustment for spacing on smaller screens */
    }
    .main-nav a {
        font-size: 0.95rem; /* Final adjustment for readability */
    }
}

/* --- Mobile Navigation Toggle (Hamburger) --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above the nav */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    left: 0;
    transition: transform 0.3s ease-in-out;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/* --- Scrolled Header State --- */
header.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}
header.site-header.scrolled .logo img {
    height: 60px;
}

/* --- Google Translate --- */
.goog-te-banner-frame {
    display: none !important;
}

#google_translate_element {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}
.goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
    font-weight: 600;
    /* Making the translator text smaller to save space */
    font-size: 0.9rem !important; 
    padding-right: 5px !important;
}
.goog-te-gadget-icon {
    display: none !important;
}
/* Ensure the dropdown menu appears above the sticky header */
.goog-te-menu-frame {
    z-index: 9999 !important; /* Use a very high z-index to ensure it's on top of all other content */
}


/* --- Buttons --- */
.btn, .btn-primary {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding: 12px 25px;
    border: none;
    font-size: 1em;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover, .btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    padding: 10px 25px;
    border: 2px solid var(--color-primary);
    font-size: 1em;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}
/* --- Sections --- */
.section {
    padding: 3rem 0;
}

.section h1, .section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.section > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--color-light-bg);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Grids & Feature Cards --- */
.grid-4, .treatments, .how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.treatments div, .how-it-works div, .feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatments div:hover, .how-it-works div:hover, .feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px hsla(183, 72%, 25%, 0.15);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-split-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.feature-split-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.feature-split-text p {
    text-align: left;
    margin-bottom: 1.5rem;
    max-width: none;
}

.checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.checklist li {
    padding-left: 0;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

.checklist li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: 60px 0 20px;
    margin-top: 40px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column .logo img {
    max-height: 80px;
    margin-bottom: 30px;
}

.footer-column p {
    line-height: 1.7;
    color: #adb5bd;
}

.footer-column h4 {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #adb5bd;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: var(--color-text-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #adb5bd;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-media a {
    color: #adb5bd;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-media a:hover {
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.social-media svg {
    width: 24px;
    height: 24px;
    display: block;
}


/* --- Hospital Slider (Swiper) --- */
.hospital-slider {
    padding: 20px 0 50px;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto; /* Ensure slides can grow to fit content */
    align-items: stretch; /* Make items inside the slide stretch to fill it */
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
}

.swiper-pagination-bullet-active {
    background: var(--color-primary);
}

.hospital-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hospital-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px hsla(183, 72%, 25%, 0.15);
}

.hospital-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hospital-card .card-content {
    padding: 20px;
}

.hospital-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.25em;
    color: var(--color-primary);
}

.hospital-card .location {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
}

.hospital-card .specialties {
    font-size: 0.9em;
    color: var(--color-text);
}

/* --- Tourism Slider --- */
.tourism-slider {
    padding: 20px 0 50px;
    position: relative;
}

.package-feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row are same height */
}

.package-feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px hsla(183, 72%, 25%, 0.15);
}

.package-feature-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed to show the full image */
    background-color: #f0f0f0; /* Added a background for any letterboxing */
}

.package-feature-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This will make the content area fill the space */
}

.package-feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15em; /* Reduced font size */
    color: var(--color-primary);
}

.package-feature-card p {
    flex-grow: 1; /* This will push the button to the bottom */
    margin-bottom: 20px;
    font-size: 0.9rem; /* Reduced font size */
}
/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card .patient-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-primary);
}

.testimonial-card blockquote {
    margin: 0 0 20px 0;
    font-style: italic;
    color: #555;
    position: relative;
    line-height: 1.6;
    padding-top: 20px;
    flex-grow: 1;
}

.testimonial-card blockquote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4em;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--color-primary);
    font-style: normal;
}

/* --- Forms (Contact, Modal, etc.) --- */
.form-container, .contact-form-section {
    background-color: white;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-container form, .contact-form-section form {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-control, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(19, 128, 134, 0.1);
}

.phone-input-group {
    display: flex;
}

.phone-input-group select {
    flex: 0 0 130px;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.phone-input-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* --- File Upload --- */
.file-upload {
    border: 2px dashed var(--color-border);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.file-upload:hover {
    border-color: var(--color-primary);
    background-color: #f7fdfd;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f5f5f5;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.file-item span:last-child {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    padding: 0 5px;
}

/* --- Modal --- */
.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.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.opinion-form h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-heading);
}

/* --- Messages --- */
.error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--color-light-bg);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.success-message h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* --- WhatsApp Button --- */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 990;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 90px; /* Position above the WhatsApp button */
    right: 20px;
    background-color: var(--color-dark);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 991; /* Higher than WhatsApp to ensure it's on top if they overlap */
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}
/* --- Treatment Page Specific --- */
.treatment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.treatment-list li {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment-list li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px hsla(183, 72%, 25%, 0.15);
}

/* --- Admin Pages --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-light-bg);
}

.login-form {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.admin-header {
    background-color: var(--color-dark);
    color: white;
    padding: 1rem 2rem;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table thead {
    background-color: var(--color-primary);
    color: white;
}

/* --- Calculator --- */
.calculator-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--color-light-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    align-items: flex-end;
    margin-top: 30px;
}

.calculator-form .form-group {
    min-width: 200px;
}

.results-section {
    margin-top: 40px;
    display: none; /* Hide by default, will be shown by JS */
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}

.results-table th, .results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
}

.results-table thead th {
    background-color: var(--color-light-bg);
    font-weight: bold;
    color: var(--color-primary);
}

/* --- Tourism Packages Page --- */
.package-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.package-full-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 120px; /* Offset for sticky header when jumping to anchors */
}

.package-full-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.package-full-card img {
    width: 100%;
    height: auto;
}

.package-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-content h3 {
    margin-top: 0;
    color: var(--color-primary-dark); /* Aligned with theme */
}

.package-content .location {
    font-weight: bold;
    color: var(--color-primary); /* Aligned with theme */
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.package-content ul {
    list-style-type: '✓ ';
    padding-left: 1.5rem;
}

.package-content li {
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.package-buttons {
    margin-top: auto; /* Pushes buttons to the bottom of the card */
    padding-top: 1rem; /* Adds space above the buttons */
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.package-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* Pushes the share buttons to the right */
}

.share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #1DA1F2; }
.share-whatsapp { background-color: #25D366; }

.package-category-title {
    font-size: 1.8rem;
    color: var(--color-dark);
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.custom-package-promo {
    background-color: var(--color-light-bg);
    border: 2px dashed var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.custom-package-promo h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.custom-package-promo p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.custom-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}

.custom-features li {
    margin-bottom: 0.75rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: block;
    height: 250px; /* Fixed height for uniform grid */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 128, 134, 0.6); /* Primary color with opacity */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.lightbox-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    border-radius: var(--border-radius);
}

/* --- Lightbox Controls --- */
.lightbox-modal button {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 3001;
    transition: background-color 0.3s;
}
.lightbox-modal button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 40px;
    text-align: center;
    padding: 0;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0;
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    width: 1em;
    height: 1em;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    margin-left: 1rem;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-icon::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1rem 1.5rem 0;
    line-height: 1.7;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--color-dark);
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
    }

    .main-nav.is-open {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .main-nav a {
        margin: 0;
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    /* Animate hamburger to an 'X' */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-icon {
        background-color: transparent;
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::before {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    #google_translate_element {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
    }

    .hero h1 { font-size: 2rem; }
    .section h1, .section h2 { font-size: 1.8rem; }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .form-container form, .contact-form-section form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-split-text {
        /* On mobile, ensure text comes first */
        order: 1;
    }
}

@media (min-width: 768px) {
    .package-full-card {
        flex-direction: row;
    }
    .package-full-card img {
        width: 300px;
        height: auto;
    }
}

/* --- Scroll-Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Performance optimization */
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.stagger-reveal > * {
    transition-delay: var(--stagger-delay, 0s);
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-light-bg);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Package Filtering --- */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 2rem 0 2.5rem 0;
}

.filter-btn {
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--color-light-bg);
    border-color: var(--color-primary);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.package-category-wrapper.is-hidden {
    display: none;
}

/* --- Hospital Page Specific Styles --- */
.hospital-region {
    margin-bottom: 3rem;
}
.hospital-region h2 {
    font-size: 1.8rem;
    color: var(--color-dark);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.hospital-info-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.hospital-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.hospital-info-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}
.hospital-info-card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}
.hospital-info-card p strong {
    color: var(--color-dark);
}

/* --- Partner Page Styles --- */

.partner-form-section .form-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.partner-form-section .form-group {
    margin-bottom: 1.5rem;
}

.partner-form-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Overriding general form styles for the partner page for specific layout needs */
.partner-form-section .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
}

.partner-form-section .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(19, 128, 134, 0.1); /* Using theme color */
}

.partner-form-section .form-control.is-invalid {
    border-color: #e74c3c; /* Matching main.css error color */
}

.partner-form-section .error {
    color: #e74c3c; /* Matching main.css error color */
    font-size: 0.875rem;
    margin-top: 0.3rem;
    min-height: 1em; /* Ensures layout doesn't jump when error appears */
}

.partner-form-section .btn-primary {
    display: block;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-light);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.partner-form-section .btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
}

/* --- Insurance Page Specific Styles --- */
.insurance-intro, .insurance-providers, .how-to-use, .cashless-hospitals, #faq {
    margin-bottom: 3rem;
}

.insurance-intro h2, .insurance-providers h2, .how-to-use h2, .cashless-hospitals h2, #faq h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.insurance-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.insurance-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.insurance-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.insurance-card li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.info-box-warning {
    background-color: #fffbe6;
    border-left: 5px solid #ffc107;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.info-box-warning h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #856404;
}

.info-box-cta {
    background-color: var(--color-light-bg);
    border: 2px dashed var(--color-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.info-box-cta h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Note: The @keyframes for 'shake' and the '.success-message' styles are already present in main.css, so they don't need to be duplicated. */

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* --- Page Specific Styles --- */

/* --- Impact Page --- */
.charity-section {
    margin-bottom: 3rem;
}
.charity-mission, .charity-involvement {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
}
.charity-how-it-works .step {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}
.charity-how-it-works .step h3 {
    margin-top: 0;
    color: var(--color-primary);
}
.success-story {
    background-color: var(--color-light-bg); /* Corrected from --color-light */
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}
.success-story blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.success-story cite {
    font-weight: 600;
    color: var(--color-dark);
}
.empathy-tourism, .heal-help-program {
    background-color: var(--color-light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border-top: 5px solid var(--color-primary);
}
.empathy-tourism h2, .heal-help-program h2 {
    text-align: center;
    color: var(--color-dark);
}
.empathy-steps, .heal-help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.empathy-tourism .step, .heal-help-program .step {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.empathy-tourism .step h3, .heal-help-program .step h3 {
    margin-top: 0;
    color: var(--color-primary);
}
.empathy-tourism .btn-secondary, .heal-help-program .btn-secondary {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
}
.heal-help-banner {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--border-radius);
}
.heal-help-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.heal-help-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

/* --- Impact Page Hero Split --- */
.impact-hero-split {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Image takes 1/3, text takes 2/3 */
    gap: 2.5rem;
    align-items: center;
    margin: 3rem 0; /* Add vertical spacing */
    padding: 2rem;
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
}

.impact-hero-image img {
    width: 100%;
    max-width: 250px; /* Control the max size of the logo */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image in its column */
    border-radius: var(--border-radius);
}

.impact-hero-content h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.impact-hero-content p {
    text-align: left;
    margin-bottom: 1.5rem;
}

.impact-hero-content .btn-primary {
    display: inline-block;
    width: auto;
}

@media (max-width: 768px) {
    .impact-hero-split { grid-template-columns: 1fr; text-align: center; }
    .impact-hero-image { margin-bottom: 1.5rem; }
    .impact-hero-content h2, .impact-hero-content p { text-align: center; }
    .impact-hero-content .btn-primary { margin: 0 auto; }
}
/* --- Treatment Page --- */
.treatment-category {
    margin-bottom: 3rem;
}
.category-title {
    font-size: 2rem;
    color: var(--color-dark);
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.treatment-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    color: var(--color-text);
}
.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* --- Thank You Page --- */
.thank-you-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 40px auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}
.thank-you-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}
.thank-you-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}
.thank-you-section .btn {
    padding: 12px 25px;
    font-size: 1rem;
}