:root {
    --primary: #0f4c81;
    --primary-dark: #0a3559;
    --secondary: #1f9d8b;
    --accent: #f4b942;
    --dark: #132238;
    --text: #465468;
    --muted: #7c8ba1;
    --light: #f4f8fc;
    --white: #ffffff;
    --border: rgba(14, 56, 102, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 18px 55px rgba(10, 42, 81, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 76, 129, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.site-main { min-height: 50vh; }

.container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.section-space { padding: 92px 0; }

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}
.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-heading.between {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}
.section-kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--secondary);
    font-size: 12px;
    margin-bottom: 12px;
}
.section-heading h2,
.entry-header h1,
.not-found-box h1 {
    color: var(--dark);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    margin: 0 0 16px;
}
.section-heading p,
.entry-content,
.entry-content p {
    font-size: 1rem;
    color: var(--text);
}

/* =========================
   HEADER
========================= */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
}
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    white-space: nowrap;
    flex-wrap: wrap;
}
.date-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar-date i {
    font-size: 13px;
    opacity: .95;
}
.topbar-separator {
    opacity: .55;
    margin: 0 2px;
}
.topbar-icon-link {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    transition: .25s ease;
}
.topbar-icon-link:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
    transform: translateY(-1px);
}

.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(14, 56, 102, 0.06);
    transition: .25s ease;
}
.navbar-wrap.is-sticky {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px rgba(8, 30, 62, .08);
}
.navbar {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 8px 0;
}
.brand-area {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    min-width: 180px;
}
.site-branding {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    line-height: 1;
}
.logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 88px;
}
.logo-wrap img,
.custom-logo {
    width: auto;
    max-width: 132px;
    max-height: 132px;
    height: auto;
    border-radius: 0 !important;
    object-fit: contain;
    object-position: left center;
    box-shadow: none;
    display: block;
}
.brand-text {
    display: none !important;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}
.primary-menu,
.primary-menu ul,
.footer-menu,
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
}
.primary-menu > li {
    position: relative;
    flex: 0 0 auto;
}
.primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 11px;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    border-radius: 12px;
    letter-spacing: -.01em;
    transition: .2s ease;
    white-space: normal;
}
.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-parent > a {
    background: rgba(15, 76, 129, .08);
    color: var(--primary);
}
.primary-menu li ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s ease;
    z-index: 20;
}
.primary-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-menu li ul li a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
}
.primary-menu li ul li a:hover {
    background: var(--light);
    color: var(--primary);
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: .25s ease;
}
.header-cta,
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1760a1);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 76, 129, .18);
    font-size: 12.5px;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
}
.header-cta:hover,
.btn-primary:hover { transform: translateY(-2px); }
.btn-light {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    backdrop-filter: blur(8px);
}
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark);
    flex: 0 0 auto;
}

/* =========================
   HERO
========================= */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #0a2340;
}
.hero-slider,
.hero-slide-bg,
.hero-overlay { position: absolute; inset: 0; }
.hero-slide-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
.hero-overlay {
    background: linear-gradient(100deg, rgba(8, 26, 53, 0.82) 18%, rgba(8, 26, 53, 0.45) 58%, rgba(8, 26, 53, 0.68) 100%);
}
.hero-content-wrap {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr .6fr;
    gap: 26px;
    align-items: end;
    padding: 130px 0 78px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.04;
    margin: 0 0 18px;
    max-width: 760px;
}
.hero-content p {
    font-size: 1.08rem;
    max-width: 700px;
    color: rgba(255,255,255,.86);
    margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
    padding: 24px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    margin-bottom: 18px;
}
.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hero-card-grid div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
}
.hero-card-grid strong {
    display: block;
    margin-bottom: 6px;
}
.hero-card-grid span {
    color: rgba(255,255,255,.78);
    font-size: .92rem;
}

/* =========================
   CARD GRID
========================= */
.quick-links-section {
    margin-top: -70px;
    position: relative;
    z-index: 5;
}
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card,
.program-card,
.news-card,
.principal-card,
.stat-box,
.cta-box,
.page-container,
.single-container,
.not-found-box {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}
.info-card {
    padding: 28px;
    color: var(--dark);
}
.info-card .icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15,76,129,.12), rgba(31,157,139,.14));
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.info-card h3,
.program-card h3,
.news-card h3,
.news-card h2 {
    color: var(--dark);
    margin: 0 0 10px;
}
.info-card:hover,
.program-card:hover,
.news-card:hover {
    transform: translateY(-5px);
}
.info-card,
.program-card,
.news-card {
    transition: .25s ease;
}

/* =========================
   ABOUT
========================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr;
    gap: 28px;
    align-items: center;
}
.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}
.feature-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--light);
    color: var(--dark);
}
.feature-list i {
    color: var(--secondary);
    margin-top: 4px;
}

.principal-card { overflow: hidden; }
.principal-photo {
    min-height: 320px;
    background-size: cover;
    background-position: center;
}
.principal-content { padding: 28px; }
.principal-content span {
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}
.principal-content h3 {
    margin: 12px 0 6px;
    color: var(--dark);
    font-size: 1.6rem;
}
.principal-content blockquote {
    margin: 18px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: var(--light);
    border-radius: 0 18px 18px 0;
    color: var(--dark);
}

/* =========================
   STATS
========================= */
.stats-section {
    padding: 0 0 40px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-box {
    padding: 28px 24px;
    text-align: center;
}
.stat-box strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-box span {
    color: var(--muted);
    font-weight: 600;
}

/* =========================
   PROGRAM
========================= */
.program-section {
    background: linear-gradient(180deg, #fff 0%, #f5f9fd 100%);
}
.program-card {
    padding: 28px;
}
.program-card i {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(15,76,129,.1);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/* =========================
   NEWS
========================= */
.news-grid { align-items: stretch; }
.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-thumb {
    display: block;
    min-height: 240px;
    background-size: cover;
    background-position: center;
}
.news-body { padding: 24px; }
.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 10px;
}
.section-link {
    font-weight: 700;
    color: var(--primary);
}
.news-sections-stack {
    display: grid;
    gap: 0;
}

.news-section.news-section-sub {
    padding-top: 0;
}

.news-section.news-section-sub .section-heading {
    margin-bottom: 26px;
}

.news-card.placeholder {
    min-height: 100%;
}
/* =========================
   VIDEO SECTION
========================= */
.video-playlist-box,
.youtube-playlist-embed-card,
.custom-video-playlist {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}
.video-playlist-box {
    padding: 28px;
}
.youtube-playlist-embed iframe,
.custom-video-embed-wrap iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 22px;
}
.youtube-playlist-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}
.custom-video-playlist--yt {
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
    gap: 0;
    overflow: hidden;
}
.custom-video-player {
    min-width: 0;
    background: #000;
}
.custom-video-player-shell {
    position: relative;
    height: 100%;
    min-height: 100%;
}
.custom-video-embed-wrap {
    overflow: hidden;
    border-radius: 0;
    background: #000;
    box-shadow: none;
    aspect-ratio: 16 / 9;
}
.custom-video-embed-wrap iframe {
    height: 100%;
    min-height: 100%;
}
.custom-video-overlay-actions {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
}
.custom-video-youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 76, 129, .92);
    color: #fff;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 76, 129, .24);
}
.custom-video-youtube-btn i {
    font-size: 1.05rem;
}
.custom-video-sidebar {
    background: #f3f1ff;
    border-left: 1px solid rgba(14, 56, 102, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.custom-video-sidebar-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(14, 56, 102, 0.08);
}
.custom-video-sidebar-head h3 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.2;
}
.custom-video-sidebar-head span {
    color: var(--muted);
    font-size: .9rem;
}
.custom-video-list {
    display: grid;
    gap: 0;
    max-height: 504px;
    overflow: auto;
}
.custom-video-list::-webkit-scrollbar {
    width: 8px;
}
.custom-video-list::-webkit-scrollbar-thumb {
    background: rgba(15, 76, 129, .18);
    border-radius: 999px;
}
.custom-video-list::-webkit-scrollbar-track {
    background: rgba(15, 76, 129, .06);
}
.custom-video-item {
    display: grid;
    grid-template-columns: 28px 110px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(14, 56, 102, 0.08);
    border-radius: 0;
    padding: 12px 14px;
    cursor: pointer;
    transition: .2s ease;
}
.custom-video-item:hover,
.custom-video-item.is-active {
    background: rgba(255,255,255,.65);
}
.custom-video-item-number {
    color: var(--dark);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    padding-top: 4px;
}
.custom-video-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #dfe7f1;
}
.custom-video-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.custom-video-meta strong {
    color: var(--dark);
    font-size: .93rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.custom-video-meta small {
    color: var(--muted);
    font-size: .79rem;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 16px;
    grid-auto-rows: 220px;
    align-items: stretch;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    background: #e8eef5;
    margin: 0;
    min-height: 220px;
}
.gallery-card-tall {
    grid-row: span 2;
}
.gallery-card-wide {
    grid-column: span 2;
}
.gallery-media-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04) 30%, rgba(0,0,0,.56) 100%);
    z-index: 1;
}
.gallery-card:hover .gallery-image {
    transform: scale(1.04);
}
.gallery-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    font-size: .96rem;
    text-shadow: 0 3px 10px rgba(0,0,0,.28);
}

/* =========================
   CTA
========================= */
.cta-box {
    padding: 36px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 24px 60px rgba(15, 76, 129, .24);
}
.cta-box h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.1;
}
.cta-box p {
    color: rgba(255,255,255,.82);
    max-width: 680px;
}

/* =========================
   PAGE / SINGLE
========================= */
.page-standard {
    background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}
.page-container,
.single-container,
.not-found-box {
    padding: 42px;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.single-thumb img {
    border-radius: 24px;
    margin: 14px 0 24px;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pagination-wrap { margin-top: 32px; }
.pagination-wrap .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination-wrap .page-numbers {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}
.pagination-wrap .current {
    background: var(--primary);
    color: #fff;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr .8fr;
    gap: 26px;
    padding: 72px 0 48px;
}
.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-top: 0;
}
.footer-contact p,
.footer-menu li,
.footer-list li {
    margin-bottom: 10px;
}
.footer-menu li a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
}
.footer-bottom-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 1180px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .navbar {
        min-height: 98px;
        gap: 18px;
    }

    .brand-area {
        flex-basis: 170px;
        min-width: 150px;
    }

    .logo-wrap img,
    .custom-logo {
        max-width: 118px;
        max-height: 118px;
    }

    .primary-menu > li > a {
        padding: 8px 9px;
        font-size: 12.5px;
    }

    .header-cta {
        padding: 11px 16px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .hero-content-wrap,
    .about-grid,
    .footer-grid,
    .stats-grid,
    .archive-grid,
    .card-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content-wrap { align-items: center; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-card-wide {
        grid-column: span 1;
    }

    .navbar {
        min-height: 90px;
    }

    .brand-area {
        flex-basis: 138px;
        min-width: 120px;
    }

    .logo-wrap {
        min-height: 74px;
    }

    .logo-wrap img,
    .custom-logo {
        max-width: 100px;
        max-height: 100px;
    }

    .primary-menu > li > a {
        padding: 8px 7px;
        font-size: 12px;
    }

    .header-cta {
        padding: 10px 14px;
        font-size: 12px;
    }

    .custom-video-playlist--yt {
        grid-template-columns: 1fr;
    }

    .custom-video-sidebar {
        border-left: 0;
        border-top: 1px solid rgba(14, 56, 102, 0.08);
    }

    .custom-video-list {
        max-height: 420px;
    }
}

@media (max-width: 860px) {
    .topbar {
        display: block;
    }

    .topbar-inner {
        min-height: 40px;
    }

    .topbar-date {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        justify-content: center;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        min-height: 82px;
        padding: 6px 0;
    }

    .brand-area {
        flex: 0 0 auto;
        min-width: 0;
    }

    .logo-wrap {
        min-height: 64px;
    }

    .logo-wrap img,
    .custom-logo {
        max-width: 200px;
        max-height: 200px;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        background: #fff;
        border-radius: 22px;
        padding: 18px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .main-navigation.active {
        display: flex;
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .primary-menu > li > a {
        justify-content: flex-start;
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 14px;
    }

    .primary-menu li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 8px 0 0 14px;
        min-width: 0;
        background: transparent;
    }

    .header-cta {
        width: 100%;
        min-height: 46px;
    }

    .hero-content-wrap,
    .about-grid,
    .footer-grid,
    .stats-grid,
    .archive-grid,
    .card-grid-3,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-tall,
    .gallery-card-wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .hero-section { min-height: auto; }
    .hero-content-wrap { padding: 110px 0 64px; }
    .quick-links-section { margin-top: -40px; }

    .section-heading.between,
    .cta-box,
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-container,
    .single-container,
    .not-found-box,
    .cta-box {
        padding: 28px;
    }
}

@media (max-width: 576px) {
    .container {
        width: calc(100% - 24px);
    }

    .navbar {
        min-height: 76px;
    }

    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 0;
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        justify-content: center;
        width: 100%;
    }

    .topbar-date {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.5;
    }

    .logo-wrap img,
    .custom-logo {
        max-width: 132px;
        max-height: 132px;
        width: auto;
        height: auto;
        border-radius: 0 !important;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-card-grid { grid-template-columns: 1fr; }
    .news-thumb { min-height: 200px; }

    .video-playlist-box {
        padding: 18px;
    }

    .custom-video-overlay-actions {
        right: 12px;
        bottom: 12px;
    }

    .custom-video-youtube-btn {
        padding: 9px 13px;
        font-size: .9rem;
    }

    .custom-video-item {
        grid-template-columns: 24px 92px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 10px;
    }

    .custom-video-list {
        max-height: 360px;
    }

    .youtube-playlist-embed iframe,
    .custom-video-embed-wrap iframe {
        height: 260px;
    }
}
/* =========================
   SCROLL TO TOP
========================= */
.scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #1760a1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 14px 30px rgba(15, 76, 129, .24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, box-shadow .25s ease;
    z-index: 1200;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 76, 129, .3);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: .92rem;
    }
}
