/*
Theme Name: Folio
Theme URI: https://example.com/folio
Author: Tamim
Description: A tips-and-tricks blog theme with teal/cyan branding, category icon grid, card-based post listings, WhatsApp follow widgets and a dark navy footer.
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: folio
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  --paper: #FFFFFF;
  --section-bg: #F4F9FB;
  --card-bg: #FFFFFF;
  --ink: #1D1D1D;
  --ink-soft: #383838;
  --ink-faint: #9497A6;
  --line: #ECEEF3;
  --line-strong: #E9E9E9;

  /* Brand — exact values pulled from the reference site's CSS custom properties */
  --brand: #279EF5;
  --brand-2: #00D9CE;
  --brand-dark: #1E86D6;
  --accent: #673DE6;
  --accent-dark: #4F25D1;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --logo-green: #12B76A;
  --link-text: #2E67D9;

  --footer-bg: #28283A;
  --footer-bg-2: #202030;

  --shadow-soft: 0 0 40px rgba(23,182,217,0.10);
  --shadow-card: 0 1px 2px rgba(20,25,40,0.04), 0 6px 16px rgba(20,25,40,0.06);
  --shadow-card-hover: 0 10px 24px rgba(20,25,40,0.10), 0 2px 8px rgba(39,158,245,0.10);
  --shadow-pop: 0 16px 40px rgba(20,25,40,0.18);

  --font-body: "Montserrat", "Hind Siliguri", "Public Sans", sans-serif;

  --content-width: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  color-scheme: light;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }

/* Pill tag — category badge */
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 6px 16px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-pill);
}
.pill-tag.on-image {
  position: absolute; left: 14px; top: 14px; bottom: auto;
  background: rgba(20,25,40,0.6); backdrop-filter: blur(4px); color: #fff;
  box-shadow: none;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 7px 14px;
}

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 13px 28px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(39,158,245,0.28);
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-pill:hover { filter: brightness(0.96); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(39,158,245,0.36); }

.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 11px 24px;
  background: var(--whatsapp); color: #fff;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
}
.btn-green:hover { background: var(--whatsapp-dark); }

/* Section wave dividers — same technique + path as the reference site:
   absolutely positioned so they never affect document flow/layout */
.wave-divider {
  display: block; position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px;
  pointer-events: none; line-height: 0;
}
.wave-divider path { fill: var(--paper); }
.wave-divider.to-footer { top: -1px; bottom: auto; transform: scaleY(-1); }
.wave-divider.to-footer path { fill: var(--paper); }

/* ==========================================================================
   3. MASTHEAD
   ========================================================================== */
.site-masthead {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20,25,40,0.04);
  position: sticky; top: 0; z-index: 40;
}
.site-masthead::after {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; gap: 20px; }
.site-title { font-size: 25px; font-weight: 800; letter-spacing: -0.015em; }
.site-title a { display: flex; align-items: center; gap: 2px; color: var(--logo-green); }
.site-title img.custom-logo { max-height: 40px; width: auto; }

.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); padding: 26px 16px; position: relative; }
.primary-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 20px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.primary-nav li:hover > a { color: var(--accent-dark); }
.primary-nav li:hover > a::after { transform: scaleX(1); }

.search-widget { position: static; }
.search-trigger {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); padding: 0;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.search-trigger:hover { border-color: var(--brand); color: var(--brand); background: rgba(39,158,245,0.06); }
.search-box {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 16, 22, 0.5);
  align-items: flex-start; justify-content: center;
  padding: 14vh 20px 0;
}
.search-box.is-open { display: flex; }
.search-box-inner {
  display: flex; align-items: center; width: 100%; max-width: 620px; margin: 0;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-pop); overflow: hidden;
}
.search-box input {
  flex: 1; border: none; padding: 15px 22px; font-size: 15px;
  font-family: var(--font-body); background: var(--paper); color: var(--ink);
}
.search-box input:focus { outline: none; }
.search-box button {
  border: none; background: transparent; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 22px; height: 50px;
}
.search-box button:hover { color: var(--brand); }

.scroll-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-pop); cursor: pointer; z-index: 60; border: none; font-size: 20px;
}
.scroll-top.is-visible { display: flex; }
.scroll-top:hover { background: var(--brand-dark); }

.masthead-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { padding: 9px 18px; font-size: 13px; white-space: nowrap; }
@media (max-width: 960px) {
  .header-cta { display: none; }
}
.menu-toggle {
  display: none; align-items: center; gap: 8px; border: 1px solid var(--line-strong);
  background: var(--paper); border-radius: var(--radius); padding: 9px 16px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.02em;
}
.menu-toggle-icon { font-size: 17px; line-height: 1; }

/* ==========================================================================
   4. HOME HERO — "All the tips and tricks you need, right here" + category grid
   ========================================================================== */
.home-hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(155deg, var(--brand), var(--brand-2));
  padding: 60px 0 96px;
  text-align: center;
}
.home-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); max-width: 720px; margin: 0 auto 30px; letter-spacing: -0.015em; }
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 980px; margin: 0 auto;
}
.category-card {
  width: auto;
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid rgba(20,25,40,0.05);
  box-shadow: var(--shadow-card);
  padding: 24px 10px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.category-card .cat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.category-card .cat-icon svg { width: 30px; height: 30px; }
.category-card .cat-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.category-card:hover .cat-name { color: var(--brand); }

/* ==========================================================================
   4b. PAGE HERO — shared gradient banner for archive/search/page/404
        (same visual language as .home-hero, used to keep every non-home
        page on-brand instead of falling back to a plain white header)
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  padding: 48px 0 74px;
  text-align: center;
}
.page-hero.page-hero-compact { padding: 40px 0 62px; }
.page-hero .pill-tag { background: rgba(255,255,255,0.2); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); max-width: 780px; margin: 14px auto 0; }
.page-hero .page-hero-sub,
.page-hero .archive-desc { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 10px auto 0; font-size: 14.5px; }
.page-hero .btn-pill.on-hero { background: #fff; color: var(--brand); margin-top: 22px; }
.page-hero .btn-pill.on-hero:hover { background: #fff; filter: brightness(0.96); }

/* ==========================================================================
   5. LATEST POST banner + grid
   ========================================================================== */
.section-banner {
  position: relative;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(39,158,245,0.18);
  text-align: center; padding: 10px 20px; margin-bottom: 34px;
  margin-top: 0;
}
.section-banner h2 { color: #fff; font-size: 18px; letter-spacing: .05em; margin: 0; }
.latest-section { padding: 36px 0 46px; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.latest-more { text-align: center; margin-top: 40px; }

/* ==========================================================================
   6. RECENT / ARCHIVE LIST with sidebar (still used by single.php's related-posts area)
   ========================================================================== */
.recent-section { background: var(--section-bg); padding: 40px 0 60px; border-top: 1px solid var(--line); }
.recent-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }

/* Post card — single card system used on home, archive and search.
   Full-width top image, bordered card (no shadow), brand-color hover border. */
.post-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid rgba(20,25,40,0.05);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 0;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.post-card .p-image { display: block; position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 0; }
.post-card .p-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .p-image img { transform: scale(1.06); }
.post-card .p-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.post-card h3 { font-size: 19px; font-weight: 700; line-height: 1.38; margin: 0; letter-spacing: -0.008em; }
.post-card h3 a:hover { color: var(--brand); }
.post-card .p-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12.5px; color: var(--ink-faint); font-weight: 600;
}
.post-card .p-meta .avatar { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--line); }
.post-card .p-meta .by { color: var(--brand-dark); font-weight: 700; }
.post-card .p-excerpt {
  font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Pagination */
.pagination { margin-top: 24px; }
.pagination .nav-links {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.pagination a, .pagination span, .pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); border-radius: var(--radius-pill); box-shadow: var(--shadow-card);
  font-size: 13px; font-weight: 700; color: var(--ink); padding: 0 6px;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.pagination a:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); color: var(--brand); }
.pagination .current, .pagination .page-numbers.current { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; }
.pagination .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   7. SIDEBAR
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 22px;
}
.widget-card h3 { font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.widget-card.title-banner h3 {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; text-align: center; padding: 12px; border-radius: 10px; margin: -22px -22px 16px;
}

.sponsor-card { padding: 16px; text-align: center; }
.sponsor-card .sponsor-label {
  display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 10px;
}
.sponsor-slot { min-height: 250px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 12px; }

.whatsapp-card { text-align: center; background: var(--card-bg); }
.whatsapp-card .wa-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.whatsapp-card .wa-icon svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-card h3 { text-transform: none; letter-spacing: 0; font-size: 17px; margin-bottom: 6px; }
.whatsapp-card p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }

.mini-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: none; padding-bottom: 0; }
.mini-post .thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--line); }
.mini-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.mini-post .m { font-size: 11px; color: var(--ink-faint); margin-top: 4px; }
.mini-post:hover .t { color: var(--brand); }

.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list .count {
  background: var(--section-bg); color: var(--ink-faint); font-size: 11px;
  padding: 2px 9px; border-radius: var(--radius-pill);
}
.cat-list a:hover { color: var(--brand); }

/* ==========================================================================
   8. SINGLE POST
   ========================================================================== */
.single-body-wrap { background: var(--paper); padding: 30px 0 60px; }
.single-header { max-width: 780px; margin: 0 auto 24px; }
.single-header .byline { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-faint); }
.single-header .byline img { width: 30px; height: 30px; border-radius: 50%; }
.single-header .byline .name { color: var(--ink); font-weight: 700; }
.single-header h1 { font-size: clamp(24px, 3.2vw, 32px); margin: 14px 0; }
.share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.share-row a {
  width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.share-row a svg { width: 15px; height: 15px; fill: #fff; }
.share-row .sh-fb { background: #1877F2; }
.share-row .sh-x { background: #000; }
.share-row .sh-wa { background: var(--whatsapp); }
.share-row .sh-more { background: #F59E0B; }

.single-featured { max-width: 780px; margin: 0 auto 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); aspect-ratio: 16/9; }

.single-content-wrap { max-width: 780px; margin: 0 auto; }
.entry-content { font-size: 17px; line-height: 1.85; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h2 { font-size: 23px; margin-top: 1.5em; }
.entry-content h3 { font-size: 19px; margin-top: 1.3em; }
.entry-content blockquote {
  border-left: 4px solid var(--brand); margin: 1.6em 0; padding: 6px 0 6px 20px;
  font-style: italic; color: var(--ink-soft); background: var(--section-bg); border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content a { color: var(--link-text); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1.6em 0; }
.in-content-ad { margin: 2em 0; text-align: center; }

/* Tag chip row — shown under the article, above the author box */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  padding: 7px 16px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, color .2s ease;
}
.tag-chip svg { width: 13px; height: 13px; fill: currentColor; }
.tag-chip:hover { background: var(--accent); color: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--section-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 36px 0;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; }
.author-box h4 { font-size: 16px; margin-bottom: 4px; }
.author-box p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Keep Reading */
.keep-reading { margin: 44px 0 10px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.related-card .r-image { aspect-ratio: 16/10; overflow: hidden; }
.related-card .r-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-card:hover .r-image img { transform: scale(1.06); }
.related-card .r-body { padding: 14px 16px 18px; }
.related-card .r-date { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 6px; }
.related-card h4 { font-size: 14.5px; line-height: 1.4; margin: 0; }
.related-card h4 a:hover { color: var(--brand); }

/* Comments */
.comments-area { max-width: 780px; margin: 44px auto 0; }
.comments-area h3, .comments-area .comment-reply-title { font-size: 20px; margin-bottom: 18px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px;
  font-family: var(--font-body); font-size: 14.5px; background: var(--paper); color: var(--ink); margin-bottom: 12px;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .comment-form-author, .comment-form .comment-form-email, .comment-form .comment-form-url { display: inline-block; width: 100%; }
.comment-form .form-submit input {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 12px 30px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.comment-form .form-submit input:hover { background: var(--accent-dark); }
.comment-list { margin-top: 20px; }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer { position: relative; background: var(--footer-bg); }
.foo-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .foo-logo { font-size: 22px; font-weight: 800; color: var(--logo-green); margin-bottom: 14px; display: inline-block; }
.footer-brand img.custom-logo { max-height: 34px; margin-bottom: 14px; }
.footer-grid p { color: #9497A6; font-size: 13.5px; line-height: 1.75; }
.footer-grid h2 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer-grid a { color: #9497A6; font-size: 14px; display: block; padding: 6px 0; transition: color .15s ease, transform .15s ease; }
.footer-grid a:hover { color: #fff; transform: translateX(2px); }

.foo-whatsapp {
  background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.25); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px;
}
.foo-whatsapp .wa-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.foo-whatsapp .wa-title .wa-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.foo-whatsapp .wa-title .wa-dot svg { width: 17px; height: 17px; fill: #fff; }
.foo-whatsapp strong { color: #fff; font-size: 14px; display: block; }
.foo-whatsapp span { color: #9497A6; font-size: 12px; }
.foo-whatsapp .btn-green { width: 100%; margin-top: 12px; padding: 10px; }

.foo-social { display: flex; gap: 10px; }
.foo-social a {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: #fff;
}
.foo-social a svg { width: 16px; height: 16px; fill: #fff; }
.foo-social a:hover { background: var(--brand); }

.foo-bottom { background: var(--footer-bg-2); padding: 20px 0; text-align: center; color: #777; font-size: 13px; }

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .recent-layout { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .category-card { padding: 18px 8px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop); padding: 6px 0;
  }
  .primary-nav.is-open ul { flex-direction: column; align-items: stretch; }
  .primary-nav.is-open a { padding: 14px 20px; }
  .menu-toggle { display: flex; }
  .latest-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .category-grid { gap: 10px; }
  .category-card { padding: 16px 6px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
