/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --ink: #112c37;
    --teal: #0a7266;
    --teal-dark: #075b52;
    --aqua: #dff4ef;
    --orange: #f5a344;
    --cream: #f8f4ec;
    --muted: #667780;
}

/* ============================================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #fff;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.portal-nav {
    padding: 1.1rem 0;
    transition: 0.25s;
    background: linear-gradient(180deg, rgba(6, 67, 64, 0.62), transparent);
}

.portal-nav.scrolled,
.page-main ~ .site-footer + .portal-nav {
    /*background: rgba(7, 57, 56, 0.96);*/
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 18px rgba(0, 29, 24, 0.14);
}

.navbar-brand {
    font-size: 1.05rem;
    line-height: 1;
}

.navbar-brand small {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 3px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--orange);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff !important;
    opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.52);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.48rem 0.85rem;
}

.btn-login:hover {
    background: #fff;
    color: var(--teal);
}

/* ============================================================
   LANDING HERO
   ============================================================ */
.landing-hero {
    color: white;
    min-height: 720px;
    background: radial-gradient(circle at 76% 36%, #248c84 0%, #0b716a 22%, #075b57 55%, #063b41 100%);
    position: relative;
    overflow: hidden;
    background-image: url('../images/bg-1.png');
}

.hero-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 620px;
    height: 620px;
}

.shape-one {
    right: -170px;
    top: -90px;
}

.shape-two {
    right: 8%;
    bottom: -450px;
    width: 760px;
    height: 760px;
}

.eyebrow {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.72rem;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.13em;
}

.eyebrow.light {
    color: #d5f4ed;
}

.landing-hero h1,
.inner-hero h1,

/*.landing-hero h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}*/

.landing-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}

.landing-hero h1 em {
    color: #ffc16f;
}

.landing-hero .lead {
    max-width: 620px;
    color: #e1f3ef;
    font-size: 1.14rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    font-weight: 700;
}

.btn-primary:hover {
    background: #e59131;
    border-color: #e59131;
}

/* ============================================================
   ACCESS SECTION (cards)
   ============================================================ */
.access-section {
    background: var(--cream);
    padding: 0 0 5rem;
}

.access-section .row {
    margin-top: -75px;
    position: relative;
}

.access-card {
    display: block;
    height: 100%;
    padding: 2rem;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(18, 61, 53, 0.07);
    transition: 0.2s;
    border: 1px solid #edf0ee;
}

.access-card:hover {
    transform: translateY(-5px);
    color: var(--ink);
}

.access-card.featured {
    border-top: 4px solid var(--orange);
}

.access-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.45rem;
    margin-bottom: 1.2rem;
}

.access-icon.peach {
    background: #ffead3;
    color: #de8226;
}

.access-icon.blue {
    background: #d9eff5;
    color: #22768a;
}

.access-icon.green {
    background: #dff3e7;
    color: #288458;
}

.access-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.access-card p {
    color: var(--muted);
    font-size: 0.9rem;
    min-height: 48px;
}

.access-card > span:last-child {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 700;
}

/* ============================================================
   INNER HERO (sub‑pages)
   ============================================================ */
.inner-hero {
    padding: 9.5rem 0 5.2rem;
    color: white;
    background: linear-gradient(115deg, #07524e, #0b776d);
    background-image: url('../images/bg-1.png');
    /*background-size: cover;*/
    background-position: left;
}

.inner-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    margin: 0.65rem 0;
}

.inner-hero p {
    font-size: 1.05rem;
    color: #d8efeb;
    max-width: 620px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.dataset-search {
    height: 58px;
    background: #fff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    max-width: 650px;
    overflow: hidden;
    margin-top: 1.6rem;
}

.dataset-search i {
    color: #7b9290;
    padding-left: 1.1rem;
}

.dataset-search input {
    border: 0;
    outline: 0;
    flex: 1;
    padding: 0.8rem;
    color: var(--ink);
}

.dataset-search button {
    background: var(--orange);
    height: 100%;
    padding: 0 1.25rem;
    border: 0;
    color: #fff;
    font-weight: 700;
}

/* ============================================================
   HERO GRAPHIC (floating icons)
   ============================================================ */
.hero-graphic {
    height: 250px;
    position: relative;
}

.hero-graphic i {
    position: absolute;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 20px;
    padding: 1.3rem;
    color: #ffbd62;
    font-size: 2rem;
}

.hero-graphic i:nth-child(1) {
    left: 18%;
    top: 18%;
}

.hero-graphic i:nth-child(2) {
    right: 14%;
    top: 0;
}

.hero-graphic i:nth-child(3) {
    right: 25%;
    bottom: 2%;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-wrap {
    margin-top: -38px;
    position: relative;
}

.stat-card {
    background: #fff;
    padding: 1.3rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(22, 68, 60, 0.09);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-card i {
    color: var(--teal);
    font-size: 1.4rem;
    background: var(--aqua);
    padding: 0.55rem;
    border-radius: 9px;
}

.stat-card strong {
    font-size: 1.5rem;
    line-height: 1;
}

.stat-card span {
    font-size: 0.78rem;
    color: var(--muted);
    align-self: flex-end;
    margin-left: -0.35rem;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-space {
    padding: 5rem 0;
}

.bg-soft {
    background: #f5faf8;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.45rem 0 0;
}

.section-heading > a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.87rem;
}

/* ============================================================
   TOPIC CARDS
   ============================================================ */
.topic-card {
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e7eeeb;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    transition: 0.2s;
}

.topic-card:hover {
    box-shadow: 0 8px 20px rgba(22, 68, 60, 0.07);
    transform: translateY(-3px);
    color: var(--teal);
}

.topic-card i {
    font-size: 1.35rem;
    color: var(--teal);
    margin-bottom: 0.8rem;
}

.topic-card span {
    font-weight: 700;
    font-size: 0.9rem;
}

.topic-card small {
    color: var(--muted);
    font-size: 0.73rem;
    margin-top: 0.25rem;
}

/* ============================================================
   DATASET LIST
   ============================================================ */
.dataset-list {
    border: 1px solid #e6eeeb;
    border-radius: 14px;
    overflow: hidden;
}

.dataset-list article {
    padding: 1.15rem;
    display: flex;
    align-items: start;
    gap: 1rem;
    border-bottom: 1px solid #e6eeeb;
}

.dataset-list article:last-child {
    border: 0;
}

.file-type {
    font-size: 0.65rem;
    color: #fff;
    background: #168a7d;
    font-weight: 700;
    padding: 0.42rem 0.32rem;
    border-radius: 5px;
}

.file-type.xls {
    background: #237d4b;
}

.file-type.pdf {
    background: #c64c43;
}

.dataset-list h5 {
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.dataset-list p,
.dataset-list small {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.dataset-list article > a {
    margin-left: auto;
    color: var(--teal);
}

/* ============================================================
   CHART CARD
   ============================================================ */
.chart-card {
    height: 100%;
    border-radius: 14px;
    /*padding: 1.25rem;*/
    border: 1px solid #e6eeeb;
}

.chart-card h5 {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #073e40;
    background-image: url('../images/bg-4.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #d2e7e5;
}

.site-footer p,
.site-footer a {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #c5ddda;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    color: #fff;
    font-size: 1.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    padding: 1.1rem 0;
    font-size: 0.72rem;
    color: #b4ceca;
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-main {
    padding-top: 0;
}


.page-title {
    padding: 8.8rem 0 3rem;
    /*background: radial-gradient(circle at 76% 36%, #248c84 0%, #0b716a 22%, #075b57 55%, #063b41 100%);*/
    /*background: radial-gradient(circle at 76% 36%, #ffffff 0%, #f0f0f0 22%, #d9d9d9 55%, #bfbfbf 100%);*/
    /*background: radial-gradient(circle at 76% 36%, #c0c0c0 0%, #a0a0a0 22%, #7a7a7a 55%, #4d4d4d 100%);*/
    /*background: linear-gradient(125deg, #eef8f5, #f8f4ec);*/
    background-image: url('../images/bg-2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.page-title .breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.page-title .breadcrumb a {
    color: var(--teal);
    text-decoration: none;
}

.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    margin: 0.45rem 0;
}

.page-title p {
    color: var(--muted);
    margin: 0;
}
/*
.page-title {
    background: var(--cream);
    padding: 9rem 0 3.8rem;
}

.page-title h1 {
    font-size: 3.2rem;
    margin: 0.5rem 0;
}

.page-title p {
    color: var(--muted);
    margin: 0;
}*/

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
    padding: 1.35rem;
    background: #f6faf8;
    border: 1px solid #e5eeeb;
    border-radius: 14px;
}

.filter-panel label,
.contact-card label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 0.8rem;
    top: 0.7rem;
    color: var(--muted);
}

.input-icon input {
    padding-left: 2.25rem;
}

/* ============================================================
   TABLE
   ============================================================ */
.table {
    font-size: 0.87rem;
}

.table thead th {
    color: var(--muted);
    font-weight: 700;
    border-bottom-width: 1px;
}

/* ============================================================
   ORGANIZATION CARDS
   ============================================================ */
.org-card {
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid #e4ece9;
    border-radius: 14px;
}

.org-card > span {
    width: 43px;
    height: 43px;
    flex: none;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--teal);
    background: var(--aqua);
    font-size: 1.15rem;
}

.org-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0.1rem 0;
}

.org-card p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0.25rem 0 0.65rem;
}

.org-card a,
.topic-wide {
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
}

/* ============================================================
   TOPIC WIDE (list item)
   ============================================================ */
.topic-wide {
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e3ece9;
    border-radius: 13px;
    color: var(--ink);
    transition: 0.2s;
}

.topic-wide:hover {
    color: var(--teal);
    box-shadow: 0 8px 20px rgba(22, 68, 60, 0.07);
}

.topic-wide > i:first-child {
    font-size: 1.4rem;
    color: var(--teal);
}

.topic-wide h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.topic-wide p {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.topic-wide > i:last-child {
    margin-left: auto;
}

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    padding: 1.7rem;
    border: 1px solid #e3ece9;
    border-radius: 14px;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.form-select {
    border-color: #d8e5e0;
    padding: 0.65rem 0.8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(10, 114, 102, 0.12);
}

/* ============================================================
   MAP & ADDRESS
   ============================================================ */
#map {
    height: 300px;
    border-radius: 14px 14px 0 0;
}

.contact-address {
    padding: 1.4rem;
    background: #f5faf8;
    border-radius: 0 0 14px 14px;
}

.contact-address h5 {
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-address p {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 0.5rem 0;
}

.contact-address i {
    color: var(--teal);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .portal-nav {
        background: #074b4b;
    }

    .landing-hero {
        min-height: 630px;
    }

    .inner-hero {
        padding-top: 8rem;
    }

    .access-section .row {
        margin-top: -45px;
    }

    .section-space {
        padding: 3.5rem 0;
    }
}

@media (max-width: 575px) {
    .landing-hero h1 {
        font-size: 3rem;
    }

    .landing-hero .lead {
        font-size: 1rem;
    }

    .access-section {
        padding-bottom: 3.5rem;
    }

    .section-heading h2 {
        font-size: 1.45rem;
    }

    .section-heading {
        align-items: start;
        gap: 1rem;
    }

    .dataset-search button {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card strong {
        font-size: 1.25rem;
    }

    .page-title h1 {
        font-size: 2.6rem;
    }
}

/* ============================================================
   ADDITIONAL OVERRIDES
   ============================================================ */
ul.dropdown-menu > li > a {
    color: black !important;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
}

.active>.page-link, .page-link.active {
    color: var(--bs-pagination-active-color) !important;
}
