/* ===== Astra Layout Override (front page only) ===== */
/* Force the content wrapper to stack vertically, full width */
body.home .site-content > .ast-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.home #primary {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
body.home #secondary { display: none !important; }
body.home .ast-article-single,
body.home .ast-article-post {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.home .entry-header,
body.home .page-header { display: none !important; }
body.home .site-content { padding-top: 0 !important; background: #fff !important; }

/* ===== CSS Variables defaults ===== */
:root {
  --primary: #3083f6;
  --primary-dark: #09162a;
  --accent: #ffc300;
  --bg: #fff;
  --bg-alt: #f5f7fa;
  --text: #1c3145;
  --muted: #6b7a8d;
  --radius: 9999px;
  --shadow: 0 6px 24px rgba(28,49,69,.08);
  --shadow-hover: 0 18px 44px rgba(28,49,69,.16);
  --maxw: 1200px;
}

/* ===== Buttons ===== */
.fp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: .86rem;
  padding: 13px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  text-decoration: none;
}
.fp-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(48,131,246,.32); }
.fp-btn-primary:hover { background: #1d6ee0; transform: translateY(-2px); color: #fff; }
.fp-btn-accent { background: var(--accent); color: var(--primary-dark); }
.fp-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,195,0,.4); color: var(--primary-dark); }
.fp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.fp-btn-ghost:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
.fp-btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.fp-btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Sections ===== */
.fp-section { padding: 84px 0; }
.fp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.fp-section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.fp-eyebrow {
  display: inline-block; font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  color: var(--primary); margin-bottom: 14px;
}
.fp-section-head h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 2.4rem;
  color: var(--primary-dark); line-height: 1.1;
}
.fp-section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Hero ===== */
.fp-hero {
  position: relative; min-height: 580px; display: flex; align-items: center;
  color: #fff; text-align: center; overflow: hidden;
}
/* Gradient mode (no custom header image) */
.fp-hero--gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, color-mix(in srgb, var(--primary-dark) 70%, var(--primary)) 40%, var(--primary) 100%);
}
/* Image mode (custom header image set) */
.fp-hero--image {
  background-size: cover; background-position: center;
}
.fp-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-dark) 82%, transparent) 0%, color-mix(in srgb, var(--primary-dark) 55%, transparent) 50%, color-mix(in srgb, var(--primary) 35%, transparent) 100%);
}

/* Decorative floating shapes */
.fp-hero-deco {
  position: absolute; border-radius: 50%; opacity: .07; z-index: 0;
  background: #fff;
}
.fp-hero-deco--1 {
  width: 500px; height: 500px; top: -180px; right: -120px;
  animation: fp-float 8s ease-in-out infinite;
}
.fp-hero-deco--2 {
  width: 300px; height: 300px; bottom: -80px; left: -60px;
  animation: fp-float 10s ease-in-out infinite reverse;
}
.fp-hero-deco--3 {
  width: 160px; height: 160px; top: 40%; left: 12%;
  opacity: .04;
  animation: fp-float 12s ease-in-out infinite 2s;
}
@keyframes fp-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

.fp-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 100px 20px; }
.fp-hero .fp-eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .3em; margin-bottom: 18px; }
.fp-hero h1 {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 4.2rem; margin-bottom: 0; line-height: 1.05;
  text-shadow: 0 4px 40px rgba(0,0,0,.25);
}
.fp-hero-separator {
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: 24px auto;
}
.fp-hero p { font-size: 1.25rem; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.fp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Categories ===== */
.fp-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fp-cat-card {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end;
  justify-content: center; box-shadow: var(--shadow);
}
.fp-cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease; z-index: 0;
}
.fp-cat-card .fp-cat-overlay {
  position: absolute; inset: 0; z-index: 1; transition: background .4s ease;
  background: linear-gradient(to top, color-mix(in srgb, var(--primary-dark) 86%, transparent) 0%, color-mix(in srgb, var(--primary-dark) 40%, transparent) 55%, color-mix(in srgb, var(--primary-dark) 15%, transparent) 100%);
}
.fp-cat-card .fp-cat-body {
  position: relative; z-index: 2; text-align: center;
  padding: 28px 20px; color: #fff; width: 100%;
}
.fp-cat-card h3 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 1.45rem;
  margin-bottom: 16px; letter-spacing: .03em;
}
.fp-cat-card .fp-btn {
  opacity: .92; transform: translateY(6px);
  transition: transform .35s ease, opacity .35s ease, background .25s ease, color .25s ease;
  font-size: .74rem; padding: 9px 20px;
}
.fp-cat-card:hover img { transform: scale(1.07); }
.fp-cat-card:hover .fp-cat-overlay {
  background: linear-gradient(to top, color-mix(in srgb, var(--primary-dark) 80%, transparent) 0%, color-mix(in srgb, var(--primary) 45%, transparent) 60%, color-mix(in srgb, var(--primary) 20%, transparent) 100%);
}
.fp-cat-card:hover .fp-btn { transform: translateY(0); opacity: 1; }

/* ===== Article cards ===== */
.fp-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fp-card {
  background: var(--bg); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.fp-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.fp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fp-card:hover .fp-card-media img { transform: scale(1.05); }
.fp-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; font-size: .7rem; letter-spacing: .08em;
  color: #fff; background: var(--primary); padding: 6px 14px;
  border-radius: var(--radius); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 40%, transparent);
}
.fp-badge.accent { background: var(--accent); color: var(--primary-dark); }
.fp-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.fp-card-body h3 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 1.22rem;
  color: var(--primary-dark); line-height: 1.25; margin-bottom: 12px;
}
.fp-card-body h3 a { text-decoration: none; color: inherit; transition: color .2s ease; }
.fp-card-body h3 a:hover { color: var(--primary); }
.fp-excerpt {
  color: var(--muted); font-size: .96rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px;
}
.fp-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: .82rem; color: var(--muted); margin-top: auto;
  padding-top: 14px; border-top: 1px solid #eef1f5;
}
.fp-section-foot { text-align: center; margin-top: 52px; }

/* ===== Highlight ===== */
.fp-highlight-card {
  display: grid; grid-template-columns: 60% 40%;
  background: var(--bg); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow);
}
.fp-highlight-media { position: relative; overflow: hidden; min-height: 420px; }
.fp-highlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fp-highlight-card:hover .fp-highlight-media img { transform: scale(1.05); }
.fp-highlight-body { padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; }
.fp-highlight-body .fp-badge { position: static; align-self: flex-start; margin-bottom: 20px; box-shadow: none; }
.fp-highlight-body h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 2.35rem;
  color: var(--primary-dark); margin-bottom: 20px; line-height: 1.12;
}
.fp-highlight-body .fp-excerpt { -webkit-line-clamp: 5; font-size: 1.04rem; margin-bottom: 26px; }
.fp-highlight-body .fp-meta { border: none; padding-top: 0; margin-bottom: 26px; }
.fp-highlight-body .fp-btn { align-self: flex-start; }

/* ===== Popular ===== */
.fp-popular-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fp-pop-item {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none; color: inherit;
}
.fp-pop-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.fp-pop-thumb { position: relative; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 11px; overflow: hidden; }
.fp-pop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fp-pop-item:hover .fp-pop-thumb img { transform: scale(1.08); }
.fp-pop-rank {
  position: absolute; top: 0; left: 0; width: 30px; height: 30px;
  background: var(--primary-dark); color: var(--accent);
  font-family: 'Oswald', sans-serif; font-weight: 700;
  display: grid; place-items: center; border-bottom-right-radius: 11px; font-size: .95rem;
}
.fp-pop-cat {
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; font-size: .7rem;
  letter-spacing: .1em; color: var(--primary);
}
.fp-pop-body h4 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 1.04rem;
  color: var(--primary-dark); margin-top: 6px;
  line-height: 1.25; transition: color .2s ease;
}
.fp-pop-item:hover h4 { color: var(--primary); }

/* ===== About ===== */
.fp-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fp-about-text h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 2.3rem;
  color: var(--primary-dark); margin-bottom: 20px;
}
.fp-about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.fp-about-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.fp-about-media img { width: 100%; height: 100%; object-fit: cover; }
.fp-about-badge {
  position: absolute; bottom: 26px; left: 26px;
  background: var(--accent); color: var(--primary-dark);
  border-radius: 16px; padding: 18px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.fp-about-badge strong { font-family: 'Oswald', sans-serif; font-size: 2rem; display: block; line-height: 1; }
.fp-about-badge span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ===== Newsletter ===== */
.fp-newsletter { background: var(--primary); color: #fff; text-align: center; }
.fp-newsletter-inner { max-width: 640px; margin: 0 auto; padding: 70px 20px; }
.fp-newsletter .fp-eyebrow { color: var(--accent); }
.fp-newsletter h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: 2.3rem; margin-bottom: 14px;
}
.fp-newsletter p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 30px; }
.fp-nl-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.fp-nl-form input {
  flex: 1; min-width: 200px; border: none; border-radius: var(--radius);
  padding: 15px 24px; font-family: 'Archivo', sans-serif; font-size: 1rem; color: var(--text);
}
.fp-nl-form input:focus { outline: 3px solid rgba(255,195,0,.6); }

/* ===== Animations ===== */
.fp-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.fp-reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .fp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .fp-highlight-card { grid-template-columns: 1fr; }
  .fp-highlight-media { min-height: 300px; }
  .fp-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .fp-popular-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .fp-section { padding: 60px 0; }
  .fp-hero h1 { font-size: 2.6rem; }
  .fp-hero { min-height: 460px; }
  .fp-hero-inner { padding: 70px 20px; }
  .fp-section-head h2,
  .fp-highlight-body h2,
  .fp-about-text h2,
  .fp-newsletter h2 { font-size: 1.8rem; }
  .fp-cat-grid,
  .fp-articles-grid { grid-template-columns: 1fr; }
  .fp-highlight-body { padding: 36px 28px; }
}
@media (max-width: 480px) {
  .fp-hero h1 { font-size: 2.1rem; }
}
