/* Custom CSS for NIAC Website */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Zimbabwe Coat of Arms Colors */
    --zim-gold: #D4AF37;
    --zim-green: #228B22;
    --zim-red: #DC143C;
    --zim-blue: #1E3A8A;
    --zim-white: #FFFFFF;
    --zim-brown: #8B4513;
    
    /* Heritage Border Colors */
    --border-gold: var(--zim-gold);
    --border-green: var(--zim-green);
    --border-red: var(--zim-red);
    --border-blue: var(--zim-blue);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Language Bar */
.language-bar {
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,800 1000,1000"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Feature Cards */
.feature-item {
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mission Cards */
.mission-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green), var(--zim-red));
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--border-green);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--border-gold);
    border-top: 2px solid var(--border-green);
    border-right: 2px solid var(--border-red);
    border-bottom: 2px solid var(--border-blue);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--border-green);
}

.service-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Program Cards */
.program-card .card {
    border: 3px solid var(--border-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card .card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--zim-blue), var(--zim-gold));
}

.program-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--border-red);
}

/* Program Card Image Styling */
.program-card .card img {
    transition: transform 0.3s ease;
    border-radius: 0.375rem 0 0 0.375rem !important;
}

.program-card .card:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments for program cards */
@media (max-width: 768px) {
    .program-card .card .row {
        flex-direction: column;
    }
    
    .program-card .card img {
        border-radius: 0.375rem 0.375rem 0 0 !important;
        min-height: 150px !important;
    }
}

/* Success Story Cards */
.success-story-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-green);
    position: relative;
}

.success-story-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: rgba(0, 0, 0, 0.1);    
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-story-card:hover::before {
    opacity: 1;
}

.success-story-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    cursor: pointer;
}

.success-story-card:hover {
    transform: translateY(-5px);
}

.story-image img {
    object-fit: cover;
    border: 4px solid var(--border-light);
}
.success-story-card:hover .story-image img {
     border: 4px solid rgba(rgba(255, 255, 255))
}

.story-stats .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

/* Resource Categories */
.resource-category {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 2px solid var(--border-green);
    border-top: 4px solid var(--border-gold);
    position: relative;
}

.resource-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zim-red), var(--zim-blue));
}

.resource-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--border-red);
}

/* Partner Cards */
.partner-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 3px solid var(--border-blue);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green));
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
}

.partner-logo {
    max-height: 60px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0);
}

/* Application Portal */
.application-portal {
    border: 3px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.application-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green), var(--zim-red), var(--zim-blue));
}

.application-portal .form-control:focus,
.application-portal .form-select:focus {
    border-color: var(--border-green);
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25);
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 2px solid var(--border-red);
    border-left: 6px solid var(--border-gold);
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-green);
}

.contact-item:last-child {
    border-bottom: none;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 2px solid var(--border-blue);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-red));
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--border-gold);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-bg) !important;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-badge img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-badge:hover img {
    opacity: 1;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: var(--secondary-color);
}

#backToTop.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

#backToTop:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

/* Floating button animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive back to top button */
@media (max-width: 768px) {
    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--zim-gold), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--border-gold);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-outline-primary:hover {
    background-color: var(--border-green);
    border-color: var(--border-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Event Cards */
.event-card {
    height: 100%;
}

.event-card .card {
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.event-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green));
}

.event-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.event-card .card img {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.event-card .card:hover img {
    transform: scale(1.05);
}

.event-card .event-date {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-radius: 0;
    position: relative;
    z-index: 10;
}

.event-card .event-date .h4 {
    color: white;
    margin: 0;
}

.event-card .event-date small {
    color: rgba(255, 255, 255, 0.9);
}

.event-date-badge {
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    text-align: center;
}

.event-title {
    color: var(--text-dark);
    font-weight: 600;
}

.event-details i {
    width: 16px;
    text-align: center;
}

/* Responsive adjustments for event cards */
@media (max-width: 768px) {
    .event-card .card .row {
        flex-direction: column;
    }
    
    .event-card .card img {
        border-radius: 0.375rem 0.375rem 0 0 !important;
        height: 150px !important;
    }
}

/* Tab Styles */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .mission-card,
    .service-card,
    .resource-category {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .language-bar,
    #backToTop,
    .social-links {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-title {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000040;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-illustration {
        animation: none;
    }
}

/* User Authentication Styles */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: var(--primary-color);
}

#userNav .dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#userNav .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

#userNav .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

#userNav .dropdown-item i {
    width: 20px;
}

/* Dashboard Styles */
.modal-xl {
    max-width: 95vw;
}

.modal-xl .modal-body {
    padding: 0;
}

.modal-xl .modal-body .row {
    margin: 0;
    width: 100%;
}

.modal-xl .modal-body .row > [class*="col-"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.nav-pills .nav-link {
    color: var(--text-dark);
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-pills .nav-link i {
    width: 20px;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dashboard-stat {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    color: white;
    padding: 1.5rem;
}

.dashboard-stat h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-stat h6 {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* Profile Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar i {
    border-radius: 50%;
    background-color: var(--light-bg);
    padding: 1rem;
}

/* Application Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
}

/* Admin Dashboard Styles */
.admin-section {
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Table Styles for Admin */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.table td {
    vertical-align: middle;
}

/* Form Enhancements */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Demo Login Buttons */
.demo-login-section {
    background-color: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.demo-login-section p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Activity Timeline */
.activity-item {
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 0 0.5rem 0.5rem 0;
}

.activity-item i {
    width: 20px;
}

/* Dashboard Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
    height: 1rem;
    margin-bottom: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 100vw;
        margin: 0;
        height: 100vh;
    }
    
    .modal-xl .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-xl .modal-body {
        padding: 0;
        overflow-y: auto;
    }
    
    .modal-xl .modal-body .row {
        margin: 0;
        flex-direction: column;
    }
    
    .modal-xl .modal-body .row > [class*="col-"] {
        padding: 1rem;
        max-width: 100%;
        flex: 0 0 auto;
        width: 100%;
    }
    
    .dashboard-nav-tabs {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-pills .nav-link {
        margin-right: 0.5rem;
        white-space: nowrap;
    }
}

/* Authentication Form Enhancements */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form .form-floating > label {
    color: var(--text-light);
}

.auth-form .form-floating > .form-control:focus ~ label,
.auth-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-light);
}

.auth-divider span {
    background-color: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Success States */
.success-state {
    text-align: center;
    padding: 2rem;
    color: var(--success-color);
}

.success-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Dashboard Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-action {
    padding: 1rem;
    border: 2px dashed var(--border-light);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
}

.quick-action i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.quick-action h6 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.quick-action p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Enhanced Modal Styles */
.modal {
    z-index: 1055 !important; /* Ensure modal is above backdrop */
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050 !important; /* Ensure backdrop is below modal */
}

.modal-dialog {
    margin: 2rem auto;
    max-width: 450px;
    z-index: 1056 !important; /* Ensure dialog is above backdrop */
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 1057 !important; /* Ensure content is clickable */
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    z-index: 1;
}

/* Universal close button styling */
.btn-close {
    background: rgba(108, 117, 125, 0.1) !important;
    border: 2px solid rgba(108, 117, 125, 0.2) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-close:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    opacity: 1 !important;
}

/* Close button for dark backgrounds */
.modal-header.bg-primary .btn-close,
.modal-header.bg-dark .btn-close,
#resourceModal .btn-close {
    filter: invert(1) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#resourceModal .btn-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.modal-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    padding: 2rem 2rem 1rem;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    width: 100%;
}

.modal-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    margin: 0;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 1;
    filter: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 1060 !important; /* Ensure close button is on top */
}

/* Fix modal layering issues */
.modal-header, .modal-body, .modal-footer {
    position: relative;
    z-index: 1058 !important;
}

/* Ensure all interactive elements in modals are clickable */
.modal .btn, .modal .form-control, .modal .form-select, .modal a, .modal input, .modal textarea {
    position: relative;
    z-index: 1059 !important;
}

.modal-header .btn-close:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
    opacity: 1;
    border-color: rgba(220, 53, 69, 0.7);
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Ensure close button is visible on all modal headers */
.modal-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    padding: 2rem 3rem 1rem 2rem; /* Added right padding for close button space */
    position: relative;
}

/* Special styling for resource modal close button */
#resourceModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 3rem 1.5rem 2rem; /* Added right padding for close button space */
}

#resourceModal .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.7);
    filter: none;
    opacity: 1;
}

#resourceModal .btn-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 0.7);
    transform: scale(1.1);
}

#resourceModal .btn-close::before {
    color: #333 !important; /* Dark color for better contrast on white background */
}

#resourceModal .btn-close:hover::before {
    color: white !important; /* White color on red hover background */
}

/* Terms modal close button */
#termsModal .modal-header .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(108, 117, 125, 0.3);
    opacity: 1;
}

/* Dashboard modal close button */
#dashboardModal .modal-header .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(108, 117, 125, 0.3);
    opacity: 1;
}

/* Profile modal close button */
#profileModal .modal-header .btn-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(108, 117, 125, 0.3);
    opacity: 1;
}

/* Notification toast close button - smaller size */
.alert .btn-close {
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    padding: 0.2rem !important;
    margin: 0 0 0 auto !important;
    background: none !important;
    border: none !important;
    opacity: 0.6 !important;
    z-index: auto !important;
}

.alert .btn-close::before {
    content: "×" !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: currentColor !important;
    position: static !important;
    transform: none !important;
    line-height: 1 !important;
    display: inline !important;
}

.alert .btn-close:hover {
    opacity: 1 !important;
    background: none !important;
    transform: none !important;
}

.alert .btn-close:hover::before {
    color: currentColor !important;
}

.modal-body {
    padding: 1rem 2rem 2rem;
    background: #ffffff;
}

.modal-body .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body .form-control,
.modal-body .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.modal-body .form-control:hover,
.modal-body .form-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.modal-body .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
}

.modal-body .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-body .form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.modal-body .btn-primary:active {
    transform: translateY(0);
}

.modal-body .btn-outline-success,
.modal-body .btn-outline-info {
    border: 2px solid currentColor;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.modal-body .btn-outline-success:hover,
.modal-body .btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-body hr {
    margin: 1.5rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.2), transparent);
}

.modal-footer {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 102, 204, 0.1);
    padding: 1rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.modal-footer .text-muted {
    font-size: 0.875rem;
    margin: 0;
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Demo Buttons Styling */
.modal-body .text-center p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Register Modal Specific Styles */
#registerModal .modal-dialog {
    max-width: 500px;
}

#registerModal .modal-body {
    padding: 1rem 2rem 2rem;
}

#registerModal .row .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Animation for Modal Entrance */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    transform: translate(0, -50px) scale(0.95);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

/* Input Field Icons (Optional Enhancement) */
.modal-body .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-light);
}

.modal-body .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.modal-body .input-group .form-control:focus {
    border-left: 2px solid var(--primary-color);
}

/* Responsive Modal Adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

/* Enhanced Form Validation Styles */
.modal-body .form-control.is-invalid,
.modal-body .form-select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.modal-body .form-control.is-valid,
.modal-body .form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.modal-body .invalid-feedback,
.modal-body .valid-feedback {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Modal Icon Styling */
.login-icon, .register-icon {
    position: relative;
    display: inline-block;
}

.login-icon::after, .register-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 50%;
    z-index: -1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

/* Label Icon Styling */
.modal-body .form-label i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Select Option Enhancements */
.modal-body .form-select option {
    padding: 0.5rem;
}

/* Loading Animation for Form Submission */
.modal-body .btn-primary.loading {
    position: relative;
    color: transparent;
}

.modal-body .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: modalSpinner 1s linear infinite;
}

@keyframes modalSpinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Modal Transitions */
.modal.fade .modal-dialog {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(-100px) scale(0.8);
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* Success/Error Message Styling */
.modal-body .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.modal-body .alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.modal-body .alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak { background: var(--danger-color); width: 25%; }
.password-strength-fair { background: var(--warning-color); width: 50%; }
.password-strength-good { background: var(--primary-color); width: 75%; }
.password-strength-strong { background: var(--success-color); width: 100%; }

/* Floating Label Effect (Optional) */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Modal Overlay Effects */
.modal-backdrop.show {
    animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

/* Resource Modal Specific Styling */
#resourceModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    margin: 1.75rem auto;
}

#resourceModal .modal-content {
    min-height: 80vh;
    max-height: 90vh;
}

#resourceModal .modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

#resourceModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
}

#resourceModal .modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

#resourceModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#resourceModal .btn-close:hover {
    opacity: 1;
}

/* Resource Cards within Modal */
#resourceModal .resource-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#resourceModal .resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-color);
}

#resourceModal .resource-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#resourceModal .resource-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

#resourceModal .resource-item .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#resourceModal .resource-item .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Resource Grid Layout */
#resourceModal .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Resource List Layout */
#resourceModal .resource-list .resource-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
}

#resourceModal .resource-list .resource-item .resource-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 50px;
}

#resourceModal .resource-list .resource-item .resource-content {
    flex: 1;
}

#resourceModal .resource-list .resource-item .resource-actions {
    margin-left: auto;
}

/* Resource Category Headers */
#resourceModal .resource-category-header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}

#resourceModal .resource-category-header h5 {
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Resource Specific */
#resourceModal .video-resource {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#resourceModal .video-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#resourceModal .video-play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#resourceModal .video-play-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Document Resource Icons */
#resourceModal .document-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

#resourceModal .document-icon.pdf { background: #dc3545; }
#resourceModal .document-icon.doc { background: #0066cc; }
#resourceModal .document-icon.ppt { background: #ff6b35; }
#resourceModal .document-icon.video { background: #28a745; }

/* Search and Filter Bar */
#resourceModal .resource-filter-bar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

#resourceModal .resource-search {
    flex: 1;
    min-width: 250px;
}

#resourceModal .resource-search input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

#resourceModal .resource-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

#resourceModal .resource-filter select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #resourceModal .modal-dialog {
        max-width: 95vw;
        width: 95vw;
        margin: 1rem auto;
    }
    
    #resourceModal .modal-content {
        min-height: 90vh;
        max-height: 95vh;
    }
    
    #resourceModal .modal-body {
        padding: 1rem;
    }
    
    #resourceModal .resource-grid {
        grid-template-columns: 1fr;
    }
    
    #resourceModal .resource-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Ensure close buttons are visible on mobile */
    .modal-header .btn-close {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1060 !important;
        width: 35px !important;
        height: 35px !important;
    }
}

/* Additional close button fixes */
.modal .btn-close {
    position: relative !important;
    margin-left: auto !important;
    background-size: 16px !important;
}

/* Ensure visibility on all modal types */
.modal-header {
    position: relative;
    padding-right: 4rem !important; /* Make space for close button */
}

.modal-title {
    margin-right: 2rem; /* Prevent title from overlapping close button */
}

/* Force close button visibility */
.btn-close::before {
    content: "×" !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #666 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
}

.btn-close {
    background-image: none !important; /* Remove default background image */
}

.btn-close:hover::before {
    color: white !important;
}

/* Dark background close button text */
#resourceModal .btn-close::before {
    color: #333 !important; /* Dark color for white background */
}

/* Zimbabwe Coat of Arms Accent Styles */

/* Section Dividers with Coat of Arms Colors */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green), var(--zim-red), var(--zim-blue));
    margin: 2rem 0;
    border-radius: 2px;
}

/* Hero Section Accent */
.hero-section {
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green), var(--zim-red), var(--zim-blue));
}

/* Navigation Accent */
.navbar {
    border-bottom: 3px solid var(--border-gold);
}

/* Form Elements with Zimbabwe Accents */
.form-control:focus {
    border-color: var(--border-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 34, 0.25) !important;
}

.form-select:focus {
    border-color: var(--border-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25) !important;
}

/* Badge Accents */
.badge {
    border: 1px solid var(--border-gold);
}

/* Section Headers with Subtle Accents */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Footer Accent */
footer {
    border-top: 6px solid var(--border-gold);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--zim-green), var(--zim-red), var(--zim-blue));
}

/* Modal Accents */
.modal-content {
    border: 2px solid var(--border-gold);
    border-top: 5px solid var(--border-green);
}

/* Special Zimbabwe Heritage Elements */
.zim-accent-border {
    border: 3px solid var(--border-gold);
    position: relative;
}

.zim-accent-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--zim-gold), var(--zim-green), var(--zim-red), var(--zim-blue));
    z-index: -1;
    border-radius: inherit;
}

.zim-gradient-text {
    background: linear-gradient(90deg, var(--zim-gold), var(--zim-green), var(--zim-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

#resourceModal .btn-close:hover::before {
    color: white !important; /* White color on red hover background */
}
