        @font-face {
    font-family: 'MV Waheed';
    /* FIX: Changed path from 'assets/fonts/...' to '../fonts/...' */
    src: url('../fonts/MV_Waheed.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MV Faseyha';
    /* FIX: Changed path from 'assets/fonts/...' to '../fonts/...' */
    src: url('../fonts/MV_Faseyha.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
        /* ------------------------------ */

        :root {
            --primary-color: #1a5f7a;
            --secondary-color: #57cc99;
            --accent-color: #ffd166;
            --dark-color: #073b4c;
            --light-color: #f8f9fa;
        }
        
        body {
            /* Fallback to Noto Sans Arabic for generic RTL/Arabic text, or ensure it's not the default body font if the content is primarily Dhivehi */
            font-family: 'Noto Sans Arabic', sans-serif; 
            direction: rtl;
            background-color: #f5f5f5;
        }
        
        .dhivehi-text {
            /* Use MV Faseyha for general Dhivehi body text */
            font-family: 'MV Faseyha', 'Noto Sans Arabic', sans-serif !important;
        }

        /* Applying Waheed for all main headings (h1, h2, h5 on cards, footer h5) */
        h1, h2, h3, h4, h5, h6, .display-4, .section-title, .card-title, .navbar-brand span {
            font-family: 'MV Waheed', 'Noto Sans Arabic', sans-serif !important;
            font-weight: normal !important; /* Waheed/Faseyha are usually fixed weight */
        }
        
        .navbar-brand img {
            height: 50px;
        }
        
        /* Skip link for accessibility */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--primary-color);
            color: white;
            padding: 8px;
            text-decoration: none;
            z-index: 1000;
        }
        
        .skip-link:focus {
            top: 0;
        }
        
        .hero-section {
            position: relative;
            height: 100vh;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .video-background video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            text-align: center;
        }

        /* Fallback for mobile devices */
        @media (max-width: 768px) {
            .video-background {
                display: none;
            }
            
            .hero-section {
                background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/hero-bg.jpg');
                background-size: cover;
                background-position: center;
                height: 60vh;
            }
            
            .stats-number {
                font-size: 1.8rem;
            }
        }
        
        /* Touch-friendly buttons */
        .btn {
            min-height: 44px;
            padding: 12px 24px;
        }
        
        .section-title {
            color: var(--primary-color);
            border-bottom: 3px solid var(--secondary-color);
            padding-bottom: 10px;
            margin-bottom: 30px;
            display: inline-block;
        }
        
        .news-card, .announcement-card {
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            height: 100%;
        }
        
        .news-card:hover, .announcement-card:hover {
            transform: translateY(-5px);
        }
        
        .stats-box {
            background: var(--primary-color);
            color: white;
            padding: 30px 20px;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 20px;
            min-height: 150px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .stats-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            font-family: 'MV Waheed', 'Noto Sans Arabic', sans-serif !important; /* Ensure numbers in Dhivehi context use Waheed or Faseyha */
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            margin-bottom: 20px;
            height: 200px;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 10px;
            transform: translateY(100%);
            transition: transform 0.3s;
        }
        
        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }
        
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 40px 0 20px;
        }
        
        .language-switcher {
            cursor: pointer;
        }
        
        /* Video fallback */
        .video-fallback {
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/hero-bg.jpg') !important;
            background-size: cover !important;
            background-position: center !important;
        }
        
        .fallback-image {
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/fallback.jpg');
            background-size: cover;
            background-position: center;
        }
        
.announcement-icon {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.announcement-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.announcement-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-left: 4px solid var(--primary-color);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.announcement-title {
    transition: color 0.2s ease-in-out;
}

.announcement-title:hover {
    color: var(--primary-color) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .announcement-dates {
        flex-direction: column;
        gap: 5px;
    }
    
    .announcement-icon {
        width: 40px;
    }
    
    .announcement-icon i {
        font-size: 1.5rem !important;
    }
    
    .announcement-card .d-flex {
        flex-direction: column;
    }
    
    .announcement-card .btn {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .stats-box {
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stats-box:hover {
    transform: translateY(-5px);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-box .dhivehi-text {
    font-size: 1rem;
    opacity: 0.9;
}
/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner-container {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down-link {
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-down-link:hover {
    opacity: 1;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Lazy Loading Styles */
.lazy-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.lazy-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.news-image-container,
.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Animations */
.fade-up.animated {
    animation: fadeUp 0.8s ease forwards;
}

.fade-left.animated {
    animation: fadeLeft 0.8s ease forwards;
}

.fade-right.animated {
    animation: fadeRight 0.8s ease forwards;
}

.zoom-in.animated {
    animation: zoomIn 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Stats Box */
.stats-box {
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stats-box:hover::before {
    left: 100%;
}

.stats-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.stats-box:hover .stats-icon {
    transform: scale(1.2);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

/* Enhanced Buttons */
.btn-pulse {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-pulse:hover::before {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-hover-grow {
    transition: all 0.3s ease;
}

.btn-hover-grow:hover {
    transform: scale(1.1);
}

.badge-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Enhanced Cards */
.news-card, .announcement-item {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.news-card:hover, .announcement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image-container img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-container img {
    transform: scale(1.1);
}

/* Gallery Item Enhancement */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Announcement Icon Animation */
.announcement-icon-animate {
    transition: all 0.3s ease;
}

.announcement-item:hover .announcement-icon-animate {
    transform: scale(1.2) rotate(10deg);
}

/* Title Link Effect */
.announcement-title-link {
    position: relative;
    transition: color 0.3s ease;
}

.announcement-title-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.announcement-item:hover .announcement-title-link::after {
    width: 100%;
}
}