/* ---- CSS RESET & NORMALIZE ---- */
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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #F7FAFC;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222b3a;
  background: #F4F8FF;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2D3C54;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #CFCF22;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
blockquote {
  font-style: italic;
  margin: 0 0 8px 0;
  color: #2D3C54;
}
strong {
  font-weight: bold;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 900;
  color: #2D3C54;
  margin-bottom: 16px;
}
h1{ font-size: 2.5rem; margin-bottom: 18px; }
h2{ font-size: 2rem; margin-bottom: 16px; }
h3{ font-size: 1.4rem; margin-bottom: 10px; }
h4{ font-size: 1.1rem; margin-bottom: 8px; }

/* ---- FLEX CONTAINER BASICS ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 10px 0 rgba(45,60,84,0.05);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(207,207,34,0.07);
  padding: 24px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(207,207,34,0.18);
  transform: translateY(-4px) scale(1.02) rotate(-2deg);
}
.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: #fffbea;
  border: 2px solid #CFCF22;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(255,241,70,.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  border-color: #2D3C54;
  box-shadow: 0 4px 24px 0 rgba(207,207,34,0.12);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F8FF;
  padding: 16px 18px;
  border-radius: 18px;
}

/* ---- NAVIGATION & HEADER ---- */
header {
  background: #fff;
  border-bottom: 2px solid #F4F8FF;
  box-shadow: 0 2px 15px 0 rgba(45,60,84,0.06);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header a img {
  height: 52px;
  margin-right: 10px;
  transition: filter 0.2s;
}
header a img:hover {
  filter: brightness(1.18) drop-shadow(0 0 6px #CFCF22);
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
}
nav a {
  border-radius: 15px;
  padding: 7px 13px;
  color: #2D3C54;
  transition: background 0.18s,color 0.18s;
}
nav a:hover, nav a:focus {
  background: #CFCF22;
  color: #2D3C54;
}
.btn-primary {
  font-family: "Montserrat", Arial,sans-serif;
  font-weight: 900;
  font-size: 18px;
  background: #CFCF22;
  color: #2D3C54;
  border: none;
  border-radius: 22px;
  padding: 13px 36px;
  margin-left: 20px;
  box-shadow: 0 2px 12px 0 rgba(207,207,34,0.13);
  cursor: pointer;
  transition: background 0.2s,box-shadow 0.22s, color 0.17s,transform 0.19s;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #fff4a8;
  position: relative;
}
.btn-primary:after {
  content: "";
  position: absolute;
  left: 15px; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F4F8FF;
  transform: translateY(-50%) scale(1);
  z-index: 1;
  opacity: 0.8;
  transition: transform 0.34s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2D3C54;
  color: #fff;
  box-shadow: 0 7px 32px 0 rgba(45,60,84,0.18);
  transform: scale(1.045) rotate(-1.5deg);
}
.btn-primary:hover:after {
  transform: translateY(-50%) scale(1.35);
  background: #CFCF22;
}

/* ---- BURGER MOBILE MENU ---- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 28px;
  width: 54px;
  height: 54px;
  z-index: 105;
  background: #CFCF22;
  border: none;
  border-radius: 18px;
  font-size: 2.12rem;
  color: #2D3C54;
  box-shadow: 0 1px 8px 0 rgba(207,207,34,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu-toggle:hover {
  background: #2D3C54;
  color: #fff;
  transform: scale(1.09) rotate(-6deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: #F4F8FF;
  z-index: 110;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.35s cubic-bezier(0.61, 1, 0.88, 1) 0.01s, opacity 0.23s;
  transform: translateX(104%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  margin: 20px 0 12px 22px;
  font-size: 2.11rem;
  background: transparent;
  border: none;
  color: #2D3C54;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.18s, transform 0.24s;
}
.mobile-menu-close:hover { color: #CFCF22; transform: scale(1.13); }
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  padding: 16px 10px;
  border-radius: 11px;
  color: #2D3C54;
  transition: background 0.23s, color 0.25s;
  background: #F4F8FF;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #CFCF22;
  color: #2D3C54;
}

@media(max-width: 1000px){
  header .container {
    gap: 14px;
  }
  nav {
    gap: 10px;
    font-size: 15px;
  }
  .btn-primary {
    padding: 11px 28px;
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 8px 10px;
    gap: 2px;
  }
  nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
    padding: 10px 12px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---- HERO & SECTIONS GENERAL ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: #FFF;
  box-shadow: 0 4px 20px 0 rgba(45,60,84,0.04);
  transition: box-shadow 0.22s;
}
section:hover {
  box-shadow: 0 10px 40px 0 rgba(207,207,34,0.11);
}

/* Playful bouncing fade on big headings */
h1, h2 {
  animation: playful-pop 0.85s cubic-bezier(0.33, 1.6, 0.45, 1) both;
}
@keyframes playful-pop {
  0% {transform: scale(0.87) translateY(16px);opacity:0;}
  60% {transform: scale(1.04) translateY(-6px); opacity:1;}
  100% {transform: scale(1) translateY(0); opacity:1;}
}

/* ---- KEY FLEX LAYOUTS FOR CARDS & GRIDS ---- */
.feature-grid, .service-list, .course-grid, .blog-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-list > div, .course-grid > div, .blog-posts-grid > div {
  flex: 1 1 280px;
  background: #F4F8FF;
  border-radius: 24px;
  padding: 18px 20px 18px 20px;
  box-shadow: 0 2px 10px rgba(207,207,34,0.05);
  margin-bottom: 20px;
  text-align: center;
  transition: box-shadow 0.22s, transform 0.21s;
}
.feature-grid > div:hover, .service-list > div:hover, .course-grid > div:hover, .blog-posts-grid > div:hover {
  box-shadow: 0 6px 32px 0 rgba(45,60,84,0.11);
  transform: translateY(-4px) scale(1.03) rotate(1.5deg);
}
.feature-grid img, .service-list img, .course-grid img {
  height: 52px;
  margin-bottom: 8px;
  animation: swing-anim 1.1s cubic-bezier(.37,1.88,.54,.82) 0.12s; 
}
@keyframes swing-anim {
  0%{transform: perspective(90px) rotateY(15deg) scale(0.88); opacity:0.6;}
  45%{transform: perspective(190px) rotateY(-32deg) scale(1.11); opacity:1;}
  100%{transform: perspective(90px) rotateY(0deg) scale(1); opacity:1;}
}


/* ---- CTA SECTION ---- */
section .btn-primary {
  margin-top: 10px;
  align-self: flex-start;
}

/* ---- FOOTER ---- */
footer {
  background: #2D3C54;
  color: #fff;
  font-size: 15px;
  padding: 32px 0 0 0;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #CFCF22;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.19s, color 0.18s;
}
.footer-nav a:hover { background: #CFCF22; color: #2D3C54 !important; }
.brand-info {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.brand-info img {
  height: 40px;
}
.brand-info p {
  font-family: 'Roboto', sans-serif;
  color: #fff;
}
.contact-summary {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-summary img {
  height: 20px; width: 20px; vertical-align: middle;
  margin-right: 4px;
}
.social-links {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbea;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.22s, transform 0.18s;
}
.social-links a:hover { background: #CFCF22; transform: scale(1.15) rotate(-13deg); }
.social-links img {
  width: 20px;
}
.copyright {
  width: 100%;
  margin: 38px 0 0 0;
  font-family: 'Roboto', Arial;
  letter-spacing: 0.05em;
  color: #CFCF22;
  font-size: 0.93em;
  padding-bottom: 18px;
  text-align: center;
}

@media (max-width: 900px){
  footer .container { flex-direction: column; align-items: stretch; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 700px) {
  section { padding: 25px 7px; }
  .testimonials-card { padding: 12px; }
  .copyright { font-size: 0.91em; padding-bottom: 10px; }
}

@media (max-width: 480px){
  .footer-nav { flex-direction: column; gap: 10px; }
  .brand-info { align-items: stretch; }
  .contact-summary { font-size: 14px; }
}

/* ---- SPECIFIC COMPONENTS / OTHER LAYOUTS ---- */
.newsletter-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: #eaf4be;
  border-radius: 16px;
  font-size: 1.1em;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border-radius: 18px;
  background: #fefedf;
  margin-bottom: 30px;
  font-size: 1.09em;
}
.map-embed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  background: #F4F8FF;
  border-radius: 15px;
}

/* ------------------ RESPONSIVE FLEX LAYOUTS ----------------- */
@media (max-width: 1020px) {
  .feature-grid, .service-list, .course-grid, .blog-posts-grid, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 880px){
  .feature-grid, .service-list, .course-grid, .blog-posts-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  section {
    margin-bottom: 38px;
    padding: 20px 6px;
    border-radius: 19px;
  }
  .card {
    border-radius: 14px;
    padding: 14px;
  }
  .testimonial-card { border-radius: 12px; padding: 12px; }
}
@media (max-width: 480px) {
  .content-wrapper { gap: 9px; }
  .newsletter-info, .contact-info-block, .map-embed { padding: 9px 4px; font-size: 0.97em; }
}

/* ---- MICROMOTIONS / INTERACTIONS ---- */
.card, .testimonial-card, .feature-grid > div,
.service-list > div, .course-grid > div, .blog-posts-grid > div {
  transition: box-shadow 0.20s, transform 0.18s;
}
.card:active, .testimonial-card:active, .feature-grid > div:active,
.service-list > div:active, .course-grid > div:active, .blog-posts-grid > div:active {
  transform: scale(0.98) rotate(-1deg);
}

/* ---- PLAYFUL FONTS & EFFECTS ---- */
/* Display font for headings, subtle dynamic feel for playful-dynamic */
h1, h2, h3, h4 {
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0.017em;
  text-shadow: 0 3px 18px rgba(207,207,34,0.07), 0 1px 0 #fff;
}
blockquote {
  background: #ffe4fa;
  color: #2D3C54;
  padding: 12px 22px;
  border-left: 5px solid #CFCF22;
  border-radius: 11px;
  font-size: 1.15em;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px 0 rgba(45,60,84,0.04);
}

/* Fun, energetic highlight */
mark {
  background: #FFF38D;
  color: #2D3C54;
  border-radius: 5px;
  padding: 0 5px;
}

/* ---- TYPOGRAPHY SCALE ---- */
p, li, ul, ol, address {
  font-size: 1em;
  line-height: 1.58;
  color: #302e3d;
  font-family: 'Roboto', Arial, sans-serif;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.12rem; }

@media (max-width: 700px){
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.02rem; }
}

/* ---- ACCENT COLORS, BADGES, ETC ---- */
.badge, .accent {
  background: #CFCF22;
  color: #2D3C54;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 3px 8px;
  display: inline-block;
  letter-spacing: 0.03em;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2D3C54;
  color: #fff;
  padding: 19px 14px;
  z-index: 250;
  box-shadow: 0 -2px 24px 0 rgba(45,60,84,0.09), 0 3px 20px 0 rgba(207,207,34,0.03);
  gap: 20px;
  font-size: 1.09em;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: cookie-slide-up 0.85s cubic-bezier(.37,1.55,.63,1.19);
}
@keyframes cookie-slide-up {
  0%{transform: translateY(151px); opacity:0;}
  80%{transform: translateY(-14px); opacity:1;}
  100%{transform: translateY(0); opacity:1;}
}
.cookie-consent-banner p {
  margin: 0;
  color: #fff;
  font-size: 1em;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 18px;
  margin-right: 8px;
  background: #CFCF22;
  color: #2D3C54;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.16s, color 0.17s, transform 0.17s;
  box-shadow: 0 2px 10px rgba(207,207,34,0.16);
}
.cookie-consent-banner .cookie-btn:not(:last-child) {
  margin-right: 7px;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  background: #2D3C54;
  color: #CFCF22;
  transform: scale(1.04) rotate(-3deg);
}
@media (max-width: 600px){
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.99em;
    padding: 10px 6px;
  }
  .cookie-consent-banner .cookie-btn { margin: 0 5px 4px 0; padding: 7px 14px; font-size: 0.93em; }
}

/* ---- COOKIE MODAL ---- */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(45, 60, 84, 0.78);
  justify-content: center;
  align-items: center;
  animation: cookie-modal-fade-in 0.38s cubic-bezier(.71,-0.02,.61,.99);
}
@keyframes cookie-modal-fade-in {
  0%{opacity:0;}
  100%{opacity:1;}
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  color: #2D3C54;
  border-radius: 22px;
  padding: 36px 30px 23px 30px;
  min-width: 320px;
  max-width: 98vw;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  box-shadow: 0 8px 40px rgba(207,207,34,0.23);
  animation: pop-in-cookie 0.42s cubic-bezier(.37,1.6,.61,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes pop-in-cookie {
  0%{transform: scale(0.65) translateY(70px); opacity:0;}
  80%{transform: scale(1.07) translateY(-8px); opacity:1;}
  100%{transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.37em;
  margin-bottom: 10px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: #2D3C54;
  cursor: pointer;
  transition: color 0.13s, transform 0.15s;
}
.cookie-modal-content .close-modal:hover {
  color: #CFCF22;
  transform: scale(1.13) rotate(11deg);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  margin-bottom: 7px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-right: 4px;
}
.cookie-category input[type='checkbox'], .cookie-category input[type='radio'] {
  accent-color: #CFCF22;
  transform: scale(1.2);
  margin-right: 2px;
}
.cookie-category .cookie-info {
  font-size: 0.95em;
  opacity: 0.78;
  font-weight: 400;
  margin-left: 4px;
}

.cookie-modal-content .modal-btns {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-modal-content .cookie-btn {
  background: #CFCF22;
  color: #2D3C54;
  border: none;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1em;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.16s, color 0.17s, transform 0.17s;
}
.cookie-modal-content .cookie-btn:hover, .cookie-modal-content .cookie-btn:focus {
  background: #2D3C54;
  color: #CFCF22;
}

/* ---- FORMS & INPUTS (where relevant) ---- */
input, textarea {
  border: 2px solid #CFCF22;
  border-radius: 11px;
  font-size: 1.06em;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7f9ff;
  transition: border-color 0.19s;
  outline: none; 
}
input:focus, textarea:focus {
  border-color: #2D3C54;
}

/* ---- ACCESSIBILITY & FOCUS STYLES ---- */
a:focus, .btn-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #CFCF22;
  outline-offset: 2px;
}

/* ---- UTILITY CLASSES ---- */
.mt-24{margin-top:24px;}
.mb-16{margin-bottom:16px;}
.mb-32{margin-bottom:32px;}
.mw-640{max-width:640px;}

/* ---- PRINT STYLES ---- */
@media print {
  * { background: none !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-consent-banner, #cookie-modal { display: none !important; }
  section { box-shadow: none !important; }
}
