/* ============================================
   BLOG PAGES - MOBILE-FIRST RESPONSIVE CSS
   ============================================ */

/* Override prism-menume.css dark background */
body {
    background: #ffffff !important;
}

.blog-toc,
.blog-references,
.blog-author,
.blog-topic-cta {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-surface-sunken);
}
.blog-toc h2,
.blog-references h2,
.blog-author h2,
.blog-topic-cta h2 { margin-top: 0; font-size: 1.2rem; }
.blog-toc ol,
.blog-references ol { margin-bottom: 0; padding-left: 1.25rem; }
.blog-toc .level-3 { margin-left: 1rem; }
.blog-toc a,
.blog-references a,
.blog-topic-cta a { color: var(--color-primary); }
.blog-author p:last-child,
.blog-topic-cta p:last-child { margin-bottom: 0; }

body::before,
body::after {
    display: none !important;
}

/* ============================================
   Blog Container
   ============================================ */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 20px 60px;
    width: 100%;
}

.blog-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
}

.blog-meta {
    color: #666;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 30px;
}

/* ============================================
   Blog Content
   ============================================ */

.blog-content {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #667eea;
    word-wrap: break-word;
}

.blog-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #764ba2;
    word-wrap: break-word;
}

.blog-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 25px;
    margin-left: 25px;
    padding-left: 15px;
}

.blog-content li {
    margin-bottom: 12px;
}

.blog-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.blog-content a {
    color: #667eea;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #764ba2;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.highlight-box h3 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: clamp(1.2rem, 3vw, 1.4rem) !important;
}

.highlight-box p {
    margin-bottom: 15px;
}

.highlight-box p:last-child,
.highlight-box ul:last-child {
    margin-bottom: 0;
}

.highlight-box ul {
    margin-left: 20px;
}

.highlight-box li {
    margin-bottom: 10px;
}

/* ============================================
   Info Box
   ============================================ */

.info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.info-box strong {
    color: #667eea;
}

/* ============================================
   Comparison Grid
   ============================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.comparison-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.comparison-card h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
    margin-top: 0 !important;
    color: #1a1a1a;
}

.comparison-card ul {
    margin-bottom: 0;
    margin-left: 20px;
}

.comparison-card li {
    margin-bottom: 10px;
}

.pros {
    border-color: #4caf50;
}

.cons {
    border-color: #f44336;
}

/* ============================================
   Tables
   ============================================ */

.price-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.price-table th,
.comparison-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.price-table td,
.comparison-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.price-table tr:last-child td,
.comparison-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover,
.comparison-table tr:hover {
    background: #f8f9fa;
}

.winner {
    background: #e8f5e9;
    font-weight: 600;
}

.loser {
    background: #ffebee;
}

/* ============================================
   Cost Box
   ============================================ */

.cost-box {
    background: white;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.cost-box h4 {
    color: #667eea;
    margin-bottom: 15px;
    margin-top: 0 !important;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.cost-box ul {
    margin-bottom: 0;
    margin-left: 20px;
}

.cost-box li {
    margin-bottom: 12px;
}

/* ============================================
   Blog Index Grid
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.blog-card-meta {
    font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    color: #999;
    margin-bottom: 15px;
}

.blog-card-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* ============================================
   CTA Button
   ============================================ */

.blog-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 15px;
}

.blog-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Tablet Breakpoint (768px+)
   ============================================ */

@media (min-width: 768px) {
    .blog-container {
        padding: 120px 30px 80px;
    }

    .blog-header {
        margin-bottom: 50px;
    }

    .blog-content h2 {
        margin-top: 60px;
        margin-bottom: 25px;
    }

    .blog-content h3 {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .blog-content ul,
    .blog-content ol {
        margin-left: 40px;
    }

    .blog-content li {
        margin-bottom: 15px;
    }

    .highlight-box {
        padding: 40px;
        margin: 40px 0;
    }

    .info-box {
        padding: 25px;
        margin: 30px 0;
    }

    .comparison-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin: 40px 0;
    }

    .comparison-card {
        padding: 30px;
    }

    .cost-box {
        padding: 30px;
        margin: 30px 0;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
        margin: 50px auto;
        padding: 0 30px;
    }

    .blog-card-image {
        height: 200px;
        font-size: 4rem;
    }

    .blog-card-content {
        padding: 25px;
    }

    .blog-cta-button {
        padding: 18px 40px;
    }
}

/* ============================================
   Desktop Breakpoint (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .blog-content ul,
    .blog-content ol {
        margin-left: 45px;
    }

    .price-table th,
    .comparison-table th {
        padding: 20px 15px;
    }

    .price-table td,
    .comparison-table td {
        padding: 20px 15px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 35px;
    }
}

/* ============================================
   Mobile Fixes - Prevent Horizontal Scroll
   ============================================ */

/* ============================================
   ADVANCED MOBILE OPTIMIZATION - QR Menu Pricing
   ============================================ */

@media (max-width: 768px) {
    /* Container adjustments */
    .blog-container {
        padding: 90px 15px 50px;
    }
    
    .blog-content ul, 
    .blog-content ol {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    /* ========================================
       RESPONSIVE CARD-BASED TABLES
       Tables transform into cards on mobile
       ======================================== */
    
    .price-table,
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px -15px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .price-table thead,
    .comparison-table thead {
        display: none;
    }
    
    .price-table tbody,
    .comparison-table tbody {
        display: block;
    }
    
    .price-table tr,
    .comparison-table tr {
        display: block;
        margin-bottom: 20px;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .price-table td,
    .comparison-table td {
        display: block;
        text-align: right;
        padding: 10px 0;
        border: none;
        position: relative;
        padding-left: 50%;
        min-height: 25px;
    }
    
    /* Data label - appears as left-side label */
    .price-table td:before,
    .comparison-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: #667eea;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .price-table tfoot tr,
    .comparison-table tfoot tr {
        background: #f0f4ff;
        padding: 20px;
        border: 2px solid #667eea;
    }
    
    .price-table tfoot td,
    .comparison-table tfoot td {
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    /* ========================================
       BOXES - MOBILE OPTIMIZATION
       ======================================== */
    
    .highlight-box {
        margin: 25px -10px;
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .info-box {
        margin: 20px -10px;
        padding: 15px;
    }
    
    .cost-box {
        padding: 18px;
        margin: 20px -10px;
    }
    
    .cta-box {
        margin: 30px -10px;
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .btn-cta {
        display: block;
        width: calc(100% - 40px);
        max-width: 350px;
        margin: 15px auto 0;
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    /* Responsive images */
    .blog-content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Comparison cards on mobile */
    .comparison-card {
        padding: 18px;
    }
    
    /* Blog grid on mobile */
    .blog-grid {
        padding: 0 15px;
        gap: 20px;
        margin: 30px auto;
    }
    
    .blog-card-image {
        height: 160px;
        font-size: 3rem;
    }
    
    .blog-card-content {
        padding: 18px;
    }
    
    /* CTA button full width on mobile */
    .blog-cta-button {
        display: block;
        width: calc(100% - 40px);
        max-width: 400px;
        margin: 20px auto;
        padding: 15px 25px;
    }
}

/* ============================================
   SMALL MOBILE PHONES (320px - 480px)
   ============================================ */

@media (max-width: 480px) {
    .blog-container {
        padding: 80px 12px 40px;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
    
    .blog-content ul, 
    .blog-content ol {
        margin-left: 15px;
        padding-left: 5px;
    }
    
    /* Extra compact tables */
    .price-table,
    .comparison-table {
        margin: 15px -12px;
    }
    
    .price-table tr,
    .comparison-table tr {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .price-table td,
    .comparison-table td {
        padding: 8px 0;
        font-size: 0.9rem;
    }
    
    .price-table td:before,
    .comparison-table td:before {
        font-size: 0.85rem;
    }
    
    /* Compact boxes */
    .highlight-box, 
    .info-box, 
    .cta-box,
    .cost-box {
        margin-left: -12px;
        margin-right: -12px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    body {
        background: white !important;
    }

    .header,
    .footer,
    .blog-cta-button {
        display: none;
    }

    .blog-container {
        max-width: 100%;
        padding: 0;
    }

    .blog-content {
        color: #000;
    }

    .highlight-box {
        border: 2px solid #667eea;
        color: #000;
        background: #f0f4ff;
    }

    .highlight-box h3 {
        color: #667eea !important;
    }
}

/* ============================================
   DYNAMIC BLOG V2
   ============================================ */

:root {
    --blog-ink: #17130f;
    --blog-muted: #6f675f;
    --blog-border: #e8e0d8;
    --blog-surface: #ffffff;
    --blog-surface-soft: #faf7f3;
    --blog-accent: #6d3f28;
    --blog-accent-strong: #4d2c1d;
    --blog-focus: #2367d1;
}

.blog-index-page main,
.blog-detail-page main {
    min-height: 70vh;
}

.blog-hero {
    /* Sabit header boşluğu artık layout.css'te body padding-top ile veriliyor;
       burada 128px vermek boşluğu ikiye katlıyordu. */
    padding: 72px 24px;
    color: #fff;
    /* Marka paletiyle hizalı: bordo → koyu kahve (gradient-warm ile aynı uçlar) */
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.10), transparent 34%),
        linear-gradient(140deg, #6D1D3A 0%, #6E3E30 100%);
}

.blog-hero-inner {
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

.blog-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0.78;
}

.blog-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.blog-hero p:last-child {
    max-width: 680px;
    margin: 20px auto 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.blog-list-section {
    width: min(100%, 1760px);
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.blog-index-page .blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 22px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.blog-index-page .blog-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(40, 28, 19, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-index-page .blog-card:hover {
    transform: translateY(-4px);
    border-color: #d3c3b5;
    box-shadow: 0 18px 42px rgba(40, 28, 19, 0.13);
}

.blog-card-click {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-click:focus-visible {
    outline: 3px solid var(--blog-focus);
    outline-offset: 3px;
}

.blog-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--blog-surface-soft);
}

.blog-card-media .blog-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    font-size: 0;
    transition: transform 320ms ease;
}

.blog-card:hover .blog-card-media .blog-card-image {
    transform: scale(1.025);
}

.blog-index-page .blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.blog-card-category,
.blog-detail-category {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: var(--blog-accent-strong);
    background: #f2e9e1;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.blog-index-page .blog-card-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 12px 0 10px;
    overflow: hidden;
    color: var(--blog-ink);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.018em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-index-page .blog-card-excerpt {
    display: -webkit-box;
    min-height: 4.65em;
    margin: 0;
    overflow: hidden;
    color: var(--blog-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-excerpt-empty {
    visibility: hidden;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 18px;
}

.blog-card-publish-meta,
.blog-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    color: var(--blog-muted);
    font-size: 0.76rem;
}

.blog-card-publish-meta {
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--blog-border);
}

.blog-card-stats {
    padding-top: 12px;
}

.blog-card-read-more {
    margin-left: auto;
    color: var(--blog-accent);
    font-weight: 750;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 42px;
}

.blog-page-link,
.blog-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    color: var(--blog-accent-strong);
    background: var(--blog-surface);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-page-link:hover {
    color: #fff;
    background: var(--blog-accent);
    border-color: var(--blog-accent);
}

.blog-page-link.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.blog-state {
    grid-column: 1 / -1;
    width: min(100%, 720px);
    margin: 80px auto;
    padding: 36px 24px;
    text-align: center;
    color: var(--blog-muted);
    background: var(--blog-surface-soft);
    border: 1px solid var(--blog-border);
    border-radius: 18px;
}

.blog-state h1,
.blog-state h2 {
    margin: 0 0 10px;
    color: var(--blog-ink);
}

.blog-state-error {
    margin-top: 130px;
}

.blog-detail-page .blog-container {
    width: min(100%, 940px);
    max-width: none;
    margin: 0 auto;
    padding: 126px 22px 80px;
}

.blog-detail-page .blog-header {
    margin-bottom: 46px;
    text-align: left;
}

.blog-detail-page .blog-title {
    margin: 16px 0 20px;
    color: var(--blog-ink);
    font-size: clamp(2rem, 6vw, 4.35rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.blog-detail-page .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 0.92rem;
}

.blog-cover-wrap {
    width: 100%;
    margin: 34px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: var(--blog-surface-soft);
}

.blog-detail-page .blog-cover {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.blog-detail-page .blog-content {
    color: #302a26;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.82;
}

.blog-detail-page .blog-content h1,
.blog-detail-page .blog-content h2,
.blog-detail-page .blog-content h3,
.blog-detail-page .blog-content h4 {
    color: var(--blog-ink);
    line-height: 1.25;
}

.blog-detail-page .blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 14px;
}

.blog-detail-page .blog-content blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 22px;
    color: #4f443d;
    border-left: 4px solid var(--blog-accent);
}

.blog-detail-page .blog-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 18px;
    border-radius: 12px;
}

.blog-video {
    position: relative;
    width: 100%;
    margin: 30px 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 14px;
}

.blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-engagement,
.blog-share {
    margin-top: 44px;
    padding: 24px;
    background: var(--blog-surface-soft);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
}

.blog-engagement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
}

.blog-like-btn,
.blog-share button {
    min-height: 42px;
    padding: 9px 16px;
    color: var(--blog-accent-strong);
    background: #fff;
    border: 1px solid #d9cbbf;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.blog-like-btn.is-liked {
    color: #fff;
    background: #a72d3f;
    border-color: #a72d3f;
}

.blog-like-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.blog-like-btn:focus-visible,
.blog-share button:focus-visible,
.blog-back-link:focus-visible {
    outline: 3px solid var(--blog-focus);
    outline-offset: 3px;
}

.blog-share h2 {
    margin: 0 0 14px;
    color: var(--blog-ink);
    font-size: 1.1rem;
}

.blog-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#blog-share-status {
    display: block;
    min-height: 1.3em;
    margin-top: 10px;
    color: var(--blog-muted);
    font-size: 0.85rem;
}

.blog-back-link {
    display: inline-flex;
    margin-top: 32px;
    color: var(--blog-accent);
    font-weight: 750;
    text-decoration: none;
}

.blog-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    width: min(calc(100% - 32px), 1320px);
    margin: 0 auto;
    padding: 104px 0 64px;
}

.blog-detail-page .blog-detail-layout .blog-container {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

.blog-engagement-top {
    justify-content: space-between;
    margin: 0 0 30px;
    padding: 14px 18px;
}

.blog-view-stat {
    color: var(--blog-ink);
    font-weight: 750;
}

.blog-related {
    order: 2;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(42, 30, 21, 0.07);
}

.blog-related-heading {
    margin-bottom: 14px;
}

.blog-related-heading > span {
    color: var(--blog-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-related-heading h2 {
    margin: 4px 0 0;
    color: var(--blog-ink);
    font-size: 1.35rem;
}

.blog-related-list {
    display: grid;
    gap: 5px;
}

.blog-related-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--blog-border);
}

.blog-related-card.has-cover {
    grid-template-columns: 72px minmax(0, 1fr);
}

.blog-related-media {
    display: block;
    width: 72px;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--blog-surface-soft);
}

.blog-related-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-related-copy,
.blog-related-title,
.blog-related-excerpt,
.blog-related-meta {
    display: block;
    min-width: 0;
}

.blog-related-category {
    color: var(--blog-accent);
    font-size: 0.67rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-related-title {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    color: var(--blog-ink);
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-related-excerpt {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--blog-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-related-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: var(--blog-muted);
    font-size: 0.68rem;
}

.blog-related-card:hover .blog-related-title,
.blog-related-card:focus-visible .blog-related-title {
    color: var(--blog-accent);
}

.blog-related-card:focus-visible,
.blog-related-all:focus-visible {
    outline: 3px solid var(--blog-focus);
    outline-offset: 3px;
}

.blog-related-all {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blog-accent);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 980px) {
    .blog-detail-layout {
        grid-template-columns: 300px minmax(0, 900px);
        justify-content: center;
        gap: 44px;
        padding-top: 126px;
    }

    .blog-detail-layout.has-no-related {
        grid-template-columns: minmax(0, 940px);
    }

    .blog-related {
        position: sticky;
        top: 106px;
        order: 0;
    }
}

@media (min-width: 640px) {
    .blog-index-page .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .blog-list-section {
        padding-right: 28px;
        padding-left: 28px;
    }

    .blog-index-page .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .blog-index-page .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .blog-index-page .blog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 639px) {
    .blog-hero {
        padding: 48px 18px 52px;
    }

    .blog-list-section {
        padding: 30px 14px 58px;
    }

    .blog-index-page .blog-card-content {
        padding: 18px;
    }

    .blog-pagination {
        gap: 7px;
    }

    .blog-page-link,
    .blog-page-current {
        min-height: 38px;
        padding: 7px 11px;
        font-size: 0.78rem;
    }

    .blog-cover-wrap {
        margin-top: 26px;
        border-radius: 14px;
    }

    .blog-engagement,
    .blog-share {
        padding: 18px;
    }
}

