/* 
    Methodist Hospital, Wenchi - Main Stylesheet
    Design Approach: Premium, Modern, Medical, Trusted
    Colors: Blue, Yellow (from logo), White, Slate Gray
*/

.top-info-bar {
    background: #1a202c;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .top-info-bar {
        display: none;
    }
}


.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    position: relative;
    font-size: 0.8rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn i:last-child {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.lang-selector.active .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    list-style: none;
    padding: 8px;
    width: 120px;
    display: none;
    z-index: 4000;
    animation: fadeInDown 0.3s ease;
}

.lang-selector.active .lang-dropdown {
    display: block;
}

.lang-dropdown li {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown li:hover {
    background: #f7fafc;
    color: var(--primary-blue);
}

.lang-dropdown li.active {
    background: #ebf8ff;
    color: var(--primary-blue);
    font-weight: 600;
}

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

.emergency-badge {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 10px;
}

.emergency-info a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.direction-link {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.direction-link:hover {
    color: white;
}

:root {
    --primary-blue: #0056b3;
    --secondary-blue: #004085;
    --accent-yellow: #ffcc00;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success: #27ae60;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Header & Navigation */
#main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

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

.logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

/* Stats Section */
.stats-section {
    background: var(--primary-blue);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Doctor Search */
.search-container {
    max-width: 600px;
    margin: -30px auto 40px;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #edf2f7;
}

.search-box i {
    color: var(--primary-blue);
    margin-right: 15px;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.nav-links a.active-nav {
    color: var(--primary-blue);
    font-weight: 700;
}

/* View All Button */
.view-all-container {
    margin-top: 40px;
    text-align: center;
}

.view-all-container .btn-outline {
    padding: 12px 30px;
    font-size: 1rem;
    border-width: 2px;
}

/* Service Categories */
.service-category {
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.services-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-card-mini {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-mini:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.clickable-card {
    cursor: pointer;
    transition: var(--transition);
}

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

/* Modal Styling */
.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);
    transition: var(--transition);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalScale 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #a0aec0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-blue);
}

.modal-body {
    padding: 0;
}

.modal-header-info {
    background: var(--primary-blue);
    color: white;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.modal-img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: white;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.modal-highlight {
    font-size: 1rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.modal-details {
    padding: 30px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item h5 {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
}

.detail-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
    padding-left: 26px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    text-align: right;
    border-top: 1px solid #edf2f7;
}

.modal-footer .btn-primary {
    display: inline-block;
}

@media (max-width: 600px) {
    .modal-header-info {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .modal-title-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
    }
}

/* Blue Section Styling */
.bg-blue-section {
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.bg-blue-section .section-header h2 {
    color: white;
}

.bg-blue-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-blue-section .about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.bg-blue-section .about-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.bg-blue-section .about-card h3 {
    color: var(--accent-yellow);
}

.bg-blue-section .about-card p {
    color: rgba(255, 255, 255, 0.9);
}

.bg-blue-section .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.bg-blue-section .stat-number {
    color: var(--accent-yellow);
}

.bg-blue-section .stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Yellow Section Styling */
.bg-yellow-section {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

.bg-yellow-section .section-header h2 {
    color: var(--text-dark);
}

.bg-yellow-section .section-header p {
    color: rgba(0, 0, 0, 0.7);
}

.bg-yellow-section .referral-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.bg-yellow-section .form-group label {
    color: var(--text-dark);
    font-weight: 600;
}

.bg-yellow-section .form-group input,
.bg-yellow-section .form-group textarea {
    border-color: #e2e8f0;
    background: #f7fafc;
}

.bg-yellow-section .form-group input:focus,
.bg-yellow-section .form-group textarea:focus {
    border-color: var(--primary-blue);
    background: white;
}

.bg-yellow-section .btn-submit {
    background: var(--primary-blue);
    color: white;
    width: 100%;
}

.bg-yellow-section .btn-submit:hover {
    background: var(--secondary-blue);
}

.bg-yellow-section .directions-under-referral p {
    color: var(--text-dark);
    font-weight: 600;
}


/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.btn-large:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* ─── HERO SLIDER SECTION ─── */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    padding: 0;
    margin-top: -80px;
    background: #001a33; /* Dark professional fallback */
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide sits stacked; only .active is visible */
.slide {
    position: absolute;
    inset: 0;
    overflow: hidden;          /* Clip the oversized parallax image */
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1.4s ease, visibility 1.4s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Parallax Photo Container ──
   It is wider & taller than the slide so the image has room to shift.
   translateX is driven by JS during transitions. */
.photo-container {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    will-change: transform;
    transform: translateX(0px) translateY(0px);
    transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-container img,
.photo-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Subtle Ken Burns zoom always running on active slide */
    transform: scale(1);
    transition: transform 8s ease-out;
}

/* Ken Burns: image gently zooms in while slide is active */
.slide.active .photo-container img,
.slide.active .photo-container video {
    transform: scale(1.08);
}

/* ── Parallax states set by JS ── */
.slide.parallax-enter-right .photo-container  { transform: translateX(18%); }
.slide.parallax-enter-left  .photo-container  { transform: translateX(-18%); }
.slide.parallax-exit-right  .photo-container  { transform: translateX(-18%); }
.slide.parallax-exit-left   .photo-container  { transform: translateX(18%); }
.slide.active               .photo-container  { transform: translateX(0) translateY(var(--parallax-y, 0px)); }

/* Gradient overlay for readability */
.hero-slider-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,20,60,0.55) 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* ── Slide Caption ── */
.slide-caption {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Caption elements animate in with stagger when slide becomes active */
.slide-caption h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease 0.4s, transform 0.9s cubic-bezier(0.23,1,0.32,1) 0.4s;
}

.slide-caption p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease 0.65s, transform 0.9s cubic-bezier(0.23,1,0.32,1) 0.65s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease 0.9s, transform 0.9s cubic-bezier(0.23,1,0.32,1) 0.9s;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.slide.active .slide-caption h1,
.slide.active .slide-caption p,
.slide.active .hero-btns {
    opacity: 1;
    transform: translateY(0);
}

/* Progress bar at bottom of hero */
.slide-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--accent-yellow);
    z-index: 10;
    transition: width linear;
}

/* Slide dots indicator */
.slide-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slide-dot.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 80vh;
        min-height: 500px;
        margin-top: 0;
    }
    .hero-btns .btn-outline {
        margin-left: 0;
    }
}


.text-white {
    color: white !important;
}

/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 6px solid var(--primary-blue);
    transition: var(--transition);
}

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

.about-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Header Socials */
.header-socials {
    display: flex;
    gap: 15px;
    margin-left: 20px;
}

.header-socials a, .footer-socials a {
    width: 35px;
    height: 35px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.header-socials a:hover, .footer-socials a:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Gallery Highlights Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    text-align: center;
    transition: var(--transition);
}

.partner-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item p {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-light);
}

/* Grids */
.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Cards */
.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Services */
.service-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid var(--accent-yellow);
}

.service-item:hover {
    background: var(--primary-blue);
    color: white;
    border-bottom-color: var(--primary-blue);
    transform: scale(1.05);
}

.service-item h4 {
    margin: 15px 0 10px;
}

.service-icon {
    font-size: 2rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.member-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #edf2f7;
    border: 2px dashed #cbd5e0;
}

.placeholder-icon {
    font-size: 4rem;
    color: #a0aec0;
    margin-top: 50px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.team-info h4 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* Appointment Section */
.accent-bg {
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('assets/slide1.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.appointment-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.appointment-form-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-blue);
}

.btn-submit {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-blue);
}

/* Referral Form */
.referral-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.referral-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.map-link {
    color: inherit;
    text-decoration: underline;
}

.map-link:hover {
    color: var(--accent-yellow);
}

.directions-under-referral {
    margin-top: 50px;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid #edf2f7;
}

.directions-under-referral p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.btn-directions {
    margin-left: 0 !important;
    background: var(--success);
    border-color: var(--success);
}

.btn-directions:hover {
    background: #219150;
    border-color: #219150;
}

/* Footer */
.main-footer {
    background: #1a202c;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    margin-top: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    color: #a0aec0;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .appointment-wrapper, .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-three, .grid-four {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
    }

    .top-info-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .grid-two {
        grid-template-columns: 1fr;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-three, .grid-four {
        grid-template-columns: 1fr;
    }
}

/* Partners Section Styling */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-item {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo-placeholder {
    width: 60px;
    height: 60px;
    background: #f7fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.partner-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-item:hover img {
    opacity: 1;
}

.partner-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* News Section Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.read-more-news {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more-news:hover {
    color: var(--accent-yellow);
    transform: translateX(5px);
}

.news-modal-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.news-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-modal-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.news-modal-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
    margin-bottom: 15px;
    color: var(--text-dark);
    margin-top: 0;
}

.news-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.read-more i {
    transition: transform 0.3s ease;
}

/* Careers Page Styles */
.careers-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.job-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--primary-blue);
    transition: var(--transition);
}

.job-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.job-title-group h3 {
    margin: 10px 0 0 0;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.job-badge {
    background: #ebf4ff;
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 0.85rem;
    color: #64748b;
}

.job-dates i {
    margin-right: 5px;
    color: var(--primary-blue);
}

.closing-date {
    color: #e53e3e;
    font-weight: 600;
}

.job-preview {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.job-actions {
    display: flex;
    gap: 15px;
}

.careers-footer-info {
    margin-top: 60px;
    text-align: center;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

/* Modals Refined for Jobs */
.job-modal-content {
    max-width: 900px;
    padding: 60px;
}

.job-detail-section {
    margin-bottom: 30px;
}

.job-detail-section h4 {
    color: var(--primary-blue);
    border-bottom: 2px solid #ebf4ff;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.job-detail-section ul {
    list-style: none;
    padding: 0;
}

.job-detail-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.job-detail-section li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Career Application Form */
.apply-modal-content {
    max-width: 850px;
    padding: 60px;
}

.application-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}

.application-header h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.application-header p {
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
}

.career-form .form-group {
    margin-bottom: 30px;
}

.career-form label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.career-form input[type="text"],
.career-form input[type="email"],
.career-form input[type="tel"],
.career-form textarea {
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
    transition: var(--transition);
}

.career-form input:focus,
.career-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(var(--primary-blue-rgb), 0.1);
}

.career-form .btn-submit {
    font-size: 1.2rem;
    padding: 18px;
    font-weight: 700;
    margin-top: 20px;
    width: 100%;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-blue);
    background: #f7fafc;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info i {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-dates {
        align-items: flex-start;
        margin-top: 10px;
    }
    
    .job-actions {
        flex-direction: column;
    }
}

/* Mobile Menu Toggle (4 Bars) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--primary-blue);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 4px;
        box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        display: block;
        padding: 13px 16px;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92) !important;
        border-radius: 10px;
        transition: background 0.2s, color 0.2s;
        text-decoration: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.12);
        color: white !important;
    }

    .nav-links a.active-nav {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent-yellow) !important;
        font-weight: 700;
    }

    /* Book Appointment — yellow pill button */
    .nav-links li:last-child a,
    .nav-links a.btn-primary {
        margin-top: 16px;
        background: var(--accent-yellow) !important;
        color: var(--text-dark) !important;
        text-align: center;
        padding: 14px 20px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.95rem;
        display: block;
    }

    .nav-links li:last-child a:hover,
    .nav-links a.btn-primary:hover {
        background: #f0c000 !important;
        color: #111 !important;
    }

    /* Hamburger animation */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { opacity: 0; }
    .menu-toggle.active span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

    /* Header socials hidden on tablet/mobile */
    .header-socials {
        display: none;
    }
}

/* Modal Visibility Fix */
.modal.active {
    display: block;
}
/* Awards & Honors Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.award-icon {
    font-size: 2.8rem;
    color: var(--accent-yellow);
    margin-bottom: 25px;
    background: #fffdf2;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(255, 204, 0, 0.1);
}

.award-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-family: 'Outfit', sans-serif;
}

.award-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Facilities Section (Blue & Yellow Gradient) */
.facilities-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #d4af37 100%); /* Adjusted yellow for better gradient contrast */
    position: relative;
    overflow: hidden;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.facility-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    color: white;
}

.facility-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
}

.facility-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: white;
}

.facility-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    color: white;
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* Top Info Bar */
    .top-info-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    .emergency-badge {
        display: none;
    }
    .top-info-container {
        gap: 4px;
    }
    .top-actions {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Header / Logo */
    .logo span {
        font-size: 0.85rem;
        max-width: 160px;
        line-height: 1.2;
    }
    .logo img {
        height: 38px;
    }
    .header-socials {
        display: none;
    }

    /* Hero Section */
    .hero-slider-section {
        height: 90vh;
        min-height: 480px;
        margin-top: 0; /* Align better with mobile header */
    }
    .slide-caption {
        padding: 0 16px;
        justify-content: flex-end;
        padding-bottom: 80px;
    }
    .slide-caption h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 10px;
    }
    .slide-caption p {
        font-size: clamp(0.85rem, 3vw, 1rem);
        margin-bottom: 18px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
        margin-left: 0;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 35px;
    }
    .section-header h1,
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    section, .section-padding {
        padding: 55px 0;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    /* Grids */
    .grid-two,
    .grid-three,
    .grid-four,
    .about-grid,
    .awards-grid,
    .facilities-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About Cards */
    .about-card {
        padding: 30px 20px;
    }

    /* Team / Doctor Cards */
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .team-card {
        padding: 15px 10px;
    }
    .team-card img {
        width: 80px;
        height: 80px;
    }
    .team-card h3 {
        font-size: 0.9rem;
    }
    .team-card p {
        font-size: 0.8rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .gallery-item {
        height: 160px;
        border-radius: 12px;
    }
    .gallery-full-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .view-all-container .btn-outline {
        width: 100%;
        display: block;
        margin-left: 0;
        text-align: center;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-card {
        border-radius: 12px;
    }

    /* Appointment Section */
    .appointment-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .appointment-info h2 {
        font-size: 1.5rem;
    }
    .appointment-info .contact-list {
        font-size: 0.9rem;
    }
    .appointment-form-box {
        padding: 20px;
    }

    /* Referral / Forms */
    .referral-container {
        padding: 25px 16px !important;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 12px 14px;
    }
    .btn-submit {
        font-size: 1rem;
        padding: 14px;
    }

    /* Careers Page */
    .job-card {
        padding: 20px;
        border-left-width: 4px;
    }
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .job-title-group h3 {
        font-size: 1.1rem;
    }
    .job-dates {
        align-items: flex-start;
    }
    .job-actions {
        flex-direction: column;
        gap: 10px;
    }
    .job-actions .btn-outline,
    .job-actions .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
        margin-left: 0;
    }

    /* Modals */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        border-radius: 14px;
    }
    .modal-header-info {
        flex-direction: column;
        text-align: center;
        padding: 25px 16px;
        gap: 15px;
    }
    .modal-img-container {
        width: 90px;
        height: 90px;
    }
    .modal-title-info h2 {
        font-size: 1.3rem;
    }
    .modal-details {
        padding: 20px;
    }

    /* Job & Apply Modals */
    .job-modal-content,
    .apply-modal-content {
        padding: 25px 16px;
    }

    /* Service Page */
    .service-category {
        padding: 20px;
    }
    .services-subgrid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .service-card-mini {
        font-size: 0.85rem;
        padding: 10px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-links ul {
        text-align: center;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Directions Button */
    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        display: block;
    }
    .directions-under-referral {
        text-align: center;
    }

    /* Lightbox */
    #lightbox-img {
        max-width: 100%;
        max-height: 60vh;
    }
    .lightbox-caption h3 {
        font-size: 1.1rem;
    }
    .lightbox-caption p {
        font-size: 0.9rem;
    }

    /* Nav overlay close area */
    .nav-links.active {
        width: 85%;
    }
}

/* Tablet-range fixes (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .slide-caption h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .services-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .appointment-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .hero-btns {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-btns .btn-outline {
        margin-left: 0;
    }
}


/* ================================================================
   SIZE REDUCTION — Header, Nav, Buttons, Text, Cards
   ================================================================ */

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
    #main-header { padding: 10px 0; }
    .logo img { height: 40px; }
    .logo span { font-size: 0.95rem; }
    .logo a { gap: 8px; }
    .nav-links a { font-size: 0.82rem; }
    .nav-links { gap: 14px; }
    .btn-primary { padding: 7px 14px; font-size: 0.82rem; }
    .btn-large { padding: 11px 24px; font-size: 0.9rem; }
    .btn-outline { padding: 11px 24px; font-size: 0.9rem; }
    .btn-submit { font-size: 0.95rem; padding: 13px; }
    .section-header h2, .section-header h1 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }
    .stat-number { font-size: 2.4rem; }
    .stat-label { font-size: 0.9rem; }
    .about-card { padding: 35px 20px; }
    .menu-toggle span { width: 24px; height: 2.5px; }
}

/* Phones (≤ 480px) */
@media (max-width: 480px) {
    #main-header { padding: 8px 0; }
    .logo img { height: 34px; }
    .logo span { font-size: 0.78rem; max-width: 140px; line-height: 1.15; }
    .logo a { gap: 6px; }
    .header-socials { display: none !important; }
    .container { padding: 0 14px; }
    section, .section-padding { padding: 45px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2, .section-header h1 { font-size: 1.45rem; line-height: 1.25; }
    .section-header p { font-size: 0.88rem; line-height: 1.5; }
    .stats-section { padding: 40px 0; }
    .stats-grid { gap: 12px; }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.8rem; }
    .btn-primary { padding: 8px 16px; font-size: 0.82rem; }
    .btn-large, .btn-outline { padding: 10px 18px; font-size: 0.85rem; }
    .btn-submit { padding: 12px; font-size: 0.92rem; }
    .slide-caption { padding: 0 14px 70px; }
    .slide-caption h1 { font-size: clamp(1.4rem, 6.5vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
    .slide-caption p { font-size: 0.82rem; margin-bottom: 16px; }
    .about-card { padding: 24px 16px; }
    .about-card h3 { font-size: 1.1rem; }
    .about-card p { font-size: 0.88rem; }
    .about-icon { font-size: 2.5rem; margin-bottom: 14px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .team-card { padding: 12px 8px; }
    .team-card img { width: 70px; height: 70px; }
    .team-card h3 { font-size: 0.82rem; }
    .team-card p { font-size: 0.75rem; }
    .gallery-item { height: 140px; }
    .news-img { height: 180px; }
    .news-content { padding: 16px; }
    .news-content h3 { font-size: 1.05rem; }
    .news-content p { font-size: 0.88rem; }
    .form-group label { font-size: 0.88rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 0.9rem; padding: 10px 12px; }
    .appointment-info h2 { font-size: 1.35rem; }
    .contact-list li { font-size: 0.9rem; margin-bottom: 10px; }
    .appointment-form-box { padding: 18px 14px; border-radius: 14px; }
    .category-title { font-size: 1.1rem; }
    .service-card-mini { font-size: 0.8rem; padding: 9px 8px; }
    .job-card { padding: 16px 14px; }
    .job-title-group h3 { font-size: 1rem; }
    .job-badge { font-size: 0.72rem; padding: 3px 9px; }
    .job-preview { font-size: 0.88rem; }
    .modal-content { width: 96%; margin: 3% auto; }
    .modal-title-info h2 { font-size: 1.15rem; }
    .detail-item h5 { font-size: 0.9rem; }
    .detail-item p { font-size: 0.88rem; }
    .footer-brand h3 { font-size: 1.1rem; }
    .footer-brand p, .footer-contact p { font-size: 0.88rem; }
    .footer-links h4, .footer-contact h4 { font-size: 1rem; }
    .footer-links a { font-size: 0.88rem; }
    .footer-bottom p { font-size: 0.76rem; line-height: 1.6; }
    .menu-toggle { padding: 6px; }
    .menu-toggle span { width: 22px; height: 2px; }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
    .logo span { display: none; }
    .logo img { height: 32px; }
    .section-header h2, .section-header h1 { font-size: 1.25rem; }
    .stat-number { font-size: 1.6rem; }
    .team-grid { gap: 8px; }
    .team-card img { width: 60px; height: 60px; }
    .gallery-item { height: 120px; }
    .slide-caption h1 { font-size: 1.3rem; }
    .container { padding: 0 10px; }
    .btn-primary { font-size: 0.78rem; padding: 7px 12px; }
}

/* ================================================================
   GALLERY TABS
   ================================================================ */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.gallery-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.gallery-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.3);
}

/* Loading spinner */
.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.gallery-loading i { font-size: 2rem; margin-bottom: 12px; display: block; }

/* Gallery card grid item */
.gallery-item-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #0a0a1a;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-wrapper:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.gallery-item-wrapper img,
.gallery-item-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

/* Video badge */
.gallery-video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Play icon overlay for videos */
.gallery-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.3s;
}
.gallery-play-icon i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}
.gallery-item-wrapper:hover .gallery-play-icon { background: rgba(0,0,0,0.4); }
.gallery-item-wrapper:hover .gallery-play-icon i { transform: scale(1.15); }

/* Hover overlay for photos */
.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,20,60,0.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.gallery-item-wrapper:hover .gallery-hover-overlay { opacity: 1; }
.gallery-hover-overlay span {
    color: white;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hidden items (filtered out by tab) */
.gallery-item-wrapper.hidden {
    display: none;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Toolbar */
.lightbox-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10;
}

.lightbox-counter {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.lightbox-controls {
    display: flex;
    gap: 6px;
}

.lb-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.lb-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.lb-close-btn:hover { background: rgba(220, 38, 38, 0.7); }

/* Prev / Next arrows */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}
.lb-nav:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* Media area */
.lightbox-media-wrap {
    max-width: 90vw;
    max-height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s ease;
    transform-origin: center center;
    display: block;
    user-select: none;
}

.lightbox-video {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 8px;
    display: block;
}

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    text-align: center;
    color: white;
}
.lightbox-caption h3 { font-size: 1rem; margin-bottom: 4px; }
.lightbox-caption p  { font-size: 0.85rem; opacity: 0.75; }

/* When zoomed in, cursor changes */
.lightbox-media-wrap.zoomed { cursor: zoom-out; overflow: visible; }

@media (max-width: 480px) {
    .lb-nav { width: 36px; height: 36px; font-size: 0.9rem; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
    .gallery-tabs { gap: 8px; }
    .gallery-tab { padding: 8px 16px; font-size: 0.85rem; }
    .lightbox-media-wrap { max-width: 96vw; max-height: 65vh; }
    .lightbox-img { max-width: 96vw; max-height: 65vh; }
}
