/*
Theme Name: Edulink Blog
Theme URI: https://edulink.ng
Author: Edulink.ng
Author URI: https://edulink.ng
Description: Custom blog theme matching the Edulink.ng design system — dark navy + orange accent, Sora + DM Sans typography. Built for SEO, performance, and conversion-focused content marketing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: edulink-blog
Tags: blog, education, two-columns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS (matched to edulink.ng homepage)
   ========================================================================== */
:root {
    --primary: #0d1b2a;
    --primary-mid: #1b3a5c;
    --accent: #e85d26;
    --accent-light: #ff7b3f;
    --gold: #f5b944;
    --white: #ffffff;
    --bg: #f5f4f0;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e8e8e8;
    --radius: 16px;
    --shadow: 0 20px 60px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.container { width: 92%; max-width: 1180px; margin: 0 auto; }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* ==========================================================================
   HEADER / NAV (identical to edulink.ng homepage)
   ========================================================================== */
header.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

header.site-header.scrolled {
    background: rgba(13,27,42,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.btn-nav:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   BLOG HERO
   ========================================================================== */
.blog-hero {
    background:
        linear-gradient(160deg, rgba(13,27,42,0.94) 0%, rgba(27,58,92,0.88) 50%, rgba(13,27,42,0.96) 100%),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 160px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: var(--bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,185,68,0.15);
    border: 1px solid rgba(245,185,68,0.4);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    max-width: 800px;
}

.blog-hero h1 em {
    font-style: normal;
    color: var(--accent-light);
}

.blog-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

/* Search form in hero */
.hero-search {
    margin-top: 32px;
    display: flex;
    max-width: 480px;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text);
}

.hero-search input:focus { outline: none; }

.hero-search button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 26px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover { background: var(--accent-light); }

/* ==========================================================================
   BLOG LIST / POST GRID
   ========================================================================== */
.blog-list {
    padding: 80px 0;
}

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

.post-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.post-card:hover::after { transform: scaleX(1); }

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: var(--gold);
    font-size: 3rem;
}

.post-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 12px;
    align-self: flex-start;
}

.post-card-tag:hover { color: var(--accent-light); }

.post-card-body h2,
.post-card-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.post-card-body h2 a,
.post-card-body h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-card-body h2 a:hover,
.post-card-body h3 a:hover {
    color: var(--accent);
}

.post-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    gap: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: auto;
}

.post-card-meta i {
    color: var(--accent);
    margin-right: 5px;
}

.no-posts {
    text-align: center;
    padding: 80px 0;
}

.no-posts h2 {
    font-family: 'Sora', sans-serif;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.no-posts p {
    color: var(--text-muted);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-wrap {
    margin-top: 60px;
    text-align: center;
}

.pagination-wrap .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: white;
    border: 1px solid #ddd;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination-wrap .page-numbers.dots:hover {
    background: white;
    color: var(--primary);
}

.pagination-wrap .page-numbers i {
    font-size: 0.7rem;
    margin: 0 6px;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.single-hero {
    background:
        linear-gradient(160deg, rgba(13,27,42,0.95) 0%, rgba(27,58,92,0.92) 100%);
    padding: 160px 0 70px;
    color: white;
    text-align: center;
    position: relative;
}

.post-tag-large {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 22px;
    transition: var(--transition);
}

.post-tag-large:hover { background: var(--accent-light); }

.single-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 auto 26px;
    max-width: 880px;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}

.single-meta i {
    color: var(--gold);
    margin-right: 6px;
}

.single-featured {
    margin-top: -50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.single-featured img {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.single-content {
    padding: 0 0 80px;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.article-body > * + * {
    margin-top: 24px;
}

.article-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 50px 0 20px !important;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 16px !important;
    line-height: 1.3;
}

.article-body h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px !important;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(232,93,38,0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 24px;
    padding-left: 8px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body li::marker {
    color: var(--accent);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(232,93,38,0.04);
    padding: 24px 28px;
    margin: 36px 0;
    font-style: italic;
    color: var(--primary);
    border-radius: 0 12px 12px 0;
    font-size: 1.08rem;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body img,
.article-body figure {
    margin: 32px 0;
    border-radius: 14px;
    overflow: hidden;
}

.article-body figure img {
    margin: 0;
    border-radius: 14px;
}

.article-body figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

.article-body code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: 'Courier New', monospace;
    color: var(--accent);
}

.article-body pre {
    background: var(--primary);
    color: #f0f0f0;
    padding: 22px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 28px 0;
    font-size: 0.9rem;
}

.article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.95rem;
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.article-body th {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.article-body tr:nth-child(even) td {
    background: #f9f9f9;
}

.article-tags {
    max-width: 760px;
    margin: 50px auto 0;
    padding-top: 28px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-tags i {
    color: var(--accent);
    margin-right: 8px;
}

.article-tags a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.article-tags a:hover { text-decoration: underline; }

/* ==========================================================================
   SECTION HEADERS (related posts, etc.)
   ========================================================================== */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.related-posts {
    padding: 80px 0;
    background: white;
    border-top: 1px solid #eee;
}

.related-posts .post-grid {
    margin-top: 40px;
}

/* ==========================================================================
   CTA BANNER (matches homepage)
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-mid) 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    line-height: 1.2;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 32px;
    position: relative;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--accent);
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

/* ==========================================================================
   FOOTER (matches homepage)
   ========================================================================== */
footer.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 14px; }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-contact {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-contact a:hover { color: var(--accent-light); }
.footer-contact i { color: var(--accent); font-size: 0.85rem; width: 16px; }

.footer-col h5 {
    font-family: 'Sora', sans-serif;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-bubble {
    background: #fff;
    color: #0d1b2a;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    position: relative;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    transition: transform 0.3s ease;
}

.whatsapp-btn-container:hover .whatsapp-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.not-found-section {
    padding: 200px 0 100px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-section .container { max-width: 600px; }

.not-found-section .big-404 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.not-found-section h1 {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.not-found-section p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comments-area {
    max-width: 760px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-area h3 {
    font-family: 'Sora', sans-serif;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Sora', sans-serif;
}

.comment-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: white;
    margin-bottom: 14px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.comment-form .submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form .submit:hover { background: var(--accent-light); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WORDPRESS DEFAULTS
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 130px 0 60px; }
    .single-hero { padding: 130px 0 50px; }
    .single-meta { gap: 14px; font-size: 0.82rem; }
    .single-featured { margin-top: -30px; margin-bottom: 40px; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.45rem; }
    .article-body h3 { font-size: 1.2rem; }
    .blog-list { padding: 60px 0; }
    .related-posts { padding: 60px 0; }
    .nav-cta { gap: 12px; }
    .nav-link { font-size: 0.82rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .whatsapp-btn-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .whatsapp-bubble { display: none; }
    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
