/* ============================================
   NGO Management System - Main Stylesheet
   Modern, Premium, Glassmorphism, Gradients
   Bootstrap 5.3 Compatible
   Version: 2.0.0
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #6ea8fe;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --primary-gradient-hover: linear-gradient(135deg, #0b5ed7 0%, #094db1 100%);
    
    /* Secondary Colors */
    --danger-color: #dc3545;
    --danger-dark: #b02a37;
    --danger-gradient: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    
    /* Neutral Colors */
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(10px);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Borders */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-pill: 50rem;
    --border-radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1060;
    --z-loading: 9999;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

.text-primary { color: var(--primary-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

/* Gradient brand backgrounds — but NEVER when Bootstrap's bg-opacity-* helper is
   in play, otherwise soft icon tints turn into a solid gradient block that hides
   the icon sitting on top of it. */
.bg-primary:not([class*="bg-opacity-"]) { background: var(--primary-gradient) !important; }
.bg-danger:not([class*="bg-opacity-"]) { background: var(--danger-gradient) !important; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hover-shadow {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl) !important;
}

.transition-all {
    transition: all var(--transition-base) ease-in-out;
}

.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    transition: background var(--transition-fast);
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-100);
}

/* ============================================
   NAVBAR STYLING
   ============================================ */
.navbar {
    transition: all var(--transition-base);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFade 0.2s ease-out;
}

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

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 0.5rem 1rem 0.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-400);
    color: var(--gray-700);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-700);
    color: white;
    border-color: var(--gray-700);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Button Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius-xl);
    background: white;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7) 0%, rgba(10, 88, 202, 0.8) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-header h1 {
    color: white;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    position: relative;
    z-index: 2;
}

/*======================================
   Active nav menu 
  ======================================*/
.nav-link.active {
    color: #ffffff !important;         /* Text ka rang safed karne ke liye */   
    padding: 8px 16px;                /* Text ke aas-paas thodi jagah (space) dene ke liye */
    border-radius: 4px;               /* Kono ko thoda rounded/smooth karne ke liye */
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-control,
.form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   DONATION AMOUNT BUTTONS
   ============================================ */
/* Responsive grid: 2 per row on phones, 4 per row from tablets up */
.amount-btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

@media (min-width: 576px) {
    .amount-btn-group {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.amount-btn {
    width: 100%;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.75rem 0.85rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.amount-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    background-color: var(--gray-200);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.counter {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    font-size: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

footer h5,
footer h6 {
    color: white;
    font-weight: 700;
}

footer a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

footer a:hover {
    color: white;
}

.hover-white:hover {
    color: white !important;
    padding-left: 5px;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    transition: all var(--transition-base);
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#backToTop {
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#backToTop i {
    color: #ffffff; /* Icon ka color white ho jayega */
}

/* ============================================
   LOADING SCREEN / PRELOADER
   ============================================ */
.dz-loading-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(var(--bs-primary-rgb, 13, 110, 253), 0.10) 0%, transparent 55%),
        var(--loader-bg, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.dz-loading-screen.dz-loading-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dz-loader-inner {
    text-align: center;
    padding: 1.5rem;
    max-width: 20rem;
}

.dz-loader-ring {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.15rem;
    display: grid;
    place-items: center;
}

.dz-loader-ring-track,
.dz-loader-ring-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-sizing: border-box;
}

.dz-loader-ring-track {
    border: 3px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.16);
}

.dz-loader-ring-arc {
    border: 3px solid transparent;
    border-top-color: var(--primary-color, #0d6efd);
    border-right-color: var(--primary-color, #0d6efd);
    animation: dzSpin 0.9s linear infinite;
}

.dz-loading-logo {
    position: relative;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--primary-color, #0d6efd);
    animation: dzPulse 1.4s ease-in-out infinite;
}

.dz-loader-brand {
    margin: 0 0 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--loader-text, #212529);
}

.dz-loader-bar {
    width: 150px;
    height: 4px;
    margin: 0 auto;
    border-radius: 50rem;
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.15);
    overflow: hidden;
}

.dz-loader-bar > span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-gradient, linear-gradient(135deg, #0d6efd, #0a58ca));
    animation: dzLoaderSlide 1.15s ease-in-out infinite;
}

@keyframes dzSpin {
    to { transform: rotate(360deg); }
}

@keyframes dzPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.72; }
}

@keyframes dzLoaderSlide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(240%); }
}

/* Never let the preloader hide content for users who disable JS/animations */
@media (prefers-reduced-motion: reduce) {
    .dz-loader-ring-arc,
    .dz-loading-logo,
    .dz-loader-bar > span {
        animation-duration: 2.5s;
    }
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   CONTENT BODY (Blog, Pages)
   ============================================ */
.content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.content-body h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.content-body h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-body p {
    margin-bottom: 1.25rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: 1.5rem 0;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--gray-50);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

.content-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--primary-dark);
}

/* ============================================
   ACCORDION (FAQs)
   ============================================ */
.accordion-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: white;
    color: var(--gray-800);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border: 5px solid var(--primary-color) !important ;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(4px);
}

/* ============================================
   TABLES
   ============================================ */
.table {
    vertical-align: middle;
}

.table thead th {
    background-color: var(--gray-50);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* ============================================
   SWIPER SLIDER CUSTOMIZATION
   ============================================ */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link::after {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1.25rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    footer,
    #backToTop,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}
/* ============================================
   UI POLISH PASS
   Contrast, icon visibility, layout & responsive fixes.
   Kept last in the file so it wins over earlier rules.
   ============================================ */

/* ---- 1. Readable secondary/muted text (WCAG AA on white) ---- */
:root {
    --text-secondary: #4b5563;   /* 7.6:1 on #fff */
    --text-muted: #5c6672;       /* 6.0:1 on #fff */
    --loader-bg: #ffffff;
    --loader-text: #212529;
}

.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
small.text-muted, .small.text-muted, .form-text { color: var(--text-muted) !important; }

/* ---- 2. Icon contrast -------------------------------------- */
/* Icons inherited a very light grey and were nearly invisible.  */
.bi { vertical-align: -0.125em; }

.text-white .bi,
.bg-primary .bi,
.bg-danger .bi,
.bg-success .bi,
.bg-dark .bi,
.btn-primary .bi,
.btn-danger .bi,
.btn-success .bi,
.navbar-dark .bi,
footer .bi { color: inherit; }

/* Circular icon badges: always solid, tinted background + dark icon */
.icon-box,
.feature-icon,
.stat-icon,
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.12);
    border-radius: var(--border-radius-lg);
}

.icon-box.icon-box-primary { color: #fff; background: var(--primary-gradient); }

/* Social icons in the footer need a visible resting state */
.social-icon,
.social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover,
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Link-styled buttons and close buttons on dark surfaces */
.bg-primary .btn-close,
.bg-dark .btn-close,
.alert-dark .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ---- 3. Focus visibility (keyboard users) ------------------- */
:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.55);
    outline-offset: 2px;
}

.skip-link:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100000;
    background: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
}

/* ---- 4. No horizontal overflow anywhere -------------------- */
html, body { max-width: 100%; overflow-x: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; }

/* Long words / URLs used to blow out cards on small screens */
p, li, td, th, dd, .card-text, .breadcrumb-item { overflow-wrap: break-word; }

/* Tables scroll instead of breaking the layout */
.table-responsive { -webkit-overflow-scrolling: touch; }

@media (max-width: 767.98px) {
    .table:not(.table-fixed) { min-width: 34rem; }
}

/* ---- 5. Responsive rhythm ---------------------------------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bs-body-bg, #fff);
        max-height: 80vh;
        overflow-y: auto;
    }

    .hero-section {
        min-height: 70vh !important;
        text-align: center;
    }

    .hero-section .btn { margin-bottom: 0.5rem; }
}

@media (max-width: 767.98px) {
    section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }

    .display-1, .display-2, .display-3 { font-size: 2.1rem; }
    .display-4, .display-5 { font-size: 1.75rem; }
    .lead { font-size: 1rem; }

    /* Stacked, full-width actions read much better on phones */
    .btn-group.w-100 { flex-wrap: wrap; }
    .page-header-admin { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .page-header-admin .d-flex { width: 100%; flex-wrap: wrap; }

    .card-body { padding: 1.15rem; }

    /* Tap targets: minimum 44px height */
    .btn, .form-control, .form-select { min-height: 44px; }
    .btn-sm { min-height: 38px; }
}

@media (max-width: 575.98px) {
    .glass-card { border-radius: var(--border-radius-lg); }
    .dz-loader-ring { width: 66px; height: 66px; }
    #backToTop { right: 1rem; bottom: 1rem; }
    .modal-dialog { margin: 0.5rem; }
}

/* Fluid type for very large screens */
@media (min-width: 1400px) {
    .container { max-width: 1280px; }
}

/* ---- 6. Admin-style toggle cards (also used in admin panel) - */
.settings-toggle-card {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.06);
    border: 1px solid rgba(var(--bs-primary-rgb, 13, 110, 253), 0.18);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.15rem;
}

.form-switch.form-switch-lg .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-switch.form-switch-lg .form-check-label { padding-left: 0.35rem; }

/* ============================================
   v3 PASS - lightbox, sponsor ribbon, comments, video cards
   ============================================ */

/* Universal lightbox (replaces per-item Bootstrap modals) */
.dz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(4px);
}
.dz-lightbox.is-open { display: flex; }
body.dz-lightbox-open { overflow: hidden; }
.dz-lightbox-figure {
    margin: 0;
    max-width: min(1100px, 96vw);
    text-align: center;
}
.dz-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: .75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.dz-lightbox-caption {
    display: block;
    margin-top: .85rem;
    color: #fff;
}
.dz-lightbox-title { display: block; font-weight: 700; }
.dz-lightbox-desc { display: block; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.dz-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
}
.dz-lightbox-close:hover { background: rgba(255, 255, 255, .26); }

/* Sponsored profiles stay visible with a ribbon instead of disappearing */
.sponsored-ribbon {
    position: absolute;
    inset: auto 0 auto 0;
    top: 42%;
    z-index: 3;
    padding: .55rem .75rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.card.is-sponsored img { filter: saturate(.55) brightness(.9); }

/* Comment section - mirrors the article column width above it */
.comment-section .form-control { border-radius: .6rem; }
.comment-section h5,
.comment-section h6 { line-height: 1.3; }
.comment-section .comment-item:last-child { border-bottom: 0 !important; }
@media (max-width: 575.98px) {
    .comment-section { padding: 1.15rem !important; }
    .comment-section .form-label { font-size: .875rem; }
}

/* Video cards */
.video-card iframe { border: 0; }

/* Global guard against horizontal scrolling on small screens */
html, body { max-width: 100%; overflow-x: hidden; }
img, iframe, table { max-width: 100%; }

/* ============================================
   Icon buttons - perfectly centred glyphs
   (theme toggle, back-to-top, social pills)
   ============================================ */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn > i,
.icon-btn > svg { display: block; line-height: 1; font-size: 1.1rem; }
.icon-btn-sm { width: 2.25rem; height: 2.25rem; }
.icon-btn-sm > i { font-size: .95rem; }
.icon-btn-outline {
    border-color: var(--bs-border-color, rgba(0, 0, 0, .15));
    color: var(--bs-body-color);
}
.icon-btn-outline:hover,
.icon-btn-outline:focus-visible { background: var(--bs-secondary-bg, rgba(0, 0, 0, .05)); color: var(--bs-primary); }
.icon-btn-primary { background: var(--bs-primary); color: #fff; }
.icon-btn-primary:hover,
.icon-btn-primary:focus-visible { color: #fff; transform: translateY(-2px); }
.icon-btn:focus-visible { outline: 3px solid rgba(13, 110, 253, .45); outline-offset: 2px; }

/* ============================================
   Leadership team cards + bio modal
   ============================================ */
.leader-card {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .08));
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(16, 24, 40, .12); }
.leader-photo {
    width: 132px;
    height: 132px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, rgba(13, 110, 253, .35) 100%);
}
.leader-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; display: block; }
.leader-photo-lg { width: 168px; height: 168px; }
.leader-role {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--bs-primary);
}
.leader-social { border: 1px solid var(--bs-border-color, rgba(0, 0, 0, .15)); color: var(--bs-body-color); }
.leader-social:hover { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.leader-modal .modal-content { border-radius: 1.25rem; box-shadow: 0 24px 60px rgba(16, 24, 40, .22); }
@media (max-width: 575.98px) {
    .leader-card { padding: 1.35rem 1rem; }
    .leader-photo { width: 108px; height: 108px; }
}

/* Admin-style reply feedback reused on the public side */
.reply-feedback { font-size: .9rem; }
