/* ==========================================================================
   IGNITIA — SHOW YOUR TALENT (FINAL • CLEAN • STABLE)
   ========================================================================== */

/* ================= ROOT ================= */

:root {
  --bg-main: #fff4e8;
  --bg-soft: #fdeef5;
  --card-bg: #ffffff;

  --accent-orange: #f97316;
  --accent-pink: #fb7185;

  --text-main: #1e293b;
  --text-muted: #64748b;
}

/* ================= BASE ================= */

body {
  background: linear-gradient(
    180deg,
    #fff4e8 0%,
    #ffffff 60%,
    #fdeef5 100%
  );
  line-height: 1.55;
}

section {
  margin: 0;
}

.talent-page {
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
}

/* ================= DOODLES (SAFE) ================= */

.doodle {
  position: absolute;
  width: 120px;
  height: 120px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Sections must always be above doodles */
.talent-page section {
  position: relative;
  z-index: 1;
}

/* ================= HERO ================= */

.talent-hero {
  padding: 2.6rem 6%;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-soft));
}

.hero-card {
  max-width: 760px;
  margin: auto;
  background: var(--card-bg);
  padding: 2rem 2.2rem;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.hero-card h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.hero-desc {
  color: var(--text-muted);
  margin: 1rem 0 1.4rem;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-outline {
  border: 2px dashed var(--accent-orange);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent-orange);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ================= CATEGORIES ================= */

.talent-categories {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.4rem 6%;
  flex-wrap: wrap;
}

.category-chip {
  background: #ffffffcc;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px dashed #e2e8f0;
}

/* ================= WHY ================= */

.talent-why {
  padding: 3rem 6%;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.why-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* ================= FEATURED ================= */

.talent-featured {
  padding: 3rem 6%;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.featured-card {
  background: #ffffff;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.featured-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ================= GALLERY (FINAL FIX) ================= */

.talent-gallery {
  padding: 3rem 6%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.gallery-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.gallery-card img {
  width: 100%;
  height: auto;          /* 🔑 DO NOT CHANGE */
  display: block;        /* 🔑 */
  object-fit: contain;   /* 🔑 NO CROPPING */
}

/* Optional title (injected via JS) */
.gallery-card div {
  padding: 0.6rem;
  text-align: center;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
}

/* ================= CTA ================= */

.talent-cta {
  padding: 3rem 6%;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-soft));
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .hero-card {
    padding: 1.8rem 1.6rem;
  }

  .hero-card h1 {
    font-size: 2.1rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.6rem;
    display: inline-block;
  }

  .talent-why,
  .talent-featured,
  .talent-gallery,
  .talent-cta {
    padding: 2.4rem 5%;
  }

  .doodle {
    width: 80px;
    height: 80px;
  }
}
