/* ============================================================
   SAHARA NEPAL — RESPONSIVE STYLESHEET v1.0
   ============================================================ */

/* ─── TOP NAV ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .topbar {
        padding: 4px 0;
        font-size: 11px;
    }
    .topbar-inner {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .topbar-left, .topbar-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    .topbar-right .sep {
        display: none;
    }
    .topbar-right a:not(.topbar-phone):not(.topbar-email) {
        display: none;
    }
    .topbar-phone, .topbar-email {
        font-size: 11px !important;
    }
    .lang-switcher button {
        font-size: 10px;
        padding: 1px 6px;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none !important;
    }
}

/* ─── HEADER / NAV ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .header-inner {
        padding: 8px 0;
    }
    
    .logo-img-wrap {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    .logo-img-wrap img {
        width: 170px !important;
        height: 54px !important;
        object-fit: contain !important;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        cursor: pointer;
        background: var(--gray-100);
        border-radius: var(--r-sm);
        border: 1px solid var(--border);
        transition: all var(--dur);
    }
    .hamburger span {
        display: block;
        height: 2.5px;
        width: 24px;
        background: var(--text-2);
        border-radius: 2px;
        transition: all var(--dur);
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .main-nav {
        display: none !important;
    }
    .main-nav.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        background: var(--white);
        z-index: 9999;
        padding: 80px 20px 30px;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        animation: slideIn 0.3s var(--ease);
    }
    .main-nav.mobile-open > li {
        width: 100%;
    }
    .main-nav.mobile-open > li > a {
        padding: 12px 16px;
        justify-content: space-between;
        border-bottom: 1px solid var(--gray-100);
        font-size: 14px;
    }
    .main-nav.mobile-open > li > a .nav-arrow {
        transform: none !important;
    }
    .main-nav.mobile-open .has-dropdown.open > a .nav-arrow {
        transform: rotate(180deg) !important;
    }
    
    .main-nav.mobile-open .dropdown-menu,
    .main-nav.mobile-open .mega-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: var(--gray-50);
        border-radius: var(--r-sm);
        display: none;
        margin-top: 4px;
        padding: 4px 0 4px 16px;
        width: 100%;
        min-width: auto !important;
    }
    .main-nav.mobile-open .has-dropdown.open .dropdown-menu,
    .main-nav.mobile-open .has-mega.open .mega-menu {
        display: block !important;
    }
    .main-nav.mobile-open .mega-menu-cols {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        gap: 12px;
    }
    .main-nav.mobile-open .mega-col {
        border-right: none !important;
        padding: 0 !important;
    }
    .main-nav.mobile-open .mega-col-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .main-nav.mobile-open .mega-col ul li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .main-nav.mobile-open .mega-featured {
        display: none !important;
    }
    .main-nav.mobile-open .mega-footer {
        display: none !important;
    }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }
    .mobile-overlay.active {
        display: block;
    }
    .mobile-close-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 10000;
        width: 40px;
        height: 40px;
        background: var(--white);
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: var(--shadow-md);
        cursor: pointer;
    }
    .mobile-close-btn.active {
        display: flex;
    }
    
    .header-actions .btn-member {
        display: none !important;
    }
    .header-actions .btn-login {
        padding: 6px 14px;
        font-size: 12px;
    }
    .header-actions .btn-login span {
        display: none;
    }
    .header-actions .btn-login i {
        margin: 0;
    }
    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .logo-img-wrap img {
        width: 130px !important;
        height: 40px !important;
    }
    .main-nav.mobile-open {
        width: 100%;
        max-width: 320px;
        padding: 70px 16px 20px;
    }
    .header-actions {
        gap: 4px;
    }
    .header-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ─── HERO SLIDER ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-slide {
        min-height: 500px;
    }
    .hero-content {
        max-width: 100%;
        padding: 60px 0;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-badge {
        margin: 0 auto 20px;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-cards-side {
        display: none !important;
    }
    .slider-prev, .slider-next {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 420px;
        padding: 30px 0;
    }
    .hero-content h2 {
        font-size: 28px !important;
        line-height: 1.2;
    }
    .hero-content p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-ctas a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 13px;
        padding: 12px 20px;
    }
    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-stat {
        flex: 0 0 calc(50% - 6px);
        text-align: center;
    }
    .hero-stat .h-num {
        font-size: 18px !important;
    }
    .hero-stat .h-label {
        font-size: 10px !important;
    }
    .hero-stat-sep {
        display: none !important;
    }
    .slider-dots {
        bottom: 12px;
    }
    .slider-dot {
        width: 6px;
        height: 6px;
    }
    .slider-dot.active {
        width: 20px;
    }
    .slide-counter {
        display: none !important;
    }
    .slider-progress-wrap {
        display: none !important;
    }
    .slider-prev {
        left: 10px;
    }
    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 380px;
        padding: 20px 0;
    }
    .hero-content h2 {
        font-size: 22px !important;
    }
    .hero-content p {
        font-size: 13px !important;
    }
    .hero-badge {
        font-size: 10px !important;
        padding: 4px 12px;
    }
    .hero-ctas a {
        font-size: 12px;
        padding: 10px 16px;
        max-width: 100%;
    }
    .hero-stat {
        flex: 0 0 100%;
    }
    .slider-prev, .slider-next {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* ─── QUICK SERVICES ────────────────────────────────────────── */
@media (max-width: 992px) {
    .quick-services-wrap {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -30px;
    }
    .quick-card {
        padding: 20px 12px;
    }
    .quick-card:nth-child(3) {
        border-right: none;
    }
    .quick-card:nth-child(4) {
        border-bottom: none;
    }
    .quick-card:nth-child(5) {
        border-bottom: none;
        border-right: none;
    }
}

@media (max-width: 768px) {
    .quick-services-wrap {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
        border-radius: 16px;
    }
    .quick-card {
        padding: 16px 12px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .quick-card:nth-child(2) {
        border-right: none;
    }
    .quick-card:nth-child(3) {
        border-bottom: none;
    }
    .quick-card:nth-child(4) {
        border-right: none;
        border-bottom: none;
    }
    .quick-card:nth-child(5) {
        display: none !important;
    }
    .qc-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }
    .quick-card h4 {
        font-size: 12px;
    }
    .quick-card p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .quick-services-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-top: -16px;
    }
    .quick-card {
        padding: 14px 10px;
    }
    .qc-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    .quick-card h4 {
        font-size: 11px;
    }
}

/* ─── STATS ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 20px 14px;
    }
    .stat-num {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 16px 10px;
    }
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    .stat-num {
        font-size: 16px !important;
    }
    .stat-unit {
        font-size: 11px;
    }
    .stat-label {
        font-size: 10px;
    }
}

/* ─── ABOUT ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .section-pad .container > div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .animate-fadeRight {
        order: -1;
    }
    .section-pad .container > div h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {
    .section-pad .container > div h2 {
        font-size: 24px !important;
    }
    .section-pad .container > div p {
        font-size: 14px !important;
    }
    [style*="position:absolute;bottom:28px;left:-28px"] {
        left: 12px !important;
        min-width: auto !important;
        padding: 12px 14px !important;
    }
    [style*="position:absolute;top:20px;right:-16px"] {
        right: 8px !important;
        top: 10px !important;
        padding: 10px 14px !important;
    }
    [style*="position:absolute;top:20px;right:-16px"] div:first-child {
        font-size: 18px !important;
    }
}

/* ─── MESSAGE SECTION ───────────────────────────────────────── */
@media (max-width: 992px) {
    .message-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .message-img-side {
        order: -1 !important;
    }
    .message-content {
        text-align: center;
    }
    .msg-eyebrow {
        justify-content: center;
    }
    .msg-signature-area {
        justify-content: center;
        flex-wrap: wrap;
    }
    .msg-signature-area > div:last-child {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .msg-photo-wrap img {
        height: 280px !important;
    }
    .message-content h2 {
        font-size: 26px !important;
    }
    .msg-text {
        font-size: 14px;
    }
    .msg-signature-area {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .message-grid[style*="direction:ltr"] .message-content {
        order: 1 !important;
    }
    .message-grid[style*="direction:ltr"] .message-img-side {
        order: 2 !important;
    }
}

/* ─── PRODUCTS ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .product-icon-area {
        height: 100px;
        font-size: 36px;
    }
    .product-body {
        padding: 16px;
    }
    .product-body h4 {
        font-size: 14px;
    }
    .product-body p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .product-icon-area {
        height: 80px;
        font-size: 28px;
    }
}

/* ─── GALLERY ────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item.span-2 {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-filter {
        justify-content: center;
        flex-wrap: wrap;
    }
    .gf-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .gallery-overlay span {
        font-size: 11px;
    }
    .gallery-zoom {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* ─── NEWS ───────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .news-featured {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nf-img {
        height: 200px;
    }
    .nf-body h3 {
        font-size: 17px;
    }
    .news-card {
        flex-direction: column !important;
    }
    .nc-img {
        width: 100% !important;
        height: 150px !important;
    }
}

/* ─── NOTICES ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .notice-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .notice-pdf-btn {
        margin-left: 0 !important;
        padding: 6px 12px;
        font-size: 11px;
    }
    .notice-title {
        font-size: 13px;
    }
    .notice-meta {
        font-size: 11px;
    }
    .notice-badge-new {
        font-size: 9px;
        padding: 1px 6px;
    }
}

/* ─── TIMELINE ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .timeline-track {
        padding: 20px 0 10px;
    }
    .timeline-item {
        padding: 0 20px;
    }
    .timeline-card {
        max-width: 180px;
        padding: 16px 18px;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        padding: 0 16px;
    }
    .timeline-card {
        max-width: 160px;
        padding: 14px 14px;
    }
    .timeline-card .tc-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    .timeline-card h4 {
        font-size: 12px;
    }
    .timeline-card span {
        font-size: 10.5px;
    }
    .timeline-year {
        font-size: 11px;
        padding: 3px 10px;
        margin-bottom: 20px;
    }
    .timeline-item::before {
        top: 34px;
        width: 10px;
        height: 10px;
    }
    .timeline-track::before {
        top: 48px;
    }
    .timeline-header-flex {
        flex-direction: column;
        gap: 12px;
    }
    .timeline-hint {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 0 12px;
    }
    .timeline-card {
        max-width: 140px;
        padding: 12px;
    }
    .timeline-card .tc-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 8px;
    }
    .timeline-card h4 {
        font-size: 11px;
    }
    .timeline-card span {
        font-size: 10px;
    }
    .timeline-year {
        font-size: 10px;
        padding: 2px 8px;
        margin-bottom: 16px;
    }
}

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .testimonial-card {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    .testimonials-track {
        flex-direction: column;
        gap: 16px;
    }
    .carousel-nav {
        display: none !important;
    }
    .testimonials-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    .testimonials-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--border);
        cursor: pointer;
        transition: all var(--dur);
    }
    .testimonials-dot.active {
        background: var(--primary);
        width: 30px;
        border-radius: 5px;
    }
}

/* ─── APP SECTION ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        text-align: center;
    }
    .app-features-list {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }
    .app-phone-wrap {
        display: none !important;
    }
    .app-download-side {
        align-items: center;
        text-align: center;
    }
    .app-store-btns {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .qr-code-box {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .app-features-list {
        max-width: 100%;
    }
    .app-feat-item {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }
    .app-feat-item .afi-icon {
        margin: 0 auto 8px;
    }
    .app-store-btns {
        flex-direction: column;
        align-items: center;
    }
    .app-store-btn {
        width: 220px;
    }
}

/* ─── CSR ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .section-pad .container > div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .section-pad .container > div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── CONTACT CTA ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .cta-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cta-cards {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .cta-content h2 {
        font-size: 28px !important;
    }
    .cta-content p {
        font-size: 14px;
    }
    .cta-card {
        padding: 24px 18px;
    }
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-col:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-brand > div:first-child {
        justify-content: center !important;
    }
    
    .footer-brand h3 {
        font-size: 18px !important;
    }
    
    .footer-brand span {
        font-size: 12px !important;
    }
    
    .footer-brand p {
        font-size: 13px !important;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-contact-item i {
        margin-top: 2px;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    .footer-col ul li a {
        justify-content: center;
    }
    
    .footer-newsletter {
        text-align: center;
    }
    
    .newsletter-input {
        flex-direction: column !important;
        align-items: center;
        gap: 8px;
    }
    
    .newsletter-input input {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
    
    .newsletter-input button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .working-hours table {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .working-hours td {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .footer-bottom-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    .footer-bottom-links {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .footer-emergency {
        text-align: center;
    }
    
    .footer-emergency strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .footer-col > div:last-child > div:last-child {
        justify-content: center !important;
    }
    
    .footer-grid + div {
        padding: 28px 0 !important;
    }
    
    .footer-grid + div > div:first-child {
        text-align: center;
        justify-content: center !important;
    }
    
    .footer-grid + div iframe {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 24px !important;
    }
    
    .footer-brand h3 {
        font-size: 16px !important;
    }
    
    .footer-brand > div:first-child {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand > div:first-child > div:first-child {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
        margin: 0 auto;
    }
    
    .footer-contact-item {
        font-size: 12px !important;
        flex-wrap: wrap;
    }
    
    .footer-social a {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    
    .footer-col ul li a {
        font-size: 12px !important;
    }
    
    .working-hours td {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .footer-bottom p {
        font-size: 11px !important;
    }
    
    .footer-bottom-links a {
        font-size: 11px !important;
    }
    
    .footer-grid + div iframe {
        height: 150px !important;
    }
    
    .footer-grid + div > div:first-child {
        font-size: 12px !important;
    }
    
    .footer-emergency {
        font-size: 11px !important;
        padding: 10px 12px !important;
    }
}

/* ─── FLOATING BUTTONS ──────────────────────────────────────── */
@media (max-width: 768px) {
    .floating-btns {
        bottom: 16px;
        right: 12px;
        gap: 8px;
    }
    .float-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .floating-btns {
        bottom: 12px;
        right: 8px;
        gap: 6px;
    }
    .float-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }
}

/* ─── POPUP ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .popup-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
    }
    .popup-box {
        max-width: 100% !important;
        width: 98% !important;
        max-height: 92vh !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        overflow-y: auto;
    }
    .popup-header {
        padding: 14px 16px !important;
        border-radius: 16px 16px 0 0 !important;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .popup-header h3 {
        font-size: 14px !important;
        gap: 6px !important;
    }
    .popup-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    .popup-img {
        max-height: 160px !important;
        width: 100% !important;
        object-fit: cover;
    }
    .popup-body {
        padding: 14px 16px !important;
        max-height: 220px !important;
        overflow-y: auto;
    }
    .popup-body p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .popup-footer {
        padding: 12px 16px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-radius: 0 0 16px 16px;
    }
    .popup-dont-show {
        font-size: 11px !important;
        width: 100%;
        margin-bottom: 4px;
        order: 1;
    }
    .popup-btn-dismiss {
        font-size: 12px !important;
        padding: 6px 14px !important;
        order: 2;
    }
    .popup-btn-pdf {
        font-size: 12px !important;
        padding: 6px 14px !important;
        order: 3;
    }
    .popup-btn-primary {
        font-size: 12px !important;
        padding: 6px 14px !important;
        order: 4;
    }
}

/* ─── MEMBER DIRECTORY ───────────────────────────────────────── */
@media (max-width: 992px) {
    .mdir-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 16px;
    }
    .mdir-title-side {
        flex-direction: row !important;
    }
    .mdir-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    .mdir-search-wrap {
        flex: 1 1 100%;
    }
    .mdir-filter-select {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    .mdir-table thead {
        display: none !important;
    }
    .mdir-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px 16px;
        background: var(--white);
    }
    .mdir-table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--gray-100) !important;
        width: 100% !important;
    }
    .mdir-table tbody td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .mdir-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-3);
        font-size: 12px;
        flex-shrink: 0;
        margin-right: 12px;
    }
    .mdir-name-cell {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mdir-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    .mdir-result-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .mdir-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .mpg-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .mpg-num {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .mdir-table tbody tr {
        padding: 10px 12px;
    }
    .mdir-table tbody td {
        font-size: 12px;
        padding: 6px 0 !important;
        flex-wrap: wrap;
    }
    .mdir-name {
        font-size: 13px !important;
    }
    .mdir-code-badge,
    .mdir-share-badge {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    .mdir-address {
        font-size: 11px !important;
    }
    .mdir-view-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
}

/* ─── GENERAL ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .sec-head {
        text-align: center;
    }
    .sec-head h2 {
        font-size: 24px !important;
    }
    .sec-head p {
        font-size: 14px !important;
    }
    .sec-row {
        flex-direction: column;
        gap: 15px;
        align-items: center !important;
    }
    .sec-head-left {
        text-align: center !important;
    }
    .sec-head-left .sec-line {
        margin-left: auto !important;
    }
    .view-all {
        margin-top: 0;
    }
    .section-pad {
        padding: 50px 0 !important;
    }
    .page-title-box {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    .page-title-box h4 {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .sec-head h2 {
        font-size: 20px !important;
    }
    .sec-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
    .section-pad {
        padding: 40px 0 !important;
    }
}

/* ─── UTILITY CLASSES ───────────────────────────────────────── */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: block !important;
    }
    .flex-column-mobile {
        flex-direction: column !important;
    }
    .gap-mobile-8 {
        gap: 8px !important;
    }
    .gap-mobile-12 {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .text-center-phone {
        text-align: center !important;
    }
    .hide-phone {
        display: none !important;
    }
    .show-phone {
        display: block !important;
    }
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}