﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    font-size: 16px;
}

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

ul,
li {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    z-index: 100;
    padding: 12px 0;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}


.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: transparent;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #0a2647;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #0a2647;
    border-bottom: 2px solid #0a2647;
    padding-bottom: 4px;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid #ccc;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    border-radius: 8px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: #f0f3fa;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #d9e0eb;
}

.announcement-bar a {
    color: #0a2647;
    font-weight: 600;
    text-decoration: underline;
}

/* ===== SECTIONS & TITLES ===== */
.section {
    padding: 48px 0;
}

.bg-soft {
    background-color: #f9fafc;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
    border-left: 6px solid #0a2647;
    padding-left: 20px;
}

/* ===== GRIDS ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-special.mix-1 {
    margin-top: 30px;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* ===== CARD STYLES (BASE & VARIANTS) ===== */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

.card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.4s;
    display: block;
}

.card:hover .card-img img {
    scale: 1.03;
}

.card-tag {
    display: inline-block;
    background: #eef3fc;
    color: #0a2647;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 16px 0 8px 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0 16px 8px 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    text-decoration: none;
    color: #111;
}

.card-title a:hover {
    color: #0a2647;
}

.card-excerpt {
    margin: 0 16px 16px 16px;
    color: #4a4a4a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.card-meta {
    margin: 0 16px 20px 16px;
    font-size: 0.85rem;
    color: #6f6f6f;
    border-top: 1px dashed #ddd;
    padding-top: 12px;
}

.author {
    color: #0a2647;
    font-weight: 500;
}


.card-a .card-title {
    font-size: 1.4rem;
}

.card-b {
    background-color: #fcfcfc;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-c .card-tag {
    background: #0a2647;
    color: #fff;
}


.card-horizontal {
    display: flex;
    gap: 20px;
    border: none;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.card-horizontal .horizontal-img {
    flex: 0 0 240px;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
}

.card-horizontal .card-content {
    flex: 1;
    padding: 7px;
}

.card-horizontal .card-title {
    margin: 0 0 8px 0;
    -webkit-line-clamp: 2;
}

.card-horizontal .card-excerpt {
    margin: 0 0 12px 0;
}

.card-horizontal .card-meta {
    margin: 0;
    border: none;
    padding: 0;
}


.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-mini {
    background: #f8faff;
    border: none;
    padding: 16px;
}

.card-mini .card-title {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

.card-mini .card-meta {
    margin: 8px 0 0 0;
    border: none;
    padding: 0;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-item {
    background: #f3f6fc;
    padding: 24px 12px;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    flex-direction: column;
}

.cat-item:hover {
    background: #0a2647;
    color: #fff;
    transform: scale(0.98);
}

.cat-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: #4a4a4a;
    margin-top: 4px;
}

.cat-item:hover .cat-count {
    color: #ddd;
}

/* ===== TAG LIST ===== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #edf2f9;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tag:hover {
    background: #0a2647;
    color: white;
    border-color: #0a2647;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0;
    margin-top: 60px;
}

.site-footer p {
    text-align: center;
    margin: 0;
}

.site-footer a {
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0c4de;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0a2647;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 99;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    opacity: 1;
}


.breadcrumb-rich {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background: #f5f7fa;
    padding: 12px 24px;
    border-radius: 40px;
    margin: 24px 0 12px;
    font-size: 0.95rem;
    border: 1px solid #e9ecf0;
}

.breadcrumb-rich li {
    display: flex;
    align-items: center;
}

.breadcrumb-rich li:not(:last-child)::after {
    content: "›";
    margin: 0 12px;
    color: #8a8f99;
    font-size: 1.2rem;
    line-height: 1;
}

.breadcrumb-rich a {
    color: #0a2647;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-rich a:hover {
    text-decoration: underline;
}

.breadcrumb-rich [aria-current="page"] {
    color: #6c757d;
    font-weight: 400;
}

/* ===== CATEGORY PAGE HEADER ===== */
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
}

.cat-title {
    font-size: 2.2rem;
    font-weight: 400;
    border-left: 6px solid #0a2647;
    padding-left: 24px;
}

.filter-static {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fake-select {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: #fff;
    font-size: 1rem;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===== TWO COLUMN LAYOUT (70/30) ===== */
.layout-2col-70-30 {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 48px;
    margin-top: 20px;
    align-items: start;
}


.cards-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.pagination-rich {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 20px;
    align-items: center;
}

.page-nav,
.page-number,
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.page-nav {
    background: #f1f3f5;
    color: #1a1a1a;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.page-nav:hover {
    background: #0a2647;
    color: white;
    border-color: #0a2647;
}

.page-number {
    background: white;
    color: #333;
    border: 1px solid #dee2e6;
}

.page-number:hover {
    background: #e9ecef;
}

.page-number.active {
    background: #0a2647;
    color: white;
    border-color: #0a2647;
}

.page-dots {
    border: none;
    background: transparent;
}

/* ===== SIDEBAR WIDGETS ===== */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaeef5;
    padding-bottom: 10px;
}

.author-widget {
    text-align: center;
    background: #fafbfc;
    border-radius: 24px;
    padding: 32px 20px;
    border: 1px solid #edf2f9;
}

.author-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #0a2647;
}

.author-bio {
    color: #4b5565;
    font-size: 0.95rem;
    line-height: 1.6;
}

.recom-list {
    list-style: none;
}

.recom-list li {
    margin-bottom: 16px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recom-list a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    flex: 1;
}

.recom-list span {
    font-size: 0.8rem;
    color: #888;
    margin-left: 8px;
    white-space: nowrap;
}

.category-list {
    list-style: none;
    margin-top: 8px;
}

.category-list li {
    border-bottom: 1px solid #edf2f9;
    padding: 12px 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}

.category-list a:hover {
    color: #0a2647;
}

.category-list .cat-count {
    background: #eef2f6;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #334155;
}

/* ===== DETAIL PAGE STYLES ===== */
.article-header-detail {
    margin-bottom: 30px;
}

.article-title-detail {
    font-size: 2.4rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0a1929;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.article-meta-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeef2;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-mini-name {
    font-weight: 600;
    color: #0a2647;
}

.meta-stats {
    display: flex;
    gap: 20px;
    color: #5f6b7a;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.share-btn {
    background: #f0f2f5;
    border: none;
    border-radius: 40px;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #0a2647;
    color: white;
}

.article-featured-image {
    margin: 24px 0 30px;
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 24px;
}

.img-caption {
    font-size: 0.85rem;
    color: #6f6f6f;
    margin-top: 8px;
    display: block;
}

.article-body {
    margin-bottom: 40px;
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
}

.article-body img {
    margin: 0 auto;
}

.article-paragraph {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    margin-bottom: 1.8em;
    text-rendering: optimizeLegibility;
}

.article-categories {
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-label {
    font-weight: 600;
    color: #1e293b;
}

.category-badge {
    background: #edf2f9;
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #0a2647;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.category-badge:hover {
    background: #0a2647;
    color: white;
}

.author-box {
    display: flex;
    gap: 24px;
    background: #f8fafd;
    border-radius: 24px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.author-box-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-info {
    flex: 1;
}

.author-box-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.author-box-bio {
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-section {
    margin-top: 40px;
    border-top: 2px solid #e9edf2;
    padding-top: 30px;
}

.comment-section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.comment {
    background: #f9f9fc;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #edf2f9;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-date {
    margin-left: auto;
    font-size: 0.85rem;
    color: #6f7c8f;
}

.comment-text {
    color: #1e293b;
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 48px;
    /* indent to align under avatar */
}

.comment-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    margin-top: 30px;
}

.comment-form h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form textarea {
    border-radius: 24px;
    resize: vertical;
}

.comment-submit {
    background: #0a2647;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: default;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.comment-submit:hover {
    background: #133a5e;
}

.related-posts {
    margin-top: 50px;
}

.related-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-mini-related {
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-mini-related:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-headline {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 8px 0;
    font-weight: 600;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== AUTHOR PROFILE PAGE ===== */
.author-profile {
    background: #f9fafc;
    border-radius: 32px;
    padding: 48px 40px;
    margin: 30px 0 20px;
    border: 1px solid #eaeef5;
}

.author-profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.author-profile-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

.author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0a2647;
    margin-bottom: 8px;
    line-height: 1.2;
}

.author-profile-title {
    font-size: 1.2rem;
    color: #4b5565;
    margin-bottom: 20px;
    font-weight: 400;
}

.author-profile-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #0a2647;
    font-size: 1.5rem;
    transition: all 0.2s;
    border: 1px solid #dde3eb;
}

.social-link:hover {
    background: #0a2647;
    color: white;
    border-color: #0a2647;
    transform: translateY(-3px);
}

.author-profile-bio {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.author-profile-bio p {
    margin-bottom: 1.5em;
}

.author-profile-bio p:last-child {
    margin-bottom: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {

    .grid-3,
    .grid-2,
    .footer-grid,
    .layout-2col-70-30,
    .grid-special.mix-1,
    .related-grid {
        grid-template-columns: 100%;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #ddd;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05);
    }

    .main-nav.show {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .hamburger {
        display: block;
    }

    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal .horizontal-img {
        flex: auto;
        width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comment-text {
        padding-left: 0;
    }

    .article-title-detail {
        font-size: 1.4;
        line-height: 1.3;
    }

    .author-profile {
        padding: 30px 20px;
    }

    .author-profile-name {
        font-size: 2rem;
    }

    .author-profile-avatar {
        width: 120px;
        height: 120px;
    }

    .author-profile-bio {
        padding: 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        position: relative;
    }

    .article-title-detail {
        font-size: 1.4rem;
    }

    .meta-stats {
        gap: 0.5rem;
    }

    .article-meta-detail {
        gap: 0.5rem;

    }

    .author-mini-name,
    .meta-stats {
        font-size: 0.8rem;
    }

    .breadcrumb-rich {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .author-profile-name {
        font-size: 1.8rem;
    }

    .author-profile-title {
        font-size: 1rem;
    }
}