
/* PENGATURAN DASAR */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #24364b;
    line-height: 1.6;
}

/* HEADER */

.header {
    background: #142d4e;
    color: white;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    border-radius: 14px;
    font-size: 25px;
}

.brand h2 {
    font-size: 17px;
    letter-spacing: 1px;
}

.brand p {
    font-size: 10px;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #d6ad60;
}

/* HERO */

.hero {
    background: linear-gradient(120deg, #142d4e, #285477);
    color: white;
    padding: 95px 10%;
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    color: #c69b4e;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 43px;
    line-height: 1.2;
    margin: 20px 0;
}

.hero h1 span {
    color: #e2c17d;
}

.hero p {
    color: #dce6f0;
    max-width: 600px;
    margin-bottom: 30px;
}

/* BUTTON */

.btn-primary {
    display: inline-block;
    background: #d6ad60;
    color: #142d4e;
    border: none;
    border-radius: 7px;
    padding: 13px 23px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

/* CONTENT */

.content {
    padding: 75px 7%;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2,
.regulation h2,
.quiz h2 {
    font-size: 29px;
    margin: 10px 0;
}

.section-heading p,
.regulation p,
.quiz p {
    color: #718096;
}

/* LEARNING CARDS */

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.learning-card {
    background: white;
    border: 1px solid #e6eaf0;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #142d4e15;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.learning-card h3 {
    margin-bottom: 10px;
}

.learning-card p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 18px;
}

.learning-card a,
.regulation-box a {
    color: #285477;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* REGULATION */

.regulation {
    background: #eaf0f6;
    padding: 65px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.regulation > div:first-child {
    max-width: 550px;
}

.regulation-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    min-width: 280px;
}

/* QUIZ */

.quiz {
    padding: 75px 7%;
    text-align: center;
}

.quiz p {
    margin-bottom: 25px;
}

/* FOOTER */

footer {
    background: #142d4e;
    color: #dce6f0;
    text-align: center;
    padding: 25px;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .header {
        flex-wrap: wrap;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .regulation {
        flex-direction: column;
        align-items: stretch;
    }
}

/* REGULATION CENTER */

.regulation-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: start;
    padding: 60px 7%;
    background: #EAF0F6;
    min-height: 500px;
}

.regulation-intro {
    padding-top: 35px;
}

.eyebrow {
    color: #D6A84F;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 14px;
}

.regulation-intro h1 {
    color: #173B63;
    font-size: 38px;
    line-height: 1.35;
    margin: 25px 0;
}

.regulation-intro p {
    color: #647B95;
    font-size: 17px;
    line-height: 1.8;
}

.regulation-content {
    width: 100%;
}

.catalog-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.catalog-toolbar input,
.catalog-toolbar select {
    padding: 13px;
    border: 1px solid #D9E1EA;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    min-width: 0;
}

.catalog-toolbar input {
    flex: 1;
}

.catalog-toolbar select {
    width: 175px;
}

.catalog-info {
    color: #647B95;
    font-size: 13px;
    margin-bottom: 15px;
}

.regulation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.regulation-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(23, 59, 99, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.regulation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(23, 59, 99, 0.12);
}

.file-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.regulation-card h3 {
    color: #173B63;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.regulation-card p {
    color: #647B95;
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
}

.regulation-category {
    display: inline-block;
    background: #F5EBD6;
    color: #87651F;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 12px;
}

.regulation-card a {
    display: inline-block;
    margin-top: 10px;
    color: #173B63;
    font-weight: 700;
    text-decoration: none;
}

.regulation-card a:hover {
    color: #C39439;
}

.empty-message {
    color: #647B95;
    text-align: center;
    padding: 35px;
}

@media (max-width: 800px) {
    .regulation-section {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 35px 5%;
    }

    .regulation-intro {
        padding-top: 0;
    }

    .regulation-intro h1 {
        font-size: 30px;
    }
}

@media (max-width: 550px) {
    .catalog-toolbar {
        flex-direction: column;
    }

    .catalog-toolbar select {
        width: 100%;
    }

    .regulation-grid {
        grid-template-columns: 1fr;
    }
}

/* TOMBOL TAMPILKAN LEBIH BANYAK */

.show-more-wrapper {
    text-align: center;
    margin-top: 25px;
}

.show-more-btn {
    background: #173B63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.show-more-btn:hover {
    background: #D6A84F;
    color: #173B63;
}

.show-more-btn[hidden] {
    display: none;
}

/* KATALOG BERTINGKAT */

.catalog-heading {
    margin-bottom: 20px;
}

.catalog-heading h2 {
    color: #173B63;
    font-size: 22px;
    margin-bottom: 7px;
}

.catalog-heading p {
    color: #647B95;
    font-size: 14px;
}

.document-count {
    display: block;
    color: #87651F;
    font-size: 12px;
    margin-bottom: 15px;
}

.open-category-btn {
    background: #173B63;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.open-category-btn:hover {
    background: #D6A84F;
    color: #173B63;
}

.category-card {
    cursor: default;
}

.back-btn {
    border: none;
    background: transparent;
    color: #173B63;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 25px;
}

.back-btn:hover {
    color: #C39439;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 12px;
    padding: 17px;
    box-shadow: 0 4px 15px rgba(23, 59, 99, 0.05);
}

.document-icon {
    font-size: 25px;
    flex-shrink: 0;
}

.document-details {
    flex: 1;
    min-width: 0;
}

.document-details h3 {
    color: #173B63;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 5px;
}

.document-details span {
    display: inline-block;
    color: #87651F;
    background: #F5EBD6;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 10px;
}

.document-action {
    color: #173B63;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.document-action:hover {
    color: #C39439;
}

[hidden] {
    display: none !important;
}

@media (max-width: 550px) {
    .document-item {
        flex-wrap: wrap;
    }

    .document-action {
        margin-left: 40px;
    }
}
