



/* Navbar dropdown arrow vertical alignment */
.navbar-nav .nav-link .fa-chevron-down {
    vertical-align: text-top;
    margin-top: -8px;
}

/* Final mobile overrides to ensure social rail positioning applies on phones */

body[data-route="auth.login"] {
    background-color: #1e1f22;
}

body[data-route="auth.login"] .login-wrapper {
    /* Narrower sign-in window */
    max-width: 480px;
    /* reduce top spacing above the logo */
    padding: 3rem 1.25rem 2rem;
}

/* Reduce the space below the logo row on the login page */
body[data-route="auth.login"] .login-wrapper .mb-5 {
    margin-bottom: 1.5rem !important;
}

/* Constrain the fields width to create a single line look */
body[data-route="auth.login"] .login-wrapper form {
    /* Keep fields comfortably narrower than the container */
    max-width: 360px;
    margin: 0 auto;
}

body[data-route="auth.login"] .login-logo {
    height: 120px;
    filter: brightness(0) invert(1);
    transform: scale(1.3);
    transform-origin: center;
}

body[data-route="auth.login"] .login-label {
    color: #eaeaea;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

body[data-route="auth.login"] .login-input {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important; /* use container underline instead */
    border-radius: 0 !important;
    color: #ffffff !important; /* white font for visibility on black background */
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    height: 2.25rem;
    box-shadow: none !important;
    caret-color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}
body[data-route="auth.login"] .login-input:focus {
    box-shadow: none !important;
    outline: none !important;
}
/* Provide a full-width underline behind the input for consistent rendering */
body[data-route="auth.login"] .login-field {
    position: relative;
}
body[data-route="auth.login"] .login-field::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255,255,255,0.9);
    pointer-events: none;
}
/* When focusing, highlight the underline */
body[data-route="auth.login"] .login-field:focus-within::after {
    background: #ffffff;
}
/* Hide placeholders to match label-above style */
body[data-route="auth.login"] .login-input::placeholder { color: transparent !important; }
/* Keep underline look with browser autofill */
body[data-route="auth.login"] .login-input:-webkit-autofill,
body[data-route="auth.login"] .login-input:-webkit-autofill:hover,
body[data-route="auth.login"] .login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

body[data-route="auth.login"] .login-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 2px;
    padding: 0.5rem 0;
    font-weight: 600;
}
body[data-route="auth.login"] .login-btn:hover {
    background: #ffffff;
    color: #1e1f22;
}

body[data-route="auth.login"] .login-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
}
body[data-route="auth.login"] .login-link:hover {
    text-decoration: underline;
}
/* Add extra space between the password field and the Sign In button */
body[data-route="auth.login"] .login-wrapper .d-grid {
    margin-top: 4rem;
}
/* ------------------------------------------------------------------- */
/* Sign-in card width on login page */
body[data-route="auth.login"] .sign-in-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/* Professional Dashboard Design */

/* Enhanced Color Palette */
:root {
    --primary-color: #283891;       /* Dark Blue from logo */
    --secondary-color: #0e76bc;     /* Light Blue from logo */
    --accent-color: #39393a;        /* Dark Gray from logo */
    --text-color: #2c3e50;          /* Professional dark text */
    --text-primary: #2c3e50;        /* Primary text (for team section) */
    --text-secondary: #6c757d;      /* Secondary text (for team section) */
    --light-gray: #f8f9fa;          /* Light background */
    --success-color: #28a745;       /* Success green */
    --warning-color: #06b6d4;       /* Warning cyan (was yellow) */
    --danger-color: #dc3545;        /* Danger red */
    --info-color: #17a2b8;          /* Info cyan */
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-light: linear-gradient(135deg, #f8f9fa, #ffffff);
}



/* Auto-hide Navigation */
.auto-hide-nav {
    transition: top 0.3s ease-in-out;
}

.auto-hide-nav:hover {
    top: 0 !important;
}

/* Transparent Home Navigation - Horizontal forcing removed */

.transparent-home-nav .brand-text h4 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff !important; /* Strong white text for better contrast */
    margin-bottom: 0;
    font-weight: 800 !important; /* Extra bold text for better contrast */
}

.transparent-home-nav .brand-text small {
    font-size: 0.85rem;
    font-weight: 700 !important; /* Bold text for better contrast */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff !important; /* Strong white text for better contrast */
}

.transparent-home-nav .navbar-nav .nav-link {
    color: #ffffff !important; /* Strong white text for better contrast */
    transition: all 0.3s ease;
    border-radius: 0 !important; /* Remove rounded corners for plain text */
    background: none !important; /* Remove any background */
    box-shadow: none !important; /* Remove shadow effects */
    font-weight: 700 !important; /* Bold text for better contrast */
}

.transparent-home-nav .navbar-nav .nav-link:hover {
    color: #ffd700 !important; /* Bright gold for better visibility on hover */
    transform: translateY(-2px);
    background: none !important; /* Remove background for plain text */
    box-shadow: none !important; /* Remove shadow effects for plain text */
}

/* Desktop and larger tablets: ensure full-size navbar; mobile reductions apply only up to 768px */
@media (min-width: 769px) {
    /* Navbar collapse gap control removed */
    .transparent-home-nav .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        padding: 0.5rem 1rem !important; /* Reduced padding for plain text */
        letter-spacing: 0.45px !important;
        border-radius: 0 !important; /* Remove rounded corners for plain text */
        background: none !important; /* Remove any background */
        box-shadow: none !important; /* Remove shadow effects */
        color: #ffffff !important; /* Strong white text for better contrast */
        font-weight: 700 !important; /* Bold text for better contrast */
    }
    .transparent-home-nav .btn-login-transparent {
        padding: 0.6rem 1.1rem !important;
        font-size: 1.05rem !important;
    }
    [data-page="home"] .transparent-home-nav .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    /* Brand text a bit larger on desktop */
    .transparent-home-nav .brand-text h4 { font-size: 1.6rem !important; }
    .transparent-home-nav .brand-text small { font-size: 0.95rem !important; }
}

.transparent-home-nav .btn-donate-transparent {
    background: none !important; /* Remove background for plain text */
    border: none !important; /* Remove border for plain text */
    border-radius: 0 !important; /* Remove rounded corners for plain text */
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none !important; /* Remove shadow for plain text */
}

.transparent-home-nav .btn-donate-transparent:hover {
    background: none !important; /* Remove background for plain text */
    transform: none !important; /* Remove transform for plain text */
    box-shadow: none !important; /* Remove shadow for plain text */
    color: #ffa500 !important; /* Change color on hover instead */
}

.transparent-home-nav .btn-login-transparent {
    border: none !important; /* Remove border for plain text */
    border-radius: 0 !important; /* Remove rounded corners for plain text */
    color: #ffffff !important; /* Strong white text for better contrast */
    font-weight: 700 !important; /* Bold text for better contrast */
    transition: all 0.3s ease;
    box-shadow: none !important; /* Remove shadow for plain text */
    background: none !important; /* Remove background for plain text */
}

.transparent-home-nav .btn-login-transparent:hover {
    border: none !important; /* Remove border for plain text */
    background: none !important; /* Remove background for plain text */
    transform: none !important; /* Remove transform for plain text */
    color: #ffd700 !important; /* Bright gold for better visibility on hover */
    box-shadow: none !important; /* Remove shadow for plain text */
}





/* Home page specific - no background */
[data-page="home"] .transparent-home-nav {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}





[data-page="home"] .transparent-home-nav .brand-text h4,
[data-page="home"] .transparent-home-nav .brand-text small {
    color: #ffffff !important; /* Strong white text for better contrast */
    font-weight: 800 !important; /* Extra bold text for better contrast */
}

[data-page="home"] .transparent-home-nav .navbar-nav .nav-link {
    color: #ffffff !important; /* Strong white text for better contrast */
    font-weight: 700 !important; /* Bold text for better contrast */
}

[data-page="home"] .transparent-home-nav .navbar-nav .nav-link:hover {
    color: #ffd700 !important; /* Bright gold for better visibility on hover */
    background: none !important; /* Remove background for plain text */
    box-shadow: none !important; /* Remove shadow effects for plain text */
}

[data-page="home"] .transparent-home-nav .btn-login-transparent {
    border: none !important; /* Remove border for plain text */
    color: #ffffff !important; /* Strong white text for better contrast */
    background: none !important; /* Remove background for plain text */
    box-shadow: none !important; /* Remove shadow for plain text */
    font-weight: 700 !important; /* Bold text for better contrast */
}

[data-page="home"] .transparent-home-nav .btn-login-transparent:hover {
    border: none !important; /* Remove border for plain text */
    background: none !important; /* Remove background for plain text */
    color: #ffd700 !important; /* Bright gold for better visibility on hover */
    transform: none !important; /* Remove transform for plain text */
    box-shadow: none !important; /* Remove shadow for plain text */
    text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.95), 4px 4px 12px rgba(0, 0, 0, 0.9), 3px 3px 8px rgba(0, 0, 0, 0.8), 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6) !important; /* Enhanced gold glow effect on hover with stronger shadows */
}
}



/* Keep home page header styling even when scrolled */
[data-page="home"] .transparent-home-nav.scrolled {
    background: rgba(26, 35, 126, 0.88) !important; /* stronger when scrolled */
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}



/* Auto-hide Navigation */
.auto-hide-nav {
    transition: top 0.3s ease-in-out;
}

.auto-hide-nav:hover {
    top: 0 !important;
}

/* Navigation Banner */
.university-nav-banner {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.quick-links {
    display: flex;
    gap: 2rem;
}

.nav-link-modern {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link-modern:hover {
    color: #ffd700;
}

.emergency-info {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Homepage Enhancement Styles */

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Background gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #0a58ca 100%);
}

/* Hero title enhancements */
.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle-accent {
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Impact section styling */
.impact-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

/* Program cards styling */
.program-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* Call to action styling */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

/* News section styling */
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.news-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* Use data attributes for more specific targeting */
[data-device="mobile"] .hero-container-modern {
    background: none;
    background-attachment: scroll;
}

[data-device="desktop"] .hero-container-modern {
    background: none;
    background-attachment: initial;
}

[data-device="tablet"] .hero-container-modern {
    background: none;
    background-attachment: initial;
}

/* Modern Hero Section */
.hero-container-modern {
    position: relative;
    /* Desktop: full viewport height; mobile overrides adjust below */
    height: 100svh;
    height: 100lvh; /* Large viewport unit */
    height: 100dvh; /* Dynamic viewport unit (Safari/iOS) */
    height: 100vh;  /* Legacy fallback */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: transparent; /* avoid dark band under hero on mobile */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    margin-top: -2; /* Remove margin to eliminate white space */
    /* No extra bottom padding; tiles will sit just below or slightly overlap via small pull-up */
}

/* Mobile optimizations for hero background */

/* Mobile ticker styles (no vh/dvh changes) */
@media (max-width: 768px) {
    /* Hide hero paragraph text on mobile but keep its space */
    .hero-description-modern {
        visibility: hidden !important;
        text-shadow: none !important;
    }
    /* Keep stats card clear of the social rail on mobile */
    .hero-stats-modern {
        max-width: 75%;
        padding: 0.75rem 0.75rem;
        margin-left: auto;
        margin-right: auto;
        min-height: 120px; /* keep card height so Donate doesn’t move up */
    }
    .mobile-rolling-message {
        display: none !important; /* Hide ticker on mobile */
    }
    /* Video functionality removed */
    /* .mobile-rolling-message .ticker-track {
        color: #fff !important;
        display: inline-block;
        padding-left: 100%;
        animation: yem-scroll-left 14s linear infinite;
        text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.25);
    } */
}

/* @keyframes yem-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
} */

@media (max-width: 480px) {
    .hero-container-modern {
        min-height: 500px;
    /* Show more of the image on very small screens */
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    }
}

/* Donate Button Specific Styling */
.btn-donate-control {
    background: rgba(40, 167, 69, 0.3) !important;
    border-color: rgba(40, 167, 69, 0.6) !important;
    color: #fff !important;
}

.btn-donate-control:hover {
    background: rgba(40, 167, 69, 0.5) !important;
    border-color: rgba(40, 167, 69, 0.8) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4) !important;
}

/* Pulse animation for donate icon */
.pulse {
    animation: pulse-heart 0.6s ease-in-out;
}

/* Main Orange Donate Button */
.btn-donate-orange {
    background: linear-gradient(135deg, #ff9500 0%, #ff7b00 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    /* Responsive sizing for different screen sizes */
    padding: clamp(0.4rem, 1.2vw, 0.7rem) clamp(0.6rem, 2vw, 1rem) !important;
    font-size: clamp(0.8rem, 1.5vw, 1rem) !important;
}

.btn-donate-orange:hover {
    background: linear-gradient(135deg, #ff7b00 0%, #ff6600 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.6) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.btn-donate-orange:active {
    background: linear-gradient(135deg, #ff6600 0%, #e55100 100%) !important;
    transform: translateY(0px) !important;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4) !important;
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Video controls removed */

.hero-overlay-modern {
    display: none !important;
}

/* Remove mobile overlay as well */
@media (max-width: 768px) {
    .hero-overlay-modern {
        display: none !important;
    }
}

.hero-content-modern {
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title-modern {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-description-modern {
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Badge styles removed */

.hero-badge {
    display: inline-block;
    position: relative;
    z-index: 11;
}

/* Desktop-specific hero badge sizing */
@media (min-width: 992px) {
    .hero-badge .bg-white {
        font-size: 0.75rem !important;
        padding: 0.125rem 0.75rem !important;
    }
}

/* Badge styles removed */

.hero-title-modern {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle-accent {
    color: #ffc107;
    font-size: 2.5rem;
    font-weight: 300;
}

.hero-description-modern {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stats-modern {
    /* Transparent glass card for hero stats */
    background: rgba(255, 255, 255, 0.06) !important; /* even more transparent, force override */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    /* Wider by default so four stats breathe on desktop */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Left Side Vertical Stats Card */
.hero-stats-left {
    position: absolute;
    left: 1rem;
    top: 35%;
    transform: translateY(-50%);
    z-index: 15;
    background: none;
    border: none;
    box-shadow: none;
    width: 100px;
    padding: 0;
}

.stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-stats-left .stat-modern {
    text-align: center;
    color: white;
    filter: 
        drop-shadow(0 0 12px rgba(0, 0, 0, 1))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8))
        contrast(1.2)
        brightness(1.1);
}

.hero-stats-left .stat-number-modern {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.hero-stats-left .stat-label-modern {
    font-size: 0.65rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    font-weight: 700;
}

/* Desktop-only: reduce hero stats card height */
@media (min-width: 769px) {
    .hero-stats-modern { padding: 1.25rem 1rem !important; }
    .stat-modern { padding: 0.75rem 0.5rem !important; }
}

/* Prevent label wrapping on desktop to keep a clean single-line row */
@media (min-width: 992px) {
    .stat-label-modern { white-space: nowrap; letter-spacing: 0.02em; word-spacing: 0.08em; }
    /* Add vertical breathing room between the number and its label */
    .stat-modern { display: flex; flex-direction: column; align-items: center; row-gap: clamp(0.5rem, 1.2vw, 0.9rem); }
    /* Use a grid on desktop for precise spacing between stats */
    .hero-stats-modern .row {
        display: inline-grid; /* shrink to content width so it can be centered */
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        justify-items: center;
        column-gap: clamp(24px, 4.5vw, 64px);
        row-gap: 0; /* keep them on one line */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Remove default bootstrap gutters inside the grid to avoid double spacing */
    .hero-stats-modern .row > [class^="col"],
    .hero-stats-modern .row > [class*=" col"],
    .hero-stats-modern .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.stat-modern {
    padding: 1rem;
}

.stat-number-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.stat-label-modern {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.stat-label-modern {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.hero-actions-modern {
    margin-top: 2rem;
}

.btn-hero-modern-primary {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-hero-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-hero-modern-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-hero-modern-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-arrow {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Academic Section Styles */
.academic-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
}

/* Badge styles removed */

.section-title-modern {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle-modern {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Programs Grid */
.programs-grid-modern {
    margin-bottom: 3rem;
}

.program-card-featured {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.program-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-featured-badge {
    margin-bottom: 1.5rem;
}

.program-featured-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.program-featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.program-featured-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.program-featured-stats {
    margin-bottom: 2rem;
}

.stat-item-small {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.program-featured-action .learn-more-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Compact Program Cards */
.programs-quick-access {
    height: 100%;
}

.program-card-compact {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.program-card-compact:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-compact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.program-compact-content {
    flex: 1;
}

.program-compact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.program-compact-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.program-compact-count {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.program-compact-arrow {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Horizontal Program Cards */
.program-card-horizontal {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.program-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-horizontal-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.program-horizontal-content {
    flex: 1;
}

.program-horizontal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.program-horizontal-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.program-horizontal-stats /* Badge styles removed */

/* News & Impact Section */
.news-impact-section {
    padding: 6rem 0;
    background: white;
}

.news-section-modern {
    padding-right: 2rem;
}

.section-header-news {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.section-title-news {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-subtitle-news {
    color: #6c757d;
    margin-bottom: 0;
}

.news-card-modern {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.news-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    font-size: 0.8rem;
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: auto;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more-link:hover {
    color: var(--secondary-color);
}

/* Sidebar Widgets */
.news-sidebar {
    padding-left: 2rem;
}

.impact-widget, .cta-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

.widget-header {
    background: var(--light-gray);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.widget-content {
    padding: 1.5rem;
}

.impact-stat-item {
    margin-bottom: 2rem;
}

.impact-stat-item:last-child {
    margin-bottom: 0;
}

.impact-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.impact-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.impact-progress .progress {
    height: 6px;
    background: var(--light-gray);
    margin-bottom: 0.25rem;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-description {
    opacity: 0.9;
    line-height: 1.6;
}

.cta-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.highlight-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffc107;
}

.highlight-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.highlight-impact {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.btn-cta-modern {
    background: #ffc107;
    border: none;
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-cta-modern:hover {
    background: #ffca2c;
    color: #000;
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials-section-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Badge styles removed */

.featured-testimonial {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.testimonial-quote-large {
    padding: 2rem 0;
}

.quote-mark {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-text-large {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author-large strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.author-role {
    color: #6c757d;
    font-size: 1rem;
}

.testimonial-image-container {
    position: relative;
}

.testimonial-image-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.testimonial-stats-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
}

.stat-overlay-item {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.stat-overlay-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonials-grid {
    margin-top: 3rem;
}

.testimonial-card-modern {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.1rem;
    color: var(--text-color);
    display: block;
}

.testimonial-program {
    font-size: 0.9rem;
    color: #6c757d;
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-text {
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.testimonial-achievement {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.community-impact {
    text-align: center;
    padding: 3rem 0;
}

.impact-statement {
    max-width: 800px;
    margin: 0 auto;
}

/* ===================== Mobile Home View Overrides ===================== */
/* Ensure the home page renders on phones with scroll and visible sections */
@media (max-width: 768px) {
    /* Allow scrolling and avoid locking viewport height on mobile */
    body[data-page="home"] {
        overflow-y: auto !important;
    height: auto !important;
    min-height: auto !important; /* do not lock to viewport height */
    }

    /* Use ~85% viewport height for hero on mobile (requested: "85 vr") */
    .hero-container-modern { 
        padding-top: 0 !important; 
    height: 71dvh !important; /* modern mobile */
    height: 71vh !important;  /* fallback */
        min-height: 420px; /* ensure adequate height on small phones */
        background: transparent; /* avoid dark fallback showing if any gap */
    }
    /* Offset hero content below the fixed header + utility bar */
    .hero-container-modern > .container { padding-top: 74px; }

    /* Tame the large inline margin on the hero badge for small screens */
    .hero-badge { margin-top: 1.25rem !important; }

    /* Responsive hero stats and donate placement - HIDE STATS ON MOBILE */
    .hero-stats-modern { 
        display: none !important; 
    }
    
    /* Hide left stats on mobile */
    .hero-stats-left {
        display: none !important;
    }
    
    .btn-donate-orange { margin-top: 1.5rem !important; z-index: 14; }

    /* Make utility bar content wrap neatly on phones */
    /* Force single-column for auto-fit grids on mobile */
    .data-grid,
    .metric-showcase { grid-template-columns: 1fr !important; }



    /* Video controls removed */
}
}
/* Very small phones */
@media (max-width: 480px) {
    /* Maintain ~71% viewport height on very small phones */
    .hero-container-modern { height: 71dvh !important; height: 71vh !important; min-height: 380px; }
    
    /* Hide stats on small phones too */
    .hero-stats-modern { 
        display: none !important; 
    }
    
    .hero-stats-left {
        display: none !important;
    }
    
    /* Video controls removed */
}

    /* Video controls removed */
}

.impact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.impact-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

.impact-metrics {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.metric-item {
    padding: 1rem 0;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* CTA Section Modern */
.cta-section-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-container-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle-modern {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-features {
    margin-top: 2rem;
}

.cta-feature-item {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cta-action-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.action-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.action-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.pricing-highlight {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    color: #6c757d;
    font-size: 1rem;
}

.price-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-cta-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.btn-cta-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 56, 145, 0.3);
    color: white;
}

.btn-cta-outline-modern {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.btn-cta-outline-modern:hover {
    background: var(--light-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

/* Protruding effect for quick action buttons in dashboard cards */
.bb-card-body .btn,
.btn-nav-login,
.sidebar-nav-link,
.action-button-modern,
.btn-hero-primary,
.btn-hero-outline,
.btn-cta-primary,
.btn-cta-primary-modern,
.btn-cta-outline-modern,
.btn-hero-modern-primary,
.btn-hero-modern-outline {
    box-shadow: 0 4px 12px rgba(40, 56, 145, 0.15), 0 1px 0 rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
    /* Slightly raised effect */
    transform: translateY(-2px);
    transition: box-shadow 0.3s, transform 0.3s;
}

/* Plain text styling for navbar links - no protruding effect */
.navbar-nav .nav-link {
    box-shadow: none !important;
    transform: none !important;
    transition: color 0.3s ease;
}

/* On hover, increase protrusion for quick action buttons in dashboard cards */
.bb-card-body .btn:hover,
.btn-nav-login:hover,
.sidebar-nav-link:hover,
.action-button-modern:hover,
.btn-hero-primary:hover,
.btn-hero-outline:hover,
.btn-cta-primary:hover,
.btn-cta-primary-modern:hover,
.btn-cta-outline-modern:hover,
.btn-hero-modern-primary:hover,
.btn-hero-modern-outline:hover {
    box-shadow: 0 8px 24px rgba(40, 56, 145, 0.22), 0 2px 0 rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

/* Plain text hover styling for navbar links - no protruding effect */
.navbar-nav .nav-link:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Ensure sidebar nav links are always visible and protruding */
.sidebar-nav-link {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--primary-color);
}

/* For mobile, maintain protruding effect */
@media (max-width: 991px) {
    .sidebar-nav-link {
    height: 69.5dvh !important; height: 69.5vh !important;
        transform: translateY(-2px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== Team Section (shared styles for About and Staff pages) ===== */
.team-section { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.team-member-card-small {
    background: #ffffff; border-radius: 12px; box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease; overflow: hidden; border: 1px solid #f0f0f0; height: 100%;
}
.team-member-card-small:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-color: #667eea; }
.member-photo-small { position: relative; height: 120px; overflow: hidden; }
.member-img-small { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.team-member-card-small:hover .member-img-small { transform: scale(1.05); }
.member-placeholder-small {
    width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem;
}
.member-info-small { padding: 1rem 0.75rem; text-align: center; }
.member-name-small { color: var(--text-primary); margin-bottom: 0.25rem; font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.member-position-small { color: #667eea; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.75rem; line-height: 1.3; }
.member-description-preview { color: var(--text-secondary); font-size: 0.7rem; line-height: 1.4; margin-bottom: 0.75rem; height: 2.8em; overflow: hidden; }
.read-more-btn { font-size: 0.6rem; padding: 0.25rem 0.5rem; border-radius: 20px; border-width: 1px; }
.read-more-btn:hover { background-color: #667eea; border-color: #667eea; color: white; }
.staff-modal-photo { max-width: 200px; margin: 0 auto; }
.staff-modal-photo img { width: 100%; height: auto; border-radius: 10px; }
.staff-placeholder-large { width: 200px; height: 200px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; border-radius: 10px; margin: 0 auto; }
.contact-info a { color: #667eea; }
.contact-info a:hover { color: #495057; }
@media (max-width: 768px) {
    .member-photo-small { height: 100px; }
    .member-info-small { padding: 0.75rem 0.5rem; }
    .member-name-small { font-size: 0.85rem; }
    .member-position-small { font-size: 0.7rem; }
    .member-description-preview { font-size: 0.65rem; height: 2.6em; }
    .read-more-btn { font-size: 0.55rem; padding: 0.2rem 0.4rem; }
}
@media (max-width: 576px) {
    .member-photo-small { height: 80px; }
    .member-placeholder-small { font-size: 1.2rem; }
    .staff-modal-photo { max-width: 150px; }
    .staff-placeholder-large { width: 150px; height: 150px; font-size: 2rem; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-accent {
        font-size: 1.8rem;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .news-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .program-card-featured {
        padding: 2rem;
    }
    
    .cta-container-modern {
        padding: 2rem;
    }
}


/* ===================== New Home (USIU-style) ===================== */
/* Transparent navbar header - no background */
.transparent-home-nav {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: fixed !important;
    top: 30px; /* increased space from the very top */
    left: 0;
    right: 0;
    z-index: 1002;
    width: 100%;
    padding: 4px 0; /* slimmer */
    height: 48px; /* reduced height */
    border-bottom: none !important;
}

.transparent-home-nav .container {
    display: flex;
    justify-content: flex-start; /* keep natural flow: brand left, nav grows, login right */
    align-items: center;
    position: relative;
}

.transparent-home-nav .navbar-brand {
    color: white !important;
    position: static; /* was absolute; let flex flow handle positioning */
    /* Remove generic brand box styles in blue header */
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    display: flex;
    align-items: center;
}



.transparent-home-nav .navbar-nav {
    margin: 0; /* avoid forcing all nav groups to center */
}

.transparent-home-nav .navbar-nav.ms-auto {
    position: static;   /* was absolute; caused overlap */
    margin-left: auto;  /* push to far right */
    margin-right: 0;
}

/* Center the main nav links on desktop while keeping brand left and login right */
@media (min-width: 992px) {
    /* Navbar collapse center positioning removed */
}

.transparent-home-nav .brand-text h4 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white !important;
    margin-bottom: 0;
}

.transparent-home-nav .brand-text small {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: white !important;
}

.transparent-home-nav .navbar-nav .nav-link {
    font-size: 0.9rem !important;
    font-weight: 500;
    letter-spacing: 0.3px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 0.32rem 0.75rem !important;
    transition: all 0.3s ease;
    border-radius: 22px;
    margin: 0 !important; /* spacing handled via flex gap */
    text-transform: none;
}

.transparent-home-nav .navbar-nav .nav-link:hover {
    color: #ffa500 !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.transparent-home-nav .dropdown-menu-dark {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.transparent-home-nav .btn-login-transparent {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    color: white !important;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.28rem 0.6rem !important; /* override px-5 utility */
    font-size: 0.88rem !important;
}

.transparent-home-nav .btn-login-transparent:hover {
    border-color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}






.home-mega-nav {
    background: transparent !important;
    position: relative;
}


/* Fix link/brand/toggler colors on home header against global .navbar-nav !important rules */
[data-route="main.index"] .home-mega-nav .nav-link { color: #111 !important; }
[data-route="main.index"] .home-mega-nav .navbar-brand, 
[data-route="main.index"] .home-mega-nav .navbar-brand * { color: #111 !important; }
/* Home mega nav navbar-toggler styles removed */
.home-mega-nav .nav-link { color: #111; font-weight: 700; letter-spacing: .5px; }
.home-mega-nav .nav-link:hover { color: #ffd200; }
.home-mega-nav .dropdown-menu { border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.home-mega-nav .dropdown-item { padding:.5rem 1rem; }

/* Program tiles */
.program-tiles-section {
    background: transparent;
    border-top: none;
    position: relative;
    z-index: 30; /* ensure tiles display properly */
    /* Pull up to overlay video section - responsive */
    margin-top: clamp(-230px, -16vw, -190px);
    /* Cushion from any overlaid hero elements when pulled up - responsive */
    padding-top: clamp(45px, 8vw, 70px);
    padding-bottom: clamp(50px, 8vw, 80px);
    /* Ensure proper side margins */
    padding-left: clamp(15px, 3vw, 30px);
    padding-right: clamp(15px, 3vw, 30px);
}
.tile-card { 
    display:block; 
    background: rgba(255,255,255,.35); 
    backdrop-filter: blur(6px); 
    -webkit-backdrop-filter: blur(6px); 
    border:1px solid rgba(255,255,255,.5); 
    border-radius: clamp(6px, 1.5vw, 10px); 
    padding: clamp(6px, 1.5vw, 10px) clamp(6px, 1.5vw, 10px); 
    text-align:center; 
    text-decoration:none; 
    color:#fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,.15); 
    transition: all .25s ease; 
    width: 100%; 
    min-height: clamp(40px, 8vw, 55px); 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    /* Prevent margin cutting */
    margin: clamp(2px, 0.5vw, 4px);
    /* Allow more width for longer program names */
    max-width: clamp(100px, 18vw, 140px);
}
.tile-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tile-title{ 
    font-weight:800; 
    letter-spacing:.3px; 
    color:#fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,.4); 
    font-size: clamp(0.65rem, 1.8vw, 0.85rem); 
    line-height: 1.2; 
    margin-bottom: 2px; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    white-space: normal;
}
.tile-sub{ 
    font-size: clamp(0.5rem, 1.3vw, 0.65rem); 
    color: #ffffff; 
    text-transform: uppercase; 
    letter-spacing: .5px; 
    line-height: 1; 
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0;
    margin: 0;
    width: 100%;
    position: relative;
    bottom: 0;
    border-radius: 0 0 7px 7px;
    backdrop-filter: blur(2px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px){
    .program-tiles-section{ 
        margin-top: clamp(-160px, -22vw, -110px) !important; 
        padding-top: clamp(25px, 6vw, 45px);
        padding-left: clamp(10px, 2vw, 20px);
        padding-right: clamp(10px, 2vw, 20px);
        background: transparent !important;
    }
    .tile-card{
        background: rgba(255,255,255,.32) !important;
        border: 1px solid rgba(255,255,255,.45) !important;
        color: #ffffff !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
        padding: 6px 8px;
        min-height: 40px;
        max-width: clamp(85px, 22vw, 115px);
        margin: clamp(1px, 0.3vw, 3px);
    }
    .tile-card:hover{
        transform: none;
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }
    .tile-title{
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,.3) !important;
        font-size: 0.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }
    .tile-sub{
        color: rgba(255,255,255,.95) !important;
        font-size: 0.6rem;
        letter-spacing: .4px;
        text-shadow: 0 1px 2px rgba(0,0,0,.2) !important;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.15) !important;
        padding: 0.15rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(2px);
    }
}

/* Extra compact for very small phones */
@media (max-width: 576px){ 
    .program-tiles-section{ 
        margin-top: clamp(-160px, -27vw, -130px) !important; 
        padding-top: clamp(20px, 5vw, 35px);
        padding-left: clamp(8px, 1.5vw, 15px);
        padding-right: clamp(8px, 1.5vw, 15px);
        background: transparent !important;
    } 
}
@media (min-width: 992px){ 
    .program-tiles-section{ 
        margin-top: clamp(-250px, -19vw, -210px); 
        padding-top: clamp(70px, 10vw, 100px);
        padding-left: clamp(20px, 4vw, 40px);
        padding-right: clamp(20px, 4vw, 40px);
    } 
}
@media (min-width: 1200px){ 
    .program-tiles-section{ 
        margin-top: clamp(-270px, -21vw, -230px); 
        padding-top: clamp(90px, 12vw, 120px);
        padding-left: clamp(25px, 5vw, 50px);
        padding-right: clamp(25px, 5vw, 50px);
    } 
}
@media (min-width: 1600px){ 
    .program-tiles-section{ 
        margin-top: clamp(-290px, -23vw, -250px); 
        padding-top: clamp(110px, 14vw, 140px);
        padding-left: clamp(30px, 6vw, 60px);
        padding-right: clamp(30px, 6vw, 60px);
    } 
}
/* ===================== End New Home ===================== */

/* Global Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
    margin-top: 0 !important; /* prevent any top margin causing gap above header */
}

/* Modern Dashboard Layout - Blackboard Inspired */
.dashboard-container {
    background-color: #f5f6fa;
    min-height: 100vh;
    padding: 0;
}

.dashboard-sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    min-height: 100vh;
    padding: 2rem 1rem;
    position: fixed;
    width: 280px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dashboard-main {
    margin-left: 280px;
    padding: 2rem;
    background-color: #f5f6fa;
}

.dashboard-header-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(40, 56, 145, 0.2);
}

.dashboard-title-modern {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.dashboard-subtitle-modern {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Modern Card Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.dashboard-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header-modern {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.card-title-modern {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.card-content-modern {
    color: #6c757d;
    line-height: 1.6;
}

/* Metrics Dashboard */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.metric-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.metric-icon-modern {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Action Buttons */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-button-modern {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: block;
}

.action-button-modern:hover {
    color: var(--text-color);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.action-button-modern .btn-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-button-modern .btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-button-modern .btn-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.sidebar-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sidebar-nav-icon {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Dashboard Tables */
.table-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.table-modern th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-color);
    border: none;
    padding: 1rem;
}

.table-modern td {
    padding: 1rem;
    border-color: #f1f3f4;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

/* Progress Bars */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-grid,
    .metrics-row,
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title-modern {
        font-size: 2rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.section-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Dashboard Stats Cards */
.stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.stats-card.bg-primary::before { background: var(--gradient-primary); }
.stats-card.bg-success::before { background: linear-gradient(135deg, var(--success-color), #20c997); }
.stats-card.bg-warning::before { background: linear-gradient(135deg, var(--warning-color), #fd7e14); }
.stats-card.bg-info::before { background: linear-gradient(135deg, var(--info-color), var(--secondary-color)); }
.stats-card.bg-danger::before { background: linear-gradient(135deg, var(--danger-color), #e83e8c); }

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}
/* Professional Button Styling */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), var(--secondary-color));
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #e83e8c);
    color: var(--white);
}

/* Navigation Styling */
.navbar {
    background: none !important;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    background: transparent !important;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    position: relative;
    z-index: 10;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.navbar-brand:hover {
    transform: translateY(-4px);
    background: transparent;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.btn-nav-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 56, 145, 0.3);
    color: white !important;
}

.navbar-text {
    color: #6c757d !important;
    font-size: 0.85rem;
}

/* Dashboard Layout */
.dashboard-header {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Quick Actions Grid */
.quick-actions {
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: var(--primary-color);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.action-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-description {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Data Tables */
.table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table thead th {
    background: var(--light-gray);
    border: none;
    font-weight: 600;
    color: var(--text-color);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 56, 145, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Sidebar Styling */
.sidebar {
    background: var(--white);
    box-shadow: var(--shadow-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sidebar-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--light-gray);
    border-left-color: var(--primary-color);
}

.sidebar-item.active {
    background: var(--light-gray);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

/* Badge styles removed */

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background: var(--border-color);
}

.progress-bar {
    border-radius: 10px;
    background: var(--gradient-primary);
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-brand h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact .contact-item i {
    width: 20px;
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-copyright {
    color: #ccc;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links-inline {
    display: flex;
    gap: 2rem;
    justify-content: end;
}

.footer-links-inline a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-inline a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-links-inline {
        justify-content: start;
        margin-top: 1rem;
    }
    
    .modern-footer {
        padding: 3rem 0 2rem;
        margin-top: 3rem;
    }
}

/* Professional Black Footer */
.professional-footer {
    background-color: #111111 !important; 
    padding: 0.8rem 0;
    margin-top: 3rem;
}

.footer-logo-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.15rem;
}

.copyright-text {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.terms-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.donate-link {
    color: #ffd200;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.donate-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-links-footer-compact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.social-links-footer-compact a:hover {
    color: #ffd200; /* Gold accent */
}

.footer-nav-links-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.25rem;
}

.footer-nav-links-compact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-nav-links-compact a.donate-nav-link {
    color: #ffffff; /* Changed from #ffd200 to white */
    font-weight: 700; /* Changed from 600 to 700 for bolder text */
    position: relative;
    padding-right: 6px;
    margin-right: 2px;
}

.footer-nav-links-compact a.donate-nav-link:after {
    content: '|';
    position: absolute;
    right: -2px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.footer-nav-links-compact a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .professional-footer {
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .footer-copyright-section {
        justify-content: center;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .footer-copyright-section .d-flex {
        justify-content: center;
    }
    
    .footer-nav-links-compact {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Animations and Interactive Effects */

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Fade in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.slide-down {
    animation: slideDown 0.6s ease-out;
}

/* Intersection Observer animation classes */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Default state for elements that will animate */
.feature-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* Hover effects */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Loading animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Parallax effect for hero section */
.hero-container {
    transform: translateZ(0);
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation enhancement */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimization */
.hero-container,
.feature-card,
.testimonial-card,
.stats-section {
    will-change: transform, opacity;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .action-card {
        margin-bottom: 1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Chart and Visualization Styles */
.chart-container {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.chart-subtitle {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Simple Bar Chart */
.bar-chart {
    display: flex;
    align-items: end;
    height: 200px;
    gap: 1rem;
    padding: 1rem 0;
}

.bar {
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    min-width: 40px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}

.bar:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.bar-value {
    position: absolute;
    top: -25px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-color);
}

.bar-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Progress Rings */
.progress-ring {
    position: relative;
    display: inline-block;
    margin: 1rem;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.progress-ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.data-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.data-trend {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

/* Timeline Visualization */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 60px;
    margin-bottom: 1rem;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-light);
}

.timeline-content {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.timeline-time {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Metric Cards Alternative */
.metric-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.metric-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Activity Feed */
.activity-feed {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Modern Home Page Styles */

/* Hero Section - Video Background Removed */
.hero-container {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Using watermark background instead of video */
    background: transparent;
}

/* Video functionality removed */

.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(40, 56, 145, 0.6), rgba(14, 118, 188, 0.6));
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-accent {
    color: #ffc107 !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    margin-top: 2rem;
}

.btn-hero-primary {
       background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 56, 145, 0.4);
    color: white;
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 0 15px;
}

.search-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.btn-search {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.25rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: var(--primary-color);
}

.stats-container {
    position: relative;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonial-card {
    height: 100%;
}

.testimonial-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author small {
    display: block;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Call to Action Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-top: 3rem;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-section {
        margin-top: -40px;
    }
    
    .search-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Video functionality removed */
}

@media (max-width: 576px) {
    .hero-container {
        height: 70vh;
    }
    
    /* Video functionality removed */
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* Modern Navigation Styles */
.navbar {
    background: transparent !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Global anchor behavior: smooth scroll and header offset */
html { scroll-behavior: smooth; }
/* Ensure anchored elements aren’t hidden behind fixed nav/utility bars */
[id] { scroll-margin-top: 120px; }

/* Minimized Footer Styles */
.minimized-footer {
    margin-top: auto;
    border-top: 3px solid var(--primary-color);
    font-style: italic;
    font-weight: bold;
    font-family: "Amasis MT Pro", serif;
    /* Make footer transparent even when bg-dark is present */
    background: transparent !important;
    background-color: transparent !important;
}

.footer-brand-minimal span {
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
}

.footer-contact-minimal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact-minimal a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-decoration: none;
    font-style: italic;
    font-weight: bold;
}

.footer-contact-minimal a:hover {
    color: var(--primary-color) !important;
}

.footer-contact-minimal span {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: bold;
}

.social-links-minimal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links-minimal span {
    font-style: italic;
    font-weight: bold;
}

.social-link-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45); /* darker chip for contrast on transparent footer */
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.social-link-minimal:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.social-link-minimal:nth-child(1):hover { color: #1877f2; } /* Facebook */
.social-link-minimal:nth-child(2):hover { color: #1da1f2; } /* Twitter */
.social-link-minimal:nth-child(3):hover { color: #e4405f; } /* Instagram */
.social-link-minimal:nth-child(4):hover { color: #0077b5; } /* LinkedIn */
.social-link-minimal:nth-child(5):hover { color: #ff0000; } /* YouTube */
.social-link-minimal:nth-child(6):hover { color: #25d366; } /* WhatsApp */
.social-link-minimal:nth-child(7):hover { color: #ff6b6b; } /* Location */

/* Improve visibility of all footer icons on transparent backgrounds */
.minimized-footer i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-contact-minimal {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    
    .minimized-footer .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .minimized-footer .col-auto {
        text-align: center !important;
    }

    /* Reduce footer social icon sizes on mobile */
    .social-link-minimal { width: 30px; height: 30px; font-size: 0.8rem; }

    /* Extra-small phones: slightly smaller footer icons */
    .social-link-minimal { width: 28px; height: 28px; font-size: 0.75rem; }
}

.footer-copyright {
    color: #6c757d !important;
    font-size: 0.85rem;
}

/* Main Content Spacing */
.main-content {
    padding-top: 0;
}

/* Add top margin to non-home pages to account for fixed navbar */
/* Non-home pages: account for 24px top gap + 48px header + 16px inter-bar gap */
body:not([data-page="home"]) .main-content {
    padding-top: calc(24px + 48px + 16px);
}

/* Login page layout: push footer lower using 85vh content area */
body[data-route="auth.login"] .main-content {
    min-height: 80vh;
}
/* Remove extra margins from the base container wrapper on login */
body[data-route="auth.login"] .main-content > .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* Neutralize large padding if present */
body[data-route="auth.login"] .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Flash Messages Positioning */
/* Flash messages sit just below the header on non-home */
.container .alert {
    margin-top: calc(8px + 48px + 8px);
}

/* Donation Section Styles */
.donation-card {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    background: var(--white);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.donation-card .card-body {
    padding: 2rem 1.5rem;
}

.donation-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.donation-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.donation-card .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-donate {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.impact-stat {
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-3px);
}

.impact-stat i {
    margin-bottom: 1rem;
}

.impact-stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-stat p {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

/* Removed late global navbar override block to avoid conflicting !important rules */

/* Responsive Donation Section */
@media (max-width: 768px) {
    .donation-card h3 {
        font-size: 2rem;
    }
    
    .donation-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .impact-stat h3 {
        font-size: 1.8rem;
    }
}

/* Home-only mobile inline navbar fixes (Blue bar) - Horizontal forcing removed */

/* Narrow phones navbar controls removed */

/* Desktop navbar icon controls removed */

/* Donation Section Styles */
.donation-card {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    background: var(--white);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.donation-card .card-body {
    padding: 2rem 1.5rem;
}

.donation-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.donation-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.donation-card .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-donate {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.impact-stat {
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-3px);
}

.impact-stat i {
    margin-bottom: 1rem;
}

.impact-stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-stat p {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

/* Responsive Donation Section */
@media (max-width: 768px) {
    .donation-card h3 {
        font-size: 2rem;
    }
    
    .donation-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .impact-stat h3 {
        font-size: 1.8rem;
    }
}


 
 
/* Mobile logo container - remove white background */
@media (max-width: 768px) {
    .navbar-brand {
        background: transparent !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        transform: none !important;
    }
}

/* Announcement Modal Vertical Centering for Mobile */
@media (max-width: 768px) {
    /* Center the modal vertically on mobile */
    .responsive-announcement-modal {
        margin: 0 !important;
        max-width: 88vw !important;
        position: absolute !important;
        top: 48% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    /* Ensure modal dialog uses flexbox centering */
    #announcementModal .modal-dialog {
        height: 100vh;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust modal height for mobile viewing */
    #announcementModal .ann-card-container {
        height: clamp(200px, 42vh, 280px) !important;
        max-height: 60vh !important;
    }
    
    /* Ensure content doesn't overflow on small screens */
    #announcementModal .ann-content-area {
        padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px) 50px !important;
    }
    
    /* Adjust scrollable content for better mobile experience */
    #announcementModal .ann-scrollable-content {
        max-height: calc(42vh - 90px) !important;
        overflow-y: auto !important;
    }
}

/* Additional mobile responsiveness for very small screens */
@media (max-width: 480px) {
    .responsive-announcement-modal {
        max-width: 90vw !important;
    }
    
    #announcementModal .ann-card-container {
        height: clamp(180px, 38vh, 260px) !important;
        max-height: 55vh !important;
    }
    
    #announcementModal .ann-content-area {
        padding: 10px 14px 45px !important;
    }
    
    #announcementModal .ann-scrollable-content {
        max-height: calc(38vh - 80px) !important;
    }
}
/* Navigation Tabs with Transparent Blue Background */
.nav-pills .nav-link {
    background: rgba(40, 56, 145, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 56, 145, 0.15);
}

.nav-pills .nav-link.active {
    background: rgba(40, 56, 145, 0.3) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(40, 56, 145, 0.25);
}

/* Alternative nav-tabs styling with transparent blue */
.nav-tabs .nav-link {
    background: rgba(40, 56, 145, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.15);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(40, 56, 145, 0.15);
}

.nav-tabs .nav-link.active {
    background: rgba(40, 56, 145, 0.25) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    border-bottom: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

/* Tab content styling */
.tab-content {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    border: 1px solid rgba(40, 56, 145, 0.1);
    border-top: none;
}

.tab-pane {
    animation: fadeInUp 0.4s ease-out;
}

/* Enhanced donation modal tabs */
#donationTabs .nav-link {
    background: rgba(40, 56, 145, 0.12) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(40, 56, 145, 0.2);
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#donationTabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

#donationTabs .nav-link.active {
    background: rgba(40, 56, 145, 0.35) !important;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(40, 56, 145, 0.25);
    transform: translateY(-1px);
}


/* ================================ */
/* TABS STYLES (merged from tabs.css) */
/* ================================ */



/* ================================ */
/* TABS STYLES (merged from tabs.css) */
/* ================================ */

/* Navigation Tabs with Transparent Blue Background */
.nav-pills .nav-link {
    background: rgba(40, 56, 145, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 56, 145, 0.15);
}

.nav-pills .nav-link.active {
    background: rgba(40, 56, 145, 0.3) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(40, 56, 145, 0.25);
}

/* Alternative nav-tabs styling with transparent blue */
.nav-tabs .nav-link {
    background: rgba(40, 56, 145, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.15);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(40, 56, 145, 0.15);
}

.nav-tabs .nav-link.active {
    background: rgba(40, 56, 145, 0.25) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    border-bottom: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

/* Tab content styling */
.tab-content {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    border: 1px solid rgba(40, 56, 145, 0.1);
    border-top: none;
}

.tab-pane {
    animation: fadeInUp 0.4s ease-out;
}

/* Enhanced donation modal tabs */
#donationTabs .nav-link {
    background: rgba(40, 56, 145, 0.12) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(40, 56, 145, 0.2);
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#donationTabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

#donationTabs .nav-link.active {
    background: rgba(40, 56, 145, 0.35) !important;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(40, 56, 145, 0.25);
    transform: translateY(-1px);
}


/* ================================ */
/* TABS STYLES (merged from tabs.css) */
/* ================================ */
/* Navigation Tabs with Transparent Blue Background */
.nav-pills .nav-link {
    background: rgba(40, 56, 145, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 56, 145, 0.15);
}

.nav-pills .nav-link.active {
    background: rgba(40, 56, 145, 0.3) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(40, 56, 145, 0.25);
}

/* Alternative nav-tabs styling with transparent blue */
.nav-tabs .nav-link {
    background: rgba(40, 56, 145, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(40, 56, 145, 0.15);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
}

.nav-tabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.15) !important;
    color: var(--primary-color) !important;
    border-color: rgba(40, 56, 145, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(40, 56, 145, 0.15);
}

.nav-tabs .nav-link.active {
    background: rgba(40, 56, 145, 0.25) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    border-bottom: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

/* Tab content styling */
.tab-content {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    border: 1px solid rgba(40, 56, 145, 0.1);
    border-top: none;
}

.tab-pane {
    animation: fadeInUp 0.4s ease-out;
}

/* Enhanced donation modal tabs */
#donationTabs .nav-link {
    background: rgba(40, 56, 145, 0.12) !important;
    color: var(--primary-color) !important;
    border: 2px solid rgba(40, 56, 145, 0.2);
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#donationTabs .nav-link:hover {
    background: rgba(40, 56, 145, 0.2) !important;
    border-color: rgba(40, 56, 145, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 56, 145, 0.2);
}

#donationTabs .nav-link.active {
    background: rgba(40, 56, 145, 0.35) !important;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(40, 56, 145, 0.25);
    transform: translateY(-1px);
}


/* ================================ */
/* COMPACT ALERTS (merged from compact-alerts.css) */
/* ================================ */
/* Compact Alert Styles */
.alert {
    padding: 0.5rem 1rem !important; /* Reduce vertical padding */
    margin-bottom: 0.75rem !important; /* Reduce space between alerts */
}

.alert-dismissible {
    padding-right: 2.5rem !important; /* Ensure close button fits */
}

.alert-dismissible .btn-close {
    padding: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Make icon and text vertically aligned */
.alert i.fas {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Reduce font size slightly */
.alert {
    font-size: 0.9rem !important;
}

/* Make alerts more horizontally compact on desktop */
@media (min-width: 768px) {
    .container .alert {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ================================ */
/* ANNOUNCEMENTS (merged from announcements.css) */
/* ================================ */
/* Announcement Cards Styling for Consistent Sizing */

.announcement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ensure minimum height for consistency */
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Fixed image height for consistency */
.announcement-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
}

/* Card body with flexible layout */
.announcement-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    min-height: 0; /* Allow flex items to shrink */
}

/* Header area with badge and date */
.announcement-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-shrink: 0;
    min-height: 2rem;
}

/* Card title with fixed height */
.announcement-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 3rem; /* Fixed height for 2 lines */
    max-height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Card subtitle with fixed height */
.announcement-card .card-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    min-height: 1.5rem;
    max-height: 1.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

/* Card subtitle placeholder when no subtitle */
.announcement-card .card-subtitle-placeholder {
    height: 1.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* Card text with consistent height */
.announcement-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1; /* Take up remaining space */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 6.4rem; /* 4 lines Ã— 1.6 line-height */
    max-height: 6.4rem;
}

/* Card actions area - always at bottom */
.announcement-card .card-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* Type-specific border styling */
.announcement-card[data-type="urgent"] {
    border-left: 5px solid #dc3545;
}

.announcement-card[data-type="program"] {
    border-left: 5px solid #007bff;
}

.announcement-card[data-type="event"] {
    border-left: 5px solid #28a745;
}

.announcement-card[data-type="general"] {
    border-left: 5px solid #6c757d;
}

/* Badge styles removed */

/* Date styling */
.announcement-date {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Button styling */
.announcement-card .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .announcement-card {
        min-height: 400px;
    }
    
    .announcement-card .card-body {
        padding: 1rem;
    }
    
    .announcement-card .card-title {
        font-size: 1.1rem;
        min-height: 2.6rem;
        max-height: 2.6rem;
    }
    
    .announcement-card .card-text {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        min-height: 4.8rem;
        max-height: 4.8rem;
    }
    
    .announcement-card .card-img-top {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .announcement-card .card-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .announcement-card .announcement-date {
        align-self: flex-end;
        margin-top: -1.5rem;
    }
}

/* Ensure consistent spacing in button groups */
.announcement-card .btn + .btn {
    margin-left: 0.5rem;
}


/* ================================ */
/* DASHBOARD TABLES (merged from dashboard-tables.css) */
/* ================================ */
/* Global Dashboard Table Styles - Compact single row format like admin users */

/* Table container responsive wrapper */
.table-responsive {
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    overflow-x: auto;
}

/* Compact Attendance Table Styles */
.compact-attendance-table {
    font-size: 0.8rem;
}

.compact-attendance-table th {
    font-weight: 500;
    font-size: 0.75rem;
    color: #666;
    border-top: none;
    background-color: #f8f9fa;
    padding: 0.4rem 0.5rem;
}

.compact-attendance-table td {
    font-size: 0.8rem;
    color: #333;
    vertical-align: middle;
    border-color: #f0f0f0;
    padding: 0.3rem 0.5rem;
}

.compact-attendance-btns .btn {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    min-width: 28px;
    font-weight: 600;
}

.compact-attendance-btns {
    gap: 2px;
}

/* Table header styles */
.table th {
    font-weight: 500;
    font-size: 0.8rem;
    color: #666;
    border-top: none;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Table cell styles */
.table td {
    font-size: 0.9rem;
    color: #333;
    vertical-align: middle;
    border-color: #f0f0f0;
}

/* Badge styles removed */

/* Hover effect on table rows */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

/* Button styling */
.btn {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Action button links */
.btn a {
    color: inherit;
    text-decoration: none;
}

.btn a:hover {
    color: inherit;
}

/* Profile images in tables */
.table img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Avatar placeholders */
.table .rounded-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    background: rgba(108,117,125,0.2);
    border: 1px solid rgba(108,117,125,0.35);
    color: #adb5bd;
    font-weight: 700;
}

/* Status badges */
/* Badge styles removed */

/* Card styling */
.card {
    border-radius: 0.25rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background-color: #fff;
}

/* Text truncation for long content - removed sizing constraints */

/* Action column styling */
.table th:last-child,
.table td:last-child {
    text-align: right;
}

/* ID/Code styling */
.table code {
    font-size: 0.8rem;
    color: #495057;
    background-color: rgba(0,0,0,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Date/time styling */
.table .text-muted {
    font-size: 0.85rem;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 0.8rem;
        white-space: nowrap !important;
    }
    
    /* Keep table rows inline on mobile */
    .table tbody tr {
        white-space: nowrap !important;
    }
    
    .compact-attendance-table th {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
        white-space: nowrap !important;
    }
    
    .compact-attendance-table td {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
        white-space: nowrap !important;
    }
    
    .compact-attendance-btns .btn {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        min-width: 24px;
    }
}

/* Print styles */
@media print {
    .table-responsive {
        overflow: visible;
    }
    
    .btn,
    .btn-group {
        display: none;
    }
}


/* ================================ */
/* ABOUT PAGE (merged from about-page.css) */
/* ================================ */
/* About Page Specific Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --shadow-soft: 0 5px 20px rgba(0,0,0,0.1);
}

/* Video Popup Styles */
.video-popup-card-clean {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* Changed from 80% to auto to fit video */
    max-width: 1000px; /* Reduced from 1100px */
    background: transparent; /* Changed from white to transparent */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove shadow */
    z-index: 1050;
    overflow: visible; /* Change from hidden to visible */
    display: inline-block; /* Added to shrink container to content */
    border: none; /* Explicitly remove any border */
}

.video-popup-card-clean.maximized {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
}

.popup-controls-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1051;
    display: flex;
    gap: 5px;
}

.popup-btn-clean {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn-clean:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.video-popup-body-clean {
    padding: 0;
    position: relative;
    margin: 0; /* Remove any margin */
}

.popup-video-clean {
    width: auto; /* Changed from 100% to auto */
    height: 400px; /* Reduced from 450px */
    display: block;
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    max-width: 1000px; /* Reduced from 1100px */
    border: none !important; /* Force remove any border */
    outline: none !important; /* Remove focus outline */
    box-shadow: none !important; /* Remove any box shadow */
}

.popup-video-clean:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.video-popup-card-clean.maximized .popup-video-clean {
    max-height: 80vh;
}

.video-thick-border {
    border: none !important; /* Force remove the border */
    border-radius: 0 !important; /* Force remove rounded corners */
    outline: none !important; /* Remove any outline */
    box-shadow: none !important; /* Remove any shadow */
}

.video-thick-border:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* General video element styling to remove any blue borders */
video {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

video:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Backdrop */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1040;
}

/* Minimized Video Tab */
.minimized-video-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1030;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.minimized-video-tab:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.minimized-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Blur Effect */
.blur-content {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

body.video-playing::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 10;
    pointer-events: none;
}

/* Page Spacer to push footer to bottom */
.page-spacer {
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for video popup */
@media (max-width: 768px) {
    .video-popup-card-clean {
        max-width: 95vw; /* Use viewport width instead of percentage */
    }
    
    .popup-video-clean {
        height: 300px; /* Reduced from 320px for mobile */
        max-width: 95vw; /* Ensure it fits mobile screen */
    }
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button i {
    color: white;
    font-size: 2rem;
    margin-left: 8px; /* Slight offset for play icon */
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-popup.active {
    display: flex;
}

.video-popup-content {
    position: relative;
    width: 80%;
    max-width: 900px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.video-close i {
    color: #333;
    font-size: 1.2rem;
}

.video-close:hover {
    transform: rotate(90deg);
    background: #f8f9fa;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2rem;
    line-height: 1;
    color: rgba(102, 126, 234, 0.2);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 1.5rem;
    }
    
    .video-popup-content {
        width: 95%;
    }
    
    .video-close {
        right: 0;
        top: -50px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .video-section {
        padding: 3rem 0;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        padding-left: 1.5rem;
    }
}


/* ================================ */
/* MESSENGER (merged from messenger.css) */
/* ================================ */
/* Facebook Messenger-style Simple Messaging Interface */
:root {
    /* Facebook Messenger Colors */
    --messenger-blue: #0084ff;
    --messenger-blue-dark: #0066cc;
    --messenger-gray: #f0f0f0;
    --messenger-dark-gray: #65676b;
    --messenger-light-gray: #f5f5f5;
    --messenger-border: #e4e6ea;
    --messenger-green: #42b883;
    --messenger-red: #fa383e;
    --messenger-white: #ffffff;
    
    /* Layout */
    --header-height: 60px;
    --sidebar-width: 360px;
    --border-radius: 20px;
    --small-radius: 8px;
    --transition: all 0.2s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Dark Mode Facebook Messenger Colors */
    --messenger-blue: #0084ff;
    --messenger-blue-dark: #0066cc;
    --messenger-gray: #3a3b3c;
    --messenger-dark-gray: #e4e6ea;
    --messenger-light-gray: #242526;
    --messenger-border: #3a3b3c;
    --messenger-green: #42b883;
    --messenger-red: #fa383e;
    --messenger-white: #18191a;
}

/* Global Messenger Styles */
.messenger-container {
    height: calc(100vh - 80px);
    background: var(--messenger-white);
    border-radius: var(--small-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative; /* Contain absolute sidebar on mobile */
}

.messenger-header {
    height: var(--header-height);
    background: var(--messenger-white);
    border-bottom: 1px solid var(--messenger-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.messenger-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--messenger-dark-gray);
    margin: 0;
}

.messenger-header .btn {
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    transition: var(--transition);
}

.messenger-header .btn-primary {
    background: var(--messenger-blue);
    border: none;
    color: white;
}

.messenger-header .btn-primary:hover {
    background: var(--messenger-blue-dark);
    transform: translateY(-1px);
}

/* Sidebar - Conversations List */
.messenger-sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--messenger-white);
    border-right: 1px solid var(--messenger-border);
    overflow-y: auto;
}

.messenger-search {
    padding: 15px;
    border-bottom: 1px solid var(--messenger-border);
}

.messenger-search input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: var(--messenger-gray);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.messenger-search input:focus {
    background: var(--messenger-light-gray);
    box-shadow: 0 0 0 2px var(--messenger-blue);
}

/* Conversation Item */
.conversation-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.conversation-item:hover {
    background: var(--messenger-gray);
}

.conversation-item.active {
    background: var(--messenger-light-gray);
    border-right: 3px solid var(--messenger-blue);
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--messenger-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin-right: 12px;
    position: relative;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: var(--messenger-dark-gray);
    margin: 0 0 4px 0;
    font-size: 15px;
}

.conversation-preview {
    color: var(--messenger-dark-gray);
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
}

.conversation-time {
    font-size: 12px;
    color: var(--messenger-dark-gray);
    opacity: 0.6;
    margin-bottom: 4px;
}

.conversation-unread {
    width: 20px;
    height: 20px;
    background: var(--messenger-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Main Chat Area */
.messenger-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--messenger-white);
}

/* Single-pane mode: hide list, expand chat */
.messenger-container.single-pane .messenger-sidebar {
    display: none !important;
}
.messenger-container.single-pane .messenger-main {
    width: 100% !important;
}

.chat-header {
    height: var(--header-height);
    background: var(--messenger-white);
    border-bottom: 1px solid var(--messenger-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.chat-header-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--messenger-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 12px;
}

.chat-header-name {
    font-weight: 600;
    color: var(--messenger-dark-gray);
    margin: 0;
    font-size: 16px;
}

/* Messages Area */
.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Avoid horizontal scroll on mobile */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.message-group.sent {
    align-items: flex-end;
}

.message-group.received {
    align-items: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    word-wrap: break-word;
    position: relative;
    margin: 2px 0;
}

.message-bubble.sent {
    background: rgba(0, 132, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 132, 255, 0.2);
    color: var(--messenger-blue);
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    background: rgba(240, 240, 240, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 240, 240, 0.4);
    color: var(--messenger-dark-gray);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: center;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--messenger-dark-gray);
    opacity: 0.8;
}

/* Message Input */
.message-input-container {
    padding: 16px 20px;
    background: var(--messenger-white);
    border-top: 1px solid var(--messenger-border);
    position: sticky;
    bottom: 0;
}

.message-input-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--messenger-gray);
    border-radius: 25px;
    padding: 8px 8px 8px 16px;
    transition: var(--transition);
}

.message-input-form:focus-within {
    background: var(--messenger-light-gray);
    box-shadow: 0 0 0 2px var(--messenger-blue);
}

.message-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    min-height: 20px;
    max-height: 120px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--messenger-dark-gray);
}

.message-input::placeholder {
    color: var(--messenger-dark-gray);
    opacity: 0.6;
}

.send-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--messenger-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--messenger-blue-dark);
    transform: scale(1.1);
}

.send-button:disabled {
    background: var(--messenger-border);
    cursor: not-allowed;
    transform: none;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--messenger-dark-gray);
    opacity: 0.6;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    padding: 15px;
    border-bottom: 1px solid var(--messenger-border);
    background: var(--messenger-light-gray);
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--messenger-white);
    border: 1px solid var(--messenger-border);
    border-radius: 20px;
    color: var(--messenger-dark-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--messenger-blue);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .messenger-container {
        height: calc(100vh - 60px);
    }
    
    .messenger-sidebar {
        width: 100%;
        position: absolute;
        z-index: 200;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .messenger-sidebar.show {
        transform: translateX(0);
    }
    
    .messenger-main {
        width: 100%;
    }

    /* Show a back button in chat header on mobile */
    .chat-back-btn {
        display: inline-flex !important;
        margin-right: 12px;
        color: var(--messenger-dark-gray);
        background: transparent;
        border: none;
        padding: 6px 8px;
        border-radius: 8px;
    }
    .chat-back-btn:active { transform: scale(0.98); }
    
    .conversation-item {
        padding: 16px;
    }
    
    .conversation-avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    animation: fadeInUp 0.3s ease;
}

.conversation-item {
    transition: all 0.2s ease;
}

.conversation-item:active {
    transform: scale(0.98);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--messenger-gray);
    border-radius: var(--border-radius);
    margin: 8px 0;
    max-width: 80px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--messenger-dark-gray);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Utility Classes */
.text-muted {
    color: var(--messenger-dark-gray) !important;
    opacity: 0.6;
}

/* Badge styles removed */

.btn-messenger {
    background: var(--messenger-blue);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-messenger:hover {
    background: var(--messenger-blue-dark);
    color: white;
    transform: translateY(-1px);
}

/* Live Messaging Enhancements */
.temporary-message {
    opacity: 0.7;
    animation: fadeIn 0.3s ease-in;
}

.temporary-message .message-bubble {
    background: var(--messenger-blue) !important;
    position: relative;
}

.temporary-message .message-bubble::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.new-conversation-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--messenger-dark-gray);
}

.new-conversation-state i {
    color: var(--messenger-blue);
    margin-bottom: 1rem;
}

/* Live Message Animation */
.message-group {
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge styles removed */

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--messenger-red);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    display: none;
}

/* ============================================
   NOTIFICATION CARDS (Email-Style Submissions)
   ============================================ */

.notification-message {
    margin: 12px 0 !important;
}

.notification-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    max-width: 85%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    animation: slideInNotification 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
}

.notif-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.notif-icon {
    font-size: 24px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.notif-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.notif-content {
    margin: 12px 0;
    line-height: 1.6;
}

.notif-detail {
    padding: 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.notif-detail strong {
    color: #ffd700;
    font-weight: 600;
    margin-right: 4px;
}

.notif-body {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.notif-action-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notif-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #764ba2;
    text-decoration: none;
}

.notif-action-btn i {
    font-size: 12px;
}

/* Notification-specific color variants */
.notification-card.task-completed {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.notification-card.task-assigned {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.notification-card.report-submitted {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.notification-card.report-approved {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.notification-card.report-rejected {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.notification-card.receipt-submitted {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.notification-card.receipt-submitted .notif-detail strong {
    color: #667eea;
}

.notification-card.receipt-submitted .notif-action-btn {
    color: #a8edea;
}

.notification-card.receipt-approved {
    background: linear-gradient(135deg, #96fbc4 0%, #f9f586 100%);
    color: #333;
}

.notification-card.receipt-approved .notif-detail strong {
    color: #11998e;
}

.notification-card.receipt-approved .notif-action-btn {
    color: #11998e;
}

.notification-card.receipt-rejected {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
}

.notification-card.receipt-rejected .notif-detail strong {
    color: #c94b4b;
}

.notification-card.receipt-rejected .notif-action-btn {
    color: #c94b4b;
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Mobile responsive notification cards */
@media (max-width: 768px) {
    .notification-card {
        max-width: 95%;
        padding: 14px;
    }
    
    .notif-icon {
        font-size: 20px;
    }
    
    .notif-title {
        font-size: 14px;
    }
    
    .notif-detail, .notif-body {
        font-size: 13px;
    }
    
    .notif-action-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}



/* ================================ */
/* BADGES (merged from badges.css) */
/* ================================ */
/* Badge styles removed */

/* Apply base styling to /* Badge styles removed */

.unread-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-size: 0.7rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Badge styles removed */


/* ================================
   SYSTEM STATUS BADGE STYLES
   ================================ */

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.status-badge i {
    margin-right: 0.25rem;
    font-size: 0.6rem;
}

/* Status Badge Variants */
.status-badge.online {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.2);
    animation: pulse-online 2s infinite;
}

.status-badge.offline {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border-color: rgba(108, 117, 125, 0.3);
    box-shadow: 0 1px 4px rgba(108, 117, 125, 0.2);
}

.status-badge.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.2);
    animation: pulse-warning 2s infinite;
}

.status-badge.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
    animation: pulse-error 2s infinite;
}

.status-badge.maintenance {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-color: rgba(23, 162, 184, 0.3);
    box-shadow: 0 1px 4px rgba(23, 162, 184, 0.2);
}

.status-badge.loading {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
    border-color: rgba(111, 66, 193, 0.3);
    box-shadow: 0 1px 4px rgba(111, 66, 193, 0.2);
}

/* Hover Effects */
.status-badge:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* System Status Container Enhancements */
.system-status-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status-item-enhanced:last-child {
    border-bottom: none;
}

.status-item-enhanced:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
}

.status-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.status-icon.database {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.status-icon.server {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.status-icon.email {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.status-icon.storage {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.status-icon.memory {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
}

.status-item-details h6 {
    margin: 0;
    font-weight: 600;
    color: var(--bs-body-color);
}

.status-item-details .text-muted {
    font-size: 0.8rem;
    margin: 0;
}

/* Performance Metrics */
.status-metrics {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.metric-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-item.cpu {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.metric-item.memory {
    color: #4ecdc4;
    border-color: rgba(78, 205, 196, 0.3);
}

.metric-item.disk {
    color: #ffe66d;
    border-color: rgba(255, 230, 109, 0.3);
}

.metric-item.uptime {
    color: #95e1d3;
    border-color: rgba(149, 225, 211, 0.3);
}

/* Status Badge Animations */
@keyframes pulse-warning {
    0% { box-shadow: 0 1px 4px rgba(255, 193, 7, 0.2); }
    50% { box-shadow: 0 1px 8px rgba(255, 193, 7, 0.4); }
    100% { box-shadow: 0 1px 4px rgba(255, 193, 7, 0.2); }
}

@keyframes pulse-error {
    0% { box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2); }
    50% { box-shadow: 0 1px 8px rgba(220, 53, 69, 0.4); }
    100% { box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2); }
}

/* Enhanced Current Status Indicator Dot */
.status-indicator {
    position: relative;
}

.status-indicator.bg-success {
    animation: pulse-status-online 2s infinite;
}

.status-indicator.bg-warning {
    animation: pulse-status-warning 1.5s infinite;
}

.status-indicator.bg-danger {
    animation: pulse-status-error 1s infinite;
}

@keyframes pulse-status-online {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes pulse-status-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-status-error {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .status-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
        border-radius: 8px;
    }
    
    .status-badge i {
        margin-right: 0.2rem;
        font-size: 0.55rem;
    }
    
    .status-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .status-metrics {
        gap: 0.25rem;
    }
    
    .metric-item {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .status-badge {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .system-status-container {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .status-item-enhanced {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .status-item-enhanced:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .metric-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.unread-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25em 0.5em;
    border-radius: 50px;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: bounce-in 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    border: 2px solid #fff;
}

/* Badge styles removed */

/* Use a distinct name to avoid conflict with /* Badge styles removed */

/* Add standardized badge classes for common statuses */
/* Badge styles removed */

/* Update standardization rule to include new badge classes */
/* Badge styles removed */

/* Standardize ALL badges to have consistent width */
/* Badge styles removed */

/* Status badges with icons need larger width */
/* Badge styles removed */

/* Ensure consistent width for all status badges */
/* Badge styles removed */

@keyframes pulse-online {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Badge styles removed */

/* "Soft" variants used in task lists */
/* Badge styles removed */

@keyframes pulse-urgent {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-new {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@keyframes processing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Badge styles removed */

@media (max-width: 576px) {
    /* Badge styles removed */

.unread-badge {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] /* Badge styles removed */

[data-theme="dark"] /* Badge styles removed */

[data-theme="dark"] /* Badge styles removed */

[data-theme="dark"] /* Badge styles removed */

/* Accessibility */
/* Badge styles removed - placeholder for future accessibility enhancements */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Badge styles removed - placeholder for high contrast mode */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    /* Badge styles removed - placeholder for reduced motion preferences */
}

/* Print Styles */
@media print {
    /* Badge styles removed - placeholder for print-specific styles */
}

/* Badge styles removed */

/* Dashboard Enhancement Styles */

.activity-icon {
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.activity-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced progress bars */
.progress {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar {
    background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.2));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Enhanced equipment/status items */
.equipment-item,
.style-item,
.team-member-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    margin: -8px;
}

.equipment-item:hover,
.style-item:hover,
.team-member-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced card headers */
.bb-card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table enhancements */
.table thead th {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

/* Enhanced buttons */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-secondary,
.btn-outline-dark {
    backdrop-filter: blur(10px);
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Badge styles removed */


