:root {
    --green-main: #0f5f33;
    --green-dark: #084625;
    --green-soft: #1d7d49;
    --yellow: #f2be1a;
    --bg: #f2f3f5;
    --text: #1a1f2b;
    --muted: #6a7280;
    --card: #ffffff;
    --navy: #071530;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrapper {
    width: min(1200px, 95%);
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(90deg, var(--green-dark), var(--green-main));
    border-bottom: 4px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand-box {
    border-left: 4px solid #fff;
    padding-left: 12px;
}

.brand-box h1 {
    margin: 0;
    font-size: 22px;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-box h1 span {
    color: #ffffff;
}

.brand-box p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #dbe7e0;
    text-transform: uppercase;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f2f6f4;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu a.active {
    background: var(--yellow);
    color: #1e2b0a;
    font-weight: 700;
}

.member-chip {
    font-size: 13px;
    color: #d8f0df;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 10px;
}

.site-main {
    min-height: 70vh;
    padding-bottom: 40px;
}

.alert {
    margin-top: 16px;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert.success {
    background: #e6f8ec;
    border-color: #74c68e;
    color: #1f6e3f;
}

.alert.error {
    background: #feecec;
    border-color: #f0a4a4;
    color: #9d1f1f;
}

.hero-section {
    margin-top: 16px;
}

.hero-box {
    background: linear-gradient(145deg, var(--green-main), #14683a);
    color: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(14, 44, 27, 0.2);
}

.hero-content h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 48px);
    line-height: 1.1;
    font-weight: 800;
}

.hero-content h2 span {
    color: var(--yellow);
}

.hero-content p {
    margin: 16px 0 22px;
    max-width: 580px;
    color: #d8ede1;
    line-height: 1.5;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--yellow);
    color: #25310d;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.hero-emblem {
    display: flex;
    justify-content: center;
}

.shield {
    width: 170px;
    height: 170px;
    border-radius: 26px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    font-size: 76px;
    color: rgba(255, 255, 255, 0.2);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: clamp(22px, 2.6vw, 34px);
}

.section-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-soft);
    font-size: 14px;
    font-weight: 700;
}

.section-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-news,
.section-req,
.page-section {
    margin-top: 28px;
}

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

.news-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(20, 27, 35, 0.08);
    display: flex;
    flex-direction: column;
}

.news-card-top {
    min-height: 110px;
    background: #ebedf1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    background: var(--yellow);
    width: fit-content;
    padding: 4px 9px;
    border-radius: 10px;
}

.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: #99a1ac;
    font-size: 36px;
}

.news-body {
    padding: 16px;
}

.news-body h4 {
    margin: 0 0 10px;
    font-size: 23px;
    line-height: 1.2;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.news-date {
    margin-top: auto;
    padding: 0 16px 16px;
    color: #8d93a0;
    font-size: 13px;
}

.news-readmore {
    padding: 0 16px 16px;
}

.news-readmore a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-soft);
    font-size: 13px;
    font-weight: 700;
}

.article-single-card {
    background: #fff;
    border: 1px solid #dde4ee;
    border-radius: 16px;
    padding: 20px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #708097;
    font-size: 13px;
}

.article-single-title {
    margin: 14px 0 8px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
}

.article-single-summary {
    margin: 0 0 16px;
    color: #556274;
    line-height: 1.5;
    font-size: 17px;
}

.article-single-content {
    white-space: pre-wrap;
    color: #1c2431;
    line-height: 1.72;
    font-size: 16px;
}

.article-actions {
    margin-top: 20px;
}

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

.req-card,
.simple-card,
.hanmin-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dde1e7;
    padding: 16px 18px;
}

.req-card {
    display: flex;
    flex-direction: column;
}

.req-card h4,
.hanmin-card h3 {
    margin: 0 0 10px;
    color: var(--green-main);
}

.req-card ol,
.hanmin-card ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.5;
}

.btn-subtle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf6ef;
    color: var(--green-main);
    border: 1px solid #bfe2cd;
    border-radius: 10px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.req-card .btn-subtle {
    margin-top: 12px;
}

.page-title h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(30px, 3.3vw, 50px);
}

.page-title p {
    margin-top: 8px;
    color: var(--muted);
}

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

.main-form {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe0e8;
    padding: 18px;
}

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

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.full-width {
    grid-column: span 2;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd2dc;
    font-size: 15px;
    padding: 11px 12px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #20914f;
    box-shadow: 0 0 0 3px rgba(34, 148, 81, 0.16);
}

.checklist-area {
    margin: 20px 0;
    border-top: 1px dashed #cfd5de;
    padding-top: 16px;
}

.checklist-area h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.checklist-area p {
    margin: 6px 0 14px;
    color: var(--muted);
}

.checklist-group {
    display: none;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8fafc;
}

.checklist-group.active {
    display: block;
}

.checklist-group h4 {
    margin: 0 0 12px;
    color: var(--green-main);
}

.checklist-list {
    display: grid;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
}

.check-item input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.requirement-upload-list {
    display: grid;
    gap: 10px;
}

.requirement-upload-item {
    background: #ffffff;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    padding: 10px;
}

.requirement-upload-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1b2331;
}

.requirement-upload-item label small {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.requirement-upload-item input[type="file"] {
    padding: 8px;
    background: #f9fbfd;
}

.required-mark {
    color: #ba1f1f;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(120deg, #091a33, var(--navy));
    color: #dbe1ee;
    padding-top: 30px;
}

.auth-section {
    margin-top: 28px;
}

.auth-card {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid #dbe0e8;
    border-radius: 16px;
    padding: 20px;
}

.auth-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 32px;
}

.auth-card p {
    color: var(--muted);
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.auth-foot {
    margin-top: 14px;
}

.auth-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-soft);
    font-weight: 700;
}

.login-lock-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-lock-page .topbar {
    position: static;
}

.login-lock-page .site-main {
    flex: 1;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-lock-page .auth-section.wrapper {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 18px;
    display: flex;
    justify-content: center;
}

.login-lock-page .auth-card {
    width: min(560px, 100%);
    margin: 0;
    max-height: calc(100dvh - 170px);
    overflow: auto;
    scrollbar-width: thin;
}

@media (max-height: 860px), (max-width: 768px) {
    .login-lock-page {
        overflow-y: auto;
    }

    .login-lock-page .site-main {
        align-items: flex-start;
        padding: 12px 0 16px;
    }

    .login-lock-page .auth-card {
        max-height: none;
        overflow: visible;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--yellow);
    margin-top: 0;
}

.footer-col p,
.footer-col li {
    color: #bcc7db;
    line-height: 1.5;
    margin: 0 0 8px;
}

.footer-col ul {
    margin: 0;
    padding-left: 16px;
}

.footer-bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #93a0b8;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f2c739;
}

@media (max-width: 980px) {
    .hero-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .news-grid,
    .req-grid,
    .hanmin-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .full-width {
        grid-column: span 1;
    }

    .menu {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        width: 100%;
    }

    .menu a {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .news-body h4 {
        font-size: 19px;
    }

    .brand-box h1 {
        font-size: 18px;
        letter-spacing: 0.2px;
    }
}
