:root {
    --tw-maroon: #8f1d2c;
    --tw-red: #b42335;
    --tw-ink: #1f2933;
    --tw-muted: #667085;
    --tw-line: #e6e8ec;
    --tw-soft: #f7f5f2;
    --tw-gold: #b08968;
}

body {
    color: var(--tw-ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #fff;
}

.site-preloader {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    inset: 0;
    justify-content: center;
    position: fixed;
    transition: opacity .45s ease, visibility .45s ease;
    z-index: 9999;
}

.site-preloader.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.preloader-mark {
    height: 72px;
    position: relative;
    width: 72px;
}

.preloader-ring {
    animation: preloaderSpin 1s linear infinite;
    border: 3px solid rgba(143, 29, 44, .12);
    border-top-color: var(--tw-maroon);
    border-radius: 50%;
    display: block;
    height: 72px;
    width: 72px;
}

.preloader-dot {
    background: var(--tw-maroon);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(143, 29, 44, .08);
    height: 12px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
}

.preloader-brand {
    color: var(--tw-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    font-weight: 700;
}

.preloader-line {
    background: linear-gradient(90deg, transparent, var(--tw-maroon), transparent);
    height: 2px;
    overflow: hidden;
    position: relative;
    width: 220px;
}

.preloader-line::after {
    animation: preloaderLine 1.25s ease-in-out infinite;
    background: #fff;
    content: "";
    height: 100%;
    left: -35%;
    position: absolute;
    top: 0;
    width: 35%;
}

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

@keyframes preloaderLine {
    to {
        left: 100%;
    }
}

a {
    color: var(--tw-maroon);
    text-decoration: none;
}

a:hover {
    color: var(--tw-red);
}

.site-header {
    backdrop-filter: saturate(180%) blur(14px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--tw-line);
}

.navbar-brand {
    color: var(--tw-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-link {
    color: #313946;
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    color: var(--tw-maroon);
}

.btn-maroon {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tw-maroon);
    --bs-btn-border-color: var(--tw-maroon);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #711522;
    --bs-btn-hover-border-color: #711522;
}

.btn-outline-maroon {
    --bs-btn-color: var(--tw-maroon);
    --bs-btn-border-color: var(--tw-maroon);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tw-maroon);
    --bs-btn-hover-border-color: var(--tw-maroon);
}

.section-pad {
    padding: 80px 0;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0;
}

.eyebrow {
    color: var(--tw-maroon);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.text-maroon {
    color: var(--tw-maroon);
}

.hero {
    color: #fff;
    min-height: 650px;
    overflow: hidden;
}

.hero-static {
    align-items: center;
    background: linear-gradient(110deg, rgba(143, 29, 44, .94), rgba(31, 41, 51, .84)), url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1800&q=80") center/cover;
    display: flex;
    padding: 130px 0 90px;
}

.hero-slider {
    background: #171b22;
}

.hero-slide {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: 650px;
    padding: 130px 0 90px;
    position: relative;
}

.hero-slide::before {
    background: linear-gradient(110deg, rgba(143, 29, 44, .94), rgba(31, 41, 51, .82));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-slide .container {
    position: relative;
    z-index: 1;
}

.hero .carousel-indicators {
    margin-bottom: 2rem;
}

.hero .carousel-indicators [data-bs-target] {
    border: 0;
    border-radius: 999px;
    height: 4px;
    width: 34px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: .96;
    letter-spacing: 0;
}

.hero .lead {
    color: rgba(255, 255, 255, .86);
    max-width: 720px;
}

.stat-strip {
    background: var(--tw-soft);
    border-bottom: 1px solid var(--tw-line);
}

.blog-card,
.program-card,
.category-card {
    border: 1px solid var(--tw-line);
    border-radius: 8px;
    background: #fff;
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-card:hover,
.program-card:hover,
.category-card:hover {
    border-color: rgba(143, 29, 44, .28);
    box-shadow: 0 14px 32px rgba(20, 27, 38, .08);
    transform: translateY(-4px);
}

.card-img-fixed {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.category-badge {
    background: rgba(143, 29, 44, .1);
    border: 1px solid rgba(143, 29, 44, .18);
    border-radius: 999px;
    color: var(--tw-maroon);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    padding: .35rem .7rem;
}

.category-badge-light {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .32);
    color: var(--tw-maroon);
}

.blog-detail-hero {
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 520px;
    padding: 150px 0 90px;
}

.blog-detail-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 980px;
}

.blog-detail-meta {
    color: rgba(255, 255, 255, .86);
    font-weight: 600;
}

.article-content {
    color: #344054;
    font-size: 1.08rem;
    line-height: 1.8;
}

.article-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.sidebar-box {
    border: 1px solid var(--tw-line);
    border-radius: 8px;
    padding: 1.25rem;
}

.footer {
    background: #171b22;
    color: rgba(255, 255, 255, .78);
}

.footer a {
    color: rgba(255, 255, 255, .78);
}

.footer a:hover {
    color: #fff;
}

.footer-brand {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.social-link {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.profile-image {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.video-play {
    align-items: center;
    background: rgba(143, 29, 44, .92);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
}

.admin-login {
    min-height: 100vh;
    background: linear-gradient(140deg, #8f1d2c, #1f2933);
}

.table-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    height: 58px;
    object-fit: cover;
    width: 92px;
}

.image-preview {
    border: 1px solid var(--tw-line);
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
    width: 260px;
}

.tox.tox-tinymce {
    border-color: #dee2e6;
    border-radius: 8px;
}

.content-wrapper-narrow {
    max-width: 920px;
}

@media (max-width: 991.98px) {
    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-static,
    .hero-slide {
        padding: 110px 0 70px;
    }

    .blog-detail-hero {
        min-height: 430px;
        padding: 110px 0 60px;
    }

    .section-pad {
        padding: 56px 0;
    }
}
