/* ==============================
   ARTICLE PAGE DESIGN SYSTEM
============================== */

:root {
    --article-navy: #0B132B;
    --article-gold: #D4A24C;
    --article-white: #FFFFFF;
    --article-soft: #F7F8FA;
    --article-dark: #1E1E1E;
    --article-muted: #64748b;
    --article-border: #e5e7eb;
    --article-shadow: 0 22px 60px rgba(15, 23, 42, .10);
    --article-shadow-soft: 0 14px 34px rgba(15, 23, 42, .08);
}

/* ==============================
   ARTICLES HERO / BANNER
============================== */

.articles-banner {
    position: relative;
    width: 100%;
    min-height: 760px;

    /*
      Hero dinaikkan ke belakang navbar.
      Nilai 118px mengikuti tinggi header publik pada tampilan saat ini.
    */
    margin-top: -100px;
    padding: 150px 20px 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(11, 19, 43, .94),
            rgba(30, 30, 30, .82)
        ),
        url('../../assets/img/mta-banner.jpg');

    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.articles-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 162, 76, .18), transparent 34%),
        radial-gradient(circle at 80% 35%, rgba(255, 255, 255, .08), transparent 28%);
    z-index: 1;
    pointer-events: none;
}

.articles-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(
        to bottom,
        transparent,
        #f8fafc
    );
    z-index: 1;
    pointer-events: none;
}

.articles-overlay {
    display: none;
}

.articles-content {
    position: relative;
    z-index: 2;

    width: min(100%, 980px);
    text-align: center;
    padding-inline: 20px;
}

.articles-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
    padding: 9px 16px;

    border: 1px solid rgba(212, 162, 76, .45);
    border-radius: 999px;

    background: rgba(212, 162, 76, .10);
    color: var(--article-gold);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.articles-content h1 {
    margin: 0 auto 24px;
    max-width: 860px;

    color: var(--article-white);
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -2px;
}

.articles-content p {
    max-width: 760px;
    margin: 0 auto;

    color: rgba(255, 255, 255, .84);
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.8;
}

/* ==============================
   SMALL HERO FOR CATEGORY / DETAIL / SEARCH
============================== */

.articles-banner-small {
    min-height: 520px;
    padding: 240px 20px 90px;
}

.articles-banner-small .articles-content h1 {
    font-size: clamp(36px, 5vw, 64px);
}

/* ==============================
   HERO SEARCH
============================== */

.article-search-hero {
    width: min(100%, 860px);
    margin: 46px auto 0;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;

    padding: 8px;
    border-radius: 999px;

    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.article-search-hero input {
    width: 100%;
    min-height: 58px;

    border: none;
    outline: none;
    border-radius: 999px;

    padding: 0 24px;
    background: transparent;

    color: var(--article-dark);
    font-size: 16px;
}

.article-search-hero input::placeholder {
    color: #64748b;
}

.article-search-hero button {
    min-height: 58px;
    padding: 0 34px;

    border: none;
    border-radius: 999px;

    background: var(--article-gold);
    color: var(--article-navy);

    font-size: 15px;
    font-weight: 900;

    cursor: pointer;
    transition: .22s ease;
}

.article-search-hero button:hover {
    transform: translateY(-1px);
    background: #c5923d;
}

/* ==============================
   SEARCH PAGE FORM
============================== */

.article-search-box {
    margin-bottom: 34px;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;

    padding: 8px;
    border-radius: 999px;

    background: var(--article-white);
    box-shadow: var(--article-shadow-soft);
}

.article-search-box input {
    width: 100%;
    min-height: 54px;

    border: none;
    outline: none;
    border-radius: 999px;

    padding: 0 22px;

    color: var(--article-dark);
    font-size: 15px;
}

.article-search-box button {
    min-height: 54px;
    padding: 0 28px;

    border: none;
    border-radius: 999px;

    background: var(--article-navy);
    color: var(--article-white);

    font-weight: 900;
    cursor: pointer;
}

/* ==============================
   SECTION BASE
============================== */

.news-section,
.slider-section {
    position: relative;
    z-index: 3;
    background: #f8fafc;
}

.news-section {
    padding-top: 90px;
}

.slider-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

/* ==============================
   SECTION HEADER
============================== */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 50px;
    gap: 24px;
}

.section-header span {
    display: inline-flex;
    margin-bottom: 10px;

    color: var(--article-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;

    color: var(--article-navy);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-header a {
    color: var(--article-navy);
    text-decoration: none;

    font-size: 14px;
    font-weight: 900;

    transition: .2s ease;
}

.section-header a:hover {
    color: var(--article-gold);
}

/* ==============================
   NEWS LAYOUT
============================== */

.news-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* ==============================
   MAIN NEWS CARD
============================== */

.main-news-card {
    background: var(--article-white);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--article-shadow);
}

.main-news-card img {
    width: 100%;
    height: 420px;

    display: block;
    object-fit: cover;
}

.main-news-content {
    padding: 36px;
}

.main-news-content span {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
}

.main-news-content h3 {
    margin: 16px 0;
    color: var(--article-navy);

    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.main-news-content p {
    margin: 0 0 24px;

    color: var(--article-muted);
    line-height: 1.8;
}

.main-news-content a {
    color: var(--article-navy);
    font-weight: 900;
    text-decoration: none;
}

.main-news-content a:hover {
    color: var(--article-gold);
}

/* ==============================
   SIDE NEWS
============================== */

.side-news-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.side-news-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-news-title {
    margin-bottom: 2px;

    font-size: 18px;
    font-weight: 900;
    color: var(--article-navy);
}

.side-news-card {
    background: var(--article-white);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 22px;
    padding: 16px;

    display: flex;
    align-items: center;
    gap: 16px;

    box-shadow: var(--article-shadow-soft);
    transition: .22s ease;
}

.side-news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--article-shadow);
}

.side-news-card img {
    width: 92px;
    height: 92px;

    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-news-card h4 {
    margin: 0 0 10px;

    font-size: 16px;
    line-height: 1.45;
}

.side-news-card h4 a {
    color: var(--article-navy);
    text-decoration: none;
}

.side-news-card h4 a:hover {
    color: var(--article-gold);
}

.side-news-card span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

/* ==============================
   ARTICLE CARD GRID
============================== */

.article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==============================
   SLIDER / ARTICLE CARDS
============================== */

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: var(--article-white);
    color: var(--article-navy);

    box-shadow: var(--article-shadow-soft);

    cursor: pointer;
    font-size: 24px;
    transition: .2s ease;
}

.slider-btn:hover {
    transform: translateY(-2px);
    background: var(--article-navy);
    color: var(--article-white);
}

.slider-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    flex: 1;
}

.slider-card {
    background: var(--article-white);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 26px;
    padding: 34px;
    box-shadow: var(--article-shadow-soft);
    transition: .22s ease;
}

.slider-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--article-shadow);
}

.slider-card span {
    display: block;
    margin-bottom: 12px;

    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.slider-card h3 {
    margin: 0 0 18px;

    color: var(--article-navy);
    font-size: 24px;
    line-height: 1.3;
}

.slider-card p {
    margin: 0;

    color: var(--article-muted);
    line-height: 1.8;
}

.slider-card a {
    display: inline-flex;
    margin-top: 18px;

    color: var(--article-navy);
    font-weight: 900;
    text-decoration: none;
}

.slider-card a:hover {
    color: var(--article-gold);
}

/* ==============================
   ARTICLE DETAIL
============================== */

.article-detail-container {
    max-width: 980px;
}

.article-detail-image {
    width: 100%;
    height: 460px;

    object-fit: cover;
    border-radius: 28px;

    box-shadow: var(--article-shadow);
    margin-bottom: 34px;
}

.article-detail-content {
    padding: 42px;
    border-radius: 28px;

    background: var(--article-white);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--article-shadow-soft);
}

.article-detail-content p {
    margin: 0;

    color: #334155;
    font-size: 18px;
    line-height: 1.9;
}

.article-back-link {
    display: inline-flex;
    margin-top: 28px;

    color: var(--article-navy);
    font-weight: 900;
    text-decoration: none;
}

.article-back-link:hover {
    color: var(--article-gold);
}

/* ==============================
   EMPTY STATE
============================== */

.article-empty {
    grid-column: 1 / -1;

    padding: 34px;
    border-radius: 24px;

    background: var(--article-white);
    color: var(--article-muted);
    box-shadow: var(--article-shadow-soft);
}

/* ==============================
   RESPONSIVE - TABLET
============================== */

@media screen and (max-width: 992px) {
    .articles-banner {
        min-height: 680px;
        padding: 160px 20px 100px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .article-card-grid,
    .slider-track {
        grid-template-columns: 1fr 1fr;
    }

    .article-detail-image {
        height: 340px;
    }
}

/* ==============================
   RESPONSIVE - MOBILE
============================== */

@media screen and (max-width: 768px) {
    .articles-banner {
        min-height: 660px;
        margin-top: -96px;
        padding: 205px 18px 90px;
    }

    .articles-banner-small {
        min-height: 460px;
        padding: 190px 18px 80px;
    }

    .articles-content {
        padding-inline: 0;
    }

    .articles-content h1 {
        font-size: clamp(38px, 11vw, 56px);
        letter-spacing: -1px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-search-hero,
    .article-search-box {
        grid-template-columns: 1fr;
        border-radius: 28px;
        padding: 10px;
    }

    .article-search-hero input,
    .article-search-hero button,
    .article-search-box input,
    .article-search-box button {
        border-radius: 20px;
    }

    .article-search-hero button,
    .article-search-box button {
        width: 100%;
    }

    .main-news-card img {
        height: 280px;
    }

    .main-news-content {
        padding: 26px;
    }

    .side-news-card {
        align-items: flex-start;
    }

    .side-news-card img {
        width: 82px;
        height: 82px;
    }

    .article-card-grid,
    .slider-track {
        grid-template-columns: 1fr;
    }

    .slider-wrapper {
        align-items: stretch;
    }

    .slider-btn {
        display: none;
    }

    .article-detail-content {
        padding: 26px;
    }
}

/* ==============================
   ACCESSIBILITY
============================== */

.article-search-hero input:focus,
.article-search-box input:focus,
.article-search-hero button:focus,
.article-search-box button:focus,
.slider-btn:focus,
.main-news-content a:focus,
.slider-card a:focus,
.side-news-card a:focus,
.article-back-link:focus {
    outline: 3px solid rgba(212, 162, 76, .35);
    outline-offset: 3px;
}