/* Yuva Krushi page - the approved design's stylesheet (htmlyuvakrushi assets/css/style.css), every rule scoped to
   .yk-page so the site's navbar and footer keep their own look. Re-create with
   database/data/yuva-krushi/convert-from-html.cjs. */

/* ==========================================================================
   Yuva Krushi - Main Stylesheet
   Completely Responsive & Fluid Design Architecture (Mobile, Tablet, Desktop, 4K)
   ========================================================================== */

/* ---------- 1. Root Variables & Reset ---------- */
.yk-page {
  --page-bg: #9da8df;
  --card-bg: #d8dcf8;
  --ink: #1c1f2b;
  --muted: #4f5263;
  --brand-green: #177920;
  --gold: #e4af2c;
  --section-bg: #edf3f8;
  --navy: #06307a;

  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.yk-page {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.yk-page {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  overflow-x: hidden;
  touch-action: manipulation;
}

.yk-page h1,
.yk-page h2,
.yk-page h3,
.yk-page h4,
.yk-page p,
.yk-page figure,
.yk-page ul {
  margin: 0;
  padding: 0;
}

.yk-page img,
.yk-page svg {
  display: block;
  max-width: 100%;
}

/* Sections below the header sit apart, with the page background between them. */
.yk-page main {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 44px);
  width: 100%;
  overflow-x: hidden;
}

/* ---------- 2. Header & Hero Card ---------- */
.yk-page .page {
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vh, 80px) clamp(16px, 5vw, 92px);
  width: 100%;
}

.yk-page .card {
  container-type: inline-size;
  position: relative;
  width: min(100%, 1461px);
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(16% 22% at 85% 8%, rgba(204, 207, 251, 0.75), transparent),
    radial-gradient(22% 20% at 27% 84%, rgba(214, 216, 252, 0.7), transparent),
    radial-gradient(24% 34% at 45% 33%, rgba(255, 255, 255, 0.35), transparent),
    var(--card-bg);
  box-shadow: 0 16px 48px rgba(40, 70, 120, 0.28);
}

/* Hero Section */
.yk-page .hero {
  display: grid;
  grid-template-columns: 1fr 52.57cqw;
  align-items: start;
  min-height: 44.83cqw;
  height: auto;
  padding: 10cqw 5.95cqw 3cqw 6.6cqw;
  gap: 2cqw;
}

.yk-page .hero__text {
  margin-top: 3.5cqw;
}

.yk-page .brand {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 5.77cqw, 84px);
  font-weight: 800;
  line-height: 0.85;
  filter: drop-shadow(0 0 0.25cqw rgba(255, 255, 255, 0.9))
    drop-shadow(0 0.12cqw 0.2cqw rgba(0, 0, 0, 0.25));
}

.yk-page .brand__word {
  position: relative;
  display: block;
  width: fit-content;
  background: linear-gradient(180deg, #2d2d2d 7%, #111 50%, #000 93%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yk-page .brand__word:first-child {
  margin-left: 0.035em;
  font-size: 1.084em;
}

.yk-page .brand__leaves {
  position: absolute;
  top: -0.183em;
  left: 2.718em;
  width: 0.59em;
}

.yk-page .tagline {
  margin: 1.46cqw 0 0 -0.36cqw;
  font-family: 'Yellowtail', cursive;
  font-size: clamp(18px, 2.6cqw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.yk-page .tagline__today {
  color: var(--brand-green);
}

.yk-page .tagline__tomorrow {
  color: var(--gold);
}

.yk-page .tagline__leaf {
  display: inline-block;
  width: 0.63em;
  margin-left: 0.02em;
  vertical-align: 0.42em;
}

.yk-page .hero__subtitle {
  margin: 1.77cqw 0 0 0.25cqw;
  font-size: clamp(14px, 1.472cqw, 22px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
}

.yk-page .hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 768 / 419.5;
  overflow: hidden;
  border-radius: clamp(14px, 3.1cqw, 45px);
  box-shadow: 0.4cqw 1cqw 2.4cqw rgba(84, 140, 240, 0.38);
}

/* Soft light rim around the photo */
.yk-page .hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 0.2cqw solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.yk-page .hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
}

/* Feature Strip */
.yk-page .features {
  list-style: none;
  display: grid;
  grid-template-columns: 27.58cqw 31.35cqw 1fr;
  align-items: center;
  min-height: 6.2cqw;
  height: auto;
  padding: 1cqw 2cqw 1cqw 6.16cqw;
  border-top: 1px solid rgba(203, 208, 240, 0.6);
  background: linear-gradient(
    90deg,
    rgba(222, 224, 252, 0.45),
    rgba(255, 255, 255, 0.3) 62%,
    rgba(222, 224, 252, 0.45)
  );
}

.yk-page .feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5cqw, 22px);
}

.yk-page .feature + .feature {
  padding-left: clamp(16px, 3.2cqw, 48px);
}

.yk-page .feature + .feature::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 2.3cqw;
  min-height: 24px;
  translate: 0 -50%;
  background: #d1d4ee;
}

.yk-page .feature__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(34px, 3.08cqw, 45px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.yk-page .feature__icon svg {
  width: var(--glyph-size);
  height: var(--glyph-size);
}

.yk-page .feature__icon--green {
  --glyph-size: clamp(18px, 1.65cqw, 24px);
  color: #1b7d33;
  background: radial-gradient(circle at 35% 30%, #e2f8ec, #cdefdd);
}

.yk-page .feature__icon--amber {
  --glyph-size: clamp(20px, 2.1cqw, 30px);
  color: #f0b030;
  background: radial-gradient(circle at 35% 30%, #fff6dd, #fdecc2);
}

.yk-page .feature__icon--violet {
  --glyph-size: clamp(19px, 1.96cqw, 28px);
  color: #6347d9;
  background: radial-gradient(circle at 35% 30%, #e6e3ff, #d4d0fc);
}

.yk-page .feature__text {
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  line-height: 1.3;
}

.yk-page .feature__title {
  font-size: clamp(14px, 1.06cqw, 18px);
  font-weight: 700;
  color: var(--ink);
}

.yk-page .feature__subtitle {
  font-size: clamp(12.5px, 0.9cqw, 15px);
  font-weight: 500;
  color: var(--muted);
}

/* Header & Hero Responsive (Stacked for Tablets & Mobile) */
@media (max-width: 600px) {
  .yk-page .page {
    padding: 16px 12px;
  }
}

@container (max-width: 840px) {
  .yk-page .hero {
    grid-template-columns: 1fr;
    gap: clamp(20px, 6cqw, 36px);
    height: auto;
    padding: clamp(28px, 8cqw, 48px) clamp(16px, 6cqw, 36px) clamp(24px, 8cqw, 44px);
  }

  .yk-page .hero__text {
    margin-top: 0;
  }

  .yk-page .brand {
    font-size: clamp(34px, 12cqw, 58px);
  }

  .yk-page .tagline {
    margin: 10px 0 0 -2px;
    font-size: clamp(20px, 6.2cqw, 28px);
    white-space: normal;
  }

  .yk-page .hero__subtitle {
    margin: 12px 0 0 2px;
    font-size: clamp(14px, 4cqw, 18px);
  }

  .yk-page .hero__frame {
    border-radius: clamp(16px, 5cqw, 26px);
    box-shadow: 0 12px 32px rgba(84, 140, 240, 0.3);
  }

  .yk-page .features {
    grid-template-columns: 1fr;
    height: auto;
    padding: 8px clamp(16px, 6cqw, 36px);
  }

  .yk-page .feature {
    gap: 16px;
    padding: 14px 0;
  }

  .yk-page .feature + .feature {
    padding-left: 0;
    border-top: 1px solid rgba(203, 208, 240, 0.6);
  }

  .yk-page .feature + .feature::before {
    display: none;
  }

  .yk-page .feature__icon {
    width: 44px;
  }

  .yk-page .feature__icon--green {
    --glyph-size: 22px;
  }

  .yk-page .feature__icon--amber {
    --glyph-size: 26px;
  }

  .yk-page .feature__icon--violet {
    --glyph-size: 24px;
  }

  .yk-page .feature__title {
    font-size: 16px;
  }

  .yk-page .feature__subtitle {
    font-size: 13.5px;
  }
}

@media (max-width: 840px) {
  .yk-page .hero {
    grid-template-columns: 1fr;
    gap: clamp(20px, 6vw, 36px);
    height: auto;
    padding: clamp(28px, 8vw, 48px) clamp(16px, 6vw, 36px) clamp(24px, 8vw, 44px);
  }

  .yk-page .hero__text {
    margin-top: 0;
  }

  .yk-page .brand {
    font-size: clamp(34px, 12vw, 58px);
  }

  .yk-page .tagline {
    margin: 10px 0 0 -2px;
    font-size: clamp(20px, 6vw, 28px);
    white-space: normal;
  }

  .yk-page .hero__subtitle {
    margin: 12px 0 0 2px;
    font-size: clamp(14px, 4vw, 18px);
  }

  .yk-page .features {
    grid-template-columns: 1fr;
    height: auto;
    padding: 8px clamp(16px, 6vw, 36px);
  }

  .yk-page .feature {
    gap: 16px;
    padding: 14px 0;
  }

  .yk-page .feature + .feature {
    padding-left: 0;
    border-top: 1px solid rgba(203, 208, 240, 0.6);
  }

  .yk-page .feature + .feature::before {
    display: none;
  }

  .yk-page .feature__icon {
    width: 44px;
  }

  .yk-page .feature__icon--green {
    --glyph-size: 22px;
  }

  .yk-page .feature__icon--amber {
    --glyph-size: 26px;
  }

  .yk-page .feature__icon--violet {
    --glyph-size: 24px;
  }

  .yk-page .feature__title {
    font-size: 16px;
  }

  .yk-page .feature__subtitle {
    font-size: 13.5px;
  }
}


/* ---------- 3. Discover Section ---------- */
.yk-page .discover {
  container-type: inline-size;
  background: var(--section-bg);
  width: 100%;
}

.yk-page .discover__inner {
  display: grid;
  grid-template-columns: 1fr min(56cqw, 860px);
  align-items: start;
  max-width: 1800px;
  margin: 0 auto;
  padding: clamp(36px, 4.9cqw, 98px) clamp(20px, 2.5vw, 40px) clamp(40px, 5.37cqw, 107px) clamp(24px, 5vw, 126px);
  gap: clamp(24px, 3vw, 52px);
}

.yk-page .emoji {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-weight: 400;
  line-height: 1;
}

/* Discover Intro */
.yk-page .discover__intro {
  margin-top: 0.5cqw;
}

.yk-page .discover__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 0.95cqw, 16px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6c87a4;
}

.yk-page .discover__eyebrow .emoji {
  font-size: 1.25em;
}

.yk-page .discover__title {
  margin-top: clamp(12px, 1.74cqw, 28px);
  font-size: clamp(36px, 4.75cqw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.yk-page .discover__lead {
  max-width: 540px;
  margin-top: clamp(14px, 1.3cqw, 24px);
  font-size: clamp(15px, 1.09cqw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: #647a96;
}

/* Topic Cards */
.yk-page .discover__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2cqw, 24px);
}

.yk-page .topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.45cqw, 28px);
  border-radius: clamp(14px, 0.85cqw, 20px);
  background: #f7fbfe;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(60, 92, 135, 0.12),
    0 1px 4px rgba(60, 92, 135, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.yk-page .topic-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 36px rgba(60, 92, 135, 0.18),
    0 2px 6px rgba(60, 92, 135, 0.06);
}

.yk-page .topic-card__icon {
  display: grid;
  place-items: center;
  width: clamp(48px, 3.5cqw, 64px);
  aspect-ratio: 1;
  border: 1px solid rgba(221, 231, 240, 0.9);
  border-radius: clamp(12px, 0.7cqw, 16px);
  background: #eaf2f8;
  font-size: clamp(24px, 1.8cqw, 32px);
}

.yk-page .topic-card__label {
  margin-top: 14px;
  font-size: clamp(13px, 0.88cqw, 15px);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #7b95ae;
}

.yk-page .topic-card__title {
  margin-top: 6px;
  font-size: clamp(18px, 1.42cqw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.yk-page .topic-card__text {
  margin: 10px 0 20px;
  font-size: clamp(14px, 0.9cqw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: #72849e;
}

/* Fluid responsive text wrapping */
.yk-page .locked-line {
  display: inline;
  white-space: normal;
}

@media (min-width: 1600px) {
  .yk-page .locked-line {
    display: block;
    white-space: nowrap;
  }
}

.yk-page .topic-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e8eef4;
}

.yk-page .topic-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  height: clamp(42px, 2.45cqw, 48px);
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 999px;
  background: #ebf3f9;
  font: inherit;
  font-size: clamp(14px, 0.85cqw, 15px);
  font-weight: 700;
  color: #3b5b7c;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.yk-page .topic-card__action:hover {
  background: #dbe8f4;
  color: #173d63;
}

.yk-page .topic-card__action:focus-visible {
  outline: 3px solid #4d7cc9;
  outline-offset: 2px;
}

.yk-page .topic-card__arrow {
  width: 15px;
  height: 15px;
  color: #597592;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.yk-page .topic-card__action:hover .topic-card__arrow {
  transform: translateX(3px);
}

/* Active Topic Card styling */
.yk-page .topic-card.is-active {
  box-shadow:
    0 0 0 2px rgba(6, 48, 122, 0.25),
    0 12px 32px rgba(60, 92, 135, 0.16);
}

.yk-page .topic-card.is-active .topic-card__action {
  background: #d3e3f4;
  color: var(--navy);
}

.yk-page .topic-card.is-active .topic-card__arrow,
.yk-page .topic-card.is-active .topic-card__action:hover .topic-card__arrow {
  transform: rotate(90deg);
}

/* Detail panel container */
.yk-page .discover__detail {
  scroll-margin-top: 24px;
  width: 100%;
}

/* Discover Responsive Layouts */
@container (max-width: 1100px) {
  .yk-page .discover__inner {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding: clamp(40px, 6cqw, 64px) clamp(20px, 4cqw, 32px) clamp(44px, 6cqw, 72px);
  }

  .yk-page .discover__intro {
    margin-top: 0;
  }

  .yk-page .discover__title {
    font-size: clamp(34px, 7cqw, 68px);
  }

  .yk-page .discover__lead {
    max-width: 600px;
    font-size: 16.5px;
  }

  .yk-page .discover__cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 1100px) {
  .yk-page .discover__inner {
    grid-template-columns: 1fr;
    row-gap: 36px;
    padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 32px) clamp(44px, 6vw, 72px);
  }

  .yk-page .discover__intro {
    margin-top: 0;
  }

  .yk-page .discover__title {
    font-size: clamp(34px, 7vw, 68px);
  }

  .yk-page .discover__lead {
    max-width: 600px;
    font-size: 16.5px;
  }

  .yk-page .discover__cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }
}

@container (max-width: 640px) {
  .yk-page .discover__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .yk-page .discover__inner {
    padding: 36px 14px 44px;
  }

  .yk-page .discover__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* ---------- 4. Topic Detail Panel ---------- */
.yk-page .topic-detail {
  padding: clamp(36px, 3.4cqw, 68px) clamp(20px, 2vw, 40px) clamp(40px, 3.6cqw, 72px) clamp(24px, 5vw, 126px);
  background: #202425;
  color: #e3e7eb;
  width: 100%;
}

.yk-page .topic-detail > * {
  animation: topic-detail-in 0.35s ease both;
}

@keyframes topic-detail-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yk-page .topic-detail > * {
    animation: none;
  }
}

/* Detail Header */
.yk-page .topic-detail__header {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.21cqw, 24px);
  margin-bottom: clamp(20px, 1.69cqw, 32px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.yk-page .topic-detail__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(48px, 3.86cqw, 72px);
  aspect-ratio: 1;
  border-radius: clamp(12px, 0.97cqw, 18px);
  background: linear-gradient(160deg, #f1fcf0, #dcf6d8);
  font-size: clamp(24px, 2.17cqw, 40px);
}

.yk-page .topic-detail__title {
  font-size: clamp(24px, 2.54cqw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.yk-page .topic-detail__subtitle {
  margin-top: 6px;
  font-size: clamp(14.5px, 1.087cqw, 17px);
  line-height: 1.45;
  color: #cdd3da;
}

/* Detail Cards Grid */
.yk-page .topic-detail__body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(16px, 1.21cqw, 24px);
  max-width: 1600px;
  margin: 0 auto;
}

.yk-page .topic-detail__card {
  padding: clamp(20px, 1.81cqw, 34px);
  border-radius: clamp(14px, 1.09cqw, 20px);
  background: #2c343a;
}

.yk-page .topic-detail__heading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.09cqw, 18px);
  font-size: clamp(17px, 1.45cqw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.yk-page .topic-detail__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(38px, 3.14cqw, 52px);
  aspect-ratio: 1;
  border-radius: clamp(10px, 0.79cqw, 14px);
  background: linear-gradient(160deg, #d6fbd0, #b9f0ae);
  color: #229a2c;
}

.yk-page .topic-detail__icon svg {
  width: clamp(22px, 1.81cqw, 30px);
  height: clamp(22px, 1.81cqw, 30px);
}

.yk-page .topic-detail__text {
  max-width: 66ch;
  margin-top: 14px;
  font-size: clamp(14.5px, 1.027cqw, 17px);
  line-height: 1.6;
  color: #dbe1e7;
}

.yk-page .topic-detail__intro {
  margin-top: 14px;
  font-size: clamp(14px, 0.936cqw, 16px);
  line-height: 1.6;
  color: #dbe1e7;
}

.yk-page .topic-detail__list {
  list-style: none;
  margin-top: 12px;
}

.yk-page .topic-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 38px;
  padding: 4px 0;
  font-size: clamp(14px, 0.936cqw, 16px);
  line-height: 1.5;
  color: #edf2f6;
}

.yk-page .topic-detail__check {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6edb6b;
  color: #17561c;
  margin-top: 2px;
}

.yk-page .topic-detail__check svg {
  width: 13px;
  height: 13px;
}

/* Topic Detail Responsive Stack */
@container (max-width: 960px) {
  .yk-page .topic-detail {
    padding: clamp(36px, 5cqw, 48px) clamp(16px, 4cqw, 32px) clamp(40px, 6cqw, 56px);
  }

  .yk-page .topic-detail__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 960px) {
  .yk-page .topic-detail {
    padding: clamp(36px, 5vw, 48px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 56px);
  }

  .yk-page .topic-detail__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@container (max-width: 600px) {
  .yk-page .topic-detail__header {
    align-items: flex-start;
    gap: 14px;
  }

  .yk-page .topic-detail__badge {
    width: 44px;
    border-radius: 12px;
    font-size: 24px;
  }

  .yk-page .topic-detail__title {
    font-size: clamp(22px, 6cqw, 28px);
  }

  .yk-page .topic-detail__card {
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .yk-page .topic-detail__header {
    align-items: flex-start;
    gap: 14px;
  }

  .yk-page .topic-detail__badge {
    width: 44px;
    border-radius: 12px;
    font-size: 24px;
  }

  .yk-page .topic-detail__title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .yk-page .topic-detail__card {
    padding: 20px 16px;
  }
}


/* ---------- 5. Idea Banner ---------- */
.yk-page .idea-banner {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #00387a 0%, #003d84 55%, #003e88 100%);
  color: #f4f8fc;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}

/* Overlapping light-blue ambient spheres */
.yk-page .idea-banner::before,
.yk-page .idea-banner::after {
  content: '';
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.yk-page .idea-banner::before {
  bottom: -9.48cqw;
  left: -14.04cqw;
  width: 21.06cqw;
  min-width: 220px;
  background: radial-gradient(circle at 75% 25%, #0d60bd 0%, #0a52aa 45%, #07479a 75%);
}

.yk-page .idea-banner::after {
  bottom: -9.87cqw;
  left: -10.92cqw;
  width: 17.16cqw;
  min-width: 180px;
  background: radial-gradient(circle at 70% 20%, #1b72d2 0%, #0f5fbe 40%, #0a4fa6 75%);
}

/* Banner Content */
.yk-page .idea-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 52%;
  min-height: clamp(380px, 26cqw, 540px);
  padding: clamp(36px, 3cqw, 64px) 20px clamp(36px, 3cqw, 64px) clamp(24px, 6vw, 126px);
  max-width: 1000px;
}

.yk-page .idea-banner__line {
  display: block;
}

.yk-page .idea-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(12px, 0.75cqw, 15px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c6ec7e;
}

.yk-page .idea-banner__eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.yk-page .idea-banner__title {
  margin-top: 14px;
  font-size: clamp(26px, 2.4cqw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.yk-page .idea-banner__title em {
  font-style: normal;
  color: #b7f57c;
}

.yk-page .idea-banner__text {
  margin-top: 12px;
  font-family: 'Albert Sans', sans-serif;
  font-size: clamp(15px, 0.98cqw, 19px);
  font-weight: 500;
  line-height: 1.45;
  color: #b7cfea;
}

/* Banner Visual */
.yk-page .idea-banner__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  max-width: 820px;
}

.yk-page .idea-banner__arc {
  fill: none;
  stroke: #36a372;
  stroke-width: 3;
}

.yk-page .idea-banner__badge {
  fill: #bef577;
}

.yk-page .idea-banner__badge-icon {
  color: #0a5826;
}

/* Idea Banner Responsive (Stack text & artwork below 960px) */
@container (max-width: 960px) {
  .yk-page .idea-banner__content {
    width: 100%;
    min-height: auto;
    padding: clamp(40px, 6cqw, 56px) clamp(16px, 4cqw, 32px) 0;
  }

  .yk-page .idea-banner__line {
    display: inline;
  }

  .yk-page .idea-banner__title {
    font-size: clamp(26px, 5.5cqw, 42px);
    line-height: 1.15;
  }

  .yk-page .idea-banner__text {
    font-size: clamp(15px, 3.8cqw, 17px);
    line-height: 1.55;
  }

  .yk-page .idea-banner__visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 820 / 667;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 960px) {
  .yk-page .idea-banner__content {
    width: 100%;
    min-height: auto;
    padding: clamp(40px, 6vw, 56px) clamp(16px, 4vw, 32px) 0;
  }

  .yk-page .idea-banner__line {
    display: inline;
  }

  .yk-page .idea-banner__title {
    font-size: clamp(26px, 5.5vw, 42px);
    line-height: 1.15;
  }

  .yk-page .idea-banner__text {
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.55;
  }

  .yk-page .idea-banner__visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 820 / 667;
    margin: 0 auto;
    display: block;
  }
}


/* ---------- 6. Join Registration Section ---------- */
.yk-page .join {
  padding: clamp(40px, 6vw, 72px) clamp(14px, 5vw, 64px) clamp(48px, 7vw, 84px);
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 100%);
  width: 100%;
}

.yk-page .join__card {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 24px 60px rgba(15, 40, 80, 0.12),
    0 4px 14px rgba(15, 40, 80, 0.05);
}

/* Photo clipped along bottom-right */
.yk-page .join__photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 49%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  clip-path: url(#join-photo-clip);
}

.yk-page .join__panel {
  position: relative;
  grid-column: 2;
  padding: 38px clamp(24px, 3.5vw, 44px) 32px clamp(28px, 4vw, 48px);
  border-top-left-radius: 36px;
  background: #fff;
}

.yk-page .join__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.yk-page .join__subtitle {
  margin-top: 6px;
  font-size: clamp(14px, 1.2vw, 15.5px);
  color: #5b6b82;
}

/* Form Fields */
.yk-page .join__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.yk-page .join__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yk-page .join__field--full {
  grid-column: 1 / -1;
}

.yk-page .join__label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1f3556;
}

.yk-page .join__required {
  margin-left: 2px;
  color: #d14b4b;
}

.yk-page .join__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fbfcfe;
  font: inherit;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom bug on mobile */
  color: #14243b;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.yk-page .join__input::placeholder {
  color: #8c99ab;
}

.yk-page .join__input:hover {
  border-color: #b9c7d9;
}

.yk-page .join__input:focus {
  outline: none;
  border-color: #0a5cff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.15);
}

.yk-page select.join__input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314243b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

.yk-page .join__input[aria-invalid='true'] {
  border-color: #d14b4b;
  box-shadow: 0 0 0 3px rgba(209, 75, 75, 0.12);
}

.yk-page .join__error {
  font-size: 12.5px;
  font-weight: 600;
  color: #c43c3c;
  line-height: 1.4;
}

.yk-page .join__count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #7a879a;
}

.yk-page .join__count-limit {
  font-weight: 700;
  color: #c43c3c;
}

/* Phone Number: Country code + number side by side */
.yk-page .join__phone {
  display: flex;
  gap: 8px;
}

.yk-page .join__phone .join__input {
  min-width: 0;
  flex: 1;
}

.yk-page select.join__code {
  flex: none;
  width: 96px;
  padding: 0 26px 0 12px;
  background-position: right 8px center;
  background-size: 14px;
}

.yk-page textarea.join__input {
  height: 84px;
  min-height: 84px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

/* File Upload Field */
.yk-page .join__file-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  height: auto;
  padding: 6px 12px;
  cursor: pointer;
  overflow: hidden;
}

.yk-page .join__file-input::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid #c8d4e4;
  border-radius: 8px;
  background: #eef4fc;
  color: #1a3c6e;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.yk-page .join__file-input::file-selector-button:hover {
  background: #dbe8fa;
  border-color: #a8c0e2;
}

.yk-page .join__file-hint {
  font-size: 12.5px;
  color: #7a879a;
  line-height: 1.4;
}

/* Submit Button & Confirmation */
.yk-page .join__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1667ff 0%, #0a55f0 100%);
  box-shadow: 0 10px 22px rgba(10, 85, 240, 0.28);
  font-family: 'Montserrat', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.yk-page .join__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 85, 240, 0.34);
  filter: brightness(1.05);
}

.yk-page .join__submit:active {
  transform: translateY(1px);
}

.yk-page .join__submit:focus-visible {
  outline: 3px solid #9ec0ff;
  outline-offset: 3px;
}

.yk-page .join__submit-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.yk-page .join__success {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #e9f8ec;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1d6b37;
  border: 1px solid #b7e8c2;
}

/* Join Section Responsive (Stacked photo & full-width form on tablets & phones) */
@media (max-width: 1024px) {
  .yk-page .join {
    padding: 48px 20px 64px;
  }

  .yk-page .join__card {
    grid-template-columns: 1fr;
    border-radius: 24px;
    max-width: 760px;
  }

  .yk-page .join__photo {
    position: static;
    width: 100%;
    height: clamp(200px, 34vw, 290px);
    object-position: 45% 40%;
    clip-path: none;
  }

  .yk-page .join__panel {
    grid-column: 1;
    margin-top: -30px;
    padding: 30px clamp(20px, 4vw, 36px) 26px;
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 600px) {
  .yk-page .join {
    padding: 36px 14px 48px;
  }

  .yk-page .join__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .yk-page .join__photo {
    height: 190px;
  }

  .yk-page .join__panel {
    margin-top: -24px;
    padding: 24px 16px 20px;
  }

  .yk-page .join__title {
    font-size: 26px;
  }
}


/* ---------- On the FEED WORLD site (not in the design) ---------- */
/* The site sets its own font on every element (global.css "*"): the page uses the design's */
.yk-page * {
  font-family: inherit;
}
/* The header card sits below the site's fixed navbar and no longer fills the whole screen */
.yk-page .page {
  min-height: 0;
  padding-top: calc(88px + clamp(16px, 4vh, 48px));
}
@media (max-width: 768px) {
  .yk-page .page {
    padding-top: calc(80px + 16px);
  }
}
.yk-page main {
  padding-bottom: clamp(20px, 3vw, 44px);
}
.yk-page #join {
  scroll-margin-top: 96px;
}
/* Every topic's detail is in the page; only the open one shows */
.yk-page .topic-detail[hidden] {
  display: none;
}
/* Form: the field a server check rejected, the message while sending, and when it fails */
.yk-page .join__input[aria-invalid="true"] {
  border-color: #d93025;
}
.yk-page .join__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.yk-page .join__success.is-error {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}
