:root {
    --brand: #1d4ed8;
    --brand-dark: #0f172a;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #1e293b;
}

.site-navbar {
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.site-navbar .navbar-brand {
    color: var(--brand);
}

.site-navbar .nav-link {
    font-weight: 500;
}

.hero-section {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    min-height: 320px;
}

.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 56px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.page-card {
    border: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.page-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.page-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.page-cover {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

.page-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.4rem;
}

/* ---- Mega menu ---- */

.site-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    border-radius: 0.75rem;
}

.site-navbar .mega-menu {
    width: 100%;
    padding: 1.5rem 2rem;
    margin-top: 0;
}

.mega-menu .mega-col-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-dark);
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.mega-menu .mega-col-title:hover {
    color: var(--brand);
}

.mega-menu .mega-link {
    display: block;
    padding: 0.25rem 0;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
}

.mega-menu .mega-link:hover {
    color: var(--brand);
}

.nav-item-icon {
    margin-inline-end: 0.3rem;
    color: var(--brand);
}

/* ---- Category themes ---- */

.theme-list1-item {
    border: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.theme-list1-img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.theme-list2 .list-group-item:hover {
    background: #f8fafc;
}

.theme-news1-hero {
    min-height: 380px;
    background-color: var(--brand-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.theme-news1-overlay {
    width: 100%;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.85));
}

.theme-news2-item {
    border: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.theme-news2-date {
    background: var(--brand);
    color: #fff;
    width: 64px;
    padding: 0.4rem 0.2rem;
}

.theme-news2-day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.theme-news2-month {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.theme-news2-thumb {
    width: 120px;
    height: 84px;
    object-fit: cover;
}

.theme-blog-card {
    border: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.theme-blog-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.theme-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

.theme-video-play:hover {
    transform: scale(1.1);
}

.theme-team-card {
    border: none;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.theme-team-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
}

.theme-team-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 3rem;
}

.site-gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.15s ease;
}

.site-gallery-thumb:hover {
    transform: scale(1.02);
}

.site-footer {
    background: var(--brand-dark);
    color: #e2e8f0;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-block;
    padding: 0.15rem 0;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.social-icon:hover {
    background: var(--brand);
    color: #fff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    color: #94a3b8;
}
