/**
 * FactFlow — Editorial News Theme
 * Modeled after GeneratePress Marketer Pro Reference (Ui Images 1.JPG - 7.JPG)
 * Updated with in-content "Also Read" and Image 2 Sidebar Layout
 */

@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;500;600;700;800&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --brand-green: #00A86B;
    --brand-green-hover: #008f5b;
    --brand-green-light: #e6f7f0;
    
    --text-main: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    
    --border-light: #e5e7eb;
    --footer-bg: #202936;
}

/* Global Reset & Strict SVG Protection */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-body);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, .font-heading, .site-logo-link, .widget-capsule-title, .nav-link-custom {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   STRICT SVG SIZING SAFEGUARDS
   ══════════════════════════════════════════════════════════ */
svg {
    max-width: 100%;
}

.verified-badge {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    color: #0c90fa !important;
    fill: #0c90fa !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════ */
.site-logo-link {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    color: var(--brand-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.site-logo-link:hover {
    color: var(--brand-green-hover);
}

.nav-link-custom {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.925rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--brand-green);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY BADGE (1.JPG, 2.JPG)
   ══════════════════════════════════════════════════════════ */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-green);
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 6px;
}

.cat-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.cat-badge:hover {
    color: var(--brand-green-hover);
}

/* ═══════════════════════════════════════════════════════════
   HORIZONTAL POST STREAM (1.JPG, 2.JPG)
   ══════════════════════════════════════════════════════════ */
.post-item-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f1f3;
}

@media (min-width: 640px) {
    .post-item-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.75rem;
    }
}

.post-thumb-wrap {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .post-thumb-wrap {
        width: 290px;
        height: 175px;
    }
}

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

.post-thumb-wrap:hover .post-thumb-img {
    transform: scale(1.04);
}

.post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .post-details {
        margin-top: 0;
    }
}

.post-title-link {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.post-title-link:hover {
    color: var(--brand-green);
}

.post-excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: #6b7280;
}

.post-meta-author {
    font-weight: 600;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   IN-CONTENT "ALSO READ" INTERLINK BOX (Matches Image 2)
   ══════════════════════════════════════════════════════════ */
.also-read-card {
    border: 1.5px dashed #4b5563;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 14px 18px;
    margin: 1.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.also-read-legend {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.825rem;
    font-weight: 700;
    color: #dc2626; /* Clean red label matching Image 2 */
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.also-read-content-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.also-read-thumb {
    width: 105px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.also-read-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.also-read-content-wrap:hover .also-read-thumb img {
    transform: scale(1.05);
}

.also-read-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s ease;
}

.also-read-content-wrap:hover .also-read-title {
    color: var(--brand-green);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR LATEST NEWS & CATEGORIES (Matches Image 2)
   ══════════════════════════════════════════════════════════ */
.sidebar-green-pill-header {
    background-color: var(--brand-green);
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 168, 107, 0.2);
}

.sidebar-green-pill-header svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    fill: none !important;
    stroke: #ffffff !important;
}

/* Featured Lead Post in Sidebar (Image 2 Top Item) */
.sidebar-featured-lead {
    display: block;
    text-decoration: none;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f1f3;
}

.sidebar-featured-thumb {
    width: 100%;
    height: 165px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 0.65rem;
}

.sidebar-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-featured-lead:hover .sidebar-featured-thumb img {
    transform: scale(1.03);
}

.sidebar-featured-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.15s ease;
}

.sidebar-featured-lead:hover .sidebar-featured-title {
    color: var(--brand-green);
}

.sidebar-featured-date {
    font-size: 0.725rem;
    color: #6b7280;
}

/* Compact Sidebar Row Item (Image 2 Subsequent Items) */
.sidebar-compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
}

.sidebar-compact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-compact-thumb {
    width: 82px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.sidebar-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.sidebar-compact-row:hover .sidebar-compact-thumb img {
    transform: scale(1.05);
}

.sidebar-compact-info {
    flex: 1;
    min-width: 0;
}

.sidebar-compact-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.825rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.sidebar-compact-row:hover .sidebar-compact-title {
    color: var(--brand-green);
}

.sidebar-compact-date {
    font-size: 0.7rem;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════
   STICKY SIDEBAR (Always visible on scroll, non-scrollable)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .sticky-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 84px;
    }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR CAPSULE WIDGETS & PILL TAG CLOUD (Matches Reference 9fc55a3d)
   ══════════════════════════════════════════════════════════ */
.widget-capsule-box {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 26px 18px 20px 18px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.widget-capsule-title {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    padding: 3px 22px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.widget-capsule-title-center {
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 28px;
    font-size: 0.95rem;
}

/* Simple Bolder Categories List (No logo/emoji, clean theme matching) */
.sidebar-simple-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.sidebar-simple-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #f1f3f5;
    background-color: #fafbfc;
    transition: all 0.15s ease;
}

.sidebar-simple-cat-item:hover {
    background-color: #f0fdf4;
    border-color: #00A86B;
    transform: translateX(2px);
}

.sidebar-simple-cat-name {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.sidebar-simple-cat-item:hover .sidebar-simple-cat-name {
    color: #00A86B;
}

.sidebar-simple-cat-badge {
    font-size: 0.725rem;
    font-weight: 700;
    color: #4b5563;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 2px 9px;
    border-radius: 9999px;
}

/* Tag Cloud Pills (EXACT Match to User Reference Image 9fc55a3d) */
.sidebar-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 9px;
    padding-top: 4px;
}

.sidebar-pill-tag {
    display: inline-block;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    padding: 5px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.825rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    background-color: #ffffff;
    line-height: 1.35;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sidebar-pill-tag:hover {
    background-color: #00A86B;
    border-color: #00A86B;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 168, 107, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS / CONTENT OUTLINE (Article Top)
   ══════════════════════════════════════════════════════════ */
.toc-container {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toc-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.toc-header-left svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    stroke: #00A86B !important;
}

.toc-chevron {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    stroke: #6b7280 !important;
    transition: transform 0.2s ease;
}

.toc-collapsed .toc-chevron {
    transform: rotate(-90deg);
}

.toc-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-collapsed .toc-list {
    display: none;
}

.toc-link {
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: color 0.15s ease;
    line-height: 1.45;
}

.toc-link:hover {
    color: #00A86B;
}

.toc-link-h3 {
    padding-left: 1.25rem;
    font-size: 0.825rem;
    color: #6b7280;
}

.toc-num {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700;
    font-size: 0.775rem;
    color: #00A86B;
    min-width: 18px;
}

/* Post Tag Badges on Single Post (clean matching pills) */
.article-tags-wrapper {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f1f3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag-label {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-right: 4px;
}

.article-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.15s ease;
}

.article-tag-pill:hover {
    border-color: #111827;
    color: #111827;
    background-color: #f9fafb;
}

/* Tag Cloud Container */
.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 4px;
}

.tag-cloud-pill {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.15s ease;
}

.tag-cloud-pill:hover {
    border-color: #111827;
    color: #111827;
    background-color: #f9fafb;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION (3.JPG)
   ══════════════════════════════════════════════════════════ */
.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-btn-active {
    background-color: var(--brand-green);
    color: #ffffff;
    border: 1px solid var(--brand-green);
}

.page-btn-default {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.page-btn-default:hover {
    border-color: #9ca3af;
    background-color: #f9fafb;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST LAYOUT (4.JPG, 5.JPG, 6.JPG, 7.JPG)
   ══════════════════════════════════════════════════════════ */
.post-single-header {
    margin-bottom: 1.5rem;
}

.post-single-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0.5rem 0 1.25rem 0;
}

@media (min-width: 640px) {
    .post-single-title {
        font-size: 2.25rem;
    }
}

.post-byline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.byline-author-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-circle-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

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

.byline-meta-col {
    display: flex;
    flex-direction: column;
}

.byline-author-name {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
}

.byline-date-read {
    font-size: 0.75rem;
    color: #6b7280;
}

.byline-share-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.byline-share-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.byline-share-circle:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.byline-share-circle svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    fill: #ffffff !important;
}

.bg-whatsapp-green { background-color: #25d366; }
.bg-dark-share     { background-color: #1f2937; }

.post-featured-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post-featured-hero img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Post Editorial Typography (5.JPG) */
.article-content {
    font-size: 1.05rem;
    line-height: 1.78;
    color: #374151;
}

.article-content h2 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.article-content h3 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   AUTHOR BIO BOX (6.JPG - Green Dashed Outline)
   ══════════════════════════════════════════════════════════ */
.author-bio-card {
    border: 1.5px dashed var(--brand-green);
    border-radius: 12px;
    background-color: #ffffff;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .author-bio-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-bio-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.author-bio-details {
    flex: 1;
}

.author-bio-heading {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.author-bio-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   RELATED POSTS RIBBON & GRID (6.JPG)
   ══════════════════════════════════════════════════════════ */
.related-posts-section {
    margin: 2.5rem 0;
}

.related-posts-ribbon {
    background-color: var(--brand-green);
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.related-card-item:hover {
    background: #f9fafb;
}

.related-card-thumb {
    width: 120px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-info {
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin: 2px 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-item:hover .related-card-title {
    color: var(--brand-green);
}

.related-card-meta {
    font-size: 0.725rem;
    color: #6b7280;
}

/* ═══════════════════════════════════════════════════════════
   COMMENT SECTION (7.JPG)
   ══════════════════════════════════════════════════════════ */
.widget-capsule-box {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 28px 20px 20px 20px;
    margin-bottom: 2.25rem;
}

.widget-capsule-title {
    position: absolute;
    top: -14px;
    left: 20px;
    background: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    padding: 2px 20px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.widget-capsule-title-center {
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 28px;
    font-size: 0.95rem;
}

.comment-form-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #111827;
    outline: none;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease;
}

.comment-form-textarea:focus {
    border-color: var(--brand-green);
}

.comment-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .comment-input-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comment-form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #111827;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.comment-form-input:focus {
    border-color: var(--brand-green);
}

.comment-submit-button {
    background-color: var(--brand-green);
    color: #ffffff;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 10px 26px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-submit-button:hover {
    background-color: var(--brand-green-hover);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER (3.JPG, 7.JPG)
   ══════════════════════════════════════════════════════════ */
.site-footer-wrapper {
    background-color: var(--footer-bg);
    color: #d1d5db;
    margin-top: 3rem;
    position: relative;
}

.footer-top-wave {
    width: 100%;
    height: 48px;
    display: block;
    color: var(--footer-bg);
    transform: translateY(-98%);
    position: absolute;
    top: 0;
    left: 0;
}

.footer-main-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-main-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
    .footer-main-grid-3col {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 0.6rem;
}

.footer-link-list a {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-social-card {
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.footer-social-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-rss-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    fill: #ffffff !important;
    flex-shrink: 0 !important;
}

.footer-social-subtext {
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-social-buttons-row {
    display: flex;
    gap: 0.5rem;
}

.footer-square-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-square-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-square-btn svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    fill: #ffffff !important;
    flex-shrink: 0 !important;
}

.footer-bottom-copyright {
    border-top: 1px solid #2d3748;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}
