/* ================================
   Blog Goofy Homepage Builder
   ================================ */

.home-builder-wrap {
  padding: 2rem 0 3rem;
}

.home-builder-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.home-module {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-module-inner {
  height: 100%;
}

/* Grid widths */
.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* Heights */
.height-standard {
  min-height: 260px;
}

.height-tall {
  min-height: 540px;
}

/* Hero */
.home-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 181, 31, 0.45), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.35), transparent 35%),
    var(--bg-blue);
  color: var(--bg-white);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.home-hero .home-module-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1;
  font-weight: 950;
}

.home-hero p {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

/* Department Section */
.home-departments-section {
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.home-departments-section .home-module-inner {
  padding: 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 950;
}

.home-departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.department-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.department-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow-bold);
}

.department-card-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: auto;
}

.department-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 950;
}

.department-card p {
  margin: 0;
  font-weight: 700;
}

/* Card Colors */
.department-card--blue {
  background: var(--bg-blue);
  color: var(--bg-white);
}

.department-card--yellow {
  background: var(--bg-yellow);
  color: var(--bg-ink);
}

.department-card--orange {
  background: var(--bg-orange);
  color: var(--bg-white);
}

.department-card--red {
  background: var(--bg-red);
  color: var(--bg-white);
}

.department-card--white {
  background: var(--bg-white);
  color: var(--bg-ink);
}

/* Responsive */
@media (max-width: 1000px) {
  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 6;
  }

  .home-departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .home-builder-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 1;
  }

  .height-standard,
  .height-tall {
    min-height: auto;
  }

  .home-hero .home-module-inner,
  .home-departments-section .home-module-inner {
    padding: 2rem 1.25rem;
  }

  .home-departments-grid {
    grid-template-columns: 1fr;
  }

  .department-card {
    min-height: 210px;
  }
}





/* ================================
   Homepage Magazine Modules
   ================================ */

.module-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  background: var(--bg-yellow);
  color: var(--bg-ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 950;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-feature-story,
.home-poll,
.home-quiz,
.home-caption-this,
.home-latest-posts,
.home-funny-quote,
.home-newsletter {
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.home-feature-story .home-module-inner,
.home-poll .home-module-inner,
.home-quiz .home-module-inner,
.home-latest-posts .home-module-inner,
.home-funny-quote .home-module-inner,
.home-newsletter .home-module-inner {
  padding: 2rem;
}

.home-feature-story {
  background: var(--bg-blue-dark);
  color: var(--bg-white);
}

.home-feature-story h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 950;
}

.home-feature-story a {
  color: var(--bg-white);
  text-decoration: none;
}

.home-feature-story p {
  font-size: 1.15rem;
  font-weight: 700;
}

.home-poll {
  background: var(--bg-yellow);
}

.home-poll h2,
.home-quiz h2,
.home-newsletter h2 {
  margin: 0 0 1rem;
  font-size: 1.9rem;
  line-height: 1.05;
  font-weight: 950;
}

.poll-answer {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  border: 3px solid var(--bg-ink);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--bg-ink);
  font-weight: 900;
  cursor: pointer;
}

.poll-answer:hover {
  background: var(--bg-blue);
  color: var(--bg-white);
}

.home-quiz {
  background: var(--bg-orange);
  color: var(--bg-white);
}

.home-quiz p {
  font-weight: 700;
}

.home-caption-this {
  background: var(--bg-white);
}

.home-caption-this .home-module-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

.caption-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.caption-content {
  padding: 1.5rem;
}

.caption-content h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 950;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.latest-post-card {
  background: var(--bg-paper);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.latest-post-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 950;
}

.latest-post-card a {
  color: var(--bg-ink);
  text-decoration: none;
}

.latest-post-card a:hover {
  color: var(--bg-orange);
}

.latest-post-card p {
  margin: 0;
  font-weight: 650;
}

.home-funny-quote {
  background: var(--bg-red);
  color: var(--bg-white);
}

.home-funny-quote .home-module-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-funny-quote blockquote {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 950;
}

.home-funny-quote cite {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 800;
  opacity: 0.9;
}

.home-newsletter {
  background: var(--bg-blue);
  color: var(--bg-white);
  text-align: center;
}

.home-newsletter p {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .latest-posts-grid {
    grid-template-columns: 1fr;
  }
}