/* ===================================================
   CSS RESET & NORMALIZE (Soft Reset for Consistency)
=================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F8FAFB;
  color: #17305E;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}

/* ============================================
   VARIABLES & BRAND COLORS (with fallbacks)
============================================ */
:root {
  --primary: #17305E;
  --secondary: #68B6E3;
  --accent: #F6BB42;
  --pastel-blue: #e0effc;
  --pastel-lavender: #e4e7fa;
  --pastel-mint: #d3f9ee;
  --pastel-rose: #ffe5ec;
  --pastel-yellow: #fff6dc;
  --bg-section: #F8FAFB;
  --bg-footer: #E4E7FA;
  --border-card: #e1e6f2;
  --shadow-card: 0 4px 24px 0 rgba(104, 182, 227, 0.11);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ====================================
   TYPOGRAPHY SCALE
==================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 16px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
}
p, ul, li, a, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
strong, b {
  color: var(--secondary);
}

/* ========================================
   LAYOUT HELPERS (Container, Section, etc)
======================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 36px;
  box-shadow: 0 2px 24px 0 rgba(54, 73, 106, 0.05);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================
   HEADER & NAVIGATION
============================================ */
header {
  width: 100%;
  background: linear-gradient(90deg, #e0effc 0%, #ffe5ec 100%);
  box-shadow: 0 6px 16px 0 rgba(104,182,227, 0.07);
  position: sticky;
  top: 0; 
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 0;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-blue);
  color: var(--secondary);
}
.main-nav .btn-primary {
  margin-left: 8px;
}

/* BURGER MENU (Mobile only) */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: white;
  font-size: 2rem;
  padding: 4px 14px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 14px 0 rgba(104,182,227,0.16);
  transition: background 0.18s;
  z-index: 1001;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ==============================
   MOBILE MENU
============================== */
.mobile-menu {
  display: none; /* Will be turned on by .open class via JS */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(130deg, #e0effc 30%, #ffe5ec 100%);
  z-index: 1100;
  overflow-y: auto;
  transition: transform 0.38s cubic-bezier(.5,.09,.14,1.02);
  transform: translateX(100vw);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 2.2rem;
  border: none;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 2px 12px 0 rgba(173,180,219,0.13);
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: white;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 120px 34px 34px 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1.4;
  padding: 8px 2px;
  border-radius: 12px;
  width: 100%;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-mint);
  color: var(--secondary);
}

/* ====================================
   BUTTONS & LINKS
==================================== */
.btn-primary, .main-nav .btn-primary, .content-wrapper .btn-primary, .cta .btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  background: linear-gradient(90deg, #68B6E3 0%, #FFD6DF 100%);
  color: var(--primary);
  padding: 14px 34px;
  border-radius: 34px;
  font-size: 1.08rem;
  margin-top: 14px;
  box-shadow: 0 2px 20px 0 rgba(246,187,66,0.08);
  border: none;
  transition: background 0.19s, color 0.17s, transform 0.12s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #F6BB42 5%, #FFD6DF 100%);
  color: var(--secondary);
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 6px 22px 0 rgba(246,187,66,0.15);
}

/* ===========================================
   HERO SECTION & DREAMY ATMOSPHERE
=========================================== */
.hero {
  min-height: 54vh;
  background: linear-gradient(109deg, #e0effc 60%, #ffe5ec 100%);
  border-radius: 38px;
  box-shadow: 0 6px 32px 0 rgba(104,182,227,0.08);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0 56px 0;
}
.hero .container {
  height: 100%;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--primary);
  text-shadow: 0 2px 18px rgba(246,187,66,0.09);
}
.hero p {
  color: var(--primary);
  font-size: 1.13rem;
  opacity: 0.87;
}

/* ============================================
   FLEX LAYOUTS & SPACING (CARDS, FEATURES)
============================================ */
.features {
  background: var(--pastel-mint);
  border-radius: 32px;
  margin-bottom: 60px;
}
.features .content-wrapper {
  gap: 32px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 12px 0;
}
.features ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.04rem;
  line-height: 1.5;
  background: var(--bg-section);
  box-shadow: 0 1px 10px 0 rgba(104,182,227,0.08);
  padding: 18px 22px;
  border-radius: 22px;
  color: var(--primary);
  min-width: 230px;
  font-weight: 400;
  margin-bottom: 0;
}
.features ul li img {
  height: 38px;
  width: 38px;
  flex-shrink: 0;
}

/* Card container layouts */
.card-container, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .course-card {
  background: var(--pastel-blue);
  border: 1.3px solid var(--border-card);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  min-width: 248px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  transition: box-shadow 0.23s, transform 0.14s;
}
.card:hover, .course-card:hover {
  box-shadow: 0 10px 32px 0 rgba(104,182,227,0.18);
  background: #E4E7FA;
  transform: translateY(-4px) scale(1.018);
}

.skill-levels ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.skill-levels li {
  background: var(--pastel-yellow);
  border-radius: 13px;
  padding: 10px 18px;
  color: var(--primary);
  margin-bottom: 0;
}

.services, .about {
  background: var(--pastel-rose);
  border-radius: 32px;
  margin-bottom: 60px;
}
.services ul, .about ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.services li, .about li {
  background: var(--pastel-blue);
  border-radius: 17px;
  box-shadow: 0 1px 9px 0 rgba(246,187,66,0.06);
  padding: 14px 20px;
  color: var(--primary);
  min-width: 190px;
  margin-bottom: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================================
   TESTIMONIALS
======================================= */
.testimonials {
  background: var(--pastel-lavender);
  border-radius: 30px;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px 0 rgba(173,180,219,0.10);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 680px;
  color: var(--primary);
  font-size: 1.08rem;
  flex-direction: column;
  transition: box-shadow 0.17s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(246,187,66,0.12);
  transform: translateY(-2px);
  background: var(--pastel-yellow);
}
.testimonial-card p {
  margin-bottom: 12px;
  font-weight: 400;
  font-size: 1.06rem;
  color: var(--primary);
}
.testimonial-card strong {
  color: var(--secondary);
}
.testimonial-card div {
  font-size: 0.97rem;
  color: #3a3a52;
  opacity: 0.85;
}

/* ====================================
   FAQ
==================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--pastel-mint);
  border: 1.1px solid var(--border-card);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 1px 10px 0 rgba(173,180,219,0.06);
  transition: box-shadow 0.14s, background 0.19s;
}
.faq-item:hover {
  background: var(--pastel-blue);
  box-shadow: 0 7px 18px 0 rgba(104,182,227,0.13);
}
.faq-item h2 {
  font-size: 1.19rem;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 1rem;
  line-height: 1.55;
}

/* ========================================
   CTA SECTION
======================================== */
.cta {
  background: var(--pastel-mint);
  border-radius: 28px;
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 2px 12px 0 rgba(104,182,227,0.06);
}
.cta .btn-primary {
  margin-top: 12px;
}

/* =============================================
   CONTACT PAGE DETAILS & SOCIAL
============================================= */
.contact-details, .map, .social-links {
  background: var(--pastel-lavender);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px 0 rgba(104,182,227,0.07);
}
.contact-details ul, .social-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details li, .social-links li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-links li img {
  width: 22px;
  height: 22px;
}
.map h3, .social-links h3 {
  margin-bottom: 7px;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--bg-footer);
  padding: 0;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
  box-shadow: 0 -4px 18px 0 rgba(104,182,227,0.04);
  margin-top: 70px;
  color: var(--primary);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 34px 18px 18px 18px;
}
.footer-logo {
  flex: 0 0 auto;
}
.footer-logo img {
  height: 54px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.82;
  border-radius: 10px;
  padding: 3px 5px;
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  background: var(--pastel-blue);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0.9;
}
.footer-contact img {
  width: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* =======================================================
   COOKIE CONSENT BANNER + COOKIE SETTINGS MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 2100;
  background: linear-gradient(90deg,#e0effc 0%, #ffe5ec 70%);
  box-shadow: 0 -2px 18px 0 rgba(104,182,227,0.15);
  padding: 24px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  animation: fadeInUp 0.65s ease;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  max-width: 540px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  font-family: var(--font-display);
  padding: 10px 24px;
  font-size: 1rem;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  transition: background 0.14s, color 0.13s, transform 0.13s;
  box-shadow: 0 2px 10px 0 rgba(104,182,227,0.10);
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-btn.reject {
  background: #ece8e8;
  color: var(--primary);
  border: 1.1px solid #d3d3d3;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-1px) scale(1.06);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,48,68,0.13);
  z-index: 2200;
  animation: fadeIn 0.18s;
}
.cookie-modal-backdrop.open { display: block; }
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2300;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 38px 0 rgba(23,48,94,0.13);
  min-width: 320px;
  max-width: 95vw;
  padding: 34px 30px 26px 30px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.38s;
}
.cookie-modal.open { display: flex; }
@keyframes fadeInModal {
  0% { opacity: 0; transform: translate(-50%, -30%); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.6rem;
  font-family: var(--font-display);
}
.cookie-category {
  padding: 16px 0;
  border-bottom: 1.2px solid #edeef6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.cookie-category .switch input {
  display: none;
}
.cookie-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--pastel-mint);
  border-radius: 18px;
  transition: .2s;
}
.cookie-category .switch input:checked + .slider {
  background: var(--secondary);
}
.cookie-category .slider:before {
  position: absolute;
  content: '';
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
  box-shadow: 0 1px 5px rgba(104,182,227,0.10);
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* =============================================
   ANIMATIONS & MICRO-INTERACTIONS
============================================= */
a, button, .btn-primary, .main-nav a, .mobile-nav a, .card, .cookie-btn {
  transition: background 0.18s, color 0.17s, box-shadow 0.16s, transform 0.13s;
}

/* =============================================
   MEDIA QUERIES: MOBILE-FIRST RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
  }
  .hero {
    border-radius: 20px;
    padding: 38px 0 38px 0;
  }
}

@media (max-width: 900px) {
  .footer-nav, .footer-contact {
    font-size: 0.93rem;
  }
  header .container, footer .container {
    gap: 19px;
    padding: 18px 6px 18px 6px;
  }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 1.54rem; }
  h2, .h2 { font-size: 1.16rem; }
  .hero, .features, .services, .about, .testimonials, .cta {
    padding: 30px 4px;
    border-radius: 18px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
    max-width: 100vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-logo img {
    height: 40px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 18px 8px 15px 8px;
  }
  .features ul, .services ul, .about ul, .skill-levels ul {
    flex-direction: column;
    gap: 17px;
  }
  .course-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    padding: 14px;
    min-width: unset; /* let it fill container */
  }
  .faq-accordion {
    gap: 12px;
  }
  .faq-item {
    padding: 12px 13px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media (max-width: 550px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px 16px 8px;
    font-size: 0.97rem;
    border-radius: 18px 18px 0 0;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-modal {
    min-width: 95vw;
    padding: 16px 7px 13px 7px;
    border-radius: 14px;
  }
}

/* ========== END ========== */
