/* ===== Blog — Spacious Architectural Journal ===== */

/* ===== POST LIST PAGE ===== */
.blog-page {
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 100px 0;
    background: var(--bg-primary, #fafafa);
}

/* Hero */
.blog-hero {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
}

.blog-hero .hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.blog-hero .hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.7;
}

/* ===== Posts Grid ===== */
.posts-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* ===== Post Card ===== */
.post-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(94, 234, 212, 0.3);
}

/* Featured Card — Full Width */
.post-card--featured {
    grid-column: 1 / -1;
}

.post-card--featured .post-card-link {
    flex-direction: row;
}

.post-card--featured .post-card-img {
    width: 55%;
    height: 420px;
    flex-shrink: 0;
}

.post-card--featured .post-card-body {
    padding: 48px 40px;
    justify-content: center;
}

.post-card--featured .post-title {
    font-size: 1.7rem;
}

.post-card--featured .post-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 4;
}

/* Card Image */
.post-card-img {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-img img {
    transform: scale(1.06);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
}

/* Card Body */
.post-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    flex: 1;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary, #9ca3af);
    font-weight: 500;
}

.post-date svg {
    stroke: var(--accent);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #2dd4bf;
}

.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    padding-top: 8px;
    transition: gap 0.3s ease;
}

.read-more svg {
    transition: transform 0.3s ease;
}

.post-card:hover .read-more svg {
    transform: translateX(-4px);
}

/* ===== Empty State ===== */
.blog-empty {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-secondary, #9ca3af);
}

.blog-empty svg {
    stroke: var(--accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.blog-empty p {
    font-size: 1.1rem;
}

/* ===== DETAIL PAGE ===== */
.detail-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-primary, #fafafa);
    margin-top: 95px;
}

/* Cover */
.detail-cover {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}

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

.detail-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
}

.detail-cover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.back-link:hover {
    color: var(--accent);
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-meta time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-meta time svg {
    stroke: var(--accent);
}

.detail-cover-content h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* Article Content */
.detail-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px 40px;
}

.detail-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-primary, #374151);
}

.detail-content p {
    margin: 0 0 24px 0;
}

.detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 48px 0 20px 0;
}

.detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 36px 0 16px 0;
}

.detail-content img {
    width: 100%;
    border-radius: 16px;
    margin: 32px 0;
}

.detail-content blockquote {
    border-right: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--bg-secondary, #f0fdfa);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary, #4b5563);
}

.detail-content ul,
.detail-content ol {
    padding-right: 24px;
    margin: 20px 0;
}

.detail-content li {
    margin-bottom: 10px;
}

.detail-content a {
    color: #2dd4bf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-content a:hover {
    color: var(--accent);
}

/* ===== Related Posts ===== */
.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px 40px;
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.related-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.see-all:hover {
    gap: 12px;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(94, 234, 212, 0.3);
}

.related-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-body time {
    font-size: 0.75rem;
    color: var(--text-secondary, #9ca3af);
}

.related-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-card:hover .related-body h3 {
    color: #2dd4bf;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] .blog-page,
[data-theme="dark"] .detail-page {
    background: var(--bg-primary);
}

[data-theme="dark"] .blog-hero h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .blog-hero .hero-desc {
    color: #94a3b8;
}

[data-theme="dark"] .post-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .post-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(94, 234, 212, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-title {
    color: #f1f5f9;
}

[data-theme="dark"] .post-excerpt {
    color: #94a3b8;
}

[data-theme="dark"] .detail-content {
    color: #cbd5e1;
}

[data-theme="dark"] .detail-content h2,
[data-theme="dark"] .detail-content h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .detail-content blockquote {
    background: rgba(94, 234, 212, 0.06);
    color: #94a3b8;
}

[data-theme="dark"] .related-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .related-header h2 {
    color: #f1f5f9;
}

[data-theme="dark"] .related-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .related-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(94, 234, 212, 0.25);
}

[data-theme="dark"] .related-body h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .related-body time {
    color: #64748b;
}

[data-theme="dark"] .blog-empty {
    color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .posts-grid {
        gap: 24px;
    }

    .post-card--featured .post-card-link {
        flex-direction: column;
    }

    .post-card--featured .post-card-img {
        width: 100%;
        height: 320px;
    }

    .post-card--featured .post-card-body {
        padding: 28px;
    }

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

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

    .detail-cover {
        height: 460px;
    }

    .detail-cover-content {
        padding: 40px;
    }

    .detail-cover-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 100px 0 80px 0;
    }

    .blog-hero {
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .posts-grid-wrapper {
        padding: 0 24px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-card-img {
        height: 240px;
    }

    .detail-cover {
        height: 400px;
    }

    .detail-cover-content {
        padding: 32px 24px;
    }

    .detail-cover-content h1 {
        font-size: 1.7rem;
    }

    .detail-article {
        padding: 40px 24px 60px 24px;
    }

    .related-section {
        padding: 0 24px 80px 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .blog-page {
        padding: 90px 0 60px 0;
    }

    .blog-hero {
        margin-bottom: 48px;
        padding: 0 20px;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .posts-grid-wrapper {
        padding: 0 20px;
    }

    .post-card-body {
        padding: 22px;
    }

    .post-card-img {
        height: 200px;
    }

    .detail-cover {
        height: 360px;
    }

    .detail-cover-content {
        padding: 24px 20px;
    }

    .detail-cover-content h1 {
        font-size: 1.4rem;
    }

    .detail-article {
        padding: 32px 20px 48px 20px;
    }

    .detail-content {
        font-size: 0.95rem;
    }

    .related-section {
        padding: 0 20px 60px 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== Hero Decorations ===== */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(94, 234, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.float-accent {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 174, 214, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.fa-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.fa-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.fa-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Hero Content Structure */
.blog-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 120px 40px 60px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.badge-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-badge span:last-child {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.badge-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    padding: 6px 12px;
    /* border: 1px solid rgba(94, 234, 212, 0.3); */
    /* border-radius: 20px; */
    /* background: rgba(94, 234, 212, 0.05); */
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 20px 0;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.title-word.accent {
    color: var(--accent);
    position: relative;
}

.title-word.accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(94, 234, 212, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Cue */
.scroll-cue {
    margin-top: 48px;
    display: inline-block;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(57, 142, 206, 0.603);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ===== Filter Section ===== */
.filter-section {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 40px;
    top: 80px;
    z-index: 100;
    background: var(--bg-primary, #fafafa);
    padding-top: 20px;
    padding-bottom: 20px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
    background: rgba(94, 234, 212, 0.03);
    border: 1px solid rgba(94, 234, 212, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tag:hover {
    background: rgba(94, 234, 212, 0.1);
    color: #2dd4bf;
    transform: translateY(-2px);
}

.filter-tag.active {
    background: rgba(94, 234, 212, 0.15);
    border-color: rgba(94, 234, 212, 0.3);
    color: #0f766e;
    font-weight: 600;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(94, 234, 212, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
}

.filter-tag.active .filter-count {
    background: rgba(57, 142, 206, 0.603);
}

/* ===== Pagination ===== */
.pagination {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary, #ffffff);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page-btn:hover:not(.active):not(.disabled) {
    background: rgba(94, 234, 212, 0.1);
    color: #2dd4bf;
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--accent);
    color: #1a1a2e;
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-weight: 500;
}

.page-dots {
    color: var(--text-secondary, #9ca3af);
    padding: 0 8px;
    font-weight: 600;
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-secondary, #9ca3af);
    font-weight: 500;
}

/* ===== Card Placeholder (when no image) ===== */
.post-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.1) 0%, rgba(94, 234, 212, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(94, 234, 212, 0.3);
}

/* Category Badge on Card */
.post-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f766e;
    border: 1px solid rgba(94, 234, 212, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Dark Theme Additions ===== */
[data-theme="dark"] .filter-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .filter-bar {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-tag:hover {
    background: rgba(94, 234, 212, 0.15);
    color: var(--accent);
}

[data-theme="dark"] .filter-tag.active {
    background: rgba(94, 234, 212, 0.2);
    border-color: rgba(57, 142, 206, 0.603);
    color: var(--accent);
}

[data-theme="dark"] .filter-count {
    background: rgba(94, 234, 212, 0.2);
    color: var(--accent);
}

[data-theme="dark"] .hero-title {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .pagination-inner {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .page-btn {
    color: #94a3b8;
}

[data-theme="dark"] .page-btn:hover {
    background: rgba(94, 234, 212, 0.15);
    color: var(--accent);
}

[data-theme="dark"] .page-btn.active {
    background: var(--accent);
    color: #0f172a;
}

[data-theme="dark"] .post-category-badge {
    background: rgba(15, 23, 42, 0.9);
    color: var(--accent);
    border-color: rgba(57, 142, 206, 0.603);
}

[data-theme="dark"] .mouse {
    border-color: rgba(94, 234, 212, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 24px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .filter-section {
        padding: 16px 24px;
        top: 70px;
    }
    
    .filter-bar {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .pagination {
        padding: 0 24px;
    }
    
    .page-numbers {
        display: none; /* Show only prev/next on mobile or use simpler pagination */
    }
    
    .pagination-inner {
        width: 100%;
        justify-content: space-between;
    }
}

/* Revealed state for animation */
.post-card.revealed {
    opacity: 1;
    transform: translateY(0);
}



.hidden {
    display: none !important;
}


/* ============================================
   Blog Detail Mobile Overflow Fix
   ============================================ */

   .detail-page,
   .detail-cover,
   .detail-cover-content,
   .detail-article,
   .detail-content,
   .related-section,
   .related-grid,
   .related-card,
   .related-body {
       box-sizing: border-box;
       min-width: 0;
   }
   
   .detail-page {
       width: 100%;
       max-width: 100%;
       overflow-x: hidden;
   }
   
   .detail-article,
   .detail-content {
       width: 100%;
       max-width: 100%;
       overflow-wrap: break-word;
       word-wrap: break-word;
   }
   
   .detail-content * {
       max-width: 100%;
       box-sizing: border-box;
   }
   
   /* متن‌ها و لینک‌های بلند */
   .detail-content p,
   .detail-content li,
   .detail-content a,
   .detail-content span,
   .detail-content h1,
   .detail-content h2,
   .detail-content h3,
   .detail-content h4,
   .detail-content h5,
   .detail-content h6,
   .detail-content strong,
   .detail-content em,
   .detail-content blockquote {
       overflow-wrap: anywhere;
       word-break: break-word;
   }
   
   /* مدیا */
   .detail-content img,
   .detail-content video,
   .detail-content iframe,
   .detail-content canvas,
   .detail-content svg {
       display: block;
       max-width: 100%;
       height: auto;
   }
   
   /* جدول */
   .detail-content table {
       display: block;
       width: 100%;
       max-width: 100%;
       overflow-x: auto;
       border-collapse: collapse;
   }
   
   /* کدبلاک */
   .detail-content pre {
       max-width: 100%;
       overflow-x: auto;
       white-space: pre-wrap;
       word-break: break-word;
   }
   
   .detail-content code {
       word-break: break-word;
       overflow-wrap: anywhere;
   }
   
   /* figure / blockquote */
   .detail-content figure,
   .detail-content blockquote {
       max-width: 100%;
       margin-left: 0;
       margin-right: 0;
   }
   
   .detail-content ul,
   .detail-content ol {
       max-width: 100%;
   }
   
   /* Related cards */
   .related-card,
   .related-body h3 {
       min-width: 0;
   }
   
   .related-body h3,
   .related-body time {
       overflow-wrap: anywhere;
       word-break: break-word;
   }
   
   /* ---------- Tablet ---------- */
   @media (max-width: 768px) {
       .detail-page {
           margin-top: 82px;
       }
   
       .detail-cover {
           height: 340px;
       }
   
       .detail-cover-content {
           padding: 24px 20px;
           max-width: 100%;
       }
   
       .detail-cover-content h1 {
           font-size: 1.55rem;
           line-height: 1.45;
           max-width: 100%;
       }
   
       .back-link {
           font-size: 0.8rem;
           gap: 6px;
           margin-bottom: 14px;
       }
   
       .detail-meta {
           margin-bottom: 10px;
       }
   
       .detail-meta time {
           font-size: 0.8rem;
           gap: 6px;
           flex-wrap: wrap;
       }
   
       .detail-article {
           width: 100%;
           max-width: 100%;
           padding: 32px 16px 48px;
           overflow-x: hidden;
       }
   
       .detail-content {
           font-size: 0.96rem;
           line-height: 1.95;
       }
   
       .detail-content h2 {
           font-size: 1.22rem;
           line-height: 1.6;
           margin: 34px 0 14px;
       }
   
       .detail-content h3 {
           font-size: 1.08rem;
           line-height: 1.6;
           margin: 28px 0 12px;
       }
   
       .detail-content p {
           margin-bottom: 18px;
       }
   
       .detail-content img {
           margin: 22px 0;
           border-radius: 12px;
       }
   
       .detail-content blockquote {
           padding: 16px 14px;
           margin: 22px 0;
           border-radius: 0 10px 10px 0;
       }
   
       .detail-content ul,
       .detail-content ol {
           padding-right: 18px;
           margin: 16px 0;
       }
   
       .related-section {
           padding: 0 16px 60px;
           max-width: 100%;
       }
   
       .related-header {
           gap: 10px;
           margin-bottom: 22px;
           padding-bottom: 12px;
           flex-wrap: wrap;
       }
   
       .related-header h2 {
           font-size: 1.2rem;
       }
   
       .see-all {
           font-size: 0.85rem;
       }
   
       .related-grid {
           grid-template-columns: 1fr;
           gap: 16px;
       }
   
       .related-img {
           height: 180px;
       }
   
       .related-body {
           padding: 18px;
       }
   
       .related-body h3 {
           font-size: 1rem;
           line-height: 1.55;
       }
   }
   
   /* ---------- Mobile ---------- */
   @media (max-width: 480px) {
       .detail-page {
           margin-top: 74px;
       }
   
       .detail-cover {
           height: 280px;
       }
   
       .detail-cover-overlay {
           background: linear-gradient(
               180deg,
               rgba(0,0,0,0.12) 0%,
               rgba(0,0,0,0.68) 100%
           );
       }
   
       .detail-cover-content {
           padding: 18px 14px;
       }
   
       .detail-cover-content h1 {
           font-size: 1.28rem;
           line-height: 1.5;
       }
   
       .back-link {
           font-size: 0.76rem;
           margin-bottom: 10px;
       }
   
       .detail-meta time {
           font-size: 0.76rem;
       }
   
       .detail-article {
           padding: 24px 12px 40px;
       }
   
       .detail-content {
           font-size: 0.92rem;
           line-height: 1.9;
       }
   
       .detail-content h2 {
           font-size: 1.1rem;
           margin: 28px 0 12px;
       }
   
       .detail-content h3 {
           font-size: 1rem;
           margin: 22px 0 10px;
       }
   
       .detail-content p {
           margin-bottom: 16px;
       }
   
       .detail-content img,
       .detail-content video,
       .detail-content iframe {
           border-radius: 10px;
           margin: 18px 0;
       }
   
       .detail-content blockquote {
           padding: 14px 12px;
           margin: 18px 0;
           font-size: 0.9rem;
       }
   
       .detail-content ul,
       .detail-content ol {
           padding-right: 16px;
       }
   
       .detail-content table {
           font-size: 0.85rem;
       }
   
       .detail-content pre {
           font-size: 0.8rem;
       }
   
       .related-section {
           padding: 0 12px 48px;
       }
   
       .related-header {
           flex-direction: column;
           align-items: flex-start;
       }
   
       .related-header h2 {
           font-size: 1.08rem;
       }
   
       .see-all {
           font-size: 0.82rem;
       }
   
       .related-img {
           height: 160px;
       }
   
       .related-body {
           padding: 16px;
       }
   
       .related-body h3 {
           font-size: 0.95rem;
       }
   }
   
   /* ---------- Very Small Phones ---------- */
   @media (max-width: 360px) {
       .detail-cover {
           height: 250px;
       }
   
       .detail-cover-content {
           padding: 16px 12px;
       }
   
       .detail-cover-content h1 {
           font-size: 1.16rem;
       }
   
       .detail-article {
           padding: 22px 10px 36px;
       }
   
       .detail-content {
           font-size: 0.9rem;
       }
   
       .related-section {
           padding: 0 10px 42px;
       }
   
       .related-body {
           padding: 14px;
       }
   }
   