/*
Theme Name: Galaxy Premium
Theme URI: https://galaxy.com.ng
Author: Galaxy Uniprep Centre
Author URI: https://galaxy.com.ng
Description: Custom minimal premium theme for Galaxy Uniprep Centre — mobile-first, ultra-fast, Apple-inspired editorial design.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galaxy-premium
Tags: custom-menu, featured-images, threaded-comments, translation-ready, custom-logo
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  /* Brand */
  --black:   #0a0a0a;
  --dark:    #1a1a1a;
  --g900:    #2c2c2e;
  --g700:    #48484a;
  --g600:    #636366;
  --g400:    #98989d;
  --g200:    #e5e5ea;
  --g100:    #f2f2f7;
  --g50:     #fafafa;
  --white:   #ffffff;
  --accent:  #0066cc;
  --accent2: #0071e3;
  --accent-dim: rgba(0,102,204,.08);

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max: 1120px;
  --px:  20px;
  --r:   16px;
  --r-sm: 10px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.04);

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --dur: 260ms;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  /* room for mobile bottom nav */
  padding-bottom: 72px;
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   TOPBAR
============================================================ */
.topbar {
  display: none; /* hidden on mobile */
  background: var(--g100);
  border-bottom: 1px solid var(--g200);
  font-size: .7rem;
  color: var(--g600);
}

@media (min-width: 768px) {
  .topbar { display: block; }
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.topbar-links a {
  color: var(--g600);
  font-weight: 400;
  transition: color var(--dur);
}

.topbar-links a:hover { color: var(--black); }

.topbar-apply {
  background: var(--black);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 980px;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .01em;
  transition: all var(--dur);
  white-space: nowrap;
}

.topbar-apply:hover { background: var(--g900); }

/* ============================================================
   STICKY NAV
============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow var(--dur);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo img {
  max-height: 36px;
  width: auto;
}

.nav-logo-fallback {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--black);
  letter-spacing: -.02em;
  line-height: 1;
}

.nav-logo-fallback small {
  font-family: var(--sans);
  font-size: .58rem;
  color: var(--g400);
  font-weight: 400;
  margin-left: 5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Desktop primary menu */
.nav-menu {
  display: none;
  list-style: none;
  gap: 2px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-menu { display: flex; }
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  font-size: .78rem;
  color: var(--g700);
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 8px;
  display: block;
  letter-spacing: -.01em;
  transition: all var(--dur);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--black);
  background: var(--g100);
}

/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r);
  padding: 6px;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  list-style: none;
}

.nav-menu li:hover > .sub-menu { display: block; }

.sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: .78rem;
  color: var(--g700);
  border-radius: 10px;
  font-weight: 400;
  transition: all .15s;
}

.sub-menu a:hover { color: var(--black); background: var(--g100); }

/* Nav right (search + hamburger) */
.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g600);
  border-radius: 50%;
  transition: all var(--dur);
}

.nav-search-btn:hover { color: var(--black); background: var(--g100); }

.hamburger {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background var(--dur);
}

.hamburger:hover { background: var(--g100); }

.hamburger span {
  width: 18px; height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  display: block;
  transition: .3s var(--ease);
}

@media (min-width: 1024px) { .hamburger { display: none; } }

/* ============================================================
   MOBILE MENU OVERLAY
============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu.active { display: flex; align-items: flex-end; }

.mobile-menu-sheet {
  width: 100%;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 12px 0 calc(80px + env(safe-area-inset-bottom, 20px));
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp .3s var(--ease-out);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.mobile-menu-handle {
  width: 36px; height: 4px;
  background: var(--g200);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.mobile-menu-sheet ul { list-style: none; padding: 0 16px; }
.mobile-menu-sheet ul li { border-bottom: 1px solid var(--g100); }
.mobile-menu-sheet ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 8px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--dark);
  transition: color var(--dur);
}
.mobile-menu-sheet ul li a:hover { color: var(--accent); }
.mobile-menu-sheet ul li a::after { content: '›'; color: var(--g400); font-size: 1.1rem; }

.mobile-menu-sheet .sub-menu {
  list-style: none;
  padding-left: 12px;
  padding-bottom: 4px;
}
.mobile-menu-sheet .sub-menu li { border-bottom: none; }
.mobile-menu-sheet .sub-menu li a {
  padding: 10px 8px;
  font-size: .85rem;
  color: var(--g600);
}
.mobile-menu-sheet .sub-menu li a::after { display: none; }

.mobile-menu-cta {
  padding: 16px 24px 0;
}
.mobile-menu-cta a {
  display: block;
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: -.01em;
  transition: all var(--dur);
}
.mobile-menu-cta a:hover { background: var(--accent); }

/* ============================================================
   MOBILE BOTTOM NAV (App-like)
============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,.90);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--g200);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
}

@media (min-width: 1024px) { .bottom-nav { display: none; } }

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--g400);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: all var(--dur);
  min-height: 48px;
}

.bottom-nav__item:hover,
.bottom-nav__item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.bottom-nav__icon {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   SEARCH OVERLAY
============================================================ */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 997;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: var(--px);
  padding-right: var(--px);
}

.search-overlay.active { display: flex; }

.search-overlay-box {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  animation: fadeDown .2s var(--ease-out);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-form input[type="search"] {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--g200);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .9rem;
  background: var(--g100);
  outline: none;
  color: var(--dark);
  transition: border-color var(--dur);
  -webkit-appearance: none;
}

.search-form input:focus { border-color: var(--accent); background: var(--white); }

.search-form button {
  height: 48px;
  padding: 0 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--dur);
  white-space: nowrap;
}

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

/* ============================================================
   BREADCRUMBS
============================================================ */
.rank-math-breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--px) 0;
  font-size: .72rem;
  color: var(--g400);
}

.rank-math-breadcrumb a { color: var(--g600); }
.rank-math-breadcrumb a:hover { color: var(--black); }

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 52px var(--px) 48px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) { .hero { padding: 64px var(--px) 56px; } }
@media (min-width: 1024px) { .hero { padding: 80px var(--px) 72px; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border-radius: 980px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.03em;
  max-width: 820px;
}

.hero-title strong {
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: clamp(.88rem, 2vw, .95rem);
  color: var(--g600);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 14px;
  max-width: 680px;
}

.hero p strong { font-weight: 500; color: var(--g900); }

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--g200);
}

.hero-stat {}
.hero-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: -.03em;
}
.hero-stat span {
  font-size: .72rem;
  color: var(--g400);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   NEWS SECTION
============================================================ */
.news-section {
  border-top: 1px solid var(--g200);
  background: var(--g50);
}

.news-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--px) 52px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--g400);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.03em;
  line-height: 1.15;
}

.section-link {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover { text-decoration: underline; }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }

.news-card {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--g200);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.news-card:active { transform: scale(.98); }

@media (min-width: 768px) {
  .news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

.news-card-img {
  aspect-ratio: 16/10;
  background: var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.news-card:hover .news-card-img img { transform: scale(1.03); }

.news-card-img > span {
  font-size: .75rem;
  color: var(--g400);
  text-align: center;
  padding: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.news-card-body { padding: 18px 18px 20px; }

.news-card-cats {
  font-size: .62rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.read-more {
  font-size: .74rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more::after { content: '→'; transition: transform .2s; }
.news-card:hover .read-more::after { transform: translateX(3px); }

.news-date {
  font-size: .68rem;
  color: var(--g400);
}

.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--g200);
  border-radius: 14px;
  font-size: .84rem;
  color: var(--g700);
  font-weight: 500;
  transition: all var(--dur);
  background: var(--white);
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   CAROUSEL SECTION
============================================================ */
.carousel-section {
  border-top: 1px solid var(--g200);
  border-bottom: 1px solid var(--g200);
  overflow: hidden;
}

.carousel-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 0 48px var(--px);
}

@media (min-width: 1024px) { .carousel-inner { padding-right: var(--px); } }

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-right: var(--px);
  padding-bottom: 4px;
  scrollbar-width: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:active { cursor: grabbing; }

.carousel-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--g200);
  box-shadow: var(--shadow-xs);
  transition: all .3s var(--ease);
  display: block;
}

@media (min-width: 640px) { .carousel-card { flex: 0 0 300px; } }

.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.carousel-card-img {
  aspect-ratio: 1/1;
  background: var(--g100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.carousel-card-img img { width:100%;height:100%;object-fit:cover; }
.carousel-card-img span { font-size:.72rem;color:var(--g400);text-align:center;padding:14px;font-weight:300;line-height:1.5; }

.carousel-card h3 {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 400;
  color: var(--black);
  padding: 16px 18px 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* ============================================================
   DETAIL SECTION
============================================================ */
.detail-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--px) 64px;
}

.detail-main-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.03em;
  margin-bottom: 36px;
  line-height: 1.2;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--g200);
}

.detail-block {
  padding: 26px 0;
  border-bottom: 1px solid var(--g100);
}

.detail-block:last-child { border-bottom: none; }

.detail-block h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.detail-block p {
  font-size: .88rem;
  color: var(--g600);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 12px;
}

.detail-block p strong { font-weight: 500; color: var(--g900); }

.detail-block ul { list-style: none; margin-top: 8px; }

.detail-block ul li {
  font-size: .86rem;
  color: var(--g600);
  line-height: 1.6;
  font-weight: 300;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-block ul li:last-child { border-bottom: none; }

.detail-block ul li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--g400);
  flex-shrink: 0;
  margin-top: 9px;
}

.detail-block ul li strong { font-weight: 500; color: var(--g900); }

.detail-sub {
  font-size: .8rem;
  color: var(--g400);
  line-height: 1.6;
  font-weight: 300;
  display: block;
  margin-top: 2px;
}

/* ============================================================
   PAGE & SINGLE CONTENT
============================================================ */
.page-content,
.single-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--px) 64px;
}

.page-content h1, .single-content h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 22px;
}

.page-content h2, .single-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.02em;
  margin: 32px 0 14px;
}

.page-content h3, .single-content h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.02em;
  margin: 24px 0 10px;
}

.page-content p, .single-content p {
  font-size: .92rem;
  color: var(--g600);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 16px;
}

.page-content a, .single-content a { color: var(--accent); }
.page-content a:hover, .single-content a:hover { text-decoration: underline; }

.page-content img, .single-content img {
  border-radius: var(--r);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.page-content ul, .page-content ol,
.single-content ul, .single-content ol {
  margin: 12px 0 16px 20px;
  font-size: .9rem;
  color: var(--g600);
  line-height: 1.75;
}

/* Single post meta */
.single-meta {
  font-size: .75rem;
  color: var(--g400);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.single-meta a { color: var(--accent); }

.single-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--g400);
  display: inline-block;
}

.single-featured-img {
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/9;
}

.single-featured-img img { width:100%;height:100%;object-fit:cover; }

/* ============================================================
   ARCHIVE
============================================================ */
.archive-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--px) 0;
}

.archive-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -.03em;
}

.archive-header p {
  font-size: .88rem;
  color: var(--g600);
  font-weight: 300;
  margin-top: 6px;
}

.archive-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--px) 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px)  { .archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .archive-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px) 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--g200);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--g600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.pagination .current {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--g200);
  background: var(--white);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--px) 32px;
}

.footer-contact-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--g200);
}

.footer-contact-block h4 {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--g400);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .footer-contact-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.fc-item {
  font-size: .84rem;
  color: var(--g600);
  line-height: 1.6;
  font-weight: 300;
}

.fc-item strong {
  font-weight: 600;
  color: var(--g900);
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 5px;
}

.fc-item a {
  color: var(--g600);
  display: block;
  transition: color var(--dur);
}

.fc-item a:hover { color: var(--black); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: .8rem;
  color: var(--g600);
  font-weight: 400;
  transition: color var(--dur);
}

.footer-links a:hover { color: var(--black); }

.footer-copy {
  font-size: .7rem;
  color: var(--g400);
  padding-top: 16px;
  border-top: 1px solid var(--g100);
}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 490;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
  transition: all .25s var(--ease);
}

.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.4); }

@media (min-width: 1024px) {
  .wa-float { bottom: 28px; right: 28px; }
}

/* ============================================================
   404
============================================================ */
.error-404 {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--px) 100px;
  text-align: center;
}

.error-404 h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 400;
  color: var(--g200);
  letter-spacing: -.05em;
  margin-bottom: 12px;
  line-height: 1;
}

.error-404 p { font-size: .95rem; color: var(--g600); font-weight: 300; margin-bottom: 24px; }
.error-404 a { color: var(--accent); font-weight: 500; }
.error-404 a:hover { text-decoration: underline; }

/* ============================================================
   COMMENTS
============================================================ */
.comments-area {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--px) 64px;
  border-top: 1px solid var(--g200);
}

.comments-area h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 24px;
}

.comment-list { list-style: none; }

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--g100);
}

.comment-meta { font-size: .78rem; color: var(--g400); margin-bottom: 8px; }
.comment-meta .fn { font-weight: 500; color: var(--dark); }
.comment-content p { font-size: .88rem; color: var(--g600); line-height: 1.65; }

.comment-respond label {
  display: block;
  font-size: .8rem;
  color: var(--g600);
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 14px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--g200);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--dark);
  background: var(--g100);
  outline: none;
  transition: border-color var(--dur);
  -webkit-appearance: none;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.comment-respond textarea { min-height: 120px; resize: vertical; }

.comment-respond .submit {
  margin-top: 16px;
  padding: 13px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur);
  -webkit-appearance: none;
}

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

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.v {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   UTILITY
============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
