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

body {
    font-family: var(--font-main);
    background: var(--body-bg);
    color: var(--body-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 2px solid var(--nav-bg);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

.tc-nav-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.tc-nav-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tc-logo {
    color: var(--header-accent);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tc-logo-img {
    background: var(--header-accent);
    color: var(--header-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tc-nav-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tc-nav-link {
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.tc-nav-link:hover,
.tc-nav-link.active {
    color: var(--header-accent);
}

.tc-menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--header-text);
    cursor: pointer;
    font-size: 1.8rem;
    padding: 0 8px;
}

.content-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 28px auto 44px;
    padding: 0 16px;
    flex: 1;
}

.article-shell {
    background: #fff;
    border: 3px solid var(--header-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.article-hero {
    background: linear-gradient(135deg, var(--header-bg), #b53220);
    color: #fff;
    padding: 32px 28px;
}

.eyebrow {
    color: var(--header-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.article-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    margin-bottom: 12px;
}

.article-hero p {
    color: var(--header-subtext);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 820px;
}

.article-body {
    padding: 28px;
}

.article-body h2 {
    color: var(--header-bg);
    font-size: 1.45rem;
    margin: 28px 0 10px;
}

.article-body h3 {
    color: #7a2516;
    font-size: 1.1rem;
    margin: 18px 0 8px;
}

.article-body p,
.article-body li {
    color: #3f3f3f;
    font-size: 1rem;
    line-height: 1.72;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body ul {
    margin: 8px 0 18px 22px;
}

.notice {
    background: #fff8e1;
    border-left: 4px solid var(--nav-bg);
    border-radius: 6px;
    padding: 14px 16px;
    margin: 18px 0;
}

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

.info-card,
.language-card {
    background: #fffdf7;
    border: 1px solid #f0d8b8;
    border-radius: 8px;
    padding: 18px;
}

.info-card h2,
.info-card h3,
.language-card h2,
.language-card h3 {
    margin-top: 0;
}

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

.article-card {
    background: #fff;
    border: 1px solid #ecd4ad;
    border-radius: 8px;
    padding: 18px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: calc(100% + 36px);
    max-width: calc(100% + 36px);
    height: 180px;
    margin: -18px -18px 14px;
    border-bottom: 1px solid #ecd4ad;
    object-fit: cover;
}

.article-card h2 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.article-card p {
    flex: 1;
    font-size: 0.94rem;
}

.article-card a,
.inline-link {
    color: var(--header-bg);
    font-weight: 700;
    text-decoration: none;
}

.article-card a:hover,
.inline-link:hover {
    text-decoration: underline;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--header-bg);
    font-weight: 700;
    text-decoration: none;
}

.tc-footer {
    background: var(--header-bg);
    color: var(--header-subtext);
    text-align: center;
    padding: 24px 16px;
}

.tc-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.tc-footer-btn {
    color: var(--header-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.tc-footer p {
    font-size: 0.82rem;
    margin-top: 6px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.blog-sidebar {
    border: 1px solid #ecd4ad;
    border-radius: 8px;
    background: #fffdf7;
    padding: 16px;
    position: sticky;
    top: 84px;
    height: fit-content;
}

.blog-sidebar h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--header-bg);
}

.blog-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-sidebar a {
    color: #3f3f3f;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.blog-sidebar a:hover {
    color: var(--header-bg);
}

.blog-main section {
    margin-bottom: 28px;
    scroll-margin-top: 95px;
}

.blog-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
    gap: 16px;
    margin-top: 18px;
}

.language-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.language-page-link {
    border: 1px solid #d8b98c;
    border-radius: 999px;
    background: #fff8ec;
    color: var(--header-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 42px;
    padding: 0 14px;
    text-decoration: none;
}

.language-page-link.active,
.language-page-link:hover {
    background: var(--header-bg);
    color: #fff;
}

.blog-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-control span {
    color: var(--header-bg);
    font-size: 0.9rem;
    font-weight: 700;
}

.blog-control input,
.blog-control select {
    width: 100%;
    border: 1px solid #d6b88c;
    border-radius: 8px;
    background: #fffdf7;
    color: #3f3f3f;
    padding: 12px 14px;
    font: inherit;
}

.blog-control input:focus,
.blog-control select:focus {
    outline: 2px solid rgba(210, 105, 30, 0.3);
    border-color: var(--nav-bg);
}

.blog-category-section {
    display: none;
}

.blog-category-section.is-visible {
    display: block;
}

.language-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.language-badge {
    border: 1px solid #ebd0a8;
    border-radius: 999px;
    background: #fff8ec;
    color: #7a2516;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 8px;
}

.see-all-btn {
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--header-bg);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 16px;
}

.see-all-btn:hover {
    background: #6f0000;
}

.empty-category {
    color: #777;
    font-size: 0.95rem;
    margin-top: 12px;
}

.section-subline {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.cms-meta {
    font-size: 0.82rem;
    color: #777;
    margin-top: 10px;
}

.cms-body h1,
.cms-body h2,
.cms-body h3 {
    margin-top: 18px;
}

.cms-body a {
    color: var(--header-bg);
    font-weight: 700;
}

.cms-body strong {
    font-weight: 700;
}

.cms-body em {
    font-style: italic;
}

.cms-body figure {
    margin: 18px 0;
}

.cms-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ecd4ad;
    display: block;
}

.cms-body figcaption {
    color: #666;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

.cms-body ul,
.cms-body ol {
    margin-left: 22px;
}

@media (max-width: 820px) {
    .tc-nav-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .tc-nav-brand {
        width: 100%;
    }

    .tc-menu-toggle {
        display: block;
    }

    .tc-nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 10px;
    }

    .tc-nav-menu.show {
        display: flex;
    }

    .tc-nav-link {
        text-align: center;
    }

    .article-list,
    .language-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-controls {
        grid-template-columns: 1fr;
    }

    .article-hero,
    .article-body {
        padding: 22px;
    }
}
