/* ============================================================
   ROOT VARIABLES — BLUE THEME
   ============================================================ */
:root {
    --ink: #1a2a38;
    --teal: #135796;
    --teal-dark: #0f4578;
    --aqua: #e6f0f9;
    --orange: #f5a344;
    --cream: #f4f8fc;
    --muted: #3a6085;
}

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

body {
    /*color: var(--ink);*/
    /*background: #fff;*/
}

/*

*/
.bg-white-55 {
    background-color: rgba(255, 255, 255, 0.55);
}
.bg-white-65 {
    background-color: rgba(255, 255, 255, 0.65);
}
.bg-white-75 {
    background-color: rgba(255, 255, 255, 0.75);
}
.bg-white-85 {
    background-color: rgba(255, 255, 255, 0.85);
}
.bg-white-95 {
    background-color: rgba(255, 255, 255, 0.95);
}

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

.portal-nav.scrolled,
.page-main ~ .site-footer + .portal-nav {
    background: rgba(10, 47, 82, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 18px rgba(10, 47, 82, 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;
    border-radius: 3px;
    border: 1px dashed #135796;
    background-color: white;
    color: #0f4578 !important;
}

.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%, #3a7fb8 0%, #135796 22%, #0f4578 55%, #0a2f52 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(--bg-light);
    font-weight: 700;
    letter-spacing: 0.13em;
}

.eyebrow.light { color: #d5e8f4; }

.landing-hero h1,
.inner-hero h1,
.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 h1 em { color: var(--bs-light); }

.landing-hero .lead {
    max-width: 620px;
    color: #e1eef3;
    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
   ============================================================ */
.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(19, 87, 150, 0.07);
    transition: 0.2s;
    border: 1px solid #e4ebf2;
}

.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: #135796; }
.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
   ============================================================ */
.inner-hero {
  position: relative;
  padding: 9.5rem 0 5.2rem;
  color: white;
  background: url(../images/page-header.jpeg) center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
      135deg,                                    /* ← 135° = diagonal */
      rgb(11 46 83 / 75%) 0%,
      rgb(4 19 33 / 60%) 25%,
      rgb(255 255 255 / 50%) 50%,
      rgb(4 19 33 / 60%) 75%,
      rgb(11 46 83 / 75%) 100%
    );
    background-size: 200% 100%;
    background-repeat: repeat-x;
    animation: heroGradientSlide 8s linear infinite;
}

@keyframes heroGradientSlide {
  from { background-position: 0%   0%; }
  to   { background-position: 200% 0%; }   /* geser 1 tile penuh → seamless */
}

.inner-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 0.65rem 0; }
.inner-hero p  { font-size: 1.05rem; color: #d8e9f4; 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
   ============================================================ */
.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(19, 87, 150, 0.09);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    border-color: #135796;
    box-shadow: 0 14px 28px rgba(19, 87, 150, 0.18);
}

.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: 2rem 0; 
}
.bg-soft { background: #f4f8fc; }

.section-space.bg-soft {
    background-color: rgb(20 55 89 / 12%);
}

.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 #dde8f0;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    transition: 0.2s;
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 14px 28px rgba(19, 87, 150, 0.18);
}

.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 #dde8f0; border-radius: 14px; overflow: hidden; }
.dataset-list article {
    padding: 1.15rem;
    display: flex;
    align-items: start;
    gap: 1rem;
    border-bottom: 1px solid #dde8f0;
}
.dataset-list article:last-child { border: 0; }

.file-type {
    font-size: 0.65rem;
    color: #fff;
    background: #135796;
    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 { border-radius: 14px; padding: 1.25rem; border: 1px solid #dde8f0; }
.chart-card h5 { font-weight: 700; font-size: 0.95rem; }

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

.site-footer p,
.site-footer a {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #c5d6dd;
    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: #b4cad8;
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-main { padding-top: 0; 
    background: 
        linear-gradient(
          -120deg,
          /*rgba(210, 210, 210, 0.70) 45%,*/
          rgba(250, 250, 250, 0.92) 100%

        ),
        url('../images/page-body-01.png')
        ;
    background-size: 40%;
}

main {
    background: 
        linear-gradient(
          -120deg,
          /*rgba(210, 210, 210, 0.70) 45%,*/
          rgba(250, 250, 250, 0.92) 100%

        ),
        url('../images/page-body-01.png')
        ;
    background-size: 40%;
}

.page-title {
    padding: 6rem 0 1rem;
    /*background-image: url('../images/bg-3.png');*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background: 
        linear-gradient(23deg, rgb(47 92 204) 0%, rgb(3 139 209 / 87%) 45%, rgb(0 204 232) 100%), 
        url(../images/page-header-01.png) center / cover no-repeat;
    /*background: 
        linear-gradient(
          -120deg,
          rgba(140, 170, 200, 0.85) 0%,
          rgba(190, 210, 230, 0.70) 45%,
          rgba(240, 245, 250, 0.50) 100%
        ),
        url('../images/page-header-01.png')  center / cover no-repeat;*/
}

.page-title .breadcrumb { font-size: 0.88rem; margin-bottom: 1.25rem; color: var(--bs-white); }
.page-title .breadcrumb a { color: var(--bs-white); text-decoration: none; }
.page-title h1 {
    /*font-family: 'Playfair Display', serif;*/
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 700;
    margin: 0.45rem 0;
}
.page-title p { color: var(--bs-white); margin: 0; }
.page-title h1 { color: var(--bs-white); }
.page-title span { color: var(--bs-white); margin: 0; }

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
    padding: 1.35rem;
    /*background: #f4f8fc;*/
    border: 1px solid #dde8f0;
    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 #dde8f0;
    border-radius: 14px;
}

.org-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    border-color: var(--teal);
    box-shadow: 0 14px 28px rgba(19, 87, 150, 0.18);
}

.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
   ============================================================ */
.topic-wide {
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #dde8f0;
    border-radius: 13px;
    color: var(--ink);
    transition: 0.2s;
}

.topic-wide:hover {
    color: var(--teal);
    transform: translateY(-6px) rotate(-1deg);
    border-color: var(--teal);
    box-shadow: 0 14px 28px rgba(19, 87, 150, 0.18);
}

.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 #dde8f0; border-radius: 14px; }
.contact-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.3rem; }

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

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

/* ============================================================
   MAP & ADDRESS
   ============================================================ */
#map { height: 300px; border-radius: 14px 14px 0 0; }
.contact-address { padding: 1.4rem; background: #f4f8fc; 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: #0f4578; }
    .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; }

div.dt-container 
div.dt-length, 
div.dt-search,
div.dt-info, 
div.dt-paging {
    /*text-align: center;*/
    margin-top: 0.5em !important;
}
