:root {
  --sky: #48b8ff;
  --sky-soft: #dff4ff;
  --blue: #0e63d8;
  --blue-deep: #1232a1;
  --purple: #5b33bf;
  --purple-deep: #371a86;
  --yellow: #ffd11a;
  --yellow-deep: #f4a300;
  --pink: #ff5b87;
  --pink-deep: #db3e69;
  --green: #20be66;
  --green-soft: #d7f8e5;
  --white: #ffffff;
  --ink: #1b2850;
  --shadow: 0 14px 35px rgba(27, 40, 80, 0.14);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --section-space: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fef8b4 0, transparent 18%),
    radial-gradient(circle at top right, #c6f0ff 0, transparent 20%),
    linear-gradient(180deg, #78cdfd 0%, #bde9ff 12%, #f7fcff 44%, #fffef8 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand-title {
  font-family: 'Baloo 2', cursive;
  letter-spacing: .2px;
}

a {
  text-decoration: none;
}

.iea-navbar,
.navbar {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(18, 50, 161, 0.08);
  border-bottom: 1px solid rgba(255,255,255,.6);
}

.iea-brand,
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: .65rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(91, 51, 191, 0.08);
  color: var(--purple);
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(2px);
}

.hero::before {
  width: 360px;
  height: 360px;
  background: rgba(255, 209, 26, 0.28);
  top: -120px;
  right: -90px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: rgba(255, 91, 135, 0.18);
  bottom: -100px;
  left: -80px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--blue-deep);
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 2px solid rgba(72, 184, 255, .18);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: .95;
  color: var(--blue-deep);
  margin: 1rem 0;
  text-shadow: 0 3px 0 rgba(255,255,255,.45);
}

.title-chip {
  display: inline-block;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--blue-deep);
  padding: .15em .45em;
  border-radius: 22px;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.32);
}

.hero-subtitle {
  max-width: 650px;
  font-size: 1.15rem;
  color: #27406f;
}

.btn-playful {
  border: none;
  border-radius: 999px;
  font-weight: 800;
  padding: .95rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-playful:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(27, 40, 80, 0.18);
}

.btn-primary-kids {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--blue-deep);
}

.btn-primary-kids:hover {
  color: var(--blue-deep);
}

.btn-secondary-kids {
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
}

.btn-secondary-kids:hover {
  color: #fff;
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border-radius: 36px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
  border: 4px solid #fff;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  background: rgba(255, 91, 135, 0.14);
  border-radius: 50%;
  z-index: 0;
}

.hero-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  color: var(--blue-deep);
}

.tag-1 { top: 18px; left: 18px; }
.tag-2 { right: 18px; bottom: 20px; }

.section-wrap {
  padding: var(--section-space) 0;
  position: relative;
}

.section-tint-blue {
  background: linear-gradient(180deg, rgba(223,244,255,.55) 0%, rgba(255,255,255,.65) 100%);
}

.section-tint-yellow {
  background: linear-gradient(180deg, rgba(255,245,202,.6) 0%, rgba(255,255,255,.88) 100%);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--blue-deep);
  margin-bottom: .6rem;
}

.section-subtitle {
  color: #425a84;
  max-width: 760px;
  margin: 0 auto;
}

.panel,
.module-card,
.feature-card,
.activity-card,
.plugin-card,
.rubric-card,
.reference-card,
.footer-panel {
  background: rgba(255,255,255,.94);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,.88);
}

.panel {
  padding: 2rem;
}

.speech-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, var(--green) 0%, #11a452 100%);
  color: #fff;
  border-radius: 22px;
  padding: .5rem 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.speech-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 24px;
  width: 18px;
  height: 18px;
  background: #149e50;
  transform: rotate(45deg);
  border-radius: 4px;
}

.module-card {
  height: 100%;
  padding: 2rem 1.6rem;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  top: -45px;
  right: -35px;
  opacity: .13;
}

.module-card.module-1::before { background: var(--yellow-deep); }
.module-card.module-2::before { background: var(--blue); }
.module-card.module-3::before { background: var(--pink); }

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.badge-yellow { background: rgba(255, 209, 26, .2); color: #915f00; }
.badge-blue { background: rgba(14, 99, 216, .12); color: var(--blue-deep); }
.badge-pink { background: rgba(255, 91, 135, .14); color: var(--pink-deep); }

.icon-bubble {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.bubble-yellow { background: linear-gradient(180deg, #ffe56d 0%, #ffc93a 100%); }
.bubble-blue { background: linear-gradient(180deg, #87d6ff 0%, #4aa7ff 100%); }
.bubble-pink { background: linear-gradient(180deg, #ff9fbc 0%, #ff5b87 100%); }
.bubble-green { background: linear-gradient(180deg, #80e8af 0%, #20be66 100%); }
.bubble-purple { background: linear-gradient(180deg, #8d68f1 0%, #5b33bf 100%); color: white; }

.feature-card,
.activity-card,
.plugin-card,
.reference-card {
  height: 100%;
  padding: 1.5rem;
}

.feature-card ul,
.module-card ul,
.plugin-card ul,
.reference-card ul,
.content-entry ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.feature-card li,
.module-card li,
.plugin-card li,
.reference-card li,
.content-entry li {
  margin-bottom: .6rem;
}

.activity-card {
  text-align: left;
  transition: transform .2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
}

.activity-label {
  display: inline-block;
  background: var(--sky-soft);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.rubric-card {
  padding: 2rem;
}

.table-playful {
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(18, 50, 161, .12);
  overflow: hidden;
  border-radius: 22px;
  margin-top: 1rem;
}

.table-playful thead th {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border: none;
  padding: 1rem;
  font-weight: 800;
}

.table-playful tbody td {
  background: rgba(255,255,255,.86);
  padding: 1rem;
  font-weight: 600;
}

.table-playful tbody tr:nth-child(odd) td {
  background: rgba(223, 244, 255, .72);
}

.cta-panel {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 2.2rem;
  border-radius: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,.09);
  border-radius: 50%;
}

.footer-panel {
  padding: 2rem;
  text-align: center;
}

.footer-logo {
  width: 72px;
  height: 72px;
}

.footer-mini {
  color: #51698f;
  font-size: .96rem;
}

.footer-widget {
  margin-top: 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.pill {
  background: #fff;
  color: var(--purple);
  border: 2px solid rgba(91, 51, 191, .12);
  border-radius: 999px;
  font-weight: 800;
  padding: .5rem .9rem;
  box-shadow: 0 8px 18px rgba(27, 40, 80, .08);
}

.menu-anchor {
  position: relative;
  top: -85px;
}

.content-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.content-entry table {
  width: 100%;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 105px;
  }

  .hero-card {
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .panel,
  .rubric-card,
  .footer-panel,
  .cta-panel {
    padding: 1.4rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .brand-title {
    max-width: 180px;
    white-space: normal;
    line-height: 1;
  }

  .tag-1,
  .tag-2 {
    font-size: .82rem;
  }
}
.author-info {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.author-info p {
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
  color: #51698f;
  font-weight: 700;
}

.iea-footer {
  margin-top: 2rem;
}