/* === 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 {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F7FF;
  font-family: 'Roboto', Arial, sans-serif;
  color: #264653;
  font-size: 16px;
  line-height: 1.6;
  word-break: break-word;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: #2A9D8F;
  text-decoration: none;
}
a:focus {
  outline: 3px dashed #2A9D8F;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #264653;
}
h1 {font-size: 2.4rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 16px;}
h3 {font-size: 1.35rem; margin-bottom: 10px;}

p, ul, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

strong {
  font-weight: 700;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === HEADER & NAV === */
header {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(38,70,83,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 29;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 30px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264653;
  font-weight: 500;
  padding: 8px 0;
  font-size: 1rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: #2A9D8F;
  color: #fff;
}
.cta-btn {
  background: #F6C915;
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.10rem;
  padding: 12px 32px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(42,157,143,0.12);
  cursor: pointer;
  transition: background .26s, transform .15s;
  margin-left: 18px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: #2A9D8F;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: #2A9D8F;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 41;
  position: relative;
  margin-left: auto;
  box-shadow: 0 2px 10px 0 rgba(42,157,143,0.15);
  transition: background .20s, box-shadow .2s, transform .18s;
}
.mobile-menu-toggle:active {
  background: #264653;
  transform: scale(0.96);
}

/* === MOBILE NAV OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #264653ed;
  z-index: 40;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.61,0.07,0,2), opacity .25s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  margin: 32px 30px 0 0;
  background: #F6C915;
  color: #264653;
  font-size: 2.1rem;
  font-weight: bold;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 12px 0 rgba(246,201,21,0.13);
  transition: background .18s, color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #2A9D8F;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 60px 0 30px 0;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px 0;
  width: 80%;
  border-radius: 12px;
  text-align: center;
  background: transparent;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2A9D8F;
  color: #fff;
}

@media (max-width: 1050px) {
  header .container nav {display: none;}
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1051px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* === MAIN & LAYOUT SECTIONS === */
main {
  flex: 1 0 auto;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Responsive Section Gaps */
@media (max-width: 600px) {
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 18px;
  }
  h1 {font-size: 1.5rem;}
  h2 {font-size: 1.21rem;}
}

/* === FEATURE GRID === */
.feature-grid, .course-cards, .before-after-grid, .card-container, .testimonial-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.feature-grid { gap: 32px; }
.card-container, .content-grid { gap: 20px; }
.before-after-grid { gap: 30px; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 26px 18px 22px 18px;
  border-radius: 22px;
  box-shadow: 0 2px 18px 0 rgba(42,157,143,0.08);
  width: 232px;
  min-height: 230px;
  position: relative;
  transition: box-shadow .21s, transform .21s;
}
.feature-item img {
  height: 46px;
  margin-bottom: 4px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 28px 0 rgba(42,157,143,0.19);
  transform: translateY(-3px) scale(1.04);
}

@media (max-width: 900px) {
  .feature-grid, .course-cards, .before-after-grid, .card-container, .testimonial-list, .content-grid {
    justify-content: center;
  }
  .feature-item {
    width: 100%;
    max-width: 340px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .course-cards, .before-after-grid, .card-container, .testimonial-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* === COURSE CARDS === */
.course-cards {
  gap: 24px;
  margin-bottom: 16px;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(38,70,83,0.09);
  padding: 26px 20px 20px 24px;
  min-width: 210px;
  max-width: 300px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s, transform .19s;
}
.course-card:hover, .course-card:focus-within {
  box-shadow: 0 6px 28px 0 rgba(246,201,21,0.14);
  transform: translateY(-2px) scale(1.04);
}
.course-card strong {
  color: #2A9D8F;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* === TESTIMONIALS === */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F6C915;
  color: #264653;
  border-radius: 24px;
  padding: 20px 28px;
  box-shadow: 0 4px 28px 0 rgba(246,201,21,0.10);
  transition: box-shadow .16s, transform .16s;
  min-width: 240px;
  max-width: 370px;
  position: relative;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.05rem;
}
.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #264653;
  font-weight: 500;
}
.testimonial-card .stars {
  color: #FF9536;
  font-size: 1.2rem;
  margin-left: 10px;
  letter-spacing: 2px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(246,201,21,0.19);
  transform: translateY(-3px) scale(1.03);
}

/* Dark text on light background for contrast */
.testimonial-card, .testimonial-meta, .testimonial-card p, .testimonial-card .stars {
  color: #264653 !important;
}

@media (max-width: 740px) {
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* === BEFORE-AFTER GRID / SUCCESS METRICS === */
.before-after-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 18px;
}
.before-after-grid > div {
  flex: 1 1 180px;
  background: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(42,157,143,0.07);
}
.success-metrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 14px;
  margin-bottom: 0;
}
.success-metrics li {
  background: #2A9D8F;
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1.04rem;
}

/* === LIST STYLES === */
ul, ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1.5em;
}
ul li:before {
  content: '•';
  color: #F45B69;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.23em;
  top: 0.12em;
}
ul.feature-checklist li:before {
  content: '✓';
  color: #2A9D8F;
  font-weight: bold;
  font-size: 1.23em;
}
ul.feature-checklist {
  margin-bottom: 18px;
}

/* === CONTACT INFO SECTION === */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.04rem;
}
.contact-info img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: middle;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

/* === SECTION FLEX CONTAINERS === */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* === FOOTER === */
footer {
  background: #264653;
  color: #fff;
  padding: 36px 0 0 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 36px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F6C915;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact, .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand {
  align-items: flex-start;
  margin-bottom: 20px;
}
.footer-brand img {
  width: 54px;
  margin-bottom: 6px;
}
footer a {
  color: #F6C915;
  transition: color .16s;
}
footer a:hover, footer a:focus {
  color: #2A9D8F;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 92;
  background: #fff1ca;
  color: #264653;
  box-shadow: 0 -2px 20px 0 rgba(246,201,21,0.06);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 18px 28px 18px 24px;
  justify-content: space-between;
  font-size: 1rem;
  animation: slideUpCookie .32s;
}
@keyframes slideUpCookie {
  from { transform: translateY(70%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 1.03rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 24px;
  padding: 9px 25px;
  border: none;
  transition: background .16s, color .16s, box-shadow .14s;
  background: #2A9D8F;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(42,157,143,0.06);
  margin: 0;
}
.cookie-banner button.cookie-settings {
  background: #F6C915;
  color: #264653;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FF9536;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #2A9D8F;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 97;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,70,83,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .17s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #264653;
  max-width: 380px;
  width: 96vw;
  border-radius: 22px;
  box-shadow: 0 10px 50px 0 rgba(42,157,143,0.23);
  padding: 28px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: slideInModal .22s;
}
@keyframes slideInModal {
  from {transform: translateY(50px) scale(0.94); opacity: 0.2;}
  to {transform: none; opacity: 1;}
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: #2A9D8F;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s;
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus { background: #264653; }
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 1.02rem;
}
.cookie-modal .cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  appearance: none;
  border-radius: 8px;
  width: 36px; height: 20px;
  background: #eee;
  position: relative;
  transition: background .15s;
  outline: none;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked {
  background: #2A9D8F;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:after {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 7px;
  transition: left .13s;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked:after {
  left: 18px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .cookie-actions button {
  padding: 9px 19px;
  font-size: 1.04rem;
}

/* === MICRO-INTERACTIONS & PLAYFUL EFFECTS === */
.cta-btn {
  box-shadow: 0 4px 16px 0 rgba(246,201,21,0.14);
  position: relative;
  overflow: hidden;
}
.cta-btn:after {
  content: '';
  position: absolute;
  left: -80px; top: 0; bottom: 0;
  width: 50px;
  background: rgba(255,255,255,.36);
  transform: skew(20deg);
  pointer-events: none;
  transition: left .6s cubic-bezier(0.5,0,0.7,1);
}
.cta-btn:hover:after { left: 140%; }

/* Animated playful underline on section headings */
h2 {
  position: relative;
  z-index: 1;
}
h2:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: -8px;
  width: 52px; height: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, #2A9D8F, #FF9536 80%);
  opacity: .82;
  z-index: -1;
  animation: headingUnderline .85s cubic-bezier(.24,1.42,.56,.87);
}
@keyframes headingUnderline {
  from { width: 0; opacity: 0;}
  to { width: 52px; opacity: .82;}
}

/* Star animation on testimonial stars */
.stars {
  animation: starsFlash 2.8s infinite alternate ease-in-out;
}
@keyframes starsFlash {
  0% { color: #F6C915; }
  80% { color: #FF9536; }
  100% { color: #F6C915; }
}

/* Playful floating card animation (applied to .course-card, .feature-item) */
.course-card, .feature-item {
  animation: floatUpCard 1.2s cubic-bezier(.24,1.03,.57,.98) backwards;
}
@keyframes floatUpCard {
  from { transform: translateY(28px) scale(.98); opacity: 0.13; }
  to { transform: none; opacity: 1; }
}

/* === FORM ELEMENTS, BUTTONS, INPUTS (if any visible in future) === */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1.6px solid #2A9D8F;
  background: #fff;
  color: #264653;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #F6C915;
  outline: 2px solid #2A9D8F;
}

@media (max-width: 540px) {
  .container {
    padding: 0 5px;
  }
  .course-card, .feature-item {
    min-width: unset;
    max-width: 100%;
    padding: 18px 10px 18px 12px;
  }
}

/* === DYNAMIC RESPONSIVE SPACING & FLEXBOX === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  header .container {
    height: auto;
    padding: 10px 4vw;
  }
  nav {
    gap: 8px;
  }
}

/* === CUSTOM PLAYFUL TYPOGRAPHY EFFECTS === */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.01em;
  line-height: 1.24;
}
h1, h2 {
  color: #264653;
}
h3, h4, h5, h6 {
  color: #2A9D8F;
}

/* Fun font for taglines and playful headings */
.tagline, .fun-heading {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #F45B69;
  font-size: 1.23rem;
  letter-spacing: .02em;
}

/* === DEMO FOR HIDE COOKIE BANNER ON ACCEPT === */
.cookie-banner.hide {
  display: none;
}
.cookie-modal-overlay.hide {
  display: none !important;
}

/* === UTILITIES === */
.d-none { display: none !important; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }

/* === COLOR PALETTE CLASS HELPERS === */
.bg-primary { background: #264653; color: #fff; }
.bg-secondary { background: #2A9D8F; color: #fff; }
.bg-accent { background: #F6C915; color: #264653; }
.text-primary { color: #264653 !important; }
.text-secondary { color: #2A9D8F !important; }
.text-accent { color: #F6C915 !important; }
.text-orange { color: #FF9536 !important; }

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
