/* ============================================================
   English with @quinislearning — Daisy Days design system
   Palette: cream canvas, sunny-garden pastels, charcoal outlines,
   hard offset shadows, Fredoka (headlines) + Quicksand (body).
   ============================================================ */

:root {
  --cream: #F5F0E6;
  --turquoise: #7ECDC0;
  --soft-pink: #F7C8D4;
  --butter: #FDE68A;
  --mint: #A8E6CF;
  --lavender: #D4A5E8;
  --peach: #FFCBA4;
  --sky: #A8D8F0;
  --coral: #F8635F;
  --dark: #2D2D2D;
  --muted: #6B6B6B;
  --white: #FFFFFF;

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  --border: 3px solid var(--dark);
  --border-thin: 2px solid var(--dark);
  --shadow: 6px 6px 0 var(--dark);
  --shadow-sm: 4px 4px 0 var(--dark);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, .nav-logo, .badge, .btn, summary {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- decorations ---------- */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* ---------- nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 40px;
  background: var(--cream);
  border-bottom: var(--border);
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: var(--border-thin);
  border-radius: 12px;
  width: 42px;
  height: 38px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--dark);
  align-items: center;
  justify-content: center;
}

.nav-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

.nav-logo {
  font-size: 1.3rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--coral); }

.nav-cta {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--butter);
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  box-shadow: 3px 3px 0 var(--dark);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  color: var(--dark) !important;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--dark);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 90px 60px 110px;
  background: var(--cream);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(1.9rem, 8.5vw, 4.6rem);
  margin: 18px 0 20px;
}

.hero h1 .hl { color: var(--coral); }

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-sub strong { color: var(--dark); }

.hero-avatar {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--dark);
}

.btn-coral { background: var(--coral); color: var(--white); }
.btn-white { background: var(--white); }

.badge {
  display: inline-block;
  padding: 8px 20px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--butter);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.badge-sm {
  padding: 4px 14px;
  font-size: 0.8rem;
  border: var(--border-thin);
  box-shadow: none;
}

/* ---------- sections ---------- */
.section {
  position: relative;
  overflow: hidden;
  padding: 90px 60px;
}

.section-cream { background: var(--cream); }
.section-turquoise { background: var(--turquoise); }
.section-pink { background: var(--soft-pink); }
.section-butter { background: var(--butter); }

.section-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.section-title.on-color {
  color: var(--white);
  text-shadow: 3px 3px 0 var(--dark);
}

.section-title.on-color.soft {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.section-sub {
  position: relative;
  z-index: 2;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 48px;
}

.section-sub.on-color { color: var(--dark); }

.ig-link { font-weight: 700; }

/* ---------- cards ---------- */
.card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* framed header card (colored cap + white body) */
.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 48px auto 0;
}

.framed {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.framed-cap {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  padding: 18px 28px;
  border-bottom: var(--border);
}

.framed-mint .framed-cap { background: var(--mint); }
.framed-pink .framed-cap { background: var(--soft-pink); }
.framed-sky .framed-cap { background: var(--sky); }
.framed-butter .framed-cap { background: var(--butter); }

.framed-body {
  padding: 24px 28px;
  font-weight: 600;
}

/* ---------- classes ---------- */
.class-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.class-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
}

.class-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--dark);
}

.class-card h3 { font-size: 1.5rem; }
.class-card p { font-size: 0.98rem; }

.class-card.featured { border-width: 3px; box-shadow: var(--shadow); }

.cta-card {
  background: var(--butter);
  justify-content: center;
  text-align: left;
  gap: 16px;
}

.circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-coral { background: var(--coral); }
.bg-lavender { background: var(--lavender); }
.bg-peach { background: var(--peach); }
.bg-butter { background: var(--butter); }
.bg-mint-soft { background: var(--mint); }
.bg-sky-soft { background: var(--sky); }
.bg-lavender-soft { background: var(--lavender); }
.bg-peach-soft { background: var(--peach); }

/* ---------- profile ---------- */
.profile-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 48px auto 0;
}

.profile-photo {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-lg);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
  transform: rotate(-2deg);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

.dot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 600;
}

.dot-list li {
  position: relative;
  padding-left: 34px;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: var(--border-thin);
  background: var(--butter);
}

.dot-list li:nth-child(2)::before { background: var(--mint); }
.dot-list li:nth-child(3)::before { background: var(--sky); }
.dot-list li:nth-child(4)::before { background: var(--lavender); }

/* ---------- feedback ---------- */
.feedback-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.quote-card {
  padding: 28px 32px 24px;
  border-radius: var(--radius-lg);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--soft-pink);
  -webkit-text-stroke: 1.5px var(--dark);
  display: block;
  margin-bottom: 12px;
}

.quote-card blockquote {
  font-weight: 600;
  margin-bottom: 18px;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

/* ---------- faq ---------- */
.faq-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 26px;
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 56px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: var(--border-thin);
  border-radius: 50%;
  background: var(--butter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.faq-item[open] summary::after { content: "–"; background: var(--mint); }

.faq-item p {
  padding: 0 26px 20px;
  font-weight: 600;
  color: var(--muted);
}

.resource-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 36px auto 0;
}

.mini-card {
  padding: 26px 30px;
}

.mini-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.mini-card p { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }

.contact-card p {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-card .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 24px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .topnav { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 10;
    gap: 4px;
    margin: 6px 0 2px;
    padding-top: 10px;
    border-top: var(--border-thin);
  }
  .nav-links.open a {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
  }
  .section, .hero { padding-left: 24px; padding-right: 24px; }
  .about-grid, .feedback-grid, .resource-row { grid-template-columns: 1fr; }
  .deco { opacity: 0.6; }
}

@media (max-width: 560px) {
  .class-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; padding-bottom: 70px; }
  .hero-avatar { width: 220px; height: 220px; }
  .deco { opacity: 0.4; }
}

/* ---------- class detail pages ---------- */
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 60px 70px;
}

.bg-detail-mint { background: var(--mint); }
.bg-detail-sky { background: var(--sky); }

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 22px;
  background: var(--white);
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  box-shadow: 3px 3px 0 var(--dark);
  font-size: 0.9rem;
}

.back-link:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--dark); }

.detail-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 18px 0 14px;
  color: var(--white);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.detail-hero p {
  font-weight: 600;
  max-width: 640px;
}

.detail-body {
  background: var(--cream);
  padding: 60px 24px 80px;
}

.detail-section {
  max-width: 860px;
  margin: 0 auto 48px;
}

.detail-section:last-child { margin-bottom: 0; }

.detail-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 18px;
}

.detail-card {
  padding: 28px 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-card > p { font-weight: 600; margin-bottom: 14px; }
.detail-card > p:last-child { margin-bottom: 0; }
.detail-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.info-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.test-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.test-links .btn { font-size: 0.9rem; padding: 10px 20px; }

/* syllabus table */
.table-card { padding: 14px; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

.syllabus {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.syllabus th {
  font-weight: 700;
  background: var(--butter);
  text-align: left;
  padding: 12px 14px;
  border: var(--border-thin);
  white-space: nowrap;
}

.syllabus td {
  padding: 10px 14px;
  border: var(--border-thin);
  vertical-align: top;
  font-weight: 500;
}

.syllabus td:first-child {
  font-weight: 700;
  white-space: nowrap;
  background: var(--cream);
}

.syllabus .row-milestone td { background: var(--soft-pink); }
.syllabus .row-milestone td:first-child { background: var(--soft-pink); }

/* class-card detail link */
.class-card-link {
  text-decoration: none;
  cursor: pointer;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--coral);
}

.card-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .detail-hero { padding: 40px 24px 50px; }
  .info-pair { grid-template-columns: 1fr; }
}

/* swipe hint for syllabus tables on small screens */
.swipe-hint {
  display: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
}

@media (max-width: 768px) {
  .swipe-hint { display: block; }
}

/* ---------- Zalo QR modal ---------- */
.modal-backdrop[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(45, 45, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  position: relative;
  max-width: 360px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-card img {
  width: 100%;
  border: var(--border-thin);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.modal-card p {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--border-thin);
  background: var(--butter);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--dark);
}

.modal-close:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--dark);
}

/* the trigger is a <button>; inherit body font features */
button.btn { cursor: pointer; font-weight: 700; }
