
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --green: #527c68;
    --dark-green: #315b48;
    --light-green: #eaf3ed;
    --cream: #f8f8f2;
    --text: #34483d;
    --white: #ffffff;
}

body {
    background: var(--cream);
    color: var(--text);
}

/* NAVBAR */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px #0000000c;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--dark-green);
}

.logo span {
    color: #d2a65c;
}

.logo small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--green);
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}

/* HERO */
.hero {
    max-width: 1200px;
    margin: auto;
    padding: 85px 30px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
}

.tagline, .section-heading span {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 45px;
    line-height: 1.3;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--green);
}

.hero-content p {
    color: #718078;
    line-height: 1.9;
    max-width: 570px;
    font-size: 14px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-green);
}

.btn-outline {
    border: 1px solid var(--green);
    color: var(--green);
}

.hero-image {
    background: #e7f0e8;
    border-radius: 35px;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px;
}

.illustration {
    font-size: 100px;
    margin-bottom: 15px;
}

.hero-image h3 {
    margin-bottom: 10px;
    color: var(--dark-green);
}

.hero-image p {
    font-size: 13px;
    color: #6b8174;
}

/* STATISTIK */
.stats {
    background: var(--dark-green);
    color: white;
    padding: 35px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats h2 {
    font-size: 30px;
}

.stats p {
    font-size: 13px;
    opacity: 0.85;
}

/* SECTION */
.section {
    padding: 80px 25px;
    max-width: 1200px;
    margin: auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 30px;
    margin: 12px 0;
    color: var(--dark-green);
}

.section-heading p {
    font-size: 13px;
    color: #839087;
}

/* LAYANAN */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px #00000008;
    transition: 0.3s;
    border: 1px solid #edf0eb;
}

.service-card:hover, .counselor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px #00000012;
}

.service-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark-green);
}

.service-card p {
    color: #7d8981;
    font-size: 12px;
    line-height: 1.9;
}

/* KONSELOR */
.counselor-section {
    background: #edf4ee;
    max-width: 100%;
}

.counselor-section .section-heading,
.counselor-grid {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.counselor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.counselor-card {
    background: white;
    text-align: center;
    padding: 35px 20px;
    border-radius: 18px;
    transition: 0.3s;
}

.avatar {
    background: var(--light-green);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
}

.counselor-card h3 {
    color: var(--dark-green);
    font-size: 17px;
}

.counselor-card p {
    color: var(--green);
    margin: 8px 0;
    font-size: 13px;
}

.counselor-card small {
    color: #87928a;
    font-size: 11px;
}

/* FORM */
.consultation-section {
    background: #f8f8f2;
}

.form-container {
    background: white;
    max-width: 750px;
    margin: auto;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 8px 30px #0000000c;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.form-group input,
.form-group select,
.form-group textarea,
.table-header input {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce5dc;
    border-radius: 8px;
    outline: none;
    background: #fcfdfb;
    color: var(--text);
    font-size: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group textarea {
    resize: vertical;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.consent input {
    margin-top: 4px;
}

.consent label {
    font-size: 11px;
    color: #7a867d;
    line-height: 1.7;
}

.full-btn {
    width: 100%;
}

#formMessage {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

/* ARTIKEL */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px #00000008;
}

.article-icon {
    height: 130px;
    background: var(--light-green);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
}

.article-content {
    padding: 25px;
}

.article-content span {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 15px;
    margin: 12px 0;
    line-height: 1.6;
}

.article-content p {
    font-size: 12px;
    color: #849087;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-content a {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* DASHBOARD */
.dashboard-section {
    max-width: 100%;
    background: #edf4ee;
}

.dashboard-section > * {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.dash-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--green);
}

.dash-card span {
    color: #87928a;
    font-size: 12px;
}

.dash-card h2 {
    font-size: 28px;
    margin-top: 10px;
    color: var(--dark-green);
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px #00000008;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.table-header h3 {
    font-size: 16px;
}

.table-header input {
    max-width: 230px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 850px;
    font-size: 11px;
}

th {
    background: var(--light-green);
    color: var(--dark-green);
    padding: 14px 10px;
    text-align: left;
}

td {
    padding: 14px 10px;
    border-bottom: 1px solid #edf0ed;
}

.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    background: #fff0d7;
    color: #9b6b20;
}

.status.Diterima {
    background: #dff2e4;
    color: #34704a;
}

.status.Selesai {
    background: #e3eafa;
    color: #3f5d99;
}

.action-btn {
    padding: 6px 9px;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
    background: var(--green);
    color: white;
}

.delete-btn {
    background: #c85b5b;
}

/* FOOTER */
footer {
    background: #294d3b;
    color: white;
    text-align: center;
    padding: 45px 20px;
}

footer h2 {
    font-size: 27px;
    margin-bottom: 12px;
}

footer p {
    font-size: 12px;
    margin-bottom: 8px;
    color: #d0ded3;
}

footer small {
    display: block;
    margin-top: 25px;
    font-size: 10px;
    color: #b8c9bc;
}

/* RESPONSIVE */
@media(max-width: 850px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .service-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counselor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 550px) {
    .hero h1 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-grid,
    .article-grid,
    .counselor-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 23px 17px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-header input {
        max-width: 100%;
    }

    .section-heading h2 {
        font-size: 24px;
    }
}
