/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #171717;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    min-height: 100vh;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #e8e8e8;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;       /* atur tinggi logo, lebar menyesuaikan otomatis */
    width: auto;
    display: block;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar nav a {
    position: relative;

    font-size: 0.95rem;
    font-weight: 600;

    color: #555;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.navbar nav a:hover {
    color: #111;
    transform: translateY(-1px);
}

.navbar nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #111;

    transition: width 0.25s ease;
}

.navbar nav a:hover::after {
    width: 100%;
}


/* =========================================================
   HERO / DASHBOARD
========================================================= */

.hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 80px 7%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.75) 100%
        ),
        url("assets/images/hero-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 850px;
}

.hero-label,
.section-label {
    display: inline-block;

    margin-bottom: 15px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;

    color: #777;
}

.hero h1 {
    max-width: 900px;

    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -4px;

    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
}

.hero p {
    max-width: 650px;

    font-size: 1.1rem;
    color: #666;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    width: min(1200px, 86%);
    margin: 0 auto;

    padding: 100px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -1.5px;
}

.see-more {
    font-size: 0.9rem;
    font-weight: 700;

    color: #555;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.see-more:hover {
    color: #000;
    transform: translateX(4px);
}


/* =========================================================
   PAGE HEADER
   Untuk artikel.html, dokum.html, divisi.html
========================================================= */

.page-header {
    width: min(1200px, 86%);
    margin: 0 auto;

    padding: 100px 0 50px;
}

.page-header h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 20px;
}

.page-header p {
    max-width: 650px;

    color: #666;
    font-size: 1.05rem;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.article-container,
.article-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.article-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 20px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.article-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.08);

    border-color: #d9d9d9;
}

.article-image {
    width: 100%;
    height: 230px;

    background:
        linear-gradient(
            135deg,
            #ddd,
            #bdbdbd
        );
}

.article-content {
    padding: 28px;
}

.article-category {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #777;
}

.article-content h2,
.article-content h3 {
    margin-bottom: 12px;

    line-height: 1.15;
    letter-spacing: -0.7px;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 20px;

    color: #666;

    font-size: 0.95rem;
}

.article-content a {
    font-size: 0.9rem;
    font-weight: 700;

    transition: transform 0.2s ease;
}

.article-content a:hover {
    text-decoration: underline;
}


/* =========================================================
   DETAIL ARTIKEL
========================================================= */

.article-detail {
    width: min(900px, 86%);
    margin: 0 auto;

    padding: 110px 0;
}

.article-detail h1 {
    margin-bottom: 18px;

    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;

    letter-spacing: -3px;
}

.article-detail h2 {
    margin-bottom: 40px;

    color: #777;

    font-size: 1.3rem;
    font-weight: 400;
}

.article-body {
    color: #333;

    font-size: 1.05rem;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 25px;
}


/* =========================================================
   DOCUMENT CARD
========================================================= */

.document-container,
.document-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.document-card {
    padding: 32px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 20px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.document-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.document-label {
    display: inline-block;

    margin-bottom: 16px;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #777;
}

.document-card h2,
.document-card h3 {
    margin-bottom: 12px;

    line-height: 1.2;
}

.document-card p {
    margin-bottom: 22px;

    color: #666;
}

.document-card a {
    font-size: 0.9rem;
    font-weight: 700;
}

.document-card a:hover {
    text-decoration: underline;
}


/* =========================================================
   DIVISION
========================================================= */

.division-container,
.division-list {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.division-card,
.division-detail {
    position: relative;

    padding: 32px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 20px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.division-card:hover,
.division-detail:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.division-number {
    display: block;

    margin-bottom: 50px;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;

    color: #999;
}

.division-card h3,
.division-detail h2 {
    margin-bottom: 14px;

    font-size: 1.5rem;
    line-height: 1.15;
}

.division-card p,
.division-detail p {
    color: #666;

    font-size: 0.95rem;
}

.division-card a {
    display: inline-block;

    margin-top: 20px;

    font-size: 0.9rem;
    font-weight: 700;
}

.division-card a:hover {
    text-decoration: underline;
}

.division-content {
    color: #666;

    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    margin-top: 50px;

    padding: 35px 7%;

    border-top: 1px solid #e8e8e8;

    background: #fff;

    text-align: center;

    color: #888;

    font-size: 0.85rem;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 5%;
    }

    .navbar nav {
        gap: 18px;
    }

    .hero {
        min-height: 65vh;

        padding: 70px 5%;
    }

    .section,
    .page-header {
        width: 90%;
    }

    .section {
        padding: 80px 0;
    }

    .article-container,
    .article-list,
    .document-container,
    .document-list {
        grid-template-columns: 1fr;
    }

    .division-container,
    .division-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 600px) {

    .navbar {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        gap: 15px;

        padding: 18px 5%;
    }

    .navbar nav {
        width: 100%;

        gap: 16px;

        overflow-x: auto;

        padding-bottom: 4px;
    }

    .navbar nav a {
        white-space: nowrap;

        font-size: 0.85rem;
    }


    .hero {
        min-height: 75vh;

        padding: 60px 5%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 15vw, 4rem);

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 1rem;
    }


    .section {
        width: 90%;

        padding: 65px 0;
    }


    .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .section-header h2 {
        font-size: 2rem;
    }


    .page-header {
        width: 90%;

        padding: 75px 0 30px;
    }

    .page-header h1 {
        font-size: 3rem;

        letter-spacing: -2px;
    }


    .article-image {
        height: 200px;
    }


    .article-content {
        padding: 22px;
    }


    .article-detail {
        width: 90%;

        padding: 75px 0;
    }

    .article-detail h1 {
        font-size: 2.7rem;

        letter-spacing: -2px;
    }

    .article-detail h2 {
        font-size: 1.1rem;
    }

    .article-body {
        font-size: 1rem;
    }


    .document-card,
    .division-card,
    .division-detail {
        padding: 24px;
    }


    .division-container,
    .division-list {
        grid-template-columns: 1fr;
    }


    footer {
        padding: 30px 5%;
    }
}


/* =========================================================
   OPTIONAL: HIDDEN STATE
   Bisa dipakai JS kalau dibutuhkan
========================================================= */

.hidden {
    display: none !important;
}