/* ==========================================================================
   SINGLE BLOG PAGE — FULLY RESPONSIVE
   Structure: hero image full-bleed, then container for text, then 2-col layout
   ========================================================================== */


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

/* ============================================================
   MAIN CONTAINER - FIX FOR STICKY SIDEBAR
   ============================================================ */
.single-post-page {
    overflow: visible;
}

main#primary.site-main.single-post-page {
    overflow: visible;
}

/* ============================================================
   READING PROGRESS
   ============================================================ */
.reading-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: rgba(0,0,0,0.1); z-index: 1000;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ED06E, #20b75d);
    width: 0%; transition: width 0.3s ease;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #2ED06E, #20b75d);
    color: white; border: none; border-radius: 50%;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; z-index: 999;
    box-shadow: 0 4px 15px rgba(46,208,110,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,208,110,0.4); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.post-hero-section {
    background: #f0fdf4;
    overflow: hidden;
    padding: 60px 0;
    border-bottom: 1px solid #d1fae5;
}

/* ── HERO: 2-column grid — image left, info right ── */
.post-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── HERO IMAGE: 16:9 thumbnail, rounded ── */
.post-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(46, 208, 110, 0.15), 0 4px 16px rgba(0,0,0,0.08);
    border: 2px solid rgba(46, 208, 110, 0.2);
    display: block;
    line-height: 0;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.post-hero-image:hover img { transform: scale(1.03); }

/* ── HERO INFO ── */
.post-hero-info {
    padding: 10px 0;
    color: #1a1d23;
}

.post-categories {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 18px;
}

.category-badge {
    padding: 7px 15px;
    background: linear-gradient(135deg, #2ED06E, #20b75d);
    color: white; border-radius: 25px;
    font-size: 12px; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    border: 1px solid rgba(46,208,110,0.2);
    box-shadow: 0 4px 12px rgba(46,208,110,0.25);
    transition: all 0.3s ease; white-space: nowrap;
}
.category-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,208,110,0.4); }

.post-hero-title {
    font-size: 40px; font-weight: 900;
    line-height: 1.15; color: #0f172a;
    margin-bottom: 18px; letter-spacing: -0.5px;
    word-break: break-word;
}

.post-hero-excerpt {
    font-size: 17px; line-height: 1.7;
    color: #475569;
    margin-bottom: 28px;
}

.post-hero-meta {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.post-hero-meta .meta-item.author {
    display: flex; align-items: center; gap: 14px;
}

.post-hero-meta .author-avatar,
.post-hero-meta img.avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(46,208,110,0.5);
    flex-shrink: 0; display: block;
}

.post-hero-meta .author-info {
    display: flex; flex-direction: column; gap: 3px;
}

.post-hero-meta .author-name {
    font-weight: 700; color: #0f172a; font-size: 15px;
}

.post-hero-meta .post-date {
    font-size: 13px; color: #64748b;
}

.reading-time-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2ED06E, #20b75d);
    color: white; border-radius: 50px;
    font-size: 14px; font-weight: 700; padding: 10px 18px;
    box-shadow: 0 6px 20px rgba(46,208,110,0.35);
    white-space: nowrap; flex-shrink: 0;
}

/* ============================================================
   POST CONTENT SECTION
   ============================================================ */
main#primary.site-main.single-post-page .post-content-section {
    padding: 60px 0;
    background: #ffffff;
    overflow: visible !important;
}

.single-post-page main#primary .post-content-section {
    overflow: visible !important;
}

.post-layout-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    overflow: visible;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
    overflow: visible;
}

/* ============================================================
   POST ARTICLE
   ============================================================ */
.post-article { min-width: 0; }

.post-content {
    line-height: 1.85;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    color: var(--ink);
    font-weight: 400;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-top: 48px; margin-bottom: 20px;
    color: var(--ink);
    line-height: 1.2;
    position: relative;
}
.post-content h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 70%;
    background: var(--g);
    border-radius: 3px;
}
.post-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-top: 36px; margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.3;
}
.post-content h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    margin-top: 28px; margin-bottom: 12px;
    color: var(--ink);
}
.post-content p {
    margin-bottom: 22px;
    color: var(--ink);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
}

.post-content img {
    max-width: 100%; height: auto; display: block;
    border-radius: 12px; margin: 28px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-content ul, .post-content ol { margin-bottom: 22px; padding-left: 28px; }
.post-content li { margin-bottom: 10px; line-height: 1.7; }

.post-content blockquote {
    margin: 36px 0;
    padding: 28px 28px 28px 24px;
    background: linear-gradient(135deg, rgba(46, 208, 110, 0.05), rgba(46, 208, 110, 0.02));
    border-left: 4px solid var(--g);
    border-radius: 12px;
    font-style: italic;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    color: var(--ink);
    position: relative;
}
.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -8px; left: 14px;
    font-size: 56px;
    color: var(--g);
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content pre, .post-content code { 
    white-space: pre-wrap; 
    word-break: break-all; 
    overflow-x: auto; 
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.post-content th {
    background: linear-gradient(135deg, rgba(46, 208, 110, 0.05), rgba(46, 208, 110, 0.02));
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--g);
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:hover {
    background: rgba(46, 208, 110, 0.02);
}

.post-content iframe, .post-content video, .post-content table { 
    max-width: 100%; 
    border-radius: var(--r-md);
    overflow: hidden;
}

/* POST TAGS */
.post-tags {
    margin-top: 44px; padding-top: 28px;
    border-top: 1px solid #e5e7eb;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.post-tags i { color: #2ED06E; font-size: 15px; flex-shrink: 0; }
.post-tags a {
    padding: 6px 14px; color: #2ED06E;
    border: 1px solid #2ED06E; border-radius: 22px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease;
}
.post-tags a:hover { background: #2ED06E; color: white; transform: translateY(-2px); }

/* SHARE BUTTONS */
.post-share { margin-top: 48px; }
.post-share h4 { margin-bottom: 20px; font-size: 20px; font-weight: 700; color: #1a1d23; }

.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.share-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 16px; border: 2px solid #2ED06E;
    background: transparent; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #1a1d23;
    cursor: pointer; text-decoration: none;
    transition: all 0.3s ease; white-space: nowrap;
}
.share-btn:hover { transform: translateY(-2px); background: #2ED06E; color: white; }
.share-btn.twitter:hover  { background: #1DA1F2; border-color: #1DA1F2; }
.share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }

/* AUTHOR BIO */
.author-bio {
    margin-top: 56px; padding: 36px;
    display: flex; gap: 28px;
    background: linear-gradient(135deg, rgba(46,208,110,0.04), rgba(46,208,110,0.01));
    border-radius: 20px; border: 1px solid rgba(46,208,110,0.12);
    position: relative; overflow: hidden;
}
.author-bio::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2ED06E, #20b75d, #2ED06E);
}
.author-avatar { flex-shrink: 0; }
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #2ED06E; display: block; }
.author-details h4 { margin-bottom: 10px; font-size: 20px; font-weight: 700; color: #1a1d23; }
.author-details p  { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
.view-posts {
    display: inline-flex; align-items: center; gap: 8px;
    color: #2ED06E; font-weight: 600; font-size: 14px;
    text-decoration: none; padding: 10px 20px;
    border-radius: 25px; border: 2px solid #2ED06E;
    transition: all 0.3s ease;
}
.view-posts:hover { background: #2ED06E; color: white; }

/* ============================================================
   SIDEBAR
   ============================================================ */

section#block-3, section#block-2, section#block-4, section#block-5, section#block-6 {
    display: none;
}

.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 0;
    align-self: flex-start;
}

.sidebar-widget {
    background: white;
    border: 1px solid rgba(46,208,110,0.1);
    border-radius: 16px; padding: 26px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.sidebar-widget::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2ED06E, #20b75d, #2ED06E);
}
.sidebar-widget:hover {
    border-color: rgba(46,208,110,0.3);
    box-shadow: 0 10px 36px rgba(46,208,110,0.12);
    transform: translateY(-3px);
}
.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700;
    margin-bottom: 20px; color: #1a1d23;
}
.widget-title i { color: #2ED06E; font-size: 15px; flex-shrink: 0; }

/* TOC */
.table-of-contents { background: linear-gradient(135deg, rgba(46,208,110,0.05), rgba(46,208,110,0.02)); }
.toc-content { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.toc-content::-webkit-scrollbar { width: 5px; }
.toc-content::-webkit-scrollbar-thumb { background: #2ED06E; border-radius: 3px; }
.toc-content ul { list-style: none; padding: 0; margin: 0; }
.toc-content li { margin-bottom: 6px; }
.toc-content a {
    display: block; padding: 9px 12px; color: #1a1d23;
    text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 500;
    border-left: 3px solid transparent; transition: all 0.3s ease;
}
.toc-content a:hover, .toc-content a.active {
    background: rgba(46,208,110,0.1); color: #2ED06E;
    transform: translateX(4px); border-left-color: #2ED06E; font-weight: 600;
}

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-badge {
    padding: 6px 13px; border-radius: 20px;
    background: rgba(46,208,110,0.07);
    color: #1a1d23; font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1px solid rgba(46,208,110,0.15);
    transition: all 0.3s ease;
}
.tag-badge:hover { background: #2ED06E; color: white; border-color: #2ED06E; transform: translateY(-2px); }

/* Newsletter */
.newsletter-widget { background: linear-gradient(135deg, rgba(46,208,110,0.07), rgba(46,208,110,0.03)); }
.newsletter-text { font-size: 14px; color: #64748b; margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 12px; }
.newsletter-input {
    flex: 1; min-width: 0; padding: 11px 14px;
    border: 2px solid rgba(46,208,110,0.2); border-radius: 10px;
    font-size: 14px; background: white; transition: all 0.3s ease;
}
.newsletter-input:focus { outline: none; border-color: #2ED06E; box-shadow: 0 0 0 3px rgba(46,208,110,0.1); }
.newsletter-submit {
    padding: 11px 18px; flex-shrink: 0;
    background: linear-gradient(135deg, #2ED06E, #20b75d);
    color: white; border: none; border-radius: 10px;
    cursor: pointer; font-weight: 700; font-size: 15px;
    transition: all 0.3s ease;
}
.newsletter-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(46,208,110,0.4); }
.newsletter-disclaimer { font-size: 11px; color: #94a3b8; margin: 0; text-align: center; }

/* Sidebar share */
.share-widget .share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-widget .share-btn { justify-content: center; padding: 10px 8px; font-size: 13px; }

/* ============================================================
   RECENT ARTICLES — SLIDER
   ============================================================ */
.recent-articles-section {
    padding: 80px 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

/* Header row: title left, nav arrows right */
.recent-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.recent-header-left { flex: 1; min-width: 0; }

.recent-title {
    font-size: 36px; font-weight: 900;
    color: #0f172a; margin-bottom: 8px; line-height: 1.1;
}

.recent-subtitle {
    font-size: 16px; color: #64748b; line-height: 1.5; margin: 0;
}

/* Arrow navigation */
.slider-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.slider-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid #2ED06E;
    background: white;
    color: #2ED06E;
    font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #2ED06E;
    color: white;
    box-shadow: 0 4px 14px rgba(46,208,110,0.35);
    transform: scale(1.05);
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Slider wrapper — clips overflow */
.recent-articles-slider-wrap {
    padding: 10px 0px 10px 0px;
    overflow: hidden;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-y;
}

.recent-articles-slider-wrap:active { 
    cursor: grabbing; 
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
}

/* Slider track — flex row, transitions on transform */
.recent-articles-slider {
    display: flex;
    gap: 28px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Each card: fixed width so 3 show on desktop */
.recent-post-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 0;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    transition: all 0.35s ease;
    position: relative;
}

.recent-post-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2ED06E, #20b75d);
    opacity: 0; transition: opacity 0.3s ease; z-index: 1;
}

.recent-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: #2ED06E;
}

.recent-post-card:hover::before { opacity: 1; }

/* Card image — 16:9 */
.recent-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden; flex-shrink: 0;
    display: block; line-height: 0;
}

.recent-post-image a { display: block; width: 100%; height: 100%; }

.recent-post-image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

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

.recent-post-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.recent-post-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 12px; font-size: 13px; color: #94a3b8;
    flex-wrap: wrap; gap: 4px;
}

.recent-post-reading-time { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.recent-post-reading-time i { font-size: 11px; color: #2ED06E; }

.recent-post-title { margin-bottom: 10px; line-height: 1.3; }

.recent-post-title a {
    font-size: 17px; font-weight: 700; color: #0f172a;
    text-decoration: none; transition: color 0.3s ease;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.recent-post-title a:hover { color: #2ED06E; }

.recent-post-excerpt {
    font-size: 14px; line-height: 1.6; color: #64748b;
    margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.recent-post-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #2ED06E; font-weight: 600; font-size: 13px;
    text-decoration: none; transition: all 0.3s ease; margin-top: auto;
}

.recent-post-link:hover { gap: 10px; }
.recent-post-link i { font-size: 11px; transition: transform 0.3s ease; }
.recent-post-card:hover .recent-post-link i { transform: translateX(3px); }

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none; cursor: pointer;
    padding: 0; transition: all 0.3s ease;
}

.slider-dot.active {
    background: #2ED06E;
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   RECENT ARTICLES RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    /* Show 2 cards */
    .recent-post-card { flex: 0 0 calc((100% - 28px) / 2); }
}

@media (max-width: 768px) {
    .recent-articles-section { padding: 56px 0; }
    .recent-title { font-size: 28px; }
    .recent-subtitle { font-size: 14px; }
    .recent-header { margin-bottom: 28px; }
    .slider-btn { width: 40px; height: 40px; font-size: 14px; }

    /* Show 1.2 cards (peek next) */
    .recent-post-card { flex: 0 0 calc(100% - 40px); }
    .recent-articles-slider { gap: 16px; }
}

@media (max-width: 480px) {
    .recent-title { font-size: 24px; }
    .recent-post-card { flex: 0 0 calc(100% - 24px); }
    .recent-articles-slider { gap: 14px; }
    .recent-post-content { padding: 18px 16px; }
}

/* ============================================================
   COMMENTS
   ============================================================ */
#comments { margin: 48px 0 0; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment {
    background: white; border: 1px solid #e5e7eb;
    padding: 24px; margin: 0 0 20px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.3s ease;
}
.comment:hover { border-color: #2ED06E; box-shadow: 0 4px 16px rgba(46,208,110,0.1); }
.comment-author .avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #2ED06E; margin-right: 12px; object-fit: cover; }
.comment-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; flex-wrap: wrap; gap: 8px; }
.comment-author { display: flex; align-items: center; }
.comment-author-name { font-weight: 600; color: #1a1d23; font-size: 15px; margin: 0; }
.comment-author-name a { color: #2ED06E; text-decoration: none; }
.comment-date { font-size: 13px; color: #64748b; }
.comment-content { line-height: 1.65; color: #374151; font-size: 15px; margin-bottom: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #2ED06E; font-weight: 600; font-size: 13px;
    text-decoration: none; padding: 6px 14px;
    border: 1px solid #2ED06E; border-radius: 20px;
    transition: all 0.3s ease;
}
.comment-reply-link:hover { background: #2ED06E; color: white; }
.comment-respond {
    background: white; border: 1px solid #e5e7eb;
    padding: 32px; margin: 28px 0 0; border-radius: 12px;
}
.comment-reply-title { font-size: 20px; font-weight: 700; color: #1a1d23; margin-bottom: 20px; }
.comment-form input, .comment-form textarea {
    background: white; border: 2px solid #e5e7eb;
    padding: 13px 16px; border-radius: 8px;
    margin-bottom: 14px; font-size: 15px; color: #374151;
    width: 100%; box-sizing: border-box; transition: all 0.3s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: #2ED06E;
    box-shadow: 0 0 0 3px rgba(46,208,110,0.1);
}
.comment-form textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.comment-form button, .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #2ED06E, #20b75d);
    color: white; border: none; padding: 13px 28px;
    border-radius: 8px; cursor: pointer; font-weight: 600;
    font-size: 15px; transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(46,208,110,0.3);
    width: auto; margin-bottom: 0;
}
.comment-form button:hover, .comment-form input[type="submit"]:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,208,110,0.4);
}
.children .comment { margin-left: 36px; margin-top: 16px; background: #f8fafc; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.post-article, .sidebar-widget, .recent-post-card { animation: fadeInUp 0.5s ease-out; }

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .post-layout-wrapper { padding: 0 30px; }
    .post-layout { grid-template-columns: 1fr 340px; gap: 40px; }
    .post-hero-content { gap: 40px; }
}

/* ============================================================
   RESPONSIVE — 1024px (Tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
    .post-layout-wrapper { padding: 0 24px; }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .post-sidebar {
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .sidebar-widget { margin-bottom: 0; }

    /* Hero: stack image above text */
    .post-hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-hero-image {
        max-width: 680px;
        margin: 0 auto;
        width: 100%;
    }

    .post-hero-title { font-size: 34px; }
}

/* ============================================================
   RESPONSIVE — 768px (Tablet portrait / large mobile)
   ============================================================ */
@media (max-width: 768px) {

    /* Hero */
    .post-hero-section { padding: 36px 0 40px; }

    .post-hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-hero-image {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
        margin: 0;
        aspect-ratio: 16/9;
    }

    .post-hero-info { padding: 4px 0; }
    .post-hero-title { font-size: 22px; letter-spacing: -0.2px; }
    .post-hero-excerpt { font-size: 14px; margin-bottom: 20px; }
    .post-hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
    .reading-time-badge { font-size: 13px; padding: 8px 14px; }
    .category-badge { font-size: 11px; padding: 6px 12px; }

    /* Content section */
    .post-content-section { padding: 36px 0 48px; }
    .post-layout-wrapper { padding: 0 16px; }
    .post-layout { gap: 28px; }

    /* Sidebar: single column stacked */
    .post-sidebar { display: block; }
    .sidebar-widget { padding: 20px; margin-bottom: 16px; border-radius: 12px; }

    /* Content typography */
    .post-content { font-size: 15px; }
    .post-content h2 { font-size: 22px; margin-top: 32px; padding-left: 14px; }
    .post-content h3 { font-size: 19px; margin-top: 26px; }
    .post-content h4 { font-size: 17px; }
    .post-content blockquote { padding: 18px 20px; font-size: 15px; margin: 24px 0; }
    .post-content img { border-radius: 10px; margin: 20px 0; }

    /* Author bio */
    .author-bio { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; gap: 16px; margin-top: 40px; }

    /* Share */
    .share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .share-btn { justify-content: center; padding: 10px 10px; font-size: 13px; }
    .share-widget .share-buttons { grid-template-columns: 1fr 1fr; }

    /* Newsletter */
    .newsletter-form { flex-direction: column; }
    .newsletter-input { width: 100%; }
    .newsletter-submit { width: 100%; padding: 13px; }

    /* Comments */
    .comment { padding: 18px 16px; }
    .comment-respond { padding: 22px 16px; }
    .children .comment { margin-left: 16px; }
}

/* ============================================================
   RESPONSIVE — 480px (Small mobile)
   ============================================================ */
@media (max-width: 480px) {
    .post-hero-section { padding: 28px 0 32px; }
    .post-hero-image { border-radius: 12px; }
    .post-hero-info { padding: 2px 0; }
    .post-hero-title { font-size: 20px; }
    .post-hero-excerpt { font-size: 13px; }

    .post-layout-wrapper { padding: 0 14px; }
    .post-content-section { padding: 28px 0 40px; }
    .post-content { font-size: 15px; }
    .post-content h2 { font-size: 19px; padding-left: 12px; }
    .post-content h3 { font-size: 17px; }
    .post-content h4 { font-size: 15px; }

    .sidebar-widget { padding: 18px 14px; }

    .author-bio { padding: 20px 14px; }
    .author-avatar img { width: 64px; height: 64px; }

    .comment { padding: 16px 14px; }
    .comment-respond { padding: 18px 14px; }
    .children .comment { margin-left: 10px; }

    .back-to-top { bottom: 16px; right: 14px; width: 42px; height: 42px; font-size: 15px; }
}

/* ============================================================
   GLOBAL OVERFLOW GUARD
   ============================================================ */
.single-post-page,
.post-hero-section,
.post-content-section,
.recent-articles-section {
    overflow-x: hidden;
    max-width: 100vw;
}