/* ==========================================================================
   1. GLOBAL & RESET STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    background-color: #f8fafc;
}

body {
    line-height: 1.5;
    background-color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Meesha lagu saxay bullet-ka (dhibcaha ul/li) */
ul, ol, li {
    list-style: none !important;
    list-style-type: none !important;
}

/* ==========================================================================
   2. NAVBAR & HEADER FIXES
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background-color: #1E50E3;
    color: #fdfeff;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Search input: keep only the input; do not render the empty icon button. */
.search-box button {
    display: none !important;
    width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    display: block;
}

.search-box input {
    outline: none;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: #ffffff;
}

.site-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li,
.nav-links li::marker {
    list-style: none;
    content: none;
}

.nav-links a {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0284c7;
    font-weight: 600;
}

.btn-consultation {
    background-color: #881337;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-consultation:hover {
    background-color: #9f1239;
}

/* Keep one Portal Login on desktop; the second one is only for the mobile menu. */
.nav-links .mobile-only-btn {
    display: none !important;
}

.desktop-only-btn {
    display: inline-block;
}

/* Mobile menu toggle is hidden on desktop and enabled in the mobile breakpoint below. */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
}

.menu-toggle i {
    display: none;
}

.menu-toggle::before {
    content: "\2630";
    line-height: 1;
}

/* ==========================================================================
   3. MAIN CONTENT LAYOUT & PAGE HERO
   ========================================================================== */
.main-content, 
main {
    margin-top: 110px !important; /* Visual spacing for fixed header */
    min-height: 80vh;
    display: block;
}

/* Standardized Header Banner for Inner Pages */
.page-hero {
    background: linear-gradient(135deg, #466ecb 0%, #1e293b 100%);
    color: #ffffff;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.page-hero p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

/* ==========================================================================
   4. COMPACT NEWS & DIRECTORY GRID STYLES
   ========================================================================== */
.news-container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Compact Responsive Cards */
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.news-card-img {
    width: 100%;
    height: 150px; /* Small Image Size */
    object-fit: cover;
    background-color: #f8fafc;
}

.news-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-tag {
    align-self: flex-start;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card-excerpt {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 12px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.btn-read-more {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

.btn-read-more:hover {
    text-decoration: underline;
}

/* Bottom Pagination & Count Bar */
.clean-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding: 14px 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.post-count-badge {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
}

.post-count-badge strong {
    color: #0284c7;
}

/* ==========================================================================
   5. FOOTER STYLES
   ========================================================================== */
.site-footer {
    background-color: #1E50E3;
    color: #fffefe;
    padding: 40px 5% 20px 5%;
    margin-top: 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fbfdff;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #1e323b;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: #fdfeff;
}


/* ==========================================================================
   Home Page Styles & Dynamic Hero Carousel
   ========================================================================== */

/* Hero Carousel */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 380px;
    background: #0f172a;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.carousel-slide.active .slide-bg {
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #ffffff;
}

.slide-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.slide-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0 auto 20px auto;
    max-width: 650px;
    line-height: 1.5;
}

.slide-btn {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slide-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(2, 132, 199, 0.8);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active, .dot:hover {
    background: #0284c7;
    transform: scale(1.2);
}

/* Home Layout */
.home-container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

/* Featured Story */
.featured-section {
    margin-bottom: 45px;
}

.featured-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-featured {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.featured-header h2 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.featured-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
}

.featured-img-box {
    flex: 1 1 320px;
    background: #f8fafc;
    min-height: 220px;
    max-height: 280px;
    position: relative;
    overflow: hidden;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-details {
    flex: 1 1 350px;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.featured-date {
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.featured-details h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-details h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-details p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-read-more {
    display: inline-block;
    background: #0284c7;
    color: white;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

/* Section Header Bar */
.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-header-bar h2 {
    font-size: 1.4rem;
    color: #0f172a;
    font-weight: 700;
}

.link-view-all {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.post-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.post-img-box {
    height: 160px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-date {
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-card-body h3 {
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    font-weight: 700;
}

.post-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.post-card-body p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.link-read-card {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.825rem;
}

.placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.no-data-msg {
    grid-column: 1/-1;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

/* Stats Section */
.stats-panel-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 45px 20px;
    margin-bottom: 50px;
    color: #ffffff;
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.stats-header p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 15px;
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.color-blue { color: #38bdf8; }
.color-yellow { color: #facc15; }
.color-green { color: #4ade80; }

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Leadership Section & Marquee */
.leadership-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 50px 0;
    overflow: hidden;
    position: relative;
}

.leadership-header {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    text-align: center;
}

.leadership-header h2 {
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.leadership-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    padding: 15px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: seamlessScroll 25s linear infinite;
}

.marquee-group {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.official-card {
    width: 200px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.official-card:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.official-img-box {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.official-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.official-card:hover .official-img-box img {
    transform: scale(1.05);
}

.official-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.2rem;
}

.official-info {
    padding: 12px;
    text-align: center;
}

.official-info h4 {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 3px;
}

.official-info p {
    font-size: 0.8rem;
    color: #0284c7;
    font-weight: 600;
    margin: 0;
}

@keyframes seamlessScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

@media (max-width: 768px) {
    .hero-carousel-section { height: 320px; }
    .slide-content h1 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.88rem; }
    .carousel-control { display: none; }
}


/* ==========================================
   Lightweight & Fast Page Loader
   ========================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a; /* Same matches primary dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999; /* Always stays on top */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Spinner Animation */
.loader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border-top-color: #0284c7; /* Brand blue color */
    animation: spinLoader 0.6s linear infinite;
}

/* Spin Keyframes */
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hidden Class for Smooth Fade-out */
#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* ==========================================================================
   6. MOBILE & RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .main-content, 
    main {
        margin-top: 140px !important;
    }

    .top-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .main-nav {
        position: relative;
        min-height: 74px;
    }

    /* Show the hamburger button on small screens. */
    .menu-toggle {
        display: flex !important;
        flex: 0 0 42px;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 0;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #ffffff;
        color: #0f172a;
        font-size: 1.65rem;
        line-height: 1;
        z-index: 10001;
    }

    /* Hide desktop navigation until the toggle button is pressed. */
    .logo {
        flex: 0 0 auto;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        z-index: 9998;
    }

    .nav-links.show {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li > a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    /* Portal Login appears once, inside the opened mobile menu. */
    .nav-links .mobile-only-btn {
        display: block !important;
    }

    .nav-links .mobile-only-btn .btn-consultation {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    .desktop-only-btn {
        display: none !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HOME MEDIA CAROUSEL
   Scoped only to home.php
========================================================= */

.home-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0f172a;
}

.home-carousel__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-carousel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease,
        transform 7s ease;
}

.home-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.home-carousel__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(15, 23, 42, 0.62) 42%,
            rgba(15, 23, 42, 0.22) 100%
        );
}

.home-carousel__content {
    position: relative;
    z-index: 3;
    width: min(850px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: #ffffff;
    padding: 30px 0 70px;
}

.home-carousel__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 50px;
    background: rgba(2, 132, 199, 0.92);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 5px 18px rgba(2, 132, 199, 0.25);
}

.home-carousel__content h1 {
    margin: 0 0 14px;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.home-carousel__content p {
    max-width: 650px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
}

.home-carousel__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 7px;
    background: #0284c7;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.home-carousel__button:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}

.home-carousel__control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.home-carousel__control:hover {
    background: rgba(2, 132, 199, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.home-carousel__control--prev {
    left: 22px;
}

.home-carousel__control--next {
    right: 22px;
}

.home-carousel__indicators {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.home-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.home-carousel__dot:hover {
    transform: scale(1.15);
}

.home-carousel__dot.is-active {
    width: 28px;
    border-radius: 20px;
    background: #ffffff;
}

/* Tablet */
@media (max-width: 900px) {
    .home-carousel {
        height: 440px;
    }

    .home-carousel__content {
        width: min(760px, calc(100% - 50px));
    }

    .home-carousel__control {
        width: 42px;
        height: 42px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-carousel {
        height: 410px;
    }

    .home-carousel__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(15, 23, 42, 0.90) 0%,
                rgba(15, 23, 42, 0.58) 100%
            );
    }

    .home-carousel__content {
        width: calc(100% - 32px);
        padding: 25px 0 65px;
    }

    .home-carousel__badge {
        font-size: 0.68rem;
        padding: 6px 11px;
        margin-bottom: 12px;
    }

    .home-carousel__content h1 {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .home-carousel__content p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .home-carousel__button {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .home-carousel__control {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .home-carousel__control--prev {
        left: 10px;
    }

    .home-carousel__control--next {
        right: 10px;
    }

    .home-carousel__indicators {
        bottom: 16px;
    }
}

.resources-hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #ffffff;
        padding: 50px 20px;
        text-align: center;
        border-bottom: 4px solid #0284c7;
    }
    .resources-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        font-weight: 700;
    }
    .resources-hero p {
        color: #94a3b8;
        max-width: 650px;
        margin: 0 auto 25px auto;
        font-size: 0.98rem;
    }
    .resource-search-form {
        max-width: 550px;
        margin: 0 auto;
        display: flex;
        gap: 8px;
    }
    .resource-search-form input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #334155;
        border-radius: 8px;
        background: #1e293b;
        color: #ffffff;
        font-size: 0.95rem;
    }
    .resource-search-form input:focus {
        outline: none;
        border-color: #0284c7;
    }
    .resource-search-form button {
        background: #0284c7;
        color: #fff;
        border: none;
        padding: 12px 22px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }
    .resource-search-form button:hover {
        background: #0369a1;
    }

    .resources-container {
        max-width: 1140px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .resources-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }

    .resource-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .resource-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .resource-header {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 12px;
    }
    .file-icon-box {
        width: 48px;
        height: 48px;
        background: #fee2e2;
        color: #dc2626;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    .resource-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 6px 0;
        line-height: 1.4;
    }
    .resource-desc {
        color: #64748b;
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    .resource-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.8rem;
        color: #94a3b8;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        margin-bottom: 15px;
    }
    .resource-actions {
        display: flex;
        gap: 10px;
    }
    .btn-action {
        flex: 1;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s;
    }
    .btn-preview {
        background: #f1f5f9;
        color: #334155;
    }
    .btn-preview:hover {
        background: #e2e8f0;
    }
    .btn-download {
        background: #0284c7;
        color: #ffffff;
    }
    .btn-download:hover {
        background: #0369a1;
    }

    .no-results {
        text-align: center;
        padding: 60px 20px;
        color: #64748b;
    }

    .contact-hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #ffffff;
        padding: 50px 20px;
        text-align: center;
        border-bottom: 4px solid #0284c7;
    }
    .contact-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        font-weight: 700;
    }
    .contact-hero p {
        color: #94a3b8;
        max-width: 600px;
        margin: 0 auto;
        font-size: 0.98rem;
    }

    .contact-container {
        max-width: 1140px;
        margin: 40px auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
    }

    @media (max-width: 768px) {
        .contact-container {
            grid-template-columns: 1fr;
        }
    }

    .info-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 30px;
    }
    .info-card h3 {
        font-size: 1.3rem;
        color: #0f172a;
        margin-bottom: 20px;
    }
    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }
    .info-icon {
        width: 42px;
        height: 42px;
        background: #e0f2fe;
        color: #0284c7;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .info-text h4 {
        margin: 0 0 3px 0;
        font-size: 0.95rem;
        color: #0f172a;
    }
    .info-text p {
        margin: 0;
        color: #64748b;
        font-size: 0.9rem;
    }

    .contact-form-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }
    .contact-form-card h3 {
        font-size: 1.3rem;
        color: #0f172a;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }
    .form-group label {
        display: block;
        font-size: 0.88rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: 6px;
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 0.95rem;
        box-sizing: border-box;
        transition: border-color 0.2s;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #0284c7;
    }

    .btn-submit {
        background: #0284c7;
        color: #ffffff;
        border: none;
        padding: 12px 28px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        font-size: 0.95rem;
        transition: background 0.2s;
    }
    .btn-submit:hover {
        background: #0369a1;
    }

    .alert {
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    .alert-success {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }
    .alert-danger {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    /* Messages Page Custom Classes */
.section-subtitle {
    color: #64748b;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-total { background: #e0f2fe; color: #0284c7; }
.stat-unread { background: #fee2e2; color: #dc2626; }
.stat-read { background: #dcfce7; color: #166534; }

.stat-info h4 { margin: 0; font-size: 0.85rem; color: #64748b; }
.stat-info span { font-size: 1.5rem; font-weight: 700; color: #0f172a; }

.messages-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-custom th, .table-custom td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table-custom th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.85rem;
}

.unread-row {
    background-color: #f0f9ff;
    font-weight: 600;
}

.table-empty {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread { background: #fee2e2; color: #991b1b; }
.badge-read { background: #e2e8f0; color: #475569; }

.btn-sm {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
}

.btn-view { background: #0284c7; color: #fff; }
.btn-delete { background: #ef4444; color: #fff; margin-left: 5px; }

/* View Message Styles */
.message-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
}

.message-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.message-header h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
}

.meta-info {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
}

.message-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.message-actions {
    margin-top: 25px;
}

.btn-reply, .btn-action-delete {
    padding: 10px 18px;
    text-decoration: none;
}