/* RESET & BASELINE ---------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #273444;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  background-color: #F9FAFB;
}

*, *:before, *:after {
  box-sizing: inherit;
}

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

a {
  color: #273444;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7C948;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

strong {
  font-weight: 700;
}

/* TYPOGRAPHY ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  color: #273444;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  line-height: 1.12;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #3A4563;
  line-height: 1.7;
}

blockquote {
  font-style: italic;
  color: #1D2942;
  margin: 0 0 12px 0;
  border-left: 6px solid #F7C948;
  padding-left: 18px;
  background: #F9F6E5;
  border-radius: 10px;
}

/* ARTISTIC FONTS ----------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,700,400|Open+Sans:400,600,700&display=swap');

/* LAYOUT CONTAINERS ---------------------- */
.container {
  max-width: 1160px;
  width: 100%;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(39, 52, 68, 0.04);
}

/* FLEX UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 330px;
  background: #FFFDEE;
  border-radius: 18px;
  box-shadow: 0px 2px 12px 0 #F7C94822;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 2.5px solid #F7C948;
  transition: transform 0.19s, box-shadow 0.19s;
}
.card:hover, .card:focus-within {
  transform: translateY(-7px) scale(1.025) rotate(-1.2deg);
  box-shadow: 0px 8px 30px 0 #E9BE13AA;
  border-color: #273444;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffdfa;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 #F7C94822;
  margin-bottom: 20px;
  border: 2px dashed #F7C948;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 #ddba14aa;
  transform: scale(1.012) rotate(0.7deg);
}
.testimonial-card strong {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #273444;
  letter-spacing: 0.03em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MAIN NAVIGATION --------------------- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px 20px;
  background: #FFFBE9;
  box-shadow: 0 5px 18px -9px #c4c4c430;
  border-radius: 0 0 32px 32px;
  position: relative;
}
.main-nav img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #273444;
  padding: 7px 11px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #F7C948;
  color: #273444;
}
.main-nav .cta-primary {
  margin-left: 24px;
}

/* BUTTONS ----------------------------- */
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 13px 32px;
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #F7C94844;
  letter-spacing: 0.07em;
}
.cta-primary {
  background: #F7C948;
  color: #273444;
  border: 2px solid #F7C948;
}
.cta-primary:hover, .cta-primary:focus {
  background: #FFE68F;
  color: #273444;
  box-shadow: 0 8px 18px #F7C94877;
  outline: none;
}
.cta-secondary {
  background: #273444;
  color: #fff;
  border: 2px solid #273444;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #F7C948;
  color: #273444;
  box-shadow: 0 8px 18px #F7C94855;
  outline: none;
}

button,
button[type="button"],
button[type="submit"] {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  appearance: none;
}

/* FOOTER ----------------------------- */
footer {
  background: #273444;
  color: #fff;
  padding: 38px 0 22px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
}
footer .footer-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
footer .footer-nav a {
  color: #F7C948;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.18s, text-decoration 0.18s;
  text-decoration: underline dashed transparent 2.5px;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: #fff;
  text-decoration: underline dashed #ffe68f 2.5px;
}
footer p {
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.05em;
  color: #FFF7D5;
  margin-bottom: 0;
}

/* ARTISTIC/CREATIVE TOUCHES ------------ */
/* Section headers underline */
h2 {
  position: relative;
  padding-bottom: 9px;
}
h2:after {
  content: '';
  display: block;
  width: 66px;
  height: 5px;
  border-radius: 8px;
  background: #F7C948;
  margin-top: 6px;
  margin-left: 0;
  opacity: 0.74;
}
/* Unique accent for certain links/copy */
.section ul li::marker {
  color: #F7C948;
  font-size: 1.2em;
}

/* Responsive Images */
.container img, .content-wrapper img {
  max-width: 280px;
  height: auto;
}

/* Micro-interactions for hover cards */
.card .cta-primary, .card .cta-secondary {
  margin-top: 16px;
}

/* Alerts & Artistic elements */
.alert, .note {
  background: #FFE68F;
  color: #1D2942;
  border-left: 6px solid #F7C948;
  border-radius: 8px;
  padding: 19px 22px;
  font-size: 1.03rem;
}

/* SECTION SPACING (MANDATORY) --------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 22px -9px #F7C94833;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* *** MOBILE NAVIGATION (BURGER MENU) *** */
.mobile-menu-toggle {
  display: none;
  background: #F7C948;
  color: #273444;
  font-size: 2.2rem;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  position: absolute;
  right: 18px;
  top: 20px;
  cursor: pointer;
  z-index: 9800;
  box-shadow: 0 2px 12px #F7C94844;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid #ffd84cBB;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 94vw;
  max-width: 340px;
  background: #fffbe8;
  box-shadow: -3px 0 33px #f7c948aa;
  z-index: 9999;
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(.59,.43,.25,1.09);
  padding: 28px 28px 0 24px;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.33s cubic-bezier(.7,1.25,.43,1.01);
}
.mobile-menu-close {
  background: #F7C948;
  color: #273444;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #F7C94844;
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  outline: 2px solid #ffd84cBB;
  background: #ffe68f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #273444;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1.5px dashed #F7C94844;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F7C948;
  background: #fff3b7;
  border-radius: 6px;
}

/* Hide desktop menu on mobile, show mobile menu button */
@media (max-width: 1024px) {
  .main-nav ul, .main-nav .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    padding-right: 60px;
  }
}
/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* Disable body scroll when mobile menu is open (toggle this class via JS) */
body.mobile-menu-open {
  overflow: hidden;
}

/* HERO & CREATIVE SECTIONS ------------ */
main section:first-child {
  background: linear-gradient(103deg, #fffbe9 0%, #FFF6B8 96%) !important;
  box-shadow: 0 2px 24px -9px #F7C94828;
  position: relative;
  overflow: hidden;
}

main section:first-child:before {
  content: '';
  display: block;
  position: absolute;
  width: 180px; height: 180px;
  right: -46px; top: -60px;
  background: #F7C948;
  opacity: 0.15;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
}

main section:first-child .content-wrapper {
  position: relative;
  z-index: 5;
}

/* COURSE/LISTING STYLES ---------------- */
ul {
  margin-bottom: 24px;
}

.section ul {
  list-style: disc outside;
  font-size: 1.06rem;
  font-family: 'Open Sans', sans-serif;
  color: #273444;
  line-height: 1.65;
  margin-bottom: 0.8em;
  gap: 8px;
}
.section ul li {
  margin-bottom: 10px;
  padding-left: 2px;
}

.section ol {
  margin-bottom: 0.9em;
}
.section ol li {
  margin-bottom: 8px;
  font-size: 1.03rem;
  padding-left: 2px;
}

/* TESTIMONIALS ------------------------ */
.testimonial-card blockquote {
  color: #273444;
  font-size: 1.08rem;
  background: #fff;
  border-left: 6px solid #F7C948;
  margin-bottom: 14px;
  border-radius: 8px;
  padding-left: 14px;
  margin-right:0;
}
.testimonial-card div {
  color: #273444;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFE68F;
  border-radius: 7px;
  padding: 4px 10px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 4px #f7c94824;
}
.testimonial-card p {
  margin: 0 0 0.5em 0;
  font-size: 0.99rem;
}

.testimonial-card:last-child {
  margin-bottom: 0;
}

/* Cookie Consent Banner --------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #273444dd;
  color: #fff;
  padding: 26px 20px 20px 20px;
  z-index: 13000;
  box-shadow: 0 -2px 16px #F7C94822;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  font-size: 1.05rem;
  animation: popin-cookie .5s cubic-bezier(.5,.1,.6,1.4);
}
@keyframes popin-cookie {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 33px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.15s, box-shadow 0.14s;
  border: 2px solid #F7C948;
  background: #F7C948;
  color: #273444;
  box-shadow: 0 2px 8px #f7c94825;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFE68F;
  color: #1D2942;
}
.cookie-settings-btn {
  background: transparent;
  color: #F7C948;
  border: 2px solid #F7C948;
  font-weight: 700;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F7C948;
  color: #273444;
}

/* Cookie Modal Styles*/
#cookie-modal-overlay {
  position: fixed;
  z-index: 16000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,52,68,0.48);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInCookieOverlay 0.23s cubic-bezier(.49,.69,.5,1.2);
}
@keyframes fadeInCookieOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: #fff;
  color: #273444;
  border-radius: 24px;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  min-height: 120px;
  max-width: 98vw;
  max-height: 95vh;
  box-shadow: 0 9px 44px #F7C94833;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popin-cookie-modal 0.32s cubic-bezier(.49,.69,.6,1.19);
}
@keyframes popin-cookie-modal {
  from { transform: translateY(15%) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-modal h2 {
  font-size: 1.2rem;
  color: #273444;
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-size: 1.05rem;
}
.cookie-toggle {
  width: 48px; height: 26px;
  border-radius: 99px;
  background: #eee;
  position: relative;
  outline: none;
  border: 2px solid #F7C948;
  transition: background 0.18s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: #F7C948;
  border-radius: 67px;
  transition: transform 0.14s, background 0.14s;
}
.cookie-toggle input:checked + .slider {
  transform: translateX(22px);
  background: #273444;
}
.cookie-modal-close {
  background: #F7C948;
  color: #273444;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.35rem;
  border: none;
  position: absolute;
  right: 16px; top: 13px;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

/* RESPONSIVE STYLES -------------------- */
@media (max-width: 960px) {
  .container {
    padding: 0 9px;
  }
  .main-nav {
    flex-direction: row;
    padding: 13px 9px 11px 9px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .card-container {
    gap: 14px;
  }
  .card {
    padding: 13px 8px;
  }
  .testimonial-card {
    padding: 13px 7px;
    gap: 13px;
  }
  .footer-nav {
    gap: 11px;
    font-size: 0.98rem;
    flex-wrap: wrap;
  }
  footer {
    padding: 24px 0 11px 0;
  }
  .mobile-menu-toggle {
    padding: 2px 8px;
    font-size: 1.8rem;
    top: 10px;
    right: 8px;
  }
}
@media (max-width: 620px) {
  .container {
    padding: 0 1vw;
  }
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* For text-image-section enforce column on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Artistic elements for h1 underline (hero) */
main section:first-child h1 {
  position: relative;
  z-index: 2;
}
main section:first-child h1:after {
  content: '';
  display: block;
  width: 100px;
  height: 7px;
  border-radius: 16px;
  background: #F7C948;
  opacity: .55;
  margin-top: 9px;
  margin-left: 0;
}

/* SCROLLBAR ARTISTIC */
::-webkit-scrollbar {
  width: 9px;
  background: #FFFDEE;
}
::-webkit-scrollbar-thumb {
  background: #F7C948;
  border-radius: 9px;
}

/* Custom focus outlines for accessibility */
:focus-visible {
  outline: 2.5px dashed #F7C948;
  outline-offset: 3px;
}

/* Accordian-Like FAQ pattern (if needed for term/faq) */
.faq-question { font-weight: 700; cursor: pointer; }
.faq-answer { display: none; }

/* Prevent unsafe text overflow */
 .testimonial-card, .card, .section, .container, .content-wrapper {
  word-break: break-word;
 }
 
/* Hide non-essential scroll & micro-interactions for appearance */
html { scroll-behavior: smooth; }

/* Add color-accent background stripes for adults/creative feel */
body:before {
  content: '';
  z-index: 0;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  background: repeating-linear-gradient(
    105deg,#fff 0 3vw,#FFF6B8 3vw 12vw,#fff 12vw 16vw
  );
  opacity: 0.17;
}

/* END OF CSS */
