:root {
    --gov-blue: #0a1f3d;
    --gov-blue-dark: #061124;
    --gov-blue-light: #132d5e;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #a8882e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --sidebar-width: 250px;
    --header-height: 60px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background: var(--gray-100);
    overflow-x: hidden;
}

a {
    color: var(--gov-blue);
    text-decoration: none;
}
a:hover {
    color: var(--gold);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--gov-blue-dark), var(--gov-blue), var(--gov-blue-light)) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(10, 31, 61, 0.3);
    z-index: 1030;
    transition: all 0.3s ease;
}
.navbar.navbar-scrolled {
    background: var(--gov-blue-dark) !important;
    padding: 0.4rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}
.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease;
}
.navbar-scrolled .navbar-brand {
    font-size: 1.15rem;
}
.navbar .nav-cta-btn {
    padding: 0.4rem 1.25rem !important;
    font-size: 0.9rem;
}
.text-gold {
    color: var(--gold) !important;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--gov-blue-dark) !important;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--gov-blue-dark) !important;
    transform: translateY(-2px);
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--gold) !important;
}

/* Navbar toggler - ensure visible on mobile */
.navbar-toggler {
    border-color: rgba(255,255,255,0.3) !important;
    padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.4) !important;
}
.navbar-toggler-icon {
    width: 1.3em;
    height: 1.3em;
}

/* Nav Spacer */
.nav-spacer {
    height: 76px;
}
@media (max-width: 768px) {
    .nav-spacer {
        height: 60px;
    }
}

/* Mobile navbar collapse */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--gov-blue-dark);
        border-radius: 0 0 12px 12px;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-nav .nav-item {
        padding: 0.25rem 0;
    }
    .navbar-nav .nav-item .btn-gold,
    .navbar-nav .nav-item .btn-light {
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }
    .navbar-nav .nav-item .btn-light {
        background: rgba(255,255,255,0.1) !important;
        color: var(--white) !important;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .navbar-nav .nav-item .btn-light:hover {
        background: var(--gold) !important;
        color: var(--gov-blue-dark) !important;
    }
    .navbar .nav-cta-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gov-blue-dark) 0%, var(--gov-blue) 50%, var(--gov-blue-light) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Hero Slider */
.hero-slider-section {
    padding: 100px 0 60px;
}
.hero-slider-section .carousel-item {
    min-height: 400px;
}
.hero-slider-section .carousel-indicators {
    bottom: -20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hero-slider-section:hover .carousel-indicators {
    opacity: 1;
    visibility: visible;
}
.hero-slider-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    opacity: 0.6;
}
.hero-slider-section .carousel-indicators button.active {
    background: var(--gold);
    opacity: 1;
}
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hero-slider-section:hover .carousel-control-prev,
.hero-slider-section:hover .carousel-control-next {
    opacity: 0.8;
}
.hero-slider-section .hero-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: var(--gold-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(201,168,76,0.3);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}
.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
}
.stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gov-blue);
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* Grant Cards */
.grant-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.grant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.grant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(10, 31, 61, 0.1);
    border-color: var(--gold);
}
.grant-card:hover::before {
    opacity: 1;
}
.grant-category {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: var(--gold-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.grant-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gov-blue);
}
.grant-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.grant-card .grant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}
.grant-amount {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--gov-blue), var(--gov-blue-dark));
    padding: 80px 0;
}
.stats-section .stat-card {
    text-align: center;
    padding: 2rem;
}
.stats-section .stat-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.stats-section .stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
}
.stats-section .stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-content {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gov-blue-light), var(--gov-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}
.testimonial-author h6 {
    margin: 0;
    font-weight: 600;
}
.testimonial-author small {
    color: var(--gray-500);
}
.stars {
    color: var(--gold);
    font-size: 0.9rem;
}

/* FAQ */
.faq-section {
    background: var(--white);
}
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--gov-blue);
    padding: 1.25rem;
}
.accordion-button:not(.collapsed) {
    background: rgba(201,168,76,0.05);
    color: var(--gold-dark);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--gold);
}
.accordion-body {
    padding: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Contact Form */
.contact-section {
    background: var(--gray-100);
}
.contact-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    height: 100%;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-item:last-child {
    margin-bottom: 0;
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(10,31,61,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gold-dark);
    flex-shrink: 0;
}
.contact-info-item h6 {
    font-weight: 600;
    color: var(--gov-blue);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.contact-info-item a,
.contact-info-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
}
.contact-info-item a:hover {
    color: var(--gold);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}
.chat-btn:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}
.whatsapp-btn {
    background: #25D366;
}
.telegram-btn {
    background: #0088cc;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--gov-blue-dark), var(--gov-blue));
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.site-footer h5, .site-footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-brand i {
    color: var(--gold);
    font-size: 2rem;
}
.footer-desc {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--gov-blue-dark);
    transform: translateY(-3px);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}
.footer-contact i {
    color: var(--gold);
    margin-top: 3px;
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}
.footer-bottom {
    padding-bottom: 2rem;
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}
.disclaimer {
    font-size: 0.8rem !important;
}
.disclaimer i {
    color: var(--gold);
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    padding: 100px 0 60px;
}
.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(10, 31, 61, 0.08);
    border: 1px solid var(--gray-200);
    max-width: 480px;
    width: 100%;
}
.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-card .auth-header i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.auth-card .auth-header h3 {
    font-weight: 700;
    color: var(--gov-blue);
}
.auth-card .auth-header p {
    color: var(--gray-600);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Dashboard Layout */
#dashboard-wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--gov-blue-dark), var(--gov-blue));
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}
.sidebar-brand {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.sidebar-brand i {
    color: var(--gold);
    font-size: 1.5rem;
}
.sidebar-divider {
    margin: 0 1rem;
    border-color: rgba(255,255,255,0.1);
}
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}
.sidebar-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.sidebar-link.active {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Sidebar show/hide for mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-header {
    background: var(--gov-blue);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.dash-header-right {
    display: flex;
    align-items: center;
}
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 1060;
    position: relative;
}
.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}
.sidebar-toggle:active {
    background: rgba(255,255,255,0.15);
}

.dash-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--gray-100);
    min-width: 0;
    overflow-x: hidden;
}

/* Dashboard Widgets */
.stat-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}
.stat-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(10, 31, 61, 0.08);
}
.stat-widget-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-widget-icon.blue { background: rgba(10,31,61,0.1); color: var(--gov-blue); }
.stat-widget-icon.gold { background: rgba(201,168,76,0.15); color: var(--gold-dark); }
.stat-widget-icon.green { background: rgba(40,167,69,0.12); color: var(--success); }
.stat-widget-icon.red { background: rgba(220,53,69,0.1); color: var(--danger); }
.stat-widget-icon.purple { background: rgba(111,66,193,0.1); color: #6f42c1; }
.stat-widget-icon.orange { background: rgba(253,126,20,0.1); color: #fd7e14; }

.stat-widget-info h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: var(--gray-900);
}
.stat-widget-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Cards */
.card-dash {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.card-dash .card-header {
    overflow: hidden;
}
.card-dash:hover {
    box-shadow: 0 10px 30px rgba(10, 31, 61, 0.06);
}
.card-dash .card-header {
    background: none;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gov-blue);
}
.card-dash .card-body {
    padding: 1.5rem;
}

/* Table */
.table-dash {
    margin: 0;
}
.table-dash th {
    border-top: none;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
}
.table-dash td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--gray-200);
    font-size: 0.95rem;
}

/* Badges */
.badge-status {
    padding: 0.35em 0.75em;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
}
.badge-pending {
    background: rgba(255,193,7,0.15);
    color: #b8860b;
}
.badge-approved, .badge-active {
    background: rgba(40,167,69,0.12);
    color: var(--success);
}
.badge-rejected, .badge-suspended {
    background: rgba(220,53,69,0.1);
    color: var(--danger);
}
.badge-reviewed {
    background: rgba(23,162,184,0.1);
    color: var(--info);
}
.badge-resolved {
    background: rgba(40,167,69,0.1);
    color: var(--success);
}
.badge-open {
    background: rgba(40,167,69,0.1);
    color: var(--success);
}
.badge-closed {
    background: rgba(108,117,125,0.1);
    color: var(--gray-600);
}
.badge-draft {
    background: rgba(255,193,7,0.1);
    color: #b8860b;
}

/* Buttons */
.btn-primary-gov {
    background: var(--gov-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary-gov:hover {
    background: var(--gov-blue-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.2);
}
.btn-danger-gov {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-danger-gov:hover {
    background: #c82333;
    color: var(--white);
}
.btn-success-gov {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-success-gov:hover {
    background: #218838;
    color: var(--white);
}

/* Notification Dropdown */
.notif-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

/* Dark Mode */
body.dark-mode {
    --gray-100: #1a1d23;
    --gray-200: #2d3039;
    --gray-300: #3d4049;
    --gray-600: #9ca3af;
    --gray-700: #d1d5db;
    --gray-800: #e5e7eb;
    --gray-900: #f3f4f6;
    --white: #1f2937;
}
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #0a1628, #0f1f3d, #142d5e);
}
body.dark-mode .navbar {
    background: linear-gradient(135deg, #0a1628, #0f1f3d) !important;
}
body.dark-mode .site-footer {
    background: linear-gradient(135deg, #0a1628, #0f1f3d);
}
body.dark-mode .sidebar {
    background: linear-gradient(180deg, #0a1628, #0f1f3d);
}
body.dark-mode .auth-card,
body.dark-mode .grant-card,
body.dark-mode .testimonial-card,
body.dark-mode .card-dash,
body.dark-mode .stat-widget {
    background: #1f2937;
    border-color: #2d3039;
}
body.dark-mode .accordion-item {
    background: #1f2937;
    border-color: #2d3039;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #1a1d23;
    border-color: #3d4049;
    color: var(--gray-800);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1045;
    opacity: 0;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
}
@media (max-width: 991px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 0.6s ease;
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
    }
    .main-content {
        margin-left: 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-slider-section .carousel-item {
        min-height: auto;
    }
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 1.7rem;
    }
    .auth-card {
        padding: 2rem;
    }
    .stats-section .stat-number {
        font-size: 2.2rem;
    }
    .dash-header {
        padding: 0.6rem 1rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .grant-card {
        padding: 1.5rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .table-dash th,
    .table-dash td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .table-responsive {
        border: 0;
        margin: 0;
    }
    .card-dash .card-header {
        padding: 1rem 1.25rem;
    }
    .card-dash .card-body {
        padding: 1.25rem;
    }
    .stat-widget {
        padding: 1.25rem;
    }
    .modal-dialog {
        margin: 0.5rem;
    }
    .empty-state {
        padding: 2rem 1rem;
    }
    .footer-contact li {
        font-size: 0.9rem;
    }
    .btn-gold,
    .btn-primary-gov,
    .btn-danger-gov,
    .btn-success-gov {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    .hero-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    .notif-dropdown {
        position: fixed;
        right: 10px;
        left: 10px;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 991.98px) {
    .sidebar-link {
        padding: 0.85rem 1.5rem;
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 70px 0 40px;
    }
    .hero-slider-section {
        padding: 70px 0 40px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.35rem 1rem;
    }
    .hero-cta .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        margin-right: 0;
    }
    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .dash-content {
        padding: 1rem;
    }
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    .section {
        padding: 40px 0;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .section-header p {
        font-size: 0.9rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .stats-section {
        padding: 50px 0;
    }
    .stats-section .stat-card {
        padding: 1.25rem;
    }
    .stats-section .stat-number {
        font-size: 1.8rem;
    }
    .stats-section .stat-label {
        font-size: 0.85rem;
    }
    .auth-section {
        padding: 80px 1rem 40px;
    }
    .auth-card {
        padding: 1.5rem;
    }
    .auth-card .auth-header h3 {
        font-size: 1.3rem;
    }
    .auth-card .auth-header i {
        font-size: 2rem;
    }
    .grant-card {
        padding: 1.25rem;
    }
    .grant-card h5 {
        font-size: 1.05rem;
    }
    .grant-amount {
        font-size: 1rem;
    }
    .testimonial-card {
        padding: 1.25rem;
    }
    .testimonial-content {
        font-size: 0.9rem;
    }
    .site-footer {
        padding: 40px 0 0;
    }
    .footer-brand {
        font-size: 1.2rem;
    }
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    .site-footer h5, .site-footer h6 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    .stat-widget-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .stat-widget-info h4 {
        font-size: 1.2rem;
    }
    .card-dash .card-header {
        font-size: 0.9rem;
    }
    .dash-header {
        padding: 0.5rem 0.75rem;
    }
    .dash-user span {
        display: none;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .modal-body {
        padding: 1.25rem;
    }
    .modal-header {
        padding: 1rem 1.25rem;
    }
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .form-control, .form-select {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
    label.form-label {
        font-size: 0.9rem;
    }
    h4.fw-bold.text-gov-blue {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.35rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .hero-section {
        padding: 60px 0 30px;
    }
    .hero-slider-section {
        padding: 60px 0 30px;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .section {
        padding: 30px 0;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .section-header p {
        font-size: 0.85rem;
    }
    .auth-card {
        padding: 1.25rem;
    }
    .auth-card .auth-header h3 {
        font-size: 1.1rem;
    }
    .stats-section .stat-number {
        font-size: 1.5rem;
    }
    .stats-section .stat-icon {
        font-size: 2rem;
    }
    .stats-section .stat-card {
        padding: 1rem;
    }
    .grant-card {
        padding: 1rem;
    }
    .grant-card h5 {
        font-size: 0.95rem;
    }
    .grant-card p {
        font-size: 0.85rem;
    }
    .grant-amount {
        font-size: 0.9rem;
    }
    .testimonial-card {
        padding: 1rem;
    }
    .testimonial-author .avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .testimonial-author h6 {
        font-size: 0.85rem;
    }
    .site-footer {
        padding: 30px 0 0;
    }
    .site-footer h5, .site-footer h6 {
        font-size: 0.9rem;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
    .footer-contact li {
        font-size: 0.85rem;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
    .stat-widget {
        padding: 1rem;
    }
    .stat-widget-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .stat-widget-info h4 {
        font-size: 1rem;
    }
    .stat-widget-info p {
        font-size: 0.75rem;
    }
    .dash-content {
        padding: 0.75rem;
    }
    .card-dash .card-header {
        padding: 0.75rem 1rem;
    }
    .card-dash .card-body {
        padding: 1rem;
    }
    .table-dash th,
    .table-dash td {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    .navbar .nav-cta-btn {
        padding: 0.3rem 1rem !important;
        font-size: 0.8rem;
    }
    .btn-gold,
    .btn-primary-gov,
    .btn-danger-gov,
    .btn-success-gov {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }
    .modal-dialog {
        margin: 0.25rem;
    }
    h4.fw-bold.text-gov-blue {
        font-size: 1rem;
    }
    .section-divider {
        width: 40px;
    }
}

/* Utility */
.text-gov-blue { color: var(--gov-blue); }
.bg-gov-blue { background: var(--gov-blue); }
.bg-gov-gradient { background: linear-gradient(135deg, var(--gov-blue-dark), var(--gov-blue)); }
.text-gold { color: var(--gold); }
.bg-gold { background: var(--gold); }

.rounded-12 { border-radius: 12px; }
.rounded-16 { border-radius: 16px; }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== Responsive Enhancements ===== */

/* Extra small devices (phones, <400px) */
@media (max-width: 400px) {
    .hero-title { font-size: 1.15rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-badge { font-size: 0.65rem; padding: 0.2rem 0.6rem; }
    .stat-number { font-size: 1rem; }
    .stat-label { font-size: 0.65rem; }
    .section-header h2 { font-size: 1.05rem; }
    .section-header p { font-size: 0.8rem; }
    .section-divider { width: 32px; }
    .dash-content { padding: 0.5rem; }
    .card-dash .card-header { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
    .card-dash .card-body { padding: 0.75rem; }
    .table-dash th,
    .table-dash td { padding: 0.35rem 0.4rem; font-size: 0.7rem; }
    .btn-gold, .btn-primary-gov, .btn-danger-gov, .btn-success-gov,
    .btn-sm { padding: 0.25rem 0.6rem; font-size: 0.7rem; }
    .auth-card { padding: 1rem; }
    .auth-card .auth-header h3 { font-size: 1rem; }
    .auth-card .auth-header i { font-size: 1.6rem; }
    .form-control, .form-select { padding: 0.5rem 0.65rem; font-size: 0.8rem; }
    label.form-label { font-size: 0.8rem; }
    h4.fw-bold.text-gov-blue { font-size: 0.9rem; }
    .modal-header { padding: 0.75rem 1rem; }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: 0.75rem 1rem; }
    .stat-widget { padding: 0.75rem; }
    .stat-widget-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .stat-widget-info h4 { font-size: 0.9rem; }
    .stat-widget-info p { font-size: 0.7rem; }
    .contact-info-card { padding: 1rem; }
    .contact-info-item { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
    .contact-info-item h6 { font-size: 0.85rem; }
    .contact-info-item a,
    .contact-info-item p { font-size: 0.8rem; }
    .live-chat-widget { bottom: 16px; right: 16px; }
    .chat-btn { width: 50px; height: 50px; font-size: 1.4rem; }
    .notif-dropdown { width: auto; left: 5px; right: 5px; max-width: none; }
    .dropdown-menu-end { min-width: 180px; }
    .stats-section .stat-number { font-size: 1.2rem; }
    .stats-section .stat-icon { font-size: 1.6rem; }
    .stats-section .stat-card { padding: 0.75rem; }
    .stats-section .stat-label { font-size: 0.75rem; }
    .grant-card { padding: 0.75rem; }
    .grant-card h5 { font-size: 0.85rem; }
    .grant-card p { font-size: 0.78rem; }
    .grant-amount { font-size: 0.85rem; }
    .testimonial-card { padding: 0.75rem; }
    .testimonial-content { font-size: 0.82rem; }
    .testimonial-author .avatar { width: 30px; height: 30px; font-size: 0.75rem; }
    .testimonial-author h6 { font-size: 0.8rem; }
    .accordion-button { padding: 0.75rem; font-size: 0.82rem; }
    .accordion-body { padding: 0.75rem; font-size: 0.82rem; }
    .site-footer { padding: 24px 0 0; }
    .site-footer h5, .site-footer h6 { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .footer-links li { margin-bottom: 0.35rem; }
    .footer-links a { font-size: 0.78rem; }
    .footer-contact li { font-size: 0.78rem; }
    .footer-brand { font-size: 1rem; }
    .footer-bottom p { font-size: 0.75rem; }
    .input-group-text { font-size: 0.8rem; }
    .badge-status { font-size: 0.65rem; padding: 0.2em 0.5em; }
    .nav-link { padding: 0.4rem 0.75rem !important; font-size: 0.85rem; }
    .navbar .nav-cta-btn { padding: 0.25rem 0.75rem !important; font-size: 0.78rem; }
    .navbar-brand { font-size: 0.9rem; }
    .navbar-brand img { height: 28px !important; }
    .carousel-control-prev,
    .carousel-control-next { width: 8%; }
    select.form-control { font-size: 0.8rem; }
    .input-group > .form-control { font-size: 0.8rem; }
    .container { padding-left: 10px; padding-right: 10px; }
}

/* 400px-575px refinement */
@media (min-width: 401px) and (max-width: 575px) {
    .hero-title { font-size: 1.3rem; }
    .section-header h2 { font-size: 1.15rem; }
    .dash-content { padding: 0.65rem; }
    .card-dash .card-header { font-size: 0.85rem; }
    .contact-info-item { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
    .stat-widget-icon { width: 36px; height: 36px; font-size: 1rem; }
    .live-chat-widget { bottom: 16px; right: 16px; }
    .chat-btn { width: 52px; height: 52px; font-size: 1.5rem; }
}

/* Table dropdown positioning on small screens */
@media (max-width: 768px) {
    .dropdown-menu-end {
        min-width: 190px;
    }
    td .dropdown .dropdown-menu {
        font-size: 0.85rem;
    }
    td .dropdown .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
    }
    td .dropdown {
        position: static;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-dash th,
    .table-dash td {
        white-space: nowrap;
    }
    .sidebar-fixed-bottom {
        position: static;
    }
}

/* Dashboard stat widgets row on small screens */
@media (max-width: 575px) {
    .stat-widget {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    .stat-widget-icon {
        margin-bottom: 0;
    }
    .row.g-4 > .col-md-3,
    .row.g-4 > .col-md-4,
    .row.g-4 > .col-md-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Modal full-screen on very small devices */
@media (max-width: 480px) {
    .modal-dialog {
        margin: 0.25rem;
    }
    .modal-content {
        border-radius: 12px;
    }
    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Admin settings page - stack fields properly */
@media (max-width: 575px) {
    .card-dash .card-body .row.g-3 > .col-md-6,
    .card-dash .card-body .row.g-3 > .col-md-4,
    .card-dash .card-body .row.g-3 > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Better touch targets for mobile */
@media (pointer: coarse) {
    .sidebar-link,
    .dropdown-item,
    .btn-sm {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .sidebar-toggle {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Print */
@media print {
    .sidebar,
    .dash-header,
    .sidebar-toggle,
    .live-chat-widget,
    .site-footer,
    .navbar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .dash-content {
        padding: 0 !important;
    }
}

/* Report Fraud Section */
.fraud-report-section {
    background: linear-gradient(135deg, var(--gov-blue-dark) 0%, var(--gov-blue) 100%);
}
.fraud-report-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.fraud-report-card .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}
.fraud-report-card .btn-danger:hover {
    background: #bb2d3b;
    border-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,53,69,0.4) !important;
}
