/* =========================================================
   GENIEHOME BLOG
========================================================= */

.ghb-page {
  --ghb-navy: #0f172a;
  --ghb-blue: #2563eb;
  --ghb-green: #16a34a;
  --ghb-gold: #f4c768;
  --ghb-text: #334155;
  --ghb-muted: #64748b;
  --ghb-border: #e5e7eb;
  --ghb-soft: #f6f8fc;

  overflow: hidden;
  background: #fff;
  color: var(--ghb-text);
}

.ghb-page *,
.ghb-page *::before,
.ghb-page *::after {
  box-sizing: border-box;
}

.ghb-container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}


/* HERO */

.ghb-hero {
  padding: 88px 0;
  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(37, 99, 235, .38),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #0b1220 0%,
      #172554 58%,
      #1d4ed8 100%
    );
}

.ghb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 410px;
  gap: 70px;
  align-items: center;
}

.ghb-eyebrow,
.ghb-section-heading > span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--ghb-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ghb-eyebrow {
  color: var(--ghb-gold);
}

.ghb-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.038em;
}

.ghb-hero-content > p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.8;
}

.ghb-search {
  max-width: 620px;
  margin-top: 32px;
  padding: 8px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .22);
}

.ghb-search input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  outline: none;
  color: var(--ghb-navy);
  font: inherit;
  font-weight: 750;
}

.ghb-search button {
  min-width: 110px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--ghb-green);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.ghb-search button:hover {
  background: #15803d;
}

.ghb-hero-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
  backdrop-filter: blur(15px);
}

.ghb-hero-panel > span {
  color: var(--ghb-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ghb-hero-panel ul {
  margin: 23px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.ghb-hero-panel li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 800;
}

.ghb-hero-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 950;
}


/* SECTIONS */

.ghb-section,
.ghb-featured-section {
  padding: 90px 0;
}

.ghb-section-soft {
  background: var(--ghb-soft);
}

.ghb-section-heading {
  max-width: 860px;
  margin-bottom: 42px;
}

.ghb-section-heading h2 {
  margin: 0;
  color: var(--ghb-navy);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -.027em;
}

.ghb-heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.ghb-heading-row > p {
  margin: 0;
  color: var(--ghb-muted);
  font-weight: 800;
}


/* FEATURED */

.ghb-featured-card {
  overflow: hidden;
  border: 1px solid var(--ghb-border);
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.ghb-featured-image {
  min-height: 500px;
  overflow: hidden;
  display: block;
  background: #e2e8f0;
}

.ghb-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.ghb-featured-card:hover .ghb-featured-image img {
  transform: scale(1.04);
}

.ghb-featured-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ghb-category-label {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--ghb-blue);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ghb-featured-content h2 {
  margin: 20px 0 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 950;
  line-height: 1.15;
}

.ghb-featured-content h2 a {
  color: var(--ghb-navy);
  text-decoration: none;
}

.ghb-featured-content h2 a:hover {
  color: var(--ghb-blue);
}

.ghb-featured-content > p {
  margin: 20px 0 0;
  color: var(--ghb-muted);
  font-size: 16px;
  line-height: 1.8;
}

.ghb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.ghb-read-more,
.ghb-card-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ghb-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
}

.ghb-read-more span,
.ghb-card-link span {
  font-size: 18px;
  transition: transform .2s ease;
}

.ghb-read-more:hover span,
.ghb-card-link:hover span {
  transform: translateX(4px);
}


/* CATEGORIES */

.ghb-category-section {
  border-top: 1px solid var(--ghb-border);
  border-bottom: 1px solid var(--ghb-border);
  background: #fff;
}

.ghb-category-list {
  padding: 18px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.ghb-category-list a {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ghb-border);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ghb-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.ghb-category-list a:hover,
.ghb-category-list a.active {
  border-color: var(--ghb-blue);
  background: #eaf1ff;
  color: var(--ghb-blue);
}

.ghb-category-list span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 11px;
}


/* POST GRID */

.ghb-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ghb-post-card {
  overflow: hidden;
  border: 1px solid var(--ghb-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 15px 45px rgba(15, 23, 42, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ghb-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 55px rgba(15, 23, 42, .1);
}

.ghb-post-image {
  position: relative;
  height: 245px;
  overflow: hidden;
  display: block;
  background: #e2e8f0;
}

.ghb-post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.ghb-post-card:hover .ghb-post-image img {
  transform: scale(1.055);
}

.ghb-card-category {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .84);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.ghb-post-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.ghb-post-body .ghb-post-meta {
  margin-top: 0;
}

.ghb-post-body h3 {
  margin: 15px 0 0;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.32;
}

.ghb-post-body h3 a {
  color: var(--ghb-navy);
  text-decoration: none;
}

.ghb-post-body h3 a:hover {
  color: var(--ghb-blue);
}

.ghb-post-body > p {
  margin: 14px 0 0;
  color: var(--ghb-muted);
  font-size: 14px;
  line-height: 1.72;
}

.ghb-card-link {
  margin-top: auto;
  padding-top: 22px;
}


/* PLACEHOLDER */

.ghb-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #0f172a, #2563eb);
  color: #f4c768;
  font-size: 25px;
  font-weight: 950;
}


/* PAGINATION */

.ghb-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ghb-pagination .page-numbers {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ghb-border);
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--ghb-navy);
  text-decoration: none;
  font-weight: 900;
}

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


/* EMPTY */

.ghb-empty {
  padding: 70px 24px;
  border: 1px solid var(--ghb-border);
  border-radius: 25px;
  background: var(--ghb-soft);
  text-align: center;
}

.ghb-empty > div {
  font-size: 38px;
}

.ghb-empty h3 {
  margin: 15px 0 0;
  color: var(--ghb-navy);
  font-size: 25px;
  font-weight: 950;
}

.ghb-empty p {
  margin: 10px 0 0;
  color: var(--ghb-muted);
}

.ghb-empty a {
  margin-top: 20px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  background: var(--ghb-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}


/* TOPICS */

.ghb-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ghb-topic-grid article {
  padding: 28px;
  border: 1px solid var(--ghb-border);
  border-radius: 24px;
  background: #fff;
}

.ghb-topic-grid article > span {
  display: block;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 32px;
  font-weight: 950;
}

.ghb-topic-grid h3 {
  margin: 0;
  color: var(--ghb-navy);
  font-size: 20px;
  font-weight: 950;
}

.ghb-topic-grid p {
  margin: 12px 0 0;
  color: var(--ghb-muted);
  font-size: 14px;
  line-height: 1.7;
}


/* CTA */

.ghb-final-cta {
  padding: 64px 0;
  background: linear-gradient(
    135deg,
    #1d4ed8,
    #0f172a
  );
}

.ghb-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.ghb-final-inner span {
  color: var(--ghb-gold);
  font-size: 13px;
  font-weight: 900;
}

.ghb-final-inner h2 {
  max-width: 800px;
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.2;
}

.ghb-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
}

.ghb-btn-light {
  background: #fff;
  color: var(--ghb-navy);
}


/* RESPONSIVE */

@media (max-width: 1050px) {
  .ghb-hero-grid {
    grid-template-columns: 1fr;
  }

  .ghb-hero-panel {
    max-width: 620px;
  }

  .ghb-featured-card {
    grid-template-columns: 1fr;
  }

  .ghb-featured-image {
    min-height: 400px;
  }

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

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

@media (max-width: 700px) {
  .ghb-section,
  .ghb-featured-section {
    padding: 70px 0;
  }

  .ghb-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ghb-featured-content {
    padding: 30px 24px;
  }

  .ghb-final-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .ghb-container {
    width: min(100% - 28px, 1320px);
  }

  .ghb-hero {
    padding: 58px 0;
  }

  .ghb-hero h1 {
    font-size: 39px;
  }

  .ghb-hero-content > p {
    font-size: 16px;
  }

  .ghb-search {
    grid-template-columns: 1fr;
  }

  .ghb-search button {
    width: 100%;
  }

  .ghb-featured-image {
    min-height: 280px;
  }

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

  .ghb-post-image {
    height: 230px;
  }

  .ghb-section-heading h2 {
    font-size: 31px;
  }

  .ghb-btn {
    width: 100%;
  }
}