/* ============================================================
   Prology Theme — Main Stylesheet
   ============================================================ */

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

:root {
  --primary: #0073e6;
  --primary-dk: #005cbf;
  --accent: #00d2ff;
  --navy: #0d1f3c;
  --orange: #ff5216;
  --green: #1a7f4e;
  --yellow: #f9c91a;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #eef1f6;
  --text: #0d1f3c;
  --muted: #5b6b86;
  --border: #dde3ec;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(13, 31, 60, 0.07);
  --shadow-md: 0 8px 32px rgba(13, 31, 60, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  color: var(--text);
}

.logo img,
.logo .custom-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-nav {
  flex: 1;
}

.nav-shop-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.nav-shop-btn:hover {
  background: var(--primary);
  color: #fff;
}

.site-nav ul,
.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--surface2);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    border-color 0.15s,
    background 0.15s;
  max-width: 240px;
  flex: 0 1 240px;
}

.search-box:hover,
.search-box:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.search-box input[type="search"] {
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
  padding: 2px 0;
  -webkit-appearance: none;
}

.search-box input[type="search"]::placeholder {
  color: var(--muted);
}
.search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background 0.15s,
    color 0.15s;
}

.socials a:hover {
  background: var(--primary);
  color: #fff;
}

.socials a svg {
  width: 15px;
  height: 15px;
  display: block;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  margin-right: -8px;
}
.menu-toggle .icon-close {
  display: none;
}
.site-header.is-open .menu-toggle .icon-bars {
  display: none;
}
.site-header.is-open .menu-toggle .icon-close {
  display: block;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: radial-gradient(
    ellipse at top,
    #11305f 0%,
    #0d1f3c 50%,
    #08152c 100%
  );
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 35%,
    transparent 75%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .row {
  display: block;
}
.hero h1 .accent {
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--yellow) 30%,
    var(--green) 60%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.hero-btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 115, 230, 0.28);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 115, 230, 0.4);
}
.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── LAYOUT ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.container.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ── FEATURED POST ── */
.featured-post {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.featured-post .post-img {
  aspect-ratio: 900 / 564;
  background: linear-gradient(135deg, #1a2540, #0f62fe);
  position: relative;
  overflow: hidden;
}

.featured-post .post-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

.featured-post .post-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 10px;
}

.post-cat a {
  color: inherit;
}

.post-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.post-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 16px;
  transition: gap 0.15s;
  align-self: flex-start;
}

.read-more:hover {
  gap: 10px;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── POST GRID ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Single-card grid: collapse to a centered block so the empty second
   column doesn't leave a visible gap (e.g. last paged archive view). */
.post-grid:has(> .post-card:only-child) {
  display: block;
  max-width: 426px;
  margin-left: auto;
  margin-right: auto;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.card-img {
  height: 240px;
  background: linear-gradient(135deg, #1a2540, #283a5e);
  position: relative;
  overflow: hidden;
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient variants by index */
.card-img.grad-0 {
  background: linear-gradient(135deg, #0f3460, #533483);
}
.card-img.grad-1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.card-img.grad-2 {
  background: linear-gradient(135deg, #0f4c75, #1b262c);
}
.card-img.grad-3 {
  background: linear-gradient(135deg, #2c003e, #7c3aed);
}
.card-img.grad-4 {
  background: linear-gradient(135deg, #1a3a2a, #22c55e);
}
.card-img.grad-5 {
  background: linear-gradient(135deg, #3a1a1a, #f97316);
}

.card-img-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  opacity: 0.35;
}

.card-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-cat a {
  color: #fff !important;
}

.card-cat a {
  color: inherit;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
  flex-wrap: wrap;
}

.dot {
  color: var(--border);
}

/* ── LIST POSTS ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.list-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.list-thumb {
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #283a5e, #0f62fe);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.list-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-thumb-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  opacity: 0.5;
}

.list-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.list-title a:hover {
  color: var(--primary);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-numbers.dots:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.widget-title,
.widget h2,
.widget .wp-block-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition:
    background 0.15s,
    color 0.15s;
}

.widget ul li a:hover {
  background: var(--surface2);
  color: var(--primary);
}

.widget p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.widget .count {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Subscribe widget */
.widget-subscribe {
  background: linear-gradient(135deg, #0d1117, #1a2540);
  color: #fff;
}

.widget-subscribe .widget-title {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.subscribe-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.subscribe-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscribe-form input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.subscribe-form input:focus {
  border-color: var(--accent);
}

.btn-subscribe {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.btn-subscribe:hover {
  opacity: 0.9;
}

/* Recent posts widget */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}

.recent-thumb {
  width: 56px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, #283a5e, #0f62fe);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

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

.recent-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.recent-title a:hover {
  color: var(--primary);
}

.recent-date {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Archive list */
.archive-list li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-right: 8px;
  transition: background 0.15s;
}

.archive-list li a {
  color: var(--muted);
}

.archive-list li a:hover::before {
  background: var(--primary);
}

/* Tag cloud */
.tag-cloud,
.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a,
.wp-block-tag-cloud a {
  padding: 5px 12px !important;
  border-radius: 20px;
  background: var(--surface2);
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 500;
  border: 1px solid var(--border);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  text-decoration: none;
}

.tag-cloud a:hover,
.wp-block-tag-cloud a:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

/* ── SINGLE POST ── */
.single-post-hero {
  background: linear-gradient(135deg, #0d1117 0%, #1a2540 60%, #0f3460 100%);
  color: #fff;
  padding: 64px 24px 96px;
  text-align: center;
}

.single-post-hero .post-cat {
  color: var(--accent);
  margin-bottom: 16px;
}

.single-post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.single-post-hero .post-meta {
  color: rgba(255, 255, 255, 0.6);
  justify-content: center;
}

.single-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-top: -56px;
  position: relative;
  z-index: 1;
}

.single-content .featured-img {
  width: calc(100% + 96px);
  margin: -48px -48px 32px;
  height: 500px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

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

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.entry-content > * + * {
  margin-top: 1.2em;
}
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2em;
}
.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.6em;
}
.entry-content p {
  color: #374151;
}
.entry-content a {
  color: var(--primary);
  text-decoration: underline;
}
.entry-content img {
  border-radius: 8px;
}
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  background: var(--surface2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", monospace;
}
.entry-content pre {
  background: #0d1117;
  color: #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

/* Page title (archive, category, search) */
.page-header {
  background: linear-gradient(135deg, #0d1117 0%, #1a2540 60%, #0f3460 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-header .desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 24px 32px;
  margin-top: 60px;
  font-family: "DM Sans", sans-serif;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

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

.footer-brand p {
  margin: 0;
}

.footer-brand .brand-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 380px;
}

.footer-brand .brand-blurb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 380px;
}

.footer-newsletter {
  max-width: 380px;
}
.footer-newsletter label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.footer-newsletter .newsletter-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.footer-newsletter .newsletter-row:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}
.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 0;
}
.footer-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.footer-newsletter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  font-family: inherit;
}
.footer-newsletter button:hover {
  background: #0a5dc4;
  transform: translateY(-1px);
}
.footer-newsletter small {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.footer-col ul,
.footer-col .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a,
.footer-col a {
  font-size: 0.88rem;
  transition: color 0.15s;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul a:hover,
.footer-col a:hover {
  color: #fff;
}

.footer-contact .footer-office {
  margin-bottom: 18px;
}
.footer-contact .footer-office strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-contact .footer-office p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin-bottom: 6px;
}
.footer-contact .footer-office a.tel {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-mail {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: #fff !important;
  transition: background 0.15s;
}
.footer-mail:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.footer-bottom .copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-socials a {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── SEARCH FORM ── */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.search-form input[type="search"]:focus {
  border-color: var(--primary);
}

.search-form button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

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

/* ── 404 ── */
.error-404 {
  text-align: center;
  padding: 96px 24px;
}

.error-404 h1 {
  font-size: 8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.error-404 p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── COMMENTS ── */
.comments-area {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.comments-area h2,
.comments-area .comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.comment-list li {
  margin-bottom: 24px;
}

.comment-body {
  padding: 20px;
  background: var(--surface2);
  border-radius: 8px;
}

.comment-form
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not(
    [type="hidden"]
  ),
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 12px;
}

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

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.comment-form-cookies-consent label {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  cursor: pointer;
}

.comment-form .submit {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .single-content {
    padding: 28px;
  }
  .single-content .featured-img {
    width: calc(100% + 56px);
    margin: -28px -28px 24px;
    height: 240px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
    height: auto;
    min-height: 64px;
    row-gap: 0;
  }

  .logo {
    flex: 1;
  }
  .logo img {
    height: 36px !important;
  }

  .site-nav,
  .header-actions {
    flex-basis: 100%;
    order: 99;
    display: none;
    border-top: 1px solid var(--border);
    padding: 12px 0;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-nav .menu,
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
  }


  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-top: 0;
    padding-top: 0;
    padding-bottom: 16px;
  }

  .search-box {
    max-width: 100%;
    flex: 1 1 auto;
    padding: 8px 12px;
  }
  .search-box input[type="search"] {
    width: 100%;
  }

  .header-actions .socials {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding: 56px 20px 48px;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  .container {
    padding: 32px 16px;
  }
}

/* WP alignment classes */
.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}
.alignright {
  float: right;
  margin: 0 0 16px 24px;
}
.aligncenter {
  display: block;
  margin: 0 auto 16px;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}
.sticky {
  /* sticky posts marker */
}
.gallery-caption {
}
.bypostauthor {
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── STORE PICKER MODAL ── */
.store-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 44, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.store-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.store-modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
.store-modal-overlay.open .store-modal-box {
  transform: scale(1) translateY(0);
}

.store-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f3f4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  line-height: 1;
}
.store-modal-close:hover {
  background: #dadce0;
  color: #202124;
  transform: rotate(90deg);
}

.store-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #0a1828);
  margin: 0 0 6px;
}
.store-modal-subtitle {
  font-size: 0.9rem;
  color: var(--muted, #5f6368);
  margin: 0 0 28px;
}

.store-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  background: #f8fafc;
  color: inherit;
}
.store-option:hover {
  border-color: var(--primary);
  background: rgba(0, 115, 230, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 115, 230, 0.12);
}
.store-option--active {
  border-color: var(--primary);
  background: rgba(0, 115, 230, 0.04);
}

.store-flag {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
}
.store-flag svg {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  display: block;
}

.store-info {
  flex: 1;
  min-width: 0;
}
.store-info-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0a1828);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.store-info-desc {
  font-size: 0.82rem;
  color: var(--muted, #5f6368);
}

.store-badge-active {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #34a853;
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
}

.store-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}
.store-option:hover .store-arrow {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .store-modal-box {
    padding: 28px 22px;
  }
  .store-option {
    padding: 14px 16px;
    gap: 14px;
  }
}
