/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #FFF9F4;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: #245C88;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0E2A47;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #0E2A47;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {font-size: 2.25rem; margin-bottom: 20px;}
h2 {font-size: 1.5rem; margin-bottom: 18px;}
h3 {font-size: 1.15rem; margin-bottom: 14px;}

@media (min-width: 768px) {
  h1 {font-size: 2.8rem;}
  h2 {font-size: 2rem;}
  h3 {font-size: 1.25rem;}
}

.subheadline {
  font-size: 1.15rem;
  color: #245C88;
  margin-bottom: 18px;
  font-weight: 600;
}

/* --- UTILITY CLASSES & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(222,186,141,0.11);
  transition: box-shadow .25s;
}
.content-wrapper.text-section {
  align-items: flex-start;
  background: #FFF8EE;
  border: 1px solid #FFD84330;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF9F4;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(222,186,141,0.10);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(36,92,136,0.13);
  transform: translateY(-3px) scale(1.02);
}

.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;
  background: #FFF8EE;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(222,186,141,0.09);
  margin-bottom: 20px;
  color: #212228;
  max-width: 700px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #0E2A47;
}
.testimonial-card strong {
  color: #245C88;
  font-size: 0.97rem;
  font-weight: 600;
  margin-left: 16px;
}

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

/* --- NAVIGATION / HEADER --- */
header {
  background: #FFF8E6;
  box-shadow: 0 2px 10px rgba(245,225,170,0.06);
  border-bottom: 1px solid #FFD84325;
  margin-bottom: 18px;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  min-height: 64px;
}
header img {
  max-height: 46px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #245C88;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #FFD843;
  color: #0E2A47;
}
.cta-btn {
  background: #FFD843;
  color: #0E2A47;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1.08rem;
  box-shadow: 0 3px 11px rgba(222,186,70,0.11);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.23s, box-shadow 0.24s;
  margin-left: 18px;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFEA7C;
  color: #245C88;
  box-shadow: 0 5px 18px rgba(222,186,70,0.15);
}

.button, button {
  background: #FFD843;
  color: #0E2A47;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.18s, box-shadow 0.19s;
}
.button:hover, button:hover, .button:focus, button:focus {
  background: #FFEA7C;
  color: #245C88;
  box-shadow: 0 2px 9px #ffd84345;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #245C88;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 7px 10px;
  margin-left: 10px;
  transition: background 0.18s;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFD843;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF8EE;
  z-index: 2000;
  color: #222;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.8,.2,.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #245C88;
  align-self: flex-end;
  margin: 16px 22px 8px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.18s;
  z-index: 2002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD843;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #245C88;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD843;
  color: #0E2A47;
}

@media (max-width: 960px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
    padding-bottom: 10px;
  }
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 961px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav,
  .cta-btn {
    display: flex;
  }
}

/* --- SECTION & CARD LAYOUTS --- */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div {
  flex-basis: 260px;
  flex-grow: 1;
  background: #FFFECB;
  border-radius: 16px;
  box-shadow: 0 2px 8px #DED3A540;
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  transition: box-shadow 0.23s, transform 0.22s;
  margin-bottom: 0;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 22px #FFD84340;
  transform: translateY(-4px) scale(1.04);
}
.feature-grid img {
  width: 38px;
  margin-bottom: 12px;
}

.team-list, .location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.team-list > div, .location-list > div {
  background: #FFF9F4;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px #FFD84325;
  padding: 22px 15px;
  flex: 1 1 180px;
  margin-bottom: 0;
  min-width: 180px;
  transition: box-shadow 0.2s;
}
.team-list > div:hover, .location-list > div:hover {
  box-shadow: 0 4px 14px #FFD8433C;
}

.location-map {
  margin: 20px 0 0 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.course-category {
  background: #FFFAE3;
  border-radius: 14px;
  padding: 25px 15px 20px 22px;
  box-shadow: 0 1.5px 7px #FFD8431C;
  margin-bottom: 20px;
  flex: 1 1 210px;
}

.timetable {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0 8px 0;
}
.timetable table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF9F5;
  border-radius: 12px;
  overflow: hidden;
}
.timetable th, .timetable td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #FFD84328;
}
.timetable th {
  background: #FFF3C9;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #245C88;
  font-size: 1.02rem;
  font-weight: bold;
}
.timetable td {
  color: #0E2A47;
  font-size: 0.98rem;
}
.timetable tr:last-child td {
  border-bottom: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  font-size: 0.98rem;
}
.filter-options label {
  font-weight: 600;
}
.filter-options select {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid #FFD84390;
  background: #FFFECB;
  color: #245C88;
  font-family: inherit;
  font-size: 1rem;
}

/* --- BADGES --- */
.badge {
  display: inline-block;
  border-radius: 9px;
  padding: 3px 13px;
  font-size: 0.97rem;
  font-weight: 600;
}
.badge.active {
  background: #BCEE81;
  color: #215900;
}
.badge.waiting {
  background: #FFD843;
  color: #944a18;
}
.badge.cancelled {
  background: #FF8382;
  color: #8B2020;
}

/* --- FOOTER --- */
footer {
  background: #FFF8E6;
  color: #222;
  border-top: 1px solid #FFD84330;
  box-shadow: 0 -4px 18px #FFD8430D;
  font-size: 1rem;
  margin-top: 60px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  padding: 30px 18px 22px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0 0 0;
}
footer nav a {
  color: #245C88;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 5px 10px;
  transition: background 0.13s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #FFD843;
  color: #0E2A47;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.footer-contact img {
  width: 1.02em;
  margin-bottom: -3px;
  margin-right: 5px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .section, .content-wrapper {
    padding: 22px 7px;
    margin-bottom: 32px;
    border-radius: 13px;
  }
  .feature-grid, .team-list, .location-list, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .feature-grid > div, .team-list > div, .location-list > div, .course-category {
    min-width: 0;
  }
}

@media (min-width: 769px) {
  .feature-grid, .team-list, .location-list, .card-container {
    flex-direction: row;
  }
  .content-grid, .text-image-section {
    flex-direction: row;
  }
}

/* --- MICROINTERACTIONS --- */
.card, .feature-grid > div, .team-list > div, .location-list > div {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:active, .feature-grid > div:active, .team-list > div:active, .location-list > div:active {
  transform: scale(0.98);
}

.cta-btn, .button, button {
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.15s;
}
.cta-btn:active, .button:active, button:active {
  transform: scale(0.98);
}

input, select, textarea {
  border-radius: 10px;
  border: 1px solid #FFD84370;
  padding: 9px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #FFFBE1;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #245C88;
}

/* --- ACCENT LIST ITEMS / TERMS-NOTE --- */
.terms-note {
  color: #D1A950;
  font-size: 0.98rem;
  margin-top: 18px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF8EE;
  box-shadow: 0 -2px 14px #FFD84338;
  padding: 25px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 3000;
  transition: transform 0.42s cubic-bezier(.71,.11,.56,1);
  transform: translateY(0);
  font-size: 1.07rem;
  color: #0E2A47;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #FFD843;
  color: #0E2A47;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.18s, box-shadow 0.17s, transform 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFEA7C;
  color: #245C88;
  box-shadow: 0 2px 6px #FFD8432D;
}

.cookie-settings-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(36,92,136,0.13);
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 8px 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.3,1.05,.89,1.02);
}
.cookie-settings-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-settings-content {
  background: #FFF8EE;
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 8px 28px #FFD84338;
  min-width: 310px;
  max-width: 95vw;
  padding: 33px 23px 20px 23px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalSlideIn 0.38s cubic-bezier(.47,.9,.37,1.25);
  color: #212228;
}
@keyframes modalSlideIn {
  0% {transform: translateY(80%);} 100% {transform: translateY(0);}
}
.cookie-settings-content h2 {
  font-size: 1.32rem;
  color: #245C88;
  margin-bottom: 6px;
}
.cookie-setting {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}
.cookie-setting label {
  flex: 1 1 auto;
  color: #245C88;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 22px;
  background: #FFD84390;
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #FFD843;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s cubic-bezier(0.4,0.2,0.4,1);
}
.cookie-toggle:checked:before {
  left: 23px;
}
.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #245C88;
  align-self: flex-end;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-settings-close:hover, .cookie-settings-close:focus {
  background: #FFD843;
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 8px;
  background: #FFFCEC;
}
::-webkit-scrollbar-thumb {
  background: #FFD84377;
  border-radius: 8px;
}

/* --- UTILITY: HIDE --- */
.hide {display: none !important;}

/* --- SPECIAL SPACING FOR CONTENT BLOCKS --- */
.text-section,
.text-section > *:not(:last-child) {
  margin-bottom: 20px;
}

/* --- ENSURE MINIMUM SPACE BETWEEN CONTENT ELEMENTS --- */
.content-wrapper + .content-wrapper,
.card + .card,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item,
.team-list > div + div,
.location-list > div + div {
  margin-top: 20px;
}

/* --- ACCESSIBLE FOCUS STYLES --- */
a:focus-visible, button:focus-visible, input:focus-visible, .cookie-btn:focus-visible {
  outline: 2px dashed #245C88;
  outline-offset: 2px;
  background: #FFEA7C44;
}

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