html,
body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    padding-top: 102px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Site Layout / Sticky Footer
========================================= */

.site-main {
    flex: 1 0 auto;
}

#siteHeader {
    flex-shrink: 0;
}

#siteFooter {
    margin-top: auto;
    flex-shrink: 0;
}

/* =========================================
   Fixed Topbar
========================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0f3d73;
    color: white;
    padding: 6px 0;
    font-size: 14px;
    z-index: 10000;
}

/* =========================================
   Fixed Navbar
========================================= */

.navbar-custom {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 8px 0;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    z-index: 9999;
}

/* Brand */

.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    margin-right: 35px;
    color: #0f3d73 !important;
}

/* Logo */

.mrc-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Text container */

.navbar-brand .ms-3 {
    min-width: 0;
}

/* Portal Title */

.portal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f3f77;
    line-height: 1.15;
    margin-bottom: 3px;
}

/* Subtitle */

.portal-subtitle {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.2;
}

/* Navigation */

.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #374151 !important;
    margin-left: 10px;
    transition: .25s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0f3d73 !important;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 991px) {

    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-brand {
        width: calc(100% - 70px);
        max-width: calc(100% - 70px);
        margin-right: 0;
        overflow: hidden;
    }

    .navbar-brand .ms-3 {
        flex: 1;
        margin-left: 12px !important;
        overflow: hidden;
    }

    .portal-title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portal-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-nav {
        margin-top: 20px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid #eef2f7;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-brand {
        width: calc(100% - 72px);
        max-width: calc(100% - 72px);
        overflow: hidden;
    }

    .mrc-logo {
        width: 40px;
        height: 40px;
    }

    .navbar-brand .ms-3 {
        flex: 1;
        min-width: 0;
        margin-left: 10px !important;
    }

    .portal-title {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portal-subtitle {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-toggler {
        padding: 7px 10px;
    }
}

/* =========================================
   Hero
========================================= */

.hero {
    background:
        linear-gradient(rgba(10, 37, 64, 0.75), rgba(10, 37, 64, 0.75)),
        url('../img/hero-banner.avif') center/cover no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    max-width: 900px;
    margin: auto;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
}

/* =========================================
   Sections
========================================= */

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: #0f3d73;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #6b7280;
    max-width: 850px;
    margin: auto;
    line-height: 1.8;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,61,115,0.10);
    color: #0f3d73;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

/* =========================================
   Country Cards
========================================= */

.country-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-header-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.country-name {
    position: absolute;
    bottom: 20px;
    left: 25px;
    color: white;
    z-index: 2;
    font-size: 28px;
    font-weight: 700;
}

.country-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.country-content p {
    color: #6b7280;
    line-height: 1.8;
    min-height: 140px;
    flex-grow: 1;
}

/* =========================================
   Portal Buttons
========================================= */

.btn-portal {
    background: #0f3d73;
    color: white;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.3s ease;
    min-height: 58px;
    margin-top: auto;
}

.btn-portal:hover {
    background: #15549b;
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   Geo Portal
========================================= */

.geo-section {
    padding: 90px 0 20px;
    scroll-margin-top: 120px;
}

.geo-frame-wrapper {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 650px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    border: 1px solid rgba(15,61,115,0.12);
}

.geo-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================
   News and Events - Home
========================================= */

.news-event-section {
    padding: 90px 0 60px;
    scroll-margin-top: 120px;
    background:
        radial-gradient(circle at top left, rgba(15,61,115,0.10), transparent 32%),
        linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.news-event-section #newsEventsGrid {
    margin-top: 18px;
}

/* =========================================
   News Cards
========================================= */

.news-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15,61,115,0.10);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(15,61,115,0.16);
}

.news-card-image {
    display: block;
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #dbeafe;
    text-decoration: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: #0f3d73;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
}

.news-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card-title {
    color: #111827;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
}

.news-card-description {
    color: #5f6b7a;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

.news-read-more,
.btn-news-all,
.back-news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-read-more {
    color: #0f3d73;
    margin-top: auto;
}

.news-read-more:hover {
    color: #15549b;
    transform: translateX(4px);
}

.btn-news-all {
    background: #0f3d73;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 14px 26px;
    box-shadow: 0 12px 28px rgba(15,61,115,0.20);
}

.btn-news-all:hover {
    background: #15549b;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.news-empty,
.news-error {
    background: #ffffff;
    border: 1px dashed rgba(15,61,115,0.25);
    border-radius: 22px;
    padding: 35px;
    text-align: center;
    color: #6b7280;
}

/* =========================================
   All News and Events Page
========================================= */

.all-news-events-page {
    background: #f4f7fb;
}

.all-news-hero {
    padding: 70px 0 30px;
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.all-news-list-section {
    padding: 20px 0 70px;
    background: #ffffff;
}

.all-news-count {
    color: #64748b;
    font-weight: 700;
}

/* =========================================
   News Detail Page
========================================= */

.news-detail-page {
    background: #f4f7fb;
}

.news-detail-content-section {
    padding: 55px 0 25px;
}

.news-detail-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.news-detail-article {
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(15,61,115,0.10);
    box-shadow: 0 16px 42px rgba(0,0,0,0.08);
}

.news-detail-cover {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #eef3f9;
}

.news-detail-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.news-detail-body {
    padding: 42px;
}

.news-detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.news-detail-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15,61,115,0.08);
    color: #0f3d73;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
}

.news-detail-main-title {
    color: #111827;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 16px;
}

.news-detail-main-summary {
    color: #5f6b7a;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.news-detail-text p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.news-gallery {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.news-gallery-title {
    color: #0f3d73;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.news-gallery-item {
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #dbeafe;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-gallery-item:hover,
.news-gallery-item:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(15,61,115,0.18);
    outline: none;
}

.news-gallery-item:focus-visible {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.28), 0 18px 34px rgba(15,61,115,0.18);
}

.news-gallery-item:hover img,
.news-gallery-item:focus-visible img {
    transform: scale(1.05);
}

.news-gallery-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15,61,115,0.90);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.news-gallery-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0,0,0,0.30);
}

.news-gallery-modal .modal-header,
.news-gallery-modal .modal-footer {
    border: 0;
    padding: 18px 22px;
}

.news-gallery-modal .modal-title {
    color: #0f3d73;
    font-size: 20px;
    font-weight: 800;
}

.news-gallery-modal .modal-body {
    position: relative;
    min-height: 300px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1625;
}

.news-gallery-large-image {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.news-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #0f3d73;
    box-shadow: 0 8px 24px rgba(0,0,0,0.24);
    transform: translateY(-50%);
    transition: background 0.35s ease, transform 0.35s ease;
}

.news-gallery-control:hover,
.news-gallery-control:focus-visible {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    outline: 3px solid rgba(59,130,246,0.50);
}

.news-gallery-previous {
    left: 18px;
}

.news-gallery-next {
    right: 18px;
}

.news-gallery-counter {
    width: 100%;
    color: #64748b;
    font-weight: 700;
    text-align: center;
}

.back-news-link {
    color: #0f3d73;
    margin-bottom: 24px;
    font-weight: 800;
    text-decoration: none;
}

.back-news-link:hover {
    color: #15549b;
    transform: translateX(-4px);
}

.news-detail-not-found {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-detail-not-found-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.08);
}

/* =========================================
   Publications
========================================= */

.publication-section {
    padding: 90px 0 70px;
    scroll-margin-top: 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.publication-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15,61,115,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform .35s ease, box-shadow .35s ease;
}

.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(15,61,115,0.14);
}

.publication-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #dbeafe;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease, filter .4s ease;
}

.publication-card:hover .publication-image img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.publication-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publication-body h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
}

.publication-section .publication-title-link,
.publication-section .publication-title-link:link,
.publication-section .publication-title-link:visited,
.publication-section .publication-title-link:hover,
.publication-section .publication-title-link:focus,
.publication-section .publication-title-link:active {
    color: #153e75 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: color .3s ease;
}

.publication-section .publication-title-link:hover,
.publication-section .publication-card:hover .publication-title-link {
    color: #0f3d73 !important;
    text-decoration: none !important;
}

.publication-body p {
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0;
    flex: 1;
}

/* =========================================
   Stats
========================================= */

.stats-section {
    background: white;
    padding: 70px 0;
    margin-top: 100px;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-box i {
    font-size: 52px;
    color: #0f3d73;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #111827;
}

/* =========================================
   Footer
========================================= */

.footer {
    background: #0b1f3a;
    color: rgba(255,255,255,0.85);
    padding: 60px 0 25px;
    margin-top: 0;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   Scroll To Top Button
========================================= */

#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: #0f3d73;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #15549b;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 992px) {
    .portal-title {
        font-size: 22px;
    }

    .portal-subtitle {
        font-size: 12px;
    }

    .mrc-logo {
        width: 52px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .hero {
        min-height: 480px;
        padding: 80px 25px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 34px;
    }

    .geo-frame-wrapper {
        height: 560px;
    }

    .country-content {
        padding: 24px;
    }

    .news-card-image {
        height: 220px;
    }

    .news-detail-main-title {
        font-size: 32px;
    }

    .news-detail-body {
        padding: 32px;
    }

    .publication-image {
        height: 240px;
    }

    .publication-body h3 {
        font-size: 21px;
    }
}

/* =========================================
   Footer Contact
========================================= */

.footer-contact-list {
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.footer-contact-list i {
    color: #4da3ff;
    font-size: 18px;
    min-width: 20px;
    margin-top: 4px;
}

.footer-contact-list span,
.footer-contact-list a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-contact-list li {
        justify-content: center;
        text-align: left;
    }
}

/* =========================================
   Videos
========================================= */

.video-section {
    padding: 90px 0 70px;
    scroll-margin-top: 120px;
    background:
        radial-gradient(circle at top right, rgba(15,61,115,0.10), transparent 35%),
        linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}

.video-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15,61,115,0.10);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 55px rgba(15,61,115,0.16);
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
    text-decoration: none !important;
}

.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11,31,58,0.55),
        rgba(11,31,58,0.08)
    );
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
}

.video-card:hover .video-thumb::after {
    opacity: 1;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .55s ease, filter .4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.06);
    filter: brightness(.88);
}

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    background: rgba(255,255,255,.96);
    color: #0f3d73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 38px rgba(0,0,0,.25);
    z-index: 2;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}

.video-play i {
    font-size: 24px;
    margin-left: 5px;
}

.video-card:hover .video-play {
    background: #0f3d73;
    color: #ffffff;
    transform: scale(1.08);
}

.video-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-body h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
}

.video-body h3 a,
.video-body h3 a:visited,
.video-body h3 a:hover,
.video-body h3 a:focus,
.video-body h3 a:active {
    color: #153e75 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: color .3s ease;
}

.video-card:hover .video-body h3 a {
    color: #0f3d73 !important;
}

.video-body p {
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 0;
    flex: 1;
}

.video-date{
    display:inline-flex;
    align-items:center;
    gap:8px;

    margin-bottom:16px;
    padding:7px 14px;

    background:#eef4fb;
    border:1px solid rgba(15,61,115,.08);
    border-radius:999px;

    color:#264b82;
    font-size:13px;
    font-weight:700;
    letter-spacing:.3px;
    text-transform:uppercase;
}

.video-date i{
    color:#3b82f6;
    font-size:14px;
}

@media (max-width: 768px) {
    .video-section {
        padding: 60px 0 45px;
        scroll-margin-top: 150px;
    }

    .video-body {
        padding: 20px;
    }

    .video-body h3 {
        font-size: 20px;
    }

    .video-play {
        width: 64px;
        height: 64px;
    }

    .video-play i {
        font-size: 20px;
    }
}

/* =========================================
   Daily Water Levels
========================================= */

.daily-water-section {
    padding: 90px 0 70px;
    scroll-margin-top: 120px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.daily-water-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 42px;
    border: 1px solid rgba(15,61,115,0.10);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.daily-water-image {
    border-radius: 26px;
    overflow: hidden;
    background: #dbeafe;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.daily-water-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s ease;
}

.daily-water-card:hover .daily-water-image img {
    transform: scale(1.04);
}

.daily-water-content p {
    color: #5f6b7a;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .daily-water-section {
        padding: 60px 0 45px;
        scroll-margin-top: 150px;
    }

    .daily-water-card {
        padding: 24px;
        border-radius: 24px;
    }

    .daily-water-image img {
        height: 380px;
    }

    .daily-water-content {
        text-align: center;
    }

    .daily-water-content .btn-news-all {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }

    .topbar {
        font-size: 12px;
        text-align: center;
    }

    .topbar .container {
        flex-direction: column;
        gap: 6px;
    }

    .navbar-custom {
        top: 58px;
        padding: 10px 0;
    }

    .navbar-custom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-brand {
        width: auto;
        max-width: calc(100% - 65px);
        margin-right: 0;
        display: flex;
        align-items: center;
    }

    .mrc-logo {
        width: 40px;
        flex-shrink: 0;
    }

    .portal-title {
        font-size: 16px;
        line-height: 1.2;
        white-space: normal;
    }

    .portal-subtitle {
        font-size: 10px;
        line-height: 1.2;
    }

    .navbar-toggler {
        margin-left: auto;
        width: 46px;
        height: 42px;
        padding: 6px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        flex-shrink: 0;
        z-index: 10;
    }

    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        margin-top: 12px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
    }

    .navbar-nav {
        width: 100%;
        padding: 8px 0;
        text-align: left;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
        padding: 12px 16px;
        margin-left: 0;
        color: #1f2937 !important;
        border-bottom: 1px solid #f1f5f9;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: #f4f7fb;
        color: #0f3d73 !important;
    }

    .hero {
        min-height: 420px;
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.8;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .section-kicker {
        font-size: 13px;
        padding: 7px 15px;
    }

    .card-header-image {
        height: 220px;
    }

    .country-name {
        font-size: 24px;
    }

    .country-content {
        padding: 22px;
    }

    .country-content p {
        min-height: auto;
        font-size: 15px;
    }

    .btn-portal {
        font-size: 15px;
        min-height: 54px;
        padding: 12px 20px;
    }

    .geo-section {
        padding: 60px 0 10px;
        scroll-margin-top: 150px;
    }

    .geo-frame-wrapper {
        height: 75vh;
        min-height: 420px;
        border-radius: 18px;
    }

    .news-event-section {
        padding: 60px 0 35px;
        scroll-margin-top: 150px;
    }

    .news-card-image {
        height: 210px;
    }

    .news-card-body {
        padding: 22px;
    }

    .news-card-title {
        font-size: 19px;
    }

    .btn-news-all {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }

    .all-news-hero {
        padding: 45px 0 25px;
    }

    .all-news-list-section {
        padding-bottom: 45px;
    }

    .news-detail-content-section {
        padding: 32px 0 15px;
    }

    .news-detail-cover {
        height: 260px;
    }

    .news-detail-body {
        padding: 24px;
    }

    .news-detail-main-title {
        font-size: 28px;
    }

    .news-detail-main-summary {
        font-size: 16px;
    }

    .news-gallery-grid {
        grid-template-columns: 1fr;
    }

    .news-gallery-item img {
        height: 220px;
    }

    .news-gallery-modal .modal-dialog {
        margin: 12px;
    }

    .news-gallery-control {
        width: 42px;
        height: 42px;
    }

    .news-gallery-previous {
        left: 10px;
    }

    .news-gallery-next {
        right: 10px;
    }

    .publication-section {
        padding: 60px 0 45px;
        scroll-margin-top: 150px;
    }

    .publication-image {
        height: 220px;
    }

    .publication-body {
        padding: 20px;
    }

    .publication-body h3 {
        font-size: 20px;
    }

    .publication-card:hover {
        transform: translateY(-6px);
    }

    
    .stats-section {
        margin-top: 70px;
        padding: 60px 0;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-number {
        font-size: 34px;
    }

    .footer {
        padding: 50px 0 20px;
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 30px;
    }

    .footer-bottom {
        margin-top: 20px;
    }

    #scrollTopBtn {
        width: 48px;
        height: 48px;
        right: 18px;
        bottom: 18px;
        font-size: 16px;
    }
}

/* =========================================
   Mobile Header Fix
========================================= */

@media (max-width: 768px) {
    body {
        padding-top: 112px;
    }

    .topbar {
        height: 34px;
        padding: 7px 0;
        font-size: 13px;
        line-height: 1.2;
    }

    .topbar .container {
        justify-content: center !important;
        text-align: center;
    }

    .navbar-custom {
        top: 34px;
        padding: 8px 0;
    }

    .navbar-brand {
        max-width: calc(100% - 64px);
        align-items: center;
    }

    .mrc-logo {
        width: 42px;
    }

    .navbar-brand .ms-3 {
        margin-left: 10px !important;
    }

    .portal-title {
        font-size: 17px;
        line-height: 1.2;
    }

    .portal-subtitle {
        font-size: 12px;
        line-height: 1.2;
    }

    .navbar-toggler {
        width: 46px;
        height: 42px;
        padding: 6px;
    }

    .navbar-collapse {
        margin-top: 8px;
    }

    .hero {
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    body {
        padding-top: 118px;
    }

    .portal-title {
        font-size: 16px;
    }

    .portal-subtitle {
        font-size: 11px;
    }

    .mrc-logo {
        width: 40px;
    }
}

/* =========================================
   Photo Gallery Modal Responsive Fix
========================================= */

/* Keep the modal above the fixed navigation */
.modal-backdrop {
    z-index: 10040;
}

.news-gallery-modal {
    z-index: 10050;
}

.news-gallery-modal .modal-dialog {
    margin-top: 20px;
    margin-bottom: 20px;
}

.news-gallery-modal .modal-content {
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.news-gallery-modal .modal-header,
.news-gallery-modal .modal-footer {
    flex: 0 0 auto;
}

.news-gallery-modal .modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.news-gallery-large-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 165px);
    object-fit: contain;
}

/* Short laptop screens */
@media (min-width: 768px) and (max-height: 850px) {
    .news-gallery-modal .modal-dialog {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .news-gallery-modal .modal-content {
        max-height: calc(100vh - 24px);
    }

    .news-gallery-modal .modal-header,
    .news-gallery-modal .modal-footer {
        padding: 12px 20px;
    }

    .news-gallery-large-image {
        max-height: calc(100vh - 125px);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .news-gallery-modal .modal-dialog {
        margin: 10px;
    }

    .news-gallery-modal .modal-content {
        max-height: calc(100vh - 20px);
    }

    .news-gallery-modal .modal-body {
        touch-action: pan-y;
    }

    .news-gallery-large-image {
        max-height: calc(100vh - 145px);
    }

    .news-gallery-previous,
    .news-gallery-next {
        display: none;
    }
}