:root {
    --primary-bg: #FDFBF7;
    --primary-text: #1E2022;
    --surface-card-bg: #FFFFFF;
    --surface-card-text: #1E2022;
    --secondary-muted-bg: #F3EFEA;
    --secondary-muted-text: #636B74;
    --accent-warm: #D96B43;
    --accent-warm-contrast: #FFFFFF;
    --dark-footer-bg: #14171A;
    --border-color: #E5DFD5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
    overflow-wrap: break-word;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-warm);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 0.95rem;
}

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

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

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

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

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

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    a[href^="mailto:"],
    a[href^="http"],
    .text-break-mobile {
        font-size: 0.9rem;
        word-break: break-all;
    }
}

/* ===== header ===== */
.header-section {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    width: 100%;
}

.brand-icon-box {
    width: 36px;
    height: 36px;
    background-color: var(--accent-warm);
    border-radius: 8px;
}

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

.nav-link-custom {
    color: var(--secondary-muted-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
    color: var(--accent-warm);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
}

.btn-cta {
    background-color: var(--accent-warm);
    color: var(--accent-warm-contrast);
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: #c25a33;
    color: var(--accent-warm-contrast);
    box-shadow: 0 4px 12px rgba(217, 107, 67, 0.25);
}

.navbar-toggler-custom {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    color: var(--primary-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(30, 32, 34, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
}

.mobile-menu-dropdown.open {
    max-height: 360px;
}

.mobile-nav-link {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    min-height: 44px;
    line-height: 28px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: var(--secondary-muted-bg);
    color: var(--accent-warm);
}

.mobile-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}

@media(max-width:767.98px) {
    .brand-text {
        font-size: 0.8rem;
        line-height: 1.2;
        hyphens: auto;
    }

    .btn-cta {
        font-size: 0.85rem;
    }
}

/* ===== hero_section ===== */
#hero-section {
    position: relative;
    width: 100%;
}

.hero-editorial-section .hero-main-title {
    font-size: 2.5rem;
    word-break: keep-all;
    hyphens: auto;
}

@media (max-width: 767.98px) {
    #hero-section .hero-main-title {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
    }

    #hero-section .hero-lead-text {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    #hero-section .hero-pullquote {
        padding: 1rem !important;
    }

    #hero-section .hero-pullquote p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }

    #hero-section .badge {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.65rem !important;
    }

    #hero-section .btn-sm {
        font-size: 0.75rem !important;
        width: 100%;
        text-align: center;
    }
}

.hero-pullquote {
    transition: transform 0.2s ease;
}

.hero-pullquote:hover {
    transform: translateY(-2px);
}

/* ===== featured_article_section ===== */
.featured-article-block {
    width: 100%;
    hyphens: auto;
}

.featured-card {
    border-radius: 12px;
}

.featured-image-wrapper img {
    width: 100%;
    object-fit: cover;
}

@media(max-width:767.98px) {
    .featured-title {
        font-size: 1.125rem !important;
        line-height: 1.2 !important;
    }

    .featured-article-block h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

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

    .featured-image-wrapper img {
        height: 240px !important;
    }

    .featured-card {
        padding: 1.25rem !important;
    }
}

/* ===== articles_carousel_section ===== */
#articles-carousel {
    overflow: hidden;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

#articles-carousel h2,
#articles-carousel h3 {
    color: var(--primary-text);
    font-weight: 700;
    word-break: keep-all;
}

#articles-carousel .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-color: var(--border-color);
    background-color: var(--surface-card-bg);
}

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

#articles-carousel button.btn:hover {
    background-color: var(--secondary-muted-bg) !important;
}

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

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

    #articles-carousel p {
        font-size: 0.8125rem;
    }
}

/* ===== articles_catalog_section ===== */
.articles-catalog-section .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.articles-catalog-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 32, 34, 0.08) !important;
}

.articles-catalog-section .js-load-more-btn:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

@media (max-width: 767.88px) {
    .articles-catalog-section h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

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

/* ===== news_feed_section ===== */
.news-feed-section {
    width: 100%;
    position: relative;
}

.news-feed-section .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

@media (max-width: 767.98px) {
    .news-feed-section h2 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .news-feed-section h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}

/* ===== tag_cloud_section ===== */
#tag-cloud {
    overflow: hidden;
    hyphens: auto;
}

#tag-cloud .js-tag-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-warm) !important;
    box-shadow: 0 4px 12px rgba(217, 107, 67, 0.12);
}

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

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

/* ===== authors_team_section ===== */
#authors-team {
    overflow: hidden;
    width: 100%;
}

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

#authors-team .author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(30, 32, 34, 0.08) !important;
}

#authors-team .author-avatar-badge {
    transition: transform 0.25s ease;
}

#authors-team .author-card:hover .author-avatar-badge {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    #authors-team h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        hyphens: auto;
    }

    #authors-team h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    #authors-team .author-bio {
        font-size: 0.8125rem !important;
    }
}

/* ===== reviews_comments_section ===== */
#reviews-comments {
    overflow: hidden;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    hyphens: auto;
}

.reviews-comments-section {
    width: 100%;
}

.reviews-badge {
    background-color: var(--secondary-muted-bg);
    color: var(--accent-warm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.reviews-title {
    color: var(--primary-text);
    font-weight: 700;
    line-height: 1.25;
}

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

    .review-topic {
        font-size: 0.875rem;
        line-height: 1.2;
    }
}

.reviews-lead {
    color: var(--secondary-muted-text);
    font-size: 1rem;
    line-height: 1.5;
}

.summary-card {
    background-color: var(--surface-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.summary-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-warm);
    line-height: 1;
}

.summary-stars {
    color: var(--accent-warm);
    font-size: 1.125rem;
}

.summary-metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-warm);
    line-height: 1;
}

.summary-metric-title {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1rem;
}

.summary-text {
    color: var(--secondary-muted-text);
    font-size: 0.875rem;
    line-height: 1.4;
}

.review-card {
    background-color: var(--surface-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.rating-stars {
    color: var(--accent-warm);
    font-size: 0.9rem;
}

.review-date {
    color: var(--secondary-muted-text);
    font-size: 0.8125rem;
}

.review-topic {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1.0625rem;
}

.review-body {
    color: var(--surface-card-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.review-author-wrap {
    border-color: var(--border-color) !important;
}

.author-name {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 0.9375rem;
}

.author-tag {
    color: var(--secondary-muted-text);
    font-size: 0.8125rem;
}

.help-tag {
    background-color: var(--secondary-muted-bg);
    color: var(--secondary-muted-text);
    font-size: 0.8125rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ===== feedback_form_section ===== */
#feedback-form {
    position: relative;
}

#feedback-form input.form-control::placeholder,
#feedback-form textarea.form-control::placeholder {
    color: var(--secondary-muted-text);
    opacity: 0.8;
}

#feedback-form .form-control:focus {
    border-color: var(--accent-warm) !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 107, 67, 0.2) !important;
}

#feedback-form .js-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

#feedback-form .js-submit-btn:active {
    transform: translateY(0);
}

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

    #feedback-form .card {
        padding: 1.25rem !important;
    }
}

/* ===== footer ===== */
#footer {
    background-color: var(--dark-footer-bg, #14171A);
    color: #E5DFD5;
    overflow: hidden;
    width: 100%
}

.footer-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em
}

.text-accent-warm {
    color: var(--accent-warm, #D96B43) !important
}

.footer-brand-desc {
    color: #B0B7C0;
    font-size: 0.925rem;
    line-height: 1.6;
    word-break: keep-all
}

.footer-contact-item {
    font-size: 0.9rem;
    color: #E5DFD5
}

.footer-email-link {
    color: #E5DFD5;
    text-decoration: none;
    transition: color .2s ease-in-out
}

.footer-email-link:hover {
    color: var(--accent-warm, #D96B43);
    text-decoration: underline
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em
}

.footer-nav-list li,
.footer-resource-list li {
    margin-bottom: 0.6rem
}

.footer-nav-link {
    color: #B0B7C0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s ease-in-out
}

.footer-nav-link:hover {
    color: #FFFFFF;
    text-decoration: underline
}

.footer-resource-tag {
    color: #B0B7C0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center
}

.btn-top {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #3A4048;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all .2s ease-in-out
}

.btn-top:hover {
    background-color: var(--accent-warm, #D96B43);
    border-color: var(--accent-warm, #D96B43);
    color: var(--accent-warm-contrast, #FFFFFF)
}

.footer-divider {
    border-color: #2A2F35;
    opacity: 1
}

.footer-copyright {
    color: #8A929A;
    font-size: 0.85rem
}

.footer-legal-links {
    font-size: 0.85rem
}

.footer-legal-link {
    color: #8A929A;
    text-decoration: none;
    transition: color .2s ease-in-out
}

.footer-legal-link:hover {
    color: #FFFFFF;
    text-decoration: underline
}

.footer-legal-separator {
    color: #4A525A;
    margin: 0 0.4rem
}

@media(max-width:767.88px) {
    #footer h3 {
        font-size: 0.875rem !important;
        line-height: 1.2
    }

    #footer h4 {
        font-size: 0.85rem !important;
        line-height: 1.2
    }

    .footer-brand-desc,
    .footer-contact-item,
    .footer-nav-link,
    .footer-resource-tag {
        font-size: 0.85rem
    }

    .btn-top {
        width: 100%;
        text-align: center
    }
}