/* =============================================
   RESPONSIVE CSS
   ============================================= */

/* LARGE DESKTOP: 1280px */
@media (max-width: 1280px) {
    .hero-title { font-size: 44px; }
    .hero-content { max-width: 500px; }
    .floating-stat-card { min-width: 190px; padding: 14px 16px; }
    .doctor-image { height: 440px; }
    .hero-image-wrapper { height: 440px; }
    .custom-navbar .navbar-nav .nav-link { padding: 8px 10px; font-size: 14px; }
}

/* TABLET LANDSCAPE: 991.98px */
@media (max-width: 991.98px) {
    /* Mobile Toggle Button */
    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: #f0f4ff;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .mobile-toggle-btn:hover { background: #dbeafe; }
    .mobile-toggle-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary-blue);
    }

    /* Menu Bar Mobile */
    .header-menu-bar { display: none; }
    .header-menu-bar.show { display: block; }
    .header-menu-bar .navbar-collapse {
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-card);
        padding: 16px;
        margin-top: 12px;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start;
    }
    .header-menu-bar .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    .header-menu-bar .navbar-nav .nav-item { order: 0; width: 100%; }
    .header-menu-bar .nav-link {
        padding: 12px 16px !important;
        width: 100%;
        text-align: left;
        font-size: 14px;
        justify-content: flex-start;
    }
    .header-menu-bar .nav-link::after { display: none !important; }
    .header-menu-bar .nav-item.dropdown .dropdown-menu {
        display: none !important;
        position: static !important;
        float: none !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 0 0 20px !important;
        min-width: auto !important;
        width: 100% !important;
    }
    .header-menu-bar .nav-item.dropdown.show > .dropdown-menu { display: block !important; }
    .header-menu-bar .nav-item.dropdown:hover > .dropdown-menu { display: none !important; }
    .header-menu-bar .nav-item.dropdown .dropdown-menu .dropdown-item {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 6px;
        text-align: left;
    }
    .header-social a { width: 28px; height: 28px; font-size: 12px; }

    /* Hero */
    .hero-section { min-height: auto; padding: 120px 0 60px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-feature-list li { font-size: 14px; }
    .hero-image-wrapper { height: 380px; }
    .doctor-image { height: 380px; }
    .doctor-bg-circle { width: 340px; height: 340px; }

    /* Floating Stats - move below image */
    .floating-stats-cards {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
        padding: 0 10px;
    }
    .floating-stat-card {
        min-width: calc(50% - 12px);
        flex: 0 0 calc(50% - 12px);
        padding: 16px;
        gap: 12px;
    }
    .stat-card-icon { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
    .stat-number { font-size: 18px; }
    .stat-label { font-size: 13px; }

    /* Stats Bar */
    .stats-bar-card .row > div { flex: 0 0 50%; max-width: 50%; }
    .stat-bar-item { border-right: none !important; }
    .stats-bar-card .row > div:nth-child(odd) .stat-bar-item { border-right: 1px solid var(--border-color) !important; }
    .stats-bar-card .row > div:nth-child(n+3) .stat-bar-item { border-top: 1px solid var(--border-color); }

    /* Why Join */
    .why-join-grid .col-2 { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }

    /* Membership Process */
    .process-steps { overflow-x: auto; padding-bottom: 10px; }
    .process-step { min-width: 120px; }

    /* Certificate Verification */
    .cert-verification-panel { flex-direction: column; }
    .cert-verification-left { flex: none; max-width: 100%; padding: 30px 30px 20px; text-align: center; }
    .cert-verification-title { font-size: 32px; }
    .cert-verification-right { flex: none; max-width: 100%; padding: 0 25px 25px; }
    .cert-tabs .nav-link { font-size: 13px; padding: 12px 14px; }

    /* Info Cards */
    .info-cards-section .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}

/* TABLET PORTRAIT: 767.98px */
@media (max-width: 767.98px) {
    /* Header */
    .header-logo { height: 50px; }
    .brand-name-en { font-size: 13px; }
    .brand-name-ta { font-size: 10px; }

    /* Hero */
    .hero-section { padding: 100px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }
    .hero-feature-list li { font-size: 13px; gap: 10px; }
    .feature-check-icon { width: 24px; height: 24px; min-width: 24px; font-size: 12px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

    /* Hero Image */
    .hero-image-wrapper { height: auto; margin-top: 24px; overflow: visible; }
    .doctor-image { height: 260px; }
    .doctor-bg-circle { width: 220px; height: 220px; }

    /* Floating Stats */
    .floating-stats-cards {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
    }
    .floating-stat-card {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
        padding: 12px;
        gap: 10px;
    }
    .stat-card-icon { width: 40px; height: 40px; min-width: 40px; font-size: 18px; }
    .stat-number { font-size: 16px; }
    .stat-label { font-size: 12px; }

    /* Stats Bar */
    .stats-bar-card { padding: 16px 8px; }
    .stat-bar-item { padding: 12px 8px; }
    .stat-bar-number { font-size: 24px; }
    .stat-bar-label { font-size: 12px; }

    /* Why Join */
    .why-join-section { padding: 50px 0; }
    .why-join-title, .membership-process-title { font-size: 26px; }
    .why-join-grid .col-2 { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
    .why-join-card { padding: 24px 16px; }
    .why-join-icon-circle { width: 56px; height: 56px; font-size: 24px; margin-bottom: 12px; }
    .why-join-card-title { font-size: 14px; }
    .why-join-card-desc { font-size: 12px; }

    /* Membership Process */
    .membership-process-section { padding: 50px 0; }
    .process-step { min-width: 100px; padding: 0 4px; }
    .process-step-icon-circle { width: 48px; height: 48px; font-size: 20px; }
    .process-step-number { width: 18px; height: 18px; font-size: 10px; }
    .process-step-title { font-size: 11px; }
    .process-step-desc { font-size: 10px; }
    .process-connector { min-width: 24px; }

    /* Certificate Verification */
    .cert-verification-title { font-size: 26px; }
    .cert-tabs .nav-link { font-size: 12px; padding: 10px 12px; }
    .cert-tab-content { padding: 16px; }
    .cert-input-group { flex-direction: column; }
    .cert-verify-btn { width: 100%; justify-content: center; }

    /* Info Cards */
    .info-cards-section .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
    .info-card { padding: 24px; }
    .info-card-title { font-size: 20px; }
    .news-item-title { font-size: 14px; }
    .testimonial-card { padding: 24px; }
    .section-title { font-size: 26px; }
}

/* MOBILE LANDSCAPE: 575.98px */
@media (max-width: 575.98px) {
    /* Container */
    .container { padding-left: 15px; padding-right: 15px; }

    /* Header */
    .header-logo { height: 60px; }
    .header-top { min-height: auto; padding-top: 8px !important; padding-bottom: 8px !important; }
    .brand-name-en { font-size: 15px; }
    .brand-name-ta { font-size: 11px; }
    .header-top-right .btn { padding: 5px 10px; font-size: 11px; }
    .header-top-right .gap-3 { gap: 0.5rem !important; }
    .mobile-toggle-btn { width: 36px; height: 36px; }
    .mobile-toggle-avatar { width: 32px; height: 32px; }

    /* Hero */
    .hero-section { padding: 90px 0 84px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
    .hero-feature-list { margin-bottom: 24px; }
    .hero-feature-list li { font-size: 13px; margin-bottom: 10px; }

    /* Hero Image */
    .hero-image-wrapper { height: auto; margin-top: 20px; overflow: visible; }
    .doctor-image { height: 200px; }
    .doctor-bg-circle { width: 180px; height: 180px; }

    /* Floating Stats - two columns */
    .floating-stats-cards {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
        padding: 0 10px;
    }
    .floating-stat-card {
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        padding: 14px;
        gap: 12px;
    }
    .stat-card-icon { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }
    .stat-number { font-size: 15px; }
    .stat-label { font-size: 11px; }

    /* Stats Bar */
    .stats-bar-card .row > div { flex: 0 0 50%; max-width: 50%; }
    .stat-bar-item { padding: 10px 6px; }
    .stat-bar-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 8px; }
    .stat-bar-number { font-size: 22px; }
    .stat-bar-label { font-size: 11px; }

    /* Why Join */
    .why-join-section { padding: 40px 0; }
    .why-join-title, .membership-process-title { font-size: 24px; }
    .why-join-grid .col-2 { flex: 0 0 100%; max-width: 100%; }
    .why-join-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        text-align: left;
    }
    .why-join-icon-circle { width: 50px; height: 50px; font-size: 22px; margin-bottom: 0; flex-shrink: 0; }

    /* Membership Process - Vertical */
    .membership-process-section { padding: 40px 0; }
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .process-step {
        width: 100%;
        max-width: 320px;
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        background: var(--white);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(231, 238, 248, 0.6);
    }
    .process-step-icon-circle {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 22px;
        margin: 0 0 12px;
    }
    .process-step-number { width: 22px; height: 22px; font-size: 10px; }
    .process-step-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
    .process-step-desc { font-size: 13px; }
    .process-connector {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 0;
        width: 100%;
    }
    .process-connector-line { display: none; }
    .process-connector-arrow {
        font-size: 20px;
        color: var(--secondary-blue);
        transform: rotate(90deg);
    }

    /* Certificate Verification */
    .cert-verification-title { font-size: 24px; }
    .cert-verification-desc { font-size: 14px; }
    .cert-tabs .nav-link { font-size: 11px; padding: 8px 10px; }
    .cert-input { height: 44px; }
    .cert-verify-btn { height: 44px; }

    /* Info Cards */
    .info-card { padding: 20px; }
    .info-card-title { font-size: 18px; }
    .news-item-title { font-size: 13px; }
    .testimonial-card { padding: 20px; }
    .testimonial-text { font-size: 13px; }
    .section-title { font-size: 24px; }
    .section-padding { padding: 40px 0; }

    /* Footer - Stack all columns */
    .footer-section { padding: 40px 0 20px; }
    .footer-main-row {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 28px;
    }
    .footer-main-row > div {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .footer-col-title { font-size: 16px; text-align: left; margin-bottom: 16px; }
    .footer-col-title::after { left: 0; }
    .footer-logo-icon { width: 48px; height: 48px; font-size: 24px; }
    .footer-logo-line1, .footer-logo-line2 { font-size: 13px; }
    .footer-logo-line3 { font-size: 11px; }
    .footer-social-icons { justify-content: flex-start; }
    .footer-link-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .footer-link-list li { margin-bottom: 10px; }
    .footer-link-list li a { display: block; text-align: left; }
    .footer-contact-item { text-align: left; margin-bottom: 14px; }
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom-links { justify-content: center; }
}

/* MOBILE PORTRAIT: 375px */
@media (max-width: 375px) {
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 13px; }
    .hero-feature-list li { font-size: 12px; }
    .btn-hero-primary, .btn-hero-secondary { font-size: 13px; padding: 12px 20px; height: 44px; }
    .hero-image-wrapper { height: auto; overflow: visible; }
    .doctor-image { height: 180px; }
    .doctor-bg-circle { width: 160px; height: 160px; }
    .floating-stat-card { padding: 12px; gap: 10px; }
    .stat-card-icon { width: 32px; height: 32px; min-width: 32px; font-size: 14px; }
    .stat-number { font-size: 14px; }
    .stat-label { font-size: 10px; }
    .section-title { font-size: 22px; }
    .stat-bar-number { font-size: 20px; }
    .stat-bar-label { font-size: 10px; }
    .why-join-title, .membership-process-title { font-size: 22px; }
    .why-join-card-title { font-size: 13px; }
    .why-join-card-desc { font-size: 11px; }
    .process-step { max-width: 290px; padding: 20px 16px; }
    .process-step-title { font-size: 13px; }
    .process-step-desc { font-size: 11px; }
    .cert-verification-title { font-size: 22px; }
    .info-card-title { font-size: 16px; }
    .leader-img-wrapper { height: 200px; }
    .leader-name { font-size: 1rem; }
    .leader-designation { font-size: 0.85rem; }
}

/* Leadership - Mobile */
@media (max-width: 575.98px) {
    .leader-card { margin-bottom: 16px; }
    .leader-img-wrapper { height: 180px; margin: 0; }
    .leader-info { padding: 12px 16px 20px; }
    .leader-name { font-size: 0.95rem; }
}
