@font-face {
  font-family: "Fredoka Custom";
  src: url("../fonts/fredoka-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka Custom";
  src: url("../fonts/fredoka-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 Custom";
  src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 Custom";
  src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3 Custom";
  src: url("../fonts/source-sans-3-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #fffaf2;
  --surface: #fff;
  --surface-soft: #fff3dd;
  --surface-muted: #eef7fb;
  --text: #203141;
  --muted: #5f7283;
  --line: #d8e6ee;
  --primary: #1f7aa6;
  --primary-deep: #165a7a;
  --secondary: #f2a93b;
  --accent: #e76f51;
  --success: #4e8f5d;
  --shadow: 0 20px 48px rgba(32, 49, 65, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(242, 169, 59, 0.18),
      transparent 20rem
    ),
    radial-gradient(
      circle at left 10% top 14rem,
      rgba(31, 122, 166, 0.12),
      transparent 22rem
    ),
    linear-gradient(180deg, #fffefb 0%, var(--bg) 65%, #fdf8ef 100%);
  color: var(--text);
  font-family: "Source Sans 3 Custom", "Trebuchet MS", sans-serif;
  line-height: 1.65;
}
a {
  color: var(--primary-deep);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
}
.site-shell {
  position: relative;
  overflow-x: clip;
}
.topbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 230, 238, 0.9);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Fredoka Custom", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}
.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #c8cf7a, #62a3c7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 122, 166, 0.18);
}
.brand-mark svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: #fff;
}
.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary-deep);
  background: rgba(31, 122, 166, 0.1);
}
.hero-panel,
.page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(31, 122, 166, 0.95), rgba(17, 62, 84, 0.92)),
    linear-gradient(135deg, #1f7aa6, #f2a93b);
  color: #fff;
  border-radius: 0 0 2rem 2rem;
  overflow: hidden;
}
.hero-panel::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -5rem -3rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.hero-panel::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 2rem -3rem auto auto;
  width: 12rem;
  height: 12rem;
  background: rgba(242, 169, 59, 0.28);
  border-radius: 35% 65% 60% 40%;
}
.hero-panel .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eyebrow svg,
.btn .btn-icon svg,
.meta-chip svg,
.quick-link svg,
.contact-chip svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.hero-panel h1,
.page-hero h1,
.content-block h2,
.content-block h3,
.section-title,
.footer-heading {
  font-family: "Fredoka Custom", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}
.hero-panel h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}
.hero-subtext {
  font-size: 1.1rem;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.stat-card strong {
  display: block;
  font-size: 1.5rem;
}
.btn-soft,
.btn-outline-soft {
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
}
.btn-soft {
  background: #fff;
  border: 1px solid #fff;
  color: var(--primary-deep);
}
.btn-soft:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
}
.btn-outline-soft {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline-soft:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.surface-card,
.worksheet-card,
.sidebar-card,
.preview-card,
.faq-card,
.class-card,
.guide-card,
.policy-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(216, 230, 238, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.section-pad {
  padding: 4.5rem 0;
}
.section-pad-sm {
  padding: 2.75rem 0;
}
.section-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.muted-copy,
.meta-copy,
.content-block p,
.content-list li,
.breadcrumb-item,
.footer-note {
  color: var(--muted);
}
.content-block {
  padding: 1.65rem 1.6rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 230, 238, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.content-block h2 {
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
.content-block h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}
.content-list {
  padding-left: 1.15rem;
  margin-bottom: 1.1rem;
}
.content-list li {
  margin-bottom: 0.55rem;
}
.ordered-list {
  padding-left: 1.3rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-soft);
  color: var(--primary-deep);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}
.breadcrumb-wrap {
  margin: 0 0 1.25rem;
}
.breadcrumb {
  --bs-breadcrumb-divider: ">";
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 230, 238, 0.92);
  border-radius: 999px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}
.quick-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.worksheet-card,
.class-card,
.guide-card,
.preview-card {
  height: 100%;
  overflow: hidden;
}
.worksheet-card .card-body,
.class-card .card-body,
.guide-card .card-body {
  padding: 1.35rem;
}
.thumbnail-frame {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #fff, #eef7fb);
  border-bottom: 1px solid rgba(216, 230, 238, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.thumbnail-frame img {
  max-height: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(32, 49, 65, 0.1);
  box-shadow: 0 12px 26px rgba(32, 49, 65, 0.08);
}
.card-subject {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--primary-deep);
  padding: 0.42rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.ad-slot {
  /* display: grid; */
  display: none;
  place-items: center;
  min-height: 120px;
  border: 2px dashed rgba(31, 122, 166, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75),
    rgba(238, 247, 251, 0.92)
  );
  color: var(--primary-deep);
  text-align: center;
  padding: 1.2rem;
  font-weight: 700;
}
.ad-slot small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 600;
}
.download-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.download-toolbar .btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.15rem;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.preview-card {
  padding: 0.8rem;
}
.preview-card img {
  border-radius: 1rem;
  border: 1px solid rgba(32, 49, 65, 0.12);
}
.preview-caption {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--primary-deep);
}
.sidebar-card {
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li + li {
  margin-top: 0.7rem;
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(238, 247, 251, 0.7);
  color: var(--text);
  font-weight: 600;
}
.link-list a:hover {
  background: rgba(242, 169, 59, 0.12);
}
.search-panel {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 230, 238, 0.95);
}
.filter-input {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23165a7a'%3E%3Cpath d='M10 2a8 8 0 1 0 4.9 14.32l5.39 5.38 1.41-1.41-5.38-5.39A8 8 0 0 0 10 2zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E")
      no-repeat 1rem center/1rem,
    #fff;
}
.filter-empty {
  display: none;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.faq-accordion .accordion-item {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(216, 230, 238, 0.95);
  box-shadow: none;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--text);
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(238, 247, 251, 0.88);
  color: var(--primary-deep);
}
.guide-grid,
.class-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  background: rgba(238, 247, 251, 0.9);
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary-deep);
}
.contact-form label {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
}
.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-wrap {
  margin-top: 5rem;
  background: linear-gradient(
    180deg,
    rgba(26, 51, 68, 0.98),
    rgba(19, 36, 49, 1)
  );
  color: rgba(255, 255, 255, 0.84);
  border-radius: 2rem 2rem 0 0;
}
.footer-wrap a {
  color: rgba(255, 255, 255, 0.86);
}
.footer-wrap a:hover {
  color: #fff4d1;
}
.footer-heading {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li + li {
  margin-top: 0.55rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
}
.mini-note {
  font-size: 0.92rem;
  color: var(--muted);
}
.sitemap-list {
  columns: 2;
  column-gap: 2rem;
}
.sitemap-list li {
  break-inside: avoid;
}
@media (max-width: 991px) {
  .hero-panel,
  .page-hero,
  .footer-wrap {
    border-radius: 0;
  }
  .sitemap-list {
    columns: 1;
  }
}
@media (max-width: 767px) {
  .section-pad {
    padding: 3.25rem 0;
  }
  .content-block,
  .sidebar-card,
  .search-panel {
    padding: 1.15rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-toolbar {
    flex-direction: column;
  }
  .download-toolbar .btn {
    width: 100%;
  }
}
