/* =========================================================
   Planerium Frontpage (v1.0.1)
   IMPORTANT:
   - Does NOT depend on a .pl-home wrapper
   - Works with Gutenberg Columns (wp-block-columns)
========================================================= */

:root{
  --pl-text: #0f172a;
  --pl-muted: #6b7280;
  --pl-primary: #0b2f6b;
  --pl-primary-hover: #1e63b5;
  --pl-soft: #e9e2d9;
  --pl-container: 1260px;
}

/* Container helper used on front page sections */
body.home .pl-container{
  max-width: var(--pl-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

/* -----------------------------
   HERO
------------------------------ */
body.home .pl-home-hero{
  background: #ffffff;
  padding-block: clamp(44px, 6vw, 90px);
  text-align: center;
}

body.home .pl-home-hero-title{
  margin: 0;
  color: var(--pl-text);
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.home .pl-gradient-text{
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.home .pl-home-hero-subtitle{
  margin: 16px auto 0;
  max-width: 62ch;
  color: var(--pl-muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}



/* -----------------------------
   EXPLORE SECTION (cards)
------------------------------ */
body.home .pl-home-explore{
  background: var(--pl-soft);
  padding-block: clamp(42px, 5vw, 72px);
}

body.home .pl-home-section-title{
  margin: 0 0 22px;
  color: var(--pl-text);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
}

/* IMPORTANT: you are using Gutenberg Columns -> keep flex, only control gap */
body.home .wp-block-columns.pl-home-explore-grid{
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

body.home .wp-block-columns.pl-home-explore-grid > .wp-block-column{
  min-width: 0;
}

/* Card wrapper (you added this on the inner Group inside each column) */
body.home .pl-home-card{
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ececec;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.10);
}

/* Top icon area (your Group that wraps the SVG) */
body.home .pl-home-card-top{
  /* Gutenberg adds padding via has-global-padding -> kill it */
  padding: 0 !important;

  min-height: 200px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}

/* AI card - Stitch-like mint top */
body.home .pl-home-card.pl-home-card--ai .pl-home-card-top{
  background: #CFFCEF; /* mint green (more greenish) */
}


/* Make all cards equal height */
body.home .wp-block-columns.pl-home-explore-grid{
  align-items: stretch; /* columns stretch to same height */
}

body.home .pl-home-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top stays fixed, bottom grows */
body.home .pl-home-card-top{
  flex: 0 0 auto;
}

body.home .pl-home-card-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
}

/* Push the link to the bottom */
body.home .pl-home-card-body a{
  margin-top: auto;
}


/* THIS is the critical fix: extra specificity + !important */
body.home .pl-home-explore .pl-home-card-top > svg.pl-hp-card__icon{
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  display: block !important;
  flex: 0 0 auto !important;
  color: var(--pl-primary);
}

/* Top background per card */
body.home .pl-home-card--library .pl-home-card-top{ background: #eaf3ff; }
body.home .pl-home-card--ai .pl-home-card-top{ background: #e8fff7; }
body.home .pl-home-card--essentials .pl-home-card-top{ background: #fff6d8; }

/* Responsive */
@media (max-width: 900px){
  body.home .pl-home-card-top{ min-height: 200px; }
  body.home .pl-home-explore .pl-home-card-top > svg.pl-hp-card__icon{
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}
