/* CSS Reset & Variables */
:root {
    --primary: #0B2447;     /* Deep Navy */
    --secondary: #19376D;   /* Professional Medical Blue */
    --accent: #576CBC;      /* Light Blue Accent */
    --gold: #C5A880;        /* Subtle Luxury Gold */
    --whatsapp: #25D366;    /* WhatsApp Green */
    --text-main: #334155;   /* Slate 700 */
    --text-light: #64748B;  /* Slate 500 */
    --bg-light: #F8FAFC;    /* Slate 50 */
    --white: #ffffff;
    --border-light: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    color: var(--text-main);
    background-color: var(--bg-light);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-inline: auto;
    font-weight: 300;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.75rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005f92 0%, #0096c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 180, 216, 0.6);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20bd5a 0%, #0e7065 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.timings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Header / Navbar */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.branding {
    display: flex;
    flex-direction: column;
}

.clinic-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.lead-doctor {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 50px 0 80px;
    overflow: hidden;
    background: linear-gradient(rgba(11, 36, 71, 0.85), rgba(11, 36, 71, 0.7)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
    margin: 0 auto 1.25rem auto;
    animation: fadeInDown 0.6s ease-out;
}

.hero-logo {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title span {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 700px;
    margin-inline: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Services Section (Tabs) */
.services {
    padding: 120px 0;
    background-color: var(--white);
}

.tabs-container {
    margin-top: 4rem;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.tab-btn {
    padding: 0.85rem 1.75rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.tab-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    border-radius: 8px 8px 0 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-name {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.7;
    font-weight: 300;
}

.service-price {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    display: block;
    width: 100%;
}

.service-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
    text-decoration: none;
    align-self: flex-start;
}

.service-book-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.service-book-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 36, 71, 0.25);
}

.service-book-btn:active {
    transform: translateY(0);
}

/* Booking Section */
.booking {
    padding: 120px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

/* Doctors Section */
.doctors {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.doctors-carousel {
    position: relative;
    margin: 3rem auto 0 auto;
    max-width: 520px;
    display: flex;
    align-items: center;
}

.doctors-viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.doctors-viewport.grabbing {
    cursor: grabbing;
}

.doctors-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.doctor-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.doctor-img-wrap {
    position: relative;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-img {
    max-height: 360px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s ease;
}

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

.doctor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(11, 36, 71, 0.4), transparent);
}

.doctor-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.doctor-specialty {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.doctor-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.doctor-tags span {
    background: var(--bg-light);
    color: var(--secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.booking .section-title {
    color: var(--primary);
}

.booking .section-subtitle {
    color: var(--text-light);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.booking-info h3 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.booking-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
}

.booking-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Contact & Footer */
.contact {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

.contact-item-content h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.contact-item-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 450px;
    border: 1px solid var(--border-light);
}

footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .booking-wrapper, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (max-width: 992px) {
    .clinic-name {
        font-size: 1.15rem;
    }
    .logo-img {
        height: 48px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: auto;
        min-height: 70px;
        padding: 0.75rem 0;
    }

    .logo-area {
        gap: 0.75rem;
        max-width: calc(100% - 50px);
    }

    .logo-img {
        height: 42px;
    }

    .clinic-name {
        font-size: 1rem;
        line-height: 1.25;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        gap: 2rem;
        z-index: 999;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-bar {
        display: none;
    }

    /* Hero Section Mobile fixes */
    .hero {
        padding: 20px 0 45px;
        min-height: auto;
        background-attachment: scroll;
    }

    .hero-logo-container {
        width: 110px;
        height: 110px;
        margin-bottom: 0.85rem;
    }

    .hero-logo {
        width: 86px;
        height: 86px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
        white-space: normal;
        line-height: 1.4;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .logo-img {
        height: 36px;
    }

    .clinic-name {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .hero {
        padding: 15px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
}

/* ==========================================================================
   Interiors & Facilities Gallery Section
   ========================================================================== */
.interiors {
    padding: 100px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
    position: relative;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.gallery-filter-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-filter-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 108, 188, 0.15);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(11, 36, 71, 0.3);
}

/* Swiping Carousel Showcase Layout */
.interiors-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 15px 5px 25px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-viewport:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 320px;
    box-sizing: border-box;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-slide .gallery-card {
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(11, 36, 71, 0.3);
}

.carousel-btn.prev-btn {
    left: -20px;
}

.carousel-btn.next-btn {
    right: -20px;
}

.carousel-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.swipe-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.swipe-hint svg {
    animation: swipePulse 2s infinite ease-in-out;
}

@keyframes swipePulse {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--accent);
}

.carousel-dot.active {
    width: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 2px 8px rgba(11, 36, 71, 0.25);
}

@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
    }
    .carousel-btn.prev-btn { left: -10px; }
    .carousel-btn.next-btn { right: -10px; }
}

@media (max-width: 640px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .carousel-btn {
        width: 42px;
        height: 42px;
    }
    .carousel-btn.prev-btn { left: 0; }
    .carousel-btn.next-btn { right: 0; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 36, 71, 0.14);
    border-color: rgba(87, 108, 188, 0.3);
}

.gallery-card.featured {
    grid-column: span 1;
}

@media (min-width: 992px) {
    .gallery-card.featured {
        grid-column: span 2;
    }
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #0f172a;
}

.gallery-card.featured .gallery-img-wrapper {
    height: 320px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 36, 71, 0.1) 0%, rgba(11, 36, 71, 0.75) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .zoom-icon {
    transform: scale(1);
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 36, 71, 0.85);
    backdrop-filter: blur(8px);
    color: #00b4d8;
    border: 1px solid rgba(0, 180, 216, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-caption {
    padding: 1.5rem;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 36, 71, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-container {
    max-width: 85vw;
    max-height: 72vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

.lightbox-img-container img {
    max-width: 100%;
    max-height: 72vh;
    display: block;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--white);
    max-width: 600px;
}

.lightbox-caption h4 {
    color: #00b4d8;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
}

.lightbox-caption p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    font-size: 2.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: -70px;
}

.lightbox-nav.next {
    right: -70px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-card.featured {
        grid-column: span 1;
    }
    
    .lightbox-nav.prev {
        left: 5px;
    }
    
    .lightbox-nav.next {
        right: 5px;
    }
    
    .lightbox-close {
        top: -40px;
        right: 0;
    }
}

