/* Shafa Healthcare - Global Responsive System */

/* ==========================================================================
   Global Mobile Navigation (Header & Nav)
   ========================================================================== */
@media (max-width: 772px) {
    header {
        background: #ffffff !important;
        border-bottom: 2px solid rgba(132, 94, 194, 0.2) !important;
        padding: 1.2rem 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
    }
    .container {
        width: 100% !important;
        padding: 0 1.5rem !important;
        max-width: none !important;
    }
    .logo img {
        height: 55px !important;
        margin: -5px 0 !important;
    }
    @media (max-width: 430px) {
        .logo img { height: 48px !important; }
    }
    @media (max-width: 350px) {
        .logo img { height: 42px !important; }
    }
    .nav-toggle-label { 
        display: flex !important;
        align-items: center;
        cursor: pointer;
        padding: 10px;
    }

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #0056b3; /* FIXED: removed broken quote */
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}

/* default positions */
.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    bottom: -8px;
}

/* ================================
   ANIMATION (MENU OPEN STATE)
================================ */

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
        
        /* Scope to the header menu only — the generic `nav` selector was
           also matching the breadcrumb <nav class="seo-breadcrumbs">, whose
           collapsed (max-height:0) body left the 2px bottom border showing as
           a stray line on mobile. :not(.seo-breadcrumbs) keeps it off. */
        nav:not(.seo-breadcrumbs) {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: white;
            height: auto;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-in-out;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            z-index: 1000;
            /* No bottom border here — when the menu is collapsed (max-height:0)
               this 2px line stayed visible as a blue line under the navbar. */
            border-bottom: none;
        }
        /* Show the accent separator only when the menu is actually open. */
        .nav-toggle:checked ~ nav:not(.seo-breadcrumbs) {
            border-bottom: 2px solid var(--primary);
        }
        
        nav ul {
            flex-direction: column;
            padding: 1rem 0;
            gap: 0;
        }
        
        nav ul li { width: 100%; }
        nav ul li a { 
            display: block; 
            padding: 1.2rem 2rem; 
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .nav-toggle:checked ~ nav { 
            max-height: 600px;
        }
        
        nav ul li { margin-left: 0 !important; }
        nav ul li .btn { 
            margin: 1rem 1.5rem !important; 
            display: block !important; 
            text-align: center !important;
            border-radius: 12px !important;
            padding: 0.8rem 1rem !important; /* Slightly more compact */
        }

        @media (max-width: 430px) {
            nav ul li .btn {
                margin: 0.8rem 1rem !important;
                font-size: 0.8rem !important;
                padding: 10px !important;
            }
        }

        @media (max-width: 350px) {
            nav ul li .btn {
                margin: 0.5rem 0.8rem !important;
                font-size: 0.75rem !important;
            }
        }
    }

/* ==========================================================================
   Home Page (index.php)
   ========================================================================== */
@media (max-width: 992px) {
    .specialty-grid { 
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 1rem !important;
    }
    .reviews-section { padding: 4rem 0 !important; }
}

@media (max-width: 772px) {
    .hero { 
        padding: 6rem 1.5rem !important; 
        border-radius: 0 0 40px 40px !important;
        margin-bottom: 2rem;
    }
    .hero h1 { 
        font-size: 2.8rem !important; 
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    .hero p {
        font-size: 1.1rem !important;
        margin-bottom: 2.5rem;
        opacity: 0.85;
    }
    .hero-search-wrapper { margin: 2rem auto; }
    .hero-search-form {
        flex-direction: column;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        gap: 10px;
        padding: 0 !important;
    }
    .hero-search-input {
        background: white !important;
        border-radius: 50px !important;
        padding: 1.2rem 2rem !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    }
    .hero-search-btn {
        width: 100%;
        padding: 1.2rem !important;
    }
    
    .specialty-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 2rem !important;
    }
    .specialty-card {
        padding: 1.5rem !important;
    }
    
    .review-card {
        min-width: 280px !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .specialty-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero h1 { font-size: 2.4rem !important; }
}

@media (max-width: 414px) { /* iPhone 11 & Modern Mobile */
    .hero {
        padding: 4rem 1rem;
        border-radius: 0 0 30px 30px;
    }
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* @media (max-width: 330px) {
    .hero h1 { font-size: 1.8rem !important; }
    .hero p { font-size: 0.9rem !important; }
    .doctor-card { min-width: 95vw !important; }
    
    /* Profile Page Specifics for Ultra-Small Screens */
    .profile-header-info h1 {
        font-size: 1.6rem !important;
    }
    .profile-section {
        padding: 1.5rem 1rem !important;
    }
    
    /* Force stats back to 1 column at this tiny width */
    .sidebar-card div[style*="background: #f8faff"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .logo {
        font-size: 1.6rem !important;
    }
} */

@media (max-width: 330px) {

    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.85rem !important;
    }

    /* FIXED CARD RESPONSIVE */
    .doctor-card {
        width: 260px !important;
        max-width: 260px !important;
        min-width: 260px !important;
        padding: 20px !important;
    }

    .slider-container {
        padding: 0 10px !important;
    }

    .slider-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #eee !important;
    }

    .slider-btn.prev { left: -5px !important; }
    .slider-btn.next { right: -5px !important; }
}

    /* Profile Header */
    .profile-header-info h1 {
        font-size: 1.4rem !important;
    }

    .profile-section {
        padding: 1.2rem 0.8rem !important;
    }

    /* Stats fix (IMPORTANT) */
    .sidebar-card div[style*="background: #f8faff"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .logo {
        font-size: 1.4rem !important;
    }

    /* Image fix */
    .doctor-card img {
        width: 80px !important;
        height: 80px !important;
    }

    /* Buttons fix */
    .doctor-card button {
        width: 100% !important;
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   Doctors Directory (doctors.php) - SPECIFIC MULTI-TIER ADAPTIVE VIEW
   ========================================================================== */

/* TIER 1: Tablet & Wide Mobile (Up to 992px) */
@media (max-width: 992px) {
    .directory-hero { padding: 4rem 0 3rem !important; }
    .directory-hero h1 { font-size: 2.5rem !important; }
    .doctor-horizontal-card { gap: 1.5rem !important; padding: 1.2rem !important; }
    .action-sidebar { min-width: 170px !important; padding-left: 1.2rem !important; }
}

/* TIER 2: Tablets (Up to 768px) */
@media (max-width: 768px) {
    .doctor-horizontal-card { flex-direction: column !important; align-items: center !important; text-align: center !important; padding: 2rem !important; }
    .doctor-image-wrapper { margin-bottom: 1.5rem !important; }
    .doctor-image-wrapper img { width: 130px !important; height: 130px !important; border-radius: 20px !important; }
    .doctor-content h3 a { font-size: 1.4rem !important; }
    .doctor-stats { justify-content: center !important; gap: 2rem !important; padding-top: 1.5rem !important; }
    .action-sidebar { border-left: none !important; border-top: 1px solid #f1f5f9 !important; padding-left: 0 !important; padding-top: 1.5rem !important; width: 100% !important; margin-top: 1rem !important; }
    .btn-directory { padding: 12px !important; font-size: 0.95rem !important; }
}

/* TIER 3: Mobile (Up to 540px) - SWITCH TO VERTICAL */
@media (max-width: 540px) {
    .directory-hero { padding: 3rem 1rem !important; border-radius: 0 0 30px 30px !important; }
    .directory-hero h1 { font-size: 2rem !important; }
    .search-form { flex-direction: column !important; background: transparent !important; box-shadow: none !important; border: none !important; gap: 10px !important; padding: 0 !important; }
    .search-input { background: white !important; border-radius: 50px !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; padding: 1rem 1.5rem !important; width: 100% !important; }
    .search-btn { width: 100% !important; padding: 1rem !important; border-radius: 50px !important; }
    .doctor-horizontal-card { flex-direction: column !important; text-align: center !important; padding: 2rem 1.5rem !important; border-radius: 20px !important; width: 100% !important; max-width: 350px !important; margin: 0 auto 1.5rem !important; }
    .doctor-image-wrapper { margin: 0 auto 1rem !important; }
    .doctor-image-wrapper img { width: 130px !important; height: 130px !important; }
    .doctor-stats { justify-content: center !important; gap: 2rem !important; }
    .action-sidebar { border-left: none !important; border-top: 1px solid #f1f5f9 !important; padding-left: 0 !important; padding-top: 1.5rem !important; width: 100% !important; margin-top: 0.5rem !important; }
}

/* SPECIFIC BREAKPOINT: 497px */
@media (max-width: 497px) {
    .directory-hero { padding: 2.5rem 1rem !important; }
    .directory-hero h1 { font-size: 1.8rem !important; letter-spacing: -0.5px !important; }
    .doctor-horizontal-card { padding: 1.5rem !important; }
    .doctor-stats { gap: 1.2rem !important; }
}

/* SPECIFIC BREAKPOINT: 380px */
@media (max-width: 380px) {
    .directory-hero h1 { font-size: 1.6rem !important; }
    .directory-hero p { font-size: 0.95rem !important; }
    .doctor-content h3 a { font-size: 1.2rem !important; }
    .doctor-image-wrapper img { width: 110px !important; height: 110px !important; }
    .doctor-stats { gap: 0.8rem !important; }
    .stat-value { font-size: 1rem !important; }
}

/* SPECIFIC BREAKPOINT: 280px */
@media (max-width: 280px) {
    .container { padding: 0 8px !important; }
    .directory-hero { padding: 2rem 5px !important; }
    .directory-hero h1 { font-size: 1.4rem !important; line-height: 1.2 !important; }
    .directory-hero p { font-size: 0.85rem !important; margin-bottom: 1.2rem !important; }
    .doctor-horizontal-card { padding: 1.2rem 8px !important; border-radius: 15px !important; }
    .doctor-image-wrapper img { width: 90px !important; height: 90px !important; }
    .doctor-stats { gap: 5px !important; flex-wrap: wrap !important; }
    .stat-box { flex: 1 !important; min-width: 60px !important; }
    .stat-value { font-size: 0.9rem !important; }
    .stat-label { font-size: 0.6rem !important; }
    .btn-directory { font-size: 0.8rem !important; padding: 12px 5px !important; border-radius: 10px !important; }
}

/* ==========================================================================
   Doctor Profile (doctor.php) - STRICT BREAKPOINTS
   ========================================================================== */

/* 980px Breakpoint */
@media (max-width: 980px) {
    .profile-container { 
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important; 
    }
    .profile-sidebar { 
        order: 2 !important; /* Sidebar goes BELOW main content on mobile */
        margin-top: 1rem !important;
    }
    .profile-main-content {
        order: 1 !important;
    }
}

/* 780px Breakpoint */
@media (max-width: 780px) {
    .profile-header-content {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .profile-header {
        padding: 3rem 1.5rem !important;
        border-radius: 0 0 35px 35px !important;
    }
    .profile-avatar { 
        margin: 0 auto 1.5rem auto !important; 
        width: 150px !important;
        height: 150px !important;
    }
    .profile-header-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .profile-header-info h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
        justify-content: center !important;
    }
    .profile-header-info div {
        justify-content: center !important;
    }
    .profile-section {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
    }
    .review-card { padding: 1.5rem !important; }
}

/* 680px Breakpoint */
@media (max-width: 680px) {
    .profile-header-info h1 { font-size: 2rem !important; }
    .profile-section h2 { font-size: 1.4rem !important; }
    .btn-call { font-size: 1.05rem !important; padding: 1rem !important; }
    .sidebar-card { padding: 1.5rem !important; }
}

/* 560px Breakpoint */
@media (max-width: 560px) {
    .profile-avatar { width: 130px !important; height: 130px !important; }
    .profile-header-info h1 { font-size: 1.8rem !important; }
    .profile-section { padding: 1.5rem !important; margin-bottom: 1.2rem !important; }
    .profile-section h2 { font-size: 1.3rem !important; }
    
    /* Stats grid */
    .sidebar-card div[style*="background: #f8faff"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .stat-item {
        border-bottom: none !important;
        padding: 1rem !important;
        margin: 0 !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    }
    
    /* Clinical practice section stacking */
    .profile-section div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* 480px Breakpoint */
@media (max-width: 480px) {
    .profile-avatar { width: 120px !important; height: 120px !important; }
    .profile-header-info h1 { font-size: 1.6rem !important; }
    .sidebar-card div[style*="background: #f8faff"] {
        grid-template-columns: 1fr !important;
    }
    .review-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* 420px Breakpoint */
@media (max-width: 420px) {
    .profile-header { padding: 2rem 1rem !important; }
    .profile-avatar { width: 110px !important; height: 110px !important; }
    .profile-header-info h1 { font-size: 1.5rem !important; }
    .profile-section { padding: 1.2rem !important; border-radius: 15px !important; }
    .profile-section h2 { font-size: 1.2rem !important; margin-bottom: 1rem !important; }
    .btn-call { font-size: 1rem !important; padding: 0.9rem !important; }
}

/* 380px Breakpoint */
@media (max-width: 380px) {
    .profile-avatar { width: 100px !important; height: 100px !important; }
    .profile-header-info h1 { font-size: 1.4rem !important; line-height: 1.2 !important; }
    .profile-section { padding: 1rem !important; }
    .sidebar-card { padding: 1rem !important; }
    .stat-item { padding: 0.8rem !important; }
    .stat-icon { width: 35px !important; height: 35px !important; font-size: 1rem !important; }
    .stat-info p { font-size: 0.9rem !important; }
}

/* 320px Breakpoint */
@media (max-width: 320px) {
    .profile-header { padding: 1.5rem 0.8rem !important; }
    .profile-avatar { width: 90px !important; height: 90px !important; }
    .profile-header-info h1 { font-size: 1.2rem !important; }
    .profile-header-info p { font-size: 0.85rem !important; }
    .badge { font-size: 0.75rem !important; padding: 6px 10px !important; }
    .profile-section h2 { font-size: 1.1rem !important; }
    .profile-section p { font-size: 0.9rem !important; line-height: 1.5 !important; }
    .sidebar-card div[style*="background: #f8faff"] { padding: 0.8rem !important; }
    .btn-call { padding: 0.8rem !important; font-size: 0.9rem !important; }
}

/* ==========================================================================
   Contact Page (contact.php) - ADVANCED MULTI-TIER SYSTEM
   ========================================================================== */

@media (max-width: 992px) {
    .contact-hero { padding: 4rem 0 3rem !important; }
    .contact-hero h1 { font-size: 2.8rem !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
    .contact-form-card { order: -1 !important; padding: 3rem !important; }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
    .contact-info-card { padding: 2rem !important; }
    .contact-form-card { padding: 2.5rem 1.5rem !important; border-radius: 20px !important; }
    .contact-form-card h3 { font-size: 1.6rem !important; text-align: center !important; }
}

@media (max-width: 540px) {
    .contact-hero h1 { font-size: 2.2rem !important; letter-spacing: -1px !important; }
    .contact-hero p { font-size: 1rem !important; padding: 0 1rem !important; }
    .contact-icon { width: 45px !important; height: 45px !important; font-size: 1.2rem !important; }
    .method-details p { font-size: 1rem !important; }
}

@media (max-width: 497px) {
    .contact-hero { padding: 3rem 0 2.5rem !important; }
    .contact-hero h1 { font-size: 1.8rem !important; }
    .support-banner { padding: 1.5rem !important; }
}

@media (max-width: 410px) {
    .contact-hero {
        padding: 2.5rem 1rem !important;
        text-align: center;
    }

    .contact-hero h1 {
        font-size: 1.7rem !important;
        line-height: 1.3;
    }

    .contact-form-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .contact-info-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .form-input {
        width: 100% !important;
        padding: 0.9rem 1rem !important;
        font-size: 0.95rem !important;
        box-sizing: border-box;
    }

    .contact-method {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* EXTRA SMALL DEVICES (270px–400px) */
@media (max-width: 400px) {

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .contact-form-card h3 {
        font-size: 1.3rem;
    }

    .method-details h4 {
        font-size: 0.8rem;
    }

    .method-details p {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }
}
/* @media (max-width: 380px) {
    .contact-hero h1 { font-size: 1.6rem !important; }
    .contact-info-card { padding: 1.5rem 1rem !important; }
    .contact-method { gap: 12px !important; }
} */

@media (max-width: 300px) {

    .contact-hero h1 {
        font-size: 1.4rem;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
    }

    .method-details h4 {
        font-size: 0.8rem;
    }

    .method-details p {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.9rem;
    }
}

@media (max-width: 280px) {
    .contact-hero h1 { font-size: 1.4rem !important; }
    .contact-icon { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
    .method-details h4 { font-size: 0.75rem !important; }
    .method-details p { font-size: 0.85rem !important; word-break: break-all !important; }
    .contact-form-card h3 { font-size: 1.4rem !important; }
}

/* ==========================================================================
   Admin Panel
   ========================================================================== */
@media (max-width: 772px) {
    body:has(.admin-sidebar) { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; position: static; padding: 1rem; }
    .nav-list { display: flex; overflow-x: auto; gap: 10px; margin-top: 1rem; }
    .nav-list li { margin-bottom: 0; white-space: nowrap; }
    
    .stat-grid { grid-template-columns: 1fr; }
    .form-card form { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   Health Blogs (blogs.php)
   ========================================================================== */
@media (max-width: 768px) {
    .blog-hero { padding: 4rem 1.5rem !important; margin-bottom: 2.5rem !important; }
    .blog-hero h1 { font-size: 2.5rem !important; letter-spacing: -1px !important; }
    .blog-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .blog-card { border-radius: 20px !important; }
    .blog-content { padding: 1.5rem !important; }
    .blog-card h2 { font-size: 1.25rem !important; margin-bottom: 0.8rem !important; }
    .blog-excerpt { font-size: 0.9rem !important; margin-bottom: 1.5rem !important; }
}

@media (max-width: 480px) {
    .blog-hero h1 { font-size: 2rem !important; }
    .blog-img { height: 180px !important; }
}

/* ==========================================================================
   About Page (about.php)
   ========================================================================== */
@media (max-width: 768px) {
    .info-page h1 { font-size: 2.5rem !important; line-height: 1.1 !important; margin-bottom: 1.5rem !important; }
    .info-page p { font-size: 1.1rem !important; margin-bottom: 2rem !important; }
    .info-page .profile-section { padding: 2rem 1.5rem !important; border-radius: 20px !important; }
}

@media (max-width: 480px) {
    .info-page h1 { font-size: 2.2rem !important; }
    .info-page p { font-size: 1rem !important; }
}

/* ==========================================================================
   Refined Doctor Profile (doctor.php) - Additional Fixes
   ========================================================================== */
@media (max-width: 768px) {
    .profile-header-content { flex-direction: column !important; text-align: center !important; }
    .profile-header-content img { width: 160px !important; height: 160px !important; }
    .profile-header-content h1 { font-size: 2.5rem !important; margin-top: 1rem !important; }
    .badge-list { justify-content: center !important; }
    .profile-container { display: flex; flex-direction: column !important; }
    .profile-sidebar { order: 2 !important; margin-top: 2rem !important; }
    .profile-main-content { order: 1 !important; }
}

/* ==========================================================================
   Single Blog Post (blog.php)
   ========================================================================== */
@media (max-width: 768px) {
    .blog-post-header { padding: 3rem 0 !important; margin-bottom: 2.5rem !important; }
    .post-title { font-size: 2.2rem !important; letter-spacing: -1px !important; margin-bottom: 1.5rem !important; }
    .post-featured-img { border-radius: 20px !important; margin-bottom: 2.5rem !important; max-height: 350px !important; }
    .post-body { font-size: 1.1rem !important; line-height: 1.7 !important; }
    .post-body h3 { font-size: 1.5rem !important; }
}

@media (max-width: 480px) {
    .post-title { font-size: 1.8rem !important; }
    .post-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
    .post-featured-img { max-height: 250px !important; }
}
/* ==========================================================================
   Footer Responsiveness
   ========================================================================== */

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 2rem !important; }
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    footer { padding: 4rem 0 2.5rem !important; margin-top: 4rem !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2.5rem !important; }
    .footer-logo { height: 75px !important; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr !important; text-align: center !important; gap: 3rem !important; }
    .footer-col h4::after { left: 50% !important; transform: translateX(-50%) !important; }
    .footer-socials { justify-content: center !important; }
    .footer-logo { margin-left: 0 !important; }
    .footer-logo-link { margin-bottom: 1rem !important; }
    .footer-desc { margin-bottom: 2rem !important; padding: 0 1rem; }
    .footer-bottom { margin-top: 3rem !important; }
}

@media (max-width: 420px) {
    .footer-col ul li a { word-break: break-word !important; } /* Prevents long emails from overflowing */
}

@media (max-width: 380px) {
    .footer-logo { height: 65px !important; }
    .footer-col h4 { font-size: 1.05rem !important; }
    .footer-col ul li a { font-size: 0.9rem !important; }
    .footer-grid { gap: 2rem !important; }
}

@media (max-width: 320px) {
    .footer-logo { height: 50px !important; }
    .footer-col h4 { font-size: 0.95rem !important; }
    .footer-col ul li a { font-size: 0.85rem !important; word-break: break-all !important; }
    .footer-socials { gap: 10px !important; }
    .social-icon { width: 35px !important; height: 35px !important; font-size: 0.9rem !important; }
    .footer-desc { font-size: 0.85rem !important; padding: 0 !important; }
    .footer-bottom { font-size: 0.8rem !important; }
}

@media (max-width: 280px) {
    .footer-logo { height: 40px !important; }
    .footer-col h4 { font-size: 0.85rem !important; margin-bottom: 1rem !important; }
    .footer-col ul li a { font-size: 0.75rem !important; }
    .footer-desc { font-size: 0.75rem !important; line-height: 1.4 !important; }
    .social-icon { width: 30px !important; height: 30px !important; font-size: 0.8rem !important; }
    .footer-grid { gap: 1.5rem !important; }
    .footer-bottom p { font-size: 0.7rem !important; }
}
