/* ==========================================================================
   SAROJ / SARJOM BUTA FOUNDATION - OFFICIAL THEME STYLESHEET
   Accurate 100% Clone of https://sarjombutafoundation.vercel.app/
   ========================================================================== */

:root {
    --brand-navy: #0A2540;
    --brand-navy-dark: #06182C;
    --brand-navy-deep: #051424;
    --brand-navy-card: #0D2B4A;
    --brand-green: #59A245;
    --brand-green-dark: #468535;
    --brand-green-light: #72C05D;
    --brand-green-subtle: #EBF7E7;
    --brand-green-border: #CBE8C4;
    --brand-gold: #F59E0B;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --bg-page: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-surface-alt: #F1F5F9;
    --border-color: #E2E8F0;
    --border-light: #EEF2F6;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html, body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.65;
    overflow-x: hidden !important;
    max-width: 100vw;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.row {
    --bs-gutter-x: 1.5rem;
    margin-right: 0;
    margin-left: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.025em;
}

/* Utilities */
.text-navy { color: var(--brand-navy) !important; }
.text-brand-green { color: var(--brand-green) !important; }
.bg-brand-navy { background-color: var(--brand-navy) !important; }
.bg-brand-navy-dark { background-color: var(--brand-navy-dark) !important; }
.bg-brand-green { background-color: var(--brand-green) !important; }
.bg-green-subtle-box { background-color: var(--brand-green-subtle) !important; }
.bg-surface-soft { background-color: var(--bg-surface) !important; }
.border-brand-subtle { border-color: var(--border-color) !important; }
.text-xs { font-size: 0.76rem !important; }
.text-sm { font-size: 0.88rem !important; }

/* Action Buttons */
.btn-brand-green {
    background-color: var(--brand-green);
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-brand-green:hover {
    background-color: var(--brand-green-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(89, 162, 69, 0.35);
}

.btn-brand-navy {
    background-color: var(--brand-navy);
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-brand-navy:hover {
    background-color: var(--brand-navy-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.25);
}

.btn-outline-brand-navy {
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
    background: transparent;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-outline-brand-navy:hover {
    background-color: var(--brand-navy);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Compliance Badges & Subtitles */
.badge-compliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--brand-green-subtle);
    color: var(--brand-green-dark);
    border: 1px solid var(--brand-green-border);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
}

.badge-tag-status {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.badge-tag-verified {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.badge-tag-provisional {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #DBEAFE;
}

/* Top Notification / Compliance Header */
.top-compliance-bar {
    background-color: #06182C;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-compliance-bar .compliance-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-compliance-bar .compliance-link:hover {
    color: #FFFFFF;
}

.top-compliance-bar .badge-provisional-pill {
    background-color: var(--brand-green);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Main Navbar */
.main-navbar-foundation {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.brand-tree-box {
    width: 44px;
    height: 44px;
    background: #0A2540;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-foundation-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-foundation-subtitle {
    font-size: 0.7rem;
    color: var(--brand-green-dark);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.main-navbar-foundation a,
.main-navbar-foundation .nav-link,
.nav-link-found,
.dropdown-menu-foundation .dropdown-item,
.offcanvas-foundation a,
.mobile-nav-link {
    text-decoration: none !important;
}

.nav-link-found {
    color: #1E293B;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 6px 12px !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.nav-link-found:hover, 
.nav-link-found.active, 
.nav-link-found:focus, 
.nav-link-found:active {
    color: var(--brand-green);
    text-decoration: none !important;
}

.dropdown-menu-foundation {
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.12) !important;
}

.dropdown-menu-foundation .dropdown-item {
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
}

.dropdown-menu-foundation .dropdown-item:hover,
.dropdown-menu-foundation .dropdown-item:focus {
    background-color: var(--brand-green-subtle);
    color: var(--brand-green-dark) !important;
    text-decoration: none !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link:active {
    color: var(--brand-green) !important;
    text-decoration: none !important;
}

/* Offcanvas Mobile Navigation Enhancements */
.offcanvas-foundation {
    max-width: 320px !important;
    width: 85% !important;
    z-index: 1060 !important;
    background-color: #FFFFFF !important;
    box-shadow: -5px 0 25px rgba(10, 37, 64, 0.15) !important;
}

.offcanvas-backdrop {
    z-index: 1055 !important;
}

.navbar-toggler#mobileNavbarToggleBtn {
    cursor: pointer !important;
    z-index: 1040 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

#docViewerModalTitle {
    color: #FFFFFF !important;
}

/* Hero Section */
.hero-foundation-wrap {
    padding: 3.5rem 0 4.5rem 0;
    background: #FFFFFF;
}

.hero-main-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
}

.hero-main-title .highlight-green {
    color: var(--brand-green);
}

.hero-sub-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.45;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-photo-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(10, 37, 64, 0.12);
}

.hero-photo-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(6, 24, 44, 0) 0%, rgba(6, 24, 44, 0.92) 75%, rgba(6, 24, 44, 0.98) 100%);
    padding: 24px;
    color: #FFFFFF;
}

/* Statutory 5-Card Grid */
.statutory-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.25s ease;
    height: 100%;
}

.statutory-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Why We Exist / Meaning Card */
.meaning-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 20px;
}

/* Focus Pillars & Cards */
.pillar-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.pillar-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.full-pillar-banner {
    background: #0A2540;
    border-radius: var(--radius-xl);
    padding: 40px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Stage Cards (Understand, Implement, Measure) */
.stage-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all 0.25s ease;
}

.stage-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.stage-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

/* CSR Proposals Cards */
.proposal-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.proposal-card:hover {
    border-color: var(--brand-green);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* Campaign Cards */
.campaign-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.campaign-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.campaign-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Story / Testimonial Cards */
.story-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.story-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.story-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-green-border);
}

/* Document Registry Table */
.registry-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #FFFFFF;
}

.registry-table th {
    background: #F8FAFC;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.registry-table td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

/* Leadership Cards */
.leader-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
}

/* Official Communication Form */
.form-input-clean {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.form-input-clean:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(89, 162, 69, 0.15);
    outline: none;
}

/* Footer Section */
.footer-foundation {
    background-color: #06182C;
    color: #94A3B8;
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link-found {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link-found:hover {
    color: #FFFFFF;
}

.footer-stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
}

/* Dropdown Menus (Desktop) */
.dropdown-menu-foundation {
    border: 1px solid var(--border-color) !important;
    background: #FFFFFF;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.12) !important;
    min-width: 220px;
    padding: 8px;
    animation: fadeInDown 0.2s ease forwards;
}

.dropdown-menu-foundation .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.dropdown-menu-foundation .dropdown-item:hover {
    background-color: var(--brand-green-subtle);
    color: var(--brand-green-dark);
}

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

/* Mobile Offcanvas Drawer & Toggler */
.navbar-toggler {
    cursor: pointer !important;
    position: relative;
    z-index: 1030;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler * {
    pointer-events: none;
}

.offcanvas-foundation {
    max-width: 320px;
    border-left: 1px solid var(--border-color);
    z-index: 1060 !important;
}

.mobile-nav-link {
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--brand-green-subtle);
    color: var(--brand-green-dark) !important;
}

/* ==========================================================================
   COMPREHENSIVE 100% MOBILE & TABLET RESPONSIVE RULES
   ========================================================================== */

/* Medium Devices (Tablets & Small Laptops: <= 991.98px) */
@media (max-width: 991.98px) {
    .hero-foundation-wrap {
        padding: 2.5rem 0 3.5rem 0;
    }
    
    .hero-photo-img {
        height: 360px;
    }
    
    .hero-photo-overlay {
        padding: 18px;
    }

    .full-pillar-banner {
        padding: 28px 20px;
    }
    
    .section-title {
        font-size: 1.85rem;
    }

    /* Detail Page Sidebar Sticky reset on tablets/mobile */
    .detail-sidebar-sticky {
        position: static !important;
        top: auto !important;
        margin-top: 1.5rem;
    }
}

/* Small Devices (Landscape Phones & Tablets: <= 767.98px) */
@media (max-width: 767.98px) {
    .hero-foundation-wrap {
        padding: 1.75rem 0 2.5rem 0;
    }

    .hero-main-title {
        font-size: 2.1rem;
        line-height: 1.18;
    }

    .hero-sub-title {
        font-size: 1.05rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-photo-img {
        height: 280px;
    }

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

    .pillar-card, 
    .proposal-card, 
    .campaign-card, 
    .story-card,
    .leader-card {
        padding: 20px;
    }

    .statutory-card {
        padding: 16px;
    }

    .district-tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    /* Transform #transparency document table into clean cards on mobile */
    .registry-table-wrap {
        border: none !important;
        background: transparent !important;
    }

    .registry-table-wrap .table-responsive {
        overflow-x: visible !important;
    }

    .registry-table thead {
        display: none !important;
    }

    .registry-table, 
    .registry-table tbody, 
    .registry-table tr.doc-table-row, 
    .registry-table td {
        display: block !important;
        width: 100% !important;
    }

    .registry-table tr.doc-table-row {
        background: #FFFFFF !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 14px !important;
        padding: 16px !important;
        margin-bottom: 14px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }

    .registry-table td {
        padding: 6px 0 !important;
        border: none !important;
    }

    .registry-table td:first-child {
        padding-top: 0 !important;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--border-light) !important;
        padding-bottom: 10px !important;
    }

    .registry-table td:last-child {
        padding-top: 10px !important;
        margin-top: 8px;
        border-top: 1px solid var(--border-light) !important;
    }

    .registry-table td:last-child .d-flex {
        width: 100%;
    }

    .registry-table td:last-child .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 8px 12px !important;
    }

    .footer-foundation {
        padding: 45px 0 25px 0;
    }
}

/* Extra Small Devices (Smartphones: <= 575.98px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-main-title {
        font-size: 1.85rem;
        letter-spacing: -0.02em;
    }

    .badge-compliance-pill {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .brand-tree-box {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .brand-foundation-title {
        display: none !important;
    }

    /* Buttons stack on mobile for full width touch friendliness */
    .hero-foundation-wrap .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-foundation-wrap .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 16px;
    }

    .hero-photo-img {
        height: 240px;
    }

    .hero-photo-overlay h5 {
        font-size: 0.95rem !important;
    }

    .statutory-card h6 {
        font-size: 0.85rem !important;
    }

    .meaning-card {
        padding: 16px;
    }

    .form-input-clean {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .registry-table-wrap {
        border-radius: var(--radius-md);
    }
}

/* ==========================================================================
   ABOUT US PAGE LUXURY & PROFESSIONAL STYLES
   ========================================================================== */
.about-hero-section {
    background: linear-gradient(135deg, #0A2540 0%, #06182C 60%, #051424 100%);
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.about-hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(89, 162, 69, 0.15) 0%, rgba(10, 37, 64, 0) 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
}

.about-hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(10, 37, 64, 0) 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.feature-pillar-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.04);
    height: 100%;
}

.feature-pillar-box:hover {
    transform: translateY(-6px);
    border-color: var(--brand-green);
    box-shadow: 0 16px 36px rgba(10, 37, 64, 0.09);
}

.timeline-step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-green-subtle);
    color: var(--brand-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.milestone-item {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--brand-green-border);
}

.milestone-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-green);
    border: 2px solid #FFFFFF;
}

.guiding-principle-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
}

.guiding-principle-card:hover {
    border-color: var(--brand-navy);
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.06);
}

/* ==========================================================================
   GLOBAL PAGINATION STYLES (CLEAN BOOTSTRAP / TAILWIND FIX)
   ========================================================================== */
.pagination {
    display: flex !important;
    padding-left: 0 !important;
    list-style: none !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--brand-navy) !important;
    background-color: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.pagination .page-item .page-link:hover {
    background-color: var(--brand-green-subtle) !important;
    border-color: var(--brand-green) !important;
    color: var(--brand-green-dark) !important;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(89, 162, 69, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
    color: #94A3B8 !important;
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Fix for Tailwind SVG arrows overflowing pagination in Laravel standard pagination */
nav[role="navigation"] svg {
    width: 18px !important;
    height: 18px !important;
}

nav[role="navigation"] div.hidden.sm\:flex-1.sm\:flex.sm\:items-center.sm\:justify-between {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

nav[role="navigation"] span.relative.z-0.inline-flex.shadow-sm.rounded-md {
    display: inline-flex !important;
    gap: 4px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

nav[role="navigation"] span.relative.z-0.inline-flex.shadow-sm.rounded-md > * {
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

/* ===================================================
   GOOGLE TRANSLATE CUSTOM STYLING & BANNER SUPPRESSION
   =================================================== */
/* Hide standard Google Translate top banner, iframe, tooltip, and toolbar */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-te-gadget-simple,
.skiptranslate:not(.allow-translate) {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#google_translate_element {
    display: none !important;
}

.goog-tooltip, 
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Custom Language Dropdown Styling */
.custom-lang-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0 !important;
    color: #0A2540 !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.custom-lang-btn:hover,
.custom-lang-btn:focus,
.custom-lang-btn[aria-expanded="true"] {
    background: #F8FAFC;
    border-color: #CBD5E1 !important;
    color: var(--brand-green) !important;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
}

.lang-dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.12) !important;
    min-width: 180px;
    padding: 6px;
    margin-top: 6px !important;
    z-index: 1055 !important;
}

.lang-dropdown-menu .dropdown-item {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    color: #1E293B;
    transition: all 0.15s ease;
}

.lang-dropdown-menu .dropdown-item:hover {
    background-color: #EBF7E7;
    color: #15803D;
}

.lang-dropdown-menu .dropdown-item.active {
    background-color: var(--brand-green);
    color: #FFFFFF;
}

.lang-dropdown-menu .dropdown-item.active .badge {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   PREMIUM PRELOADER COMPONENT
   ========================================================================== */
#sbf-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0F2D4A 0%, #06182C 75%, #04101E 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
    user-select: none;
    pointer-events: all;
}

#sbf-preloader.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    max-width: 440px;
    padding: 24px;
}

/* Glowing Aura Ambient Rings */
.preloader-halo {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.preloader-ring-outer {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(89, 162, 69, 0.45);
    animation: sbfSpinCounterClockwise 12s linear infinite;
}

.preloader-ring-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #59A245;
    border-right-color: rgba(89, 162, 69, 0.3);
    animation: sbfSpinClockwise 1.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    filter: drop-shadow(0 0 10px rgba(89, 162, 69, 0.65));
}

.preloader-logo-card {
    width: 104px;
    height: 104px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(89, 162, 69, 0.15);
    position: relative;
    z-index: 2;
    animation: sbfLogoPulse 2.4s ease-in-out infinite alternate;
}

.preloader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Typography & Subtitle */
.preloader-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preloader-badge-tag {
    font-size: 0.68rem;
    color: #A3E635;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(89, 162, 69, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(89, 162, 69, 0.3);
}

/* Elegant Progress Track */
.preloader-progress-track {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #59A245, #9AE6B4, #59A245);
    border-radius: 10px;
    animation: sbfProgressMove 1.8s ease-in-out infinite;
    box-shadow: 0 0 8px #59A245;
}

@keyframes sbfSpinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sbfSpinCounterClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes sbfLogoPulse {
    0% { transform: scale(0.96); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
    100% { transform: scale(1.03); box-shadow: 0 14px 40px rgba(89, 162, 69, 0.35); }
}

@keyframes sbfProgressMove {
    0% { width: 0%; transform: translateX(-20%); }
    50% { width: 70%; transform: translateX(20%); }
    100% { width: 100%; transform: translateX(100%); }
}



