:root {
    --primary-brand: #2D6A4F;
    --primary-dark: #1B4332;
    --accent-sage: #74C69D;
    --accent-warm: #DDA15E;
    --bg-main: #F8FAF8;
    --bg-surface: #FFFFFF;
    --bg-subtle: #EDF2EE;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --font-family-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== welcome_hero ===== */
.mav-welcome-hero {
    padding: clamp(3.75rem, 8vw, 7rem) 0;
    color: #F8FAF8;
    background:
        radial-gradient(circle at 88% 18%, rgba(116, 198, 157, 0.34), transparent 30%),
        linear-gradient(135deg, #1B4332 0%, #2D6A4F 62%, #40916C 100%);
    overflow: hidden;
}

.mav-welcome-eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #D8F3DC;
    font-size: 0.875rem;
    font-weight: 700;
}

.mav-welcome-title {
    max-width: 760px;
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-size: clamp(2rem, 4.8vw, 4.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.mav-welcome-copy {
    max-width: 720px;
    margin-bottom: 0;
    color: #E8F5EC;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.75;
    word-break: keep-all;
}

.mav-welcome-secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.mav-welcome-secondary:hover,
.mav-welcome-secondary:focus {
    border-color: #FFFFFF;
    color: var(--primary-dark);
    background: #FFFFFF;
}

@media (max-width: 767.98px) {
    .mav-welcome-hero {
        padding: 3.5rem 0;
    }

    .mav-welcome-title {
        font-size: 2.15rem;
    }
}

input,
textarea,
select,
button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary-brand);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    h4,
    h5,
    h6 {
        font-size: 1.1rem;
    }

    .text-break-mobile,
    a[href^="mailto:"],
    a[href^="http"] {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header_section ===== */
.mav-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--bg-subtle);
    position: relative;
    width: 100%;
}

.mav-brand-logo {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.mav-brand-logo:hover {
    color: var(--primary-brand);
}

.mav-brand-text {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.mav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-subtle);
    color: var(--primary-brand);
}

.mav-leaf-svg {
    stroke: var(--primary-brand);
}

.mav-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mav-nav-link:hover {
    color: var(--primary-brand);
}

.mav-btn-cta {
    background-color: var(--primary-brand);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--primary-brand);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mav-btn-cta:hover,
.mav-btn-cta:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF;
}

.mav-hamburger-btn {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
}

.mav-hamburger-btn:focus {
    outline: 2px solid var(--primary-brand);
}

.mav-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-surface);
    z-index: 9999;
    display: none;
}

.mav-mobile-menu-overlay.open {
    display: block;
}

.mav-brand-text-mobile {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.mav-close-btn {
    color: var(--text-primary);
    cursor: pointer;
}

.mav-mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mav-mobile-link:hover {
    background-color: var(--bg-subtle);
    color: var(--primary-brand);
}

/* ===== main_article_section ===== */
#article {
    hyphens: auto;
}

@media (max-width: 767.98px) {
    #article h1.article-title {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }

    #article h2 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    #article h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}

/* ===== related_articles_section ===== */
#articles {
    overflow: hidden;
    hyphens: auto;
}

#articles .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(45, 106, 79, 0.08);
}

#articles .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

#articles .btn:hover {
    background-color: var(--primary-dark) !important;
    color: #FFFFFF !important;
}

@media (max-width: 767.98px) {
    #articles h2 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    #articles h3 {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }

    #articles .card-body {
        padding: 1.25rem !important;
    }

    #articles .card-img-top {
        height: 180px !important;
    }
}

/* ===== author_tags_section ===== */
#author {
    hyphens: auto;
}

#author .badge-tag {
    transition: all 0.25s ease-in-out;
    border: 1px solid transparent;
    display: inline-block;
}

#author .badge-tag:hover {
    background-color: var(--primary-brand) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.2);
}

#author .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#author .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

@media (max-width: 767.98px) {
    #author h2 {
        font-size: 1rem !important;
        line-height: 1.25;
    }

    #author h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #author .badge-tag {
        font-size: 0.8125rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* ===== interaction_comments_section ===== */
#comments .reaction-btn {
    background-color: var(--bg-surface);
    border-color: var(--bg-subtle) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

#comments .reaction-btn:hover {
    background-color: var(--bg-subtle);
    transform: translateY(-2px);
}

#comments .reaction-btn.is-active {
    border-color: var(--primary-brand) !important;
    background-color: var(--bg-subtle);
}

#comments input:focus,
#comments textarea:focus {
    border-color: var(--primary-brand) !important;
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.15) !important;
    background-color: #ffffff !important;
}

#comments .form-check-input:checked {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
}

#comments .btn[type='submit']:hover {
    background-color: var(--primary-dark) !important;
}

/* ===== about_blog_section ===== */
.about-blog-wrapper {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    hyphens: auto;
}

.about-badge {
    background-color: var(--bg-subtle);
    color: var(--primary-brand);
    border: 1px solid var(--accent-sage);
}

.about-badge-icon {
    color: var(--primary-brand);
}

.section-heading {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

.text-secondary-custom {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pillar-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--bg-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(45, 106, 79, 0.08) !important;
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: var(--bg-subtle);
    color: var(--primary-brand);
}

.pillar-icon {
    color: var(--primary-brand);
}

.pillar-title {
    color: var(--primary-dark);
}

.mission-banner {
    background-color: var(--primary-dark);
    border: 1px solid var(--primary-brand);
}

.banner-heading {
    color: #FFFFFF;
}

.banner-desc {
    color: var(--bg-subtle);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stat-label {
    color: var(--accent-sage);
}

@media (max-width: 767.98px) {
    .section-heading {
        font-size: 1rem;
        line-height: 1.2;
    }

    .pillar-title {
        font-size: 0.875rem;
    }

    .banner-heading {
        font-size: 0.875rem;
    }

    .text-secondary-custom,
    .banner-desc {
        font-size: 0.85rem;
    }
}

/* ===== footer_section ===== */
#footer {
    background-color: #1B4332;
    color: #F8FAF8;
    border-top: 1px solid rgba(116, 198, 157, 0.2);
}

#footer .footer-brand {
    color: #F8FAF8;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
    hyphens: auto;
}

#footer .footer-copyright {
    color: #EDF2EE;
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
}

#footer .footer-nav {
    margin: 0;
    padding: 0;
}

#footer .footer-link {
    color: #EDF2EE;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
    opacity: 0.85;
}

#footer .footer-link:hover,
#footer .footer-link:focus {
    color: #74C69D;
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    #footer .footer-brand {
        font-size: 1rem;
        line-height: 1.2;
    }

    #footer .footer-copyright,
    #footer .footer-link {
        font-size: 0.8125rem;
    }
}
