/* HerCity CMS — Starter Theme / Editorial */

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

:root {
    --color-accent: #c9a96e;
    --color-accent-light: #faf6ee;
    --header-text: #fff;
    --color-text: #1a1a2e;
    --color-text-secondary: #64648b;
    --color-bg: #fefefe;
    --color-surface: #ffffff;
    --color-border: #ebebeb;
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --max-width: 1220px;
    --article-width: 720px;
    --card-radius: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.7; background: var(--color-bg); font-weight: 400; }

a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================
   Reading Progress Bar
   ============================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1000;
    background: transparent;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.1s linear;
}

/* ============================
   Logo Bar (above nav)
   ============================ */
.logo-bar {
    background: var(--color-accent);
    padding: 20px 0;
    text-align: center;
}
.logo-bar .site-logo { display: inline-flex; justify-content: center; }
.logo-bar .logo-image { max-height: 100px; width: auto; }

/* ============================
   Header — Smart Sticky
   ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1a1a;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.header-hidden {
    transform: translateY(-100%);
}
.site-header.header-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
}
/* When no logo bar, show logo in header */
.site-header .site-logo + .main-nav { margin-left: auto; }
.site-header .site-logo { margin-right: auto; }

.site-logo { display: flex; align-items: center; }
.logo-image { max-height: 48px; width: auto; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
}
.nav-list a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    border-radius: 6px;
    transition: background var(--transition), opacity var(--transition);
    letter-spacing: 0.01em;
}
.nav-list a:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 9px;
}
.hamburger { top: 19px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
    .nav-list { display: none; }
    .menu-toggle { display: block; }
    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        padding: 8px 24px 20px;
        gap: 0;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }
    .nav-list.active a {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 8px;
        color: #fff;
    }
}

/* ============================
   Featured Grid (replaces hero slider)
   ============================ */
.featured-grid {
    padding: 32px 0 0;
}
.featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    min-height: 420px;
}

.featured-main {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--card-radius);
    overflow: hidden;
    color: #fff;
}
.featured-main:hover { color: #fff; opacity: 1; }
.featured-img-wrap {
    position: absolute;
    inset: 0;
}
.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-main:hover .featured-img-wrap img { transform: scale(1.03); }
.featured-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1a1a2e 100%);
}
.featured-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}
.featured-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.featured-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.featured-excerpt {
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 12px;
    max-width: 500px;
}
.featured-meta {
    font-size: 0.82rem;
    opacity: 0.65;
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-sep { opacity: 0.5; }

/* Side cards */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.featured-small {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    color: #fff;
}
.featured-small:hover { color: #fff; opacity: 1; }
.featured-small-img {
    position: absolute;
    inset: 0;
}
.featured-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-small:hover .featured-small-img img { transform: scale(1.03); }
.featured-small-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.featured-small-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-small-body time {
    font-size: 0.78rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .featured-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .featured-main { min-height: 300px; }
    .featured-side { flex-direction: row; }
    .featured-small { min-height: 200px; }
    .featured-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .featured-side { flex-direction: column; }
    .featured-small { min-height: 180px; }
}

/* ============================
   Article Hero
   ============================ */
.article-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.article-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.article-hero-img--none {
    background: linear-gradient(135deg, var(--color-accent) 0%, #1a1a2e 100%);
}
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.08) 100%);
}
.article-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 48px;
}
.article-hero-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 14px;
}
.article-hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    max-width: 720px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .article-hero { height: 320px; }
    .article-hero-inner { padding-bottom: 32px; }
    .article-hero-title { font-size: 1.8rem; }
}

/* ============================
   Main Content Area
   ============================ */
.site-main {
    padding: 48px 0 64px;
}

/* Section headers */
.section-header {
    margin-bottom: 32px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.section-line {
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 10px;
    border-radius: 2px;
}

/* ============================
   Post Cards Grid
   ============================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.post-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.post-card-img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
}
.post-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-img-link img {
    transform: scale(1.04);
}
.post-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #e8e8f0 100%);
}

.post-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.post-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { opacity: 0.6; }

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-meta {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
    .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================
   Article (Single Post)
   ============================ */
.article {
    max-width: var(--article-width);
    margin: 0 auto;
}
.article-content {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #2a2a3c;
}
.article-content p {
    margin-bottom: 1.4em;
}
.article-content h2,
.article-content h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 2em 0 0.6em;
    color: var(--color-text);
}
.article-content h2 { font-size: 1.65rem; font-weight: 800; }
.article-content h3 { font-size: 1.3rem; font-weight: 600; }
.article-content img {
    margin: 2em 0;
    border-radius: 8px;
}
.article-content a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.article-content a:hover { opacity: 0.7; }
.article-content ul,
.article-content ol {
    margin: 0 0 1.4em 1.5em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 4px 0 4px 24px;
    margin: 2em 0;
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* WordPress image alignment classes */
.alignright { float: right; margin: 0.4em 0 1em 1.5em; max-width: 50%; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; max-width: 50%; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignnone { display: block; margin: 1.5em 0; }
.size-thumbnail { max-width: 150px; height: auto; }
.size-medium { max-width: 300px; height: auto; }
.size-large { max-width: 100%; height: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-secondary); margin-top: 6px; text-align: center; }
@media (max-width: 600px) {
    .alignright, .alignleft { float: none; max-width: 100%; margin: 1em 0; }
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.article-content th,
.article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}
.article-content th {
    font-weight: 600;
    border-bottom-width: 2px;
}

/* ============================
   Author Box
   ============================ */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    padding: 28px;
    background: #f8f8fa;
    border-radius: 12px;
}
.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-box-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}
.author-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.author-box-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 2px;
}
.author-box-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}
.author-box-title {
    font-size: 0.82rem;
    color: #777;
    margin-top: 1px;
}
.author-box-bio {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-box-avatar { width: 64px; height: 64px; }
}

/* ============================
   Related Posts
   ============================ */
.related {
    max-width: var(--article-width);
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    opacity: 1;
}
.related-card-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-body {
    padding: 16px 18px;
}
.related-card-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}
.related-card-body time {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* ============================
   Category Page
   ============================ */
.category-header {
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}
.category-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.category-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

/* ============================
   Pagination
   ============================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 24px;
}
.pagination a,
.pagination .current,
.pagination .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.pagination a {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.pagination a:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
    opacity: 1;
}
.pagination .current {
    background: var(--color-accent);
    color: var(--header-text);
    border: 1px solid var(--color-accent);
    font-weight: 600;
}
.pagination .dots {
    border: none;
    color: var(--color-text-secondary);
    padding: 0 4px;
    min-width: auto;
}

/* ============================
   404 Page
   ============================ */
.error-page {
    text-align: center;
    padding: 100px 0;
}
.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.05em;
    opacity: 0.3;
}
.error-heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin: -10px 0 16px;
    letter-spacing: -0.02em;
}
.error-page p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--color-accent);
    color: var(--header-text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all var(--transition);
}
.btn:hover {
    opacity: 0.85;
    color: var(--header-text);
    transform: translateY(-1px);
}

/* ============================
   Footer
   ============================ */
.site-footer {
    margin-top: 40px;
}
.footer-top {
    background: var(--color-accent);
    color: var(--header-text);
    padding: 56px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}
.footer-logo {
    max-height: 36px;
    display: block;
    margin-bottom: 16px;
}
.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: inherit;
    display: block;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.6;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.85;
    transition: opacity var(--transition);
}
.footer-col ul a:hover { opacity: 1; }

.footer-bottom {
    background: rgba(0,0,0,0.1);
    padding: 14px 0;
    text-align: center;
    font-size: 0.78rem;
    color: inherit;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================
   Legal & Contact Pages
   ============================ */
.legal-page { max-width: var(--article-width); margin: 0 auto; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-updated { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 32px; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.7; color: var(--color-text-secondary); }
.legal-page ul { margin: 0 0 16px 20px; }
.legal-page a { color: var(--color-accent); }

.contact-page { max-width: var(--article-width); margin: 0 auto; }
.contact-page h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.contact-page > p { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 32px; }
.contact-grid { display: grid; gap: 32px; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.contact-info p { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6; }
.contact-method { margin-top: 20px; padding: 16px 20px; background: var(--color-accent-light); border-radius: 8px; }
.contact-method strong { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.contact-method a { color: var(--color-accent); }

/* ============================
   Post Feed Section Header
   ============================ */
.post-feed {
    margin-top: 0;
}

/* ============================
   Homepage Links
   ============================ */
.homepage-links {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-accent-light);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    transition: border-color var(--transition), transform var(--transition);
}
.link-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-1px);
    opacity: 1;
}
.link-card-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.link-card-body {
    display: flex;
    flex-direction: column;
}
.link-card-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}
.link-card-desc {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.post-card {
    animation: fadeInUp 0.5s ease both;
}
.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }
.post-card:nth-child(6) { animation-delay: 0.25s; }

/* ============================
   Sidebar (kept for homepage)
   ============================ */
.widget { margin-bottom: 30px; padding: 20px; background: var(--color-accent-light); border-radius: var(--card-radius); }
.widget-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-accent); }
.popular-posts { list-style: none; }
.popular-post { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.popular-post:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
.popular-post-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.popular-post-info a { font-size: 0.88rem; font-weight: 500; line-height: 1.35; display: block; }
.popular-post-info time { font-size: 0.75rem; color: var(--color-text-secondary); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links li a { font-size: 0.88rem; }
.sidebar-links li img { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin-right: 8px; border-radius: 4px; }
