/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* ===== BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

body {
  min-height: 100vh;
}

/* ===== HEADER ===== */
.fito-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fito-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.fito-logo {
  order: 1;
}

.fito-logo .custom-logo-link,
.fito-logo img {
  display: block;
  max-height: 70px;
  width: auto;
}

.fito-menu-icon {
  order: 2;
  margin-left: auto;
}

.fito-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
}

.fito-menu-toggle {
  display: none;
}

.fito-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fito-menu-icon span,
.fito-menu-icon span::before,
.fito-menu-icon span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.fito-menu-icon span::before {
  transform: translateY(-6px);
}

.fito-menu-icon span::after {
  transform: translateY(4px);
}

.fito-nav {
  order: 3;
  flex-basis: 100%;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fito-nav-cta {
  width: 100%;
  margin-top: 16px;
}

.fito-menu-toggle:checked + .fito-menu-icon {
  transform: rotate(90deg);
}

.fito-menu-toggle:checked ~ .fito-nav {
  max-height: 600px;
}

.fito-menu {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fito-menu li a {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fito-menu li a:hover {
  color: #fff;
}

.fito-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.fito-nav-cta:hover,
.fito-nav-cta:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Category dropdowns (standard nav behavior) */
.fito-category-menu li {
  position: relative;
}

.fito-category-menu li.is-active > a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.fito-category-menu .fito-submenu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fito-category-menu .fito-submenu a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .fito-nav-cta {
    margin-left: 14px;
  }

  .fito-category-menu .fito-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 14px 14px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: none;
    gap: 10px;
  }

  .fito-category-menu li:hover > .fito-submenu,
  .fito-category-menu li:focus-within > .fito-submenu {
    display: flex;
  }

  .fito-category-menu li.has-children > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0.8;
  }

  .fito-category-menu .fito-submenu .fito-submenu {
    top: 0;
    left: calc(100% + 12px);
  }
}

.fito-logo a {
  color: #fff;
}

.fito-menu-icon {
  border-color: rgba(255, 255, 255, 0.16);
}

.fito-menu-icon span,
.fito-menu-icon span::before,
.fito-menu-icon span::after {
  background: #fff;
}

/* ===== LAYOUT ===== */
.fito-home,
.fito-single,
.fito-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.fito-archive {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 18px 60px;
}

.home-banner {
  padding: 120px 18px 80px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)),
    url("hero-banner.jpg") center/cover no-repeat;
  color: #fff;
  position: relative;
}

.home-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.banner-copy {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.banner-copy.simple-hero h1 {
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 1.1;
  margin: 0 0 32px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.banner-copy.simple-hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-grid,
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.hero-card,
.side-card,
.post-card,
.related-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-card:hover,
.side-card:hover,
.post-card:hover,
.related-card:hover {
  transform: translateY(-6px);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-image {
  overflow: hidden;
}

.card-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.meta {
  position: relative;
  z-index: 2;
}

.meta h3 {
  margin: 14px 0 0;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  text-decoration: none;
}

.read-more:hover {
  transform: translateY(-2px);
  background: #333;
}

.meta a {
  position: relative;
  z-index: 2;
}

.hero-card img,
.side-card img,
.post-card img,
.related-card img,
.single-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-card img {
  max-height: 420px;
}

.side-card img,
.post-card img,
.related-card img {
  max-height: 260px;
}

.hero-card .meta,
.side-card .meta,
.post-card .meta,
.related-meta,
.single-meta {
  padding: 26px;
}

.excerpt {
  margin-top: 16px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
}

.section-heading,
.category-heading,
.archive-header,
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title,
.archive-header h1,
.search-header h1,
.related-posts h2 {
  font-size: 2.1rem;
  margin: 0;
}

.featured-section,
.latest-section,
.popular-section {
  margin-bottom: 64px;
}

.featured-grid .hero-card h3,
.post-card h3,
.side-card h3,
.related-card h3,
.archive-card h3,
.search-card h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 14px 0 0;
}

.category {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0392b;
}

.date {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #777;
}

.view-all {
  font-size: 0.88rem;
  color: #c0392b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .fito-container {
    padding: 22px 24px;
    flex-wrap: nowrap;
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .banner-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .hero-section {
    grid-template-columns: 2fr 1fr;
  }

  .featured-grid,
  .post-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fito-home,
  .fito-single,
  .fito-archive,
  .fito-search {
    padding: 36px 24px 70px;
  }
}

.hero-section,
.post-grid,
.related-grid {
  display: grid;
  gap: 22px;
}

.hero-section {
  grid-template-columns: 1fr;
  margin-bottom: 48px;
  gap: 28px;
}

.hero-main,
.hero-secondary {
  display: grid;
  gap: 20px;
}

.hero-card,
.side-card,
.post-card,
.related-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-card:hover,
.side-card:hover,
.post-card:hover,
.related-card:hover {
  transform: translateY(-6px);
}

.hero-card img,
.side-card img,
.post-card img,
.related-card img,
.single-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-card img {
  max-height: 420px;
}

.side-card img,
.post-card img,
.related-card img {
  max-height: 260px;
}

.hero-card .meta,
.side-card .meta,
.post-card .meta,
.related-meta,
.single-meta {
  padding: 22px;
}

.excerpt {
  margin-top: 14px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c0392b;
}

.hero-card .meta {
  min-height: 220px;
}

.hero-intro {
  margin-bottom: 10px;
}

.hero-intro .section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.hero-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 16px 0 12px;
  line-height: 1.05;
}

.hero-secondary {
  display: grid;
  grid-template-columns: 1fr;
}

.side-card img {
  height: 240px;
}

.side-card h3,
.post-card h3,
.related-card h3,
.archive-card h3,
.search-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 14px 0 0;
}

.category {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0392b;
}

.date {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #777;
}

.section-heading,
.category-heading,
.archive-header,
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-intro .section-heading {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.section-title,
.archive-header h1,
.search-header h1,
.related-posts h2 {
  font-size: 1.85rem;
  margin: 0;
}

.view-all {
  font-size: 0.9rem;
  color: #c0392b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-grid {
  grid-template-columns: 1fr;
}

.post-card img {
  height: 240px;
}

.post-card .meta {
  padding: 20px;
}

.category-section {
  margin-top: 48px;
}

.single-hero {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
}

.single-hero img {
  border-radius: 16px;
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.single-content {
  max-width: 900px;
  margin: 0 auto;
}

.single-back {
  margin: 0 0 24px;
}

.single-back a {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.single-back a:hover {
  background: #333;
  transform: translateY(-1px);
}

.bluf {
  margin: 18px 0 0;
  padding: 18px 22px;
  background: #f8f3ef;
  color: #2d2d2d;
  border-left: 4px solid #c0392b;
  font-size: 1rem;
  line-height: 1.8;
}

.single-meta {
  margin-top: 32px;
  padding: 0 4px;
}

.single-meta h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  line-height: 1.05;
}

.single-meta .info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #777;
  font-size: 0.95rem;
}

.content-body {
  margin-top: 36px;
  font-size: 1rem;
  line-height: 1.8;
  color: #212121;
}

.content-body p {
  margin: 1.5em 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 2em 0 0.75em;
  line-height: 1.25;
}

.content-body blockquote {
  padding-left: 18px;
  border-left: 4px solid #c0392b;
  color: #555;
  font-style: italic;
  margin: 2em 0;
}

.post-navigation {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid #f0f0f0;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 20px;
}

.nav-item {
  justify-self: start;
}

.nav-item a,
.nav-item a:link,
.nav-item a:visited,
.nav-item a:active,
.nav-item a:hover {
  display: inline-flex;
  padding: 18px 28px;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.2);
  cursor: pointer;
  text-decoration: none;
}

.nav-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(192, 57, 43, 0.35);
  background: linear-gradient(135deg, #a93228 0%, #c0392b 100%);
}

.related-posts {
  margin-top: 64px;
}

.related-grid {
  grid-template-columns: 1fr;
}

.related-card img {
  height: 220px;
}

.related-card .related-meta {
  padding: 18px 20px 22px;
}

.empty-state {
  padding: 40px 20px;
  border: 1px solid #eee;
  border-radius: 18px;
  text-align: center;
  background: #fafafa;
}

.empty-state p {
  margin: 0 0 18px;
  color: #555;
}

.archive-description {
  margin-top: 12px;
  color: #555;
  max-width: 720px;
}

.archive-fallback-image {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: #555;
  padding: 28px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.post-card-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.pagination {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.page-numbers,
.prev.page-numbers,
.next.page-numbers {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #111;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.page-numbers:hover {
  background: #fff2f0;
}

.page-numbers.current {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.fito-footer {
  background: #111;
  color: #f4f4f4;
  padding: 42px 18px;
}

.fito-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.footer-copy,
.footer-note {
  margin: 0;
  color: #d1d1d1;
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 720px;
  text-align: center;
}

@media (min-width: 768px) {
  .fito-container {
    padding: 22px 24px;
  }

  .fito-menu-icon {
    display: none;
  }

  .fito-nav {
    margin-left: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .fito-nav-cta {
    width: auto;
    margin-top: 0;
  }

  .fito-menu {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 0;
  }

  .hero-section {
    grid-template-columns: 2fr 1fr;
  }

  .post-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-secondary {
    grid-template-columns: 1fr;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .fito-home,
  .fito-single,
  .fito-archive,
  .fito-search {
    padding: 36px 24px 70px;
  }

  .post-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-secondary {
    gap: 20px;
  }

  .category-heading,
  .section-heading,
  .archive-header,
  .search-header {
    align-items: center;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body:not(.home).page .site-content {
    padding: 70px 20px;
}

body:not(.home).page .ast-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

body:not(.home).page .entry-header {
    margin-bottom: 32px;
}

body:not(.home).page .entry-title,
body:not(.home).page h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 28px;
    max-width: 860px;
}

body:not(.home).page .entry-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.85;
}

body:not(.home).page .entry-content p {
    margin-bottom: 28px;
}

body:not(.home).page .entry-content h2 {
    margin-top: 64px;
    margin-bottom: 22px;
    font-size: 2rem;
    line-height: 1.25;
}

body:not(.home).page .entry-content h3 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: 1.35rem;
}

body:not(.home).page .entry-content ul {
    margin-bottom: 32px;
    padding-left: 24px;
}

body:not(.home).page .entry-content li {
    margin-bottom: 10px;
}

body:not(.home).page .entry-header {
    max-width: 860px;
    margin: 0 auto 40px auto;
}

body:not(.home).page .breadcrumbs {
    max-width: 860px;
    margin: 0 auto 24px auto;
}

.single-hero {
    max-width: 860px;
    margin: 32px auto 48px auto;
    border-radius: 18px;
    overflow: hidden;
}

.single-hero img {
    width: 100%;
    height: auto;
    display: block;
}

body:not(.home) .fito-page {
    padding: 48px 24px 80px;
}

body:not(.home) .page-content {
    max-width: 860px;
    margin: 0 auto;
}

body:not(.home) .page-header h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 24px 0 40px;
    color: #1f2937;
}

body:not(.home) .breadcrumbs {
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #666;
}

body:not(.home) .single-hero {
    margin: 0 0 42px;
    border-radius: 20px;
    overflow: hidden;
}

body:not(.home) .single-hero img {
    width: 100%;
    height: auto;
    display: block;
}

body:not(.home) .content-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.95;
    color: #222;
}

body:not(.home) .content-body h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 72px 0 24px;
    color: #1f2937;
}

body:not(.home) .content-body h3 {
    font-size: 1.4rem;
    margin: 42px 0 16px;
    color: #1f2937;
}

body:not(.home) .content-body p {
    margin-bottom: 28px;
}

body:not(.home) .content-body ul {
    margin: 24px 0 32px 24px;
}

body:not(.home) .content-body li {
    margin-bottom: 12px;
}

body:not(.home) .page-header h1 {
    max-width: 760px;
}