/* --- 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 { height: 100%; }
body { min-height: 100%; background: #F5F5F5; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }

/* --- Brand Variables (fallbacks used for compatibility) --- */
:root {
  --primary: #00557a;
  --primary-tint: #006699;
  --secondary: #FFFFFF;
  --accent: #FFD166;
  --surface: #F5F5F5;
  --vibrant1: #32C9FE;
  --vibrant2: #F72057;
  --vibrant3: #6A35FE;
  --vibrant4: #39FF96;
  --hero-gradient: #009FFF;
  --text-main: #193256;
  --text-dark: #181C23;
  --text-light: #fff;
}

/* --- Font Faces --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; font-weight: 700; }
h4, h5, h6 { font-weight: 700; }
p, ul, ol, li, span { font-size: 1rem; color: var(--text-main); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 700px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(0,85,122,0.06);
  transition: box-shadow 0.2s;
}

.card-container, .course-list, .features-list, .steps-list, .team-list, .modalities-grid, .blog-card-list, .success-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 0 0;
}
.card {
  margin-bottom: 20px;
  border-radius: 20px;
  position: relative;
  background: var(--surface);
  box-shadow: 0 4px 16px 0 rgba(0,85,122,0.07);
  padding: 24px 20px;
}

.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: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(32,201,254,0.08);
  color: var(--text-dark);
  font-size: 1.08rem;
}
.testimonial-card span {
  font-weight: bold;
  color: var(--primary);
  font-size: 1rem;
  margin-top: 4px;
}

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

/* --- Hero Section --- */
.hero {
  background: var(--vibrant1);
  background: linear-gradient(90deg, var(--vibrant1) 0%, var(--primary-tint) 60%, var(--accent) 100%);
  color: var(--secondary);
  padding: 72px 0 56px 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 8px 100px 0 rgba(39,32,143,0.09);
}
.hero .container > .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--secondary);
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.hero .subheadline {
  color: #F5F5F5;
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 540px;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--vibrant2);
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: 40px;
  box-shadow: 0 3px 20px 0 rgba(247,32,87,0.08);
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  transition: background 0.15s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--vibrant3);
  color: #FFF;
  box-shadow: 0 6px 32px 0 rgba(106,53,254,0.13);
  transform: translateY(-2px) scale(1.04);
}

/* --- Links & Navigation --- */
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  position: relative;
  padding: 6px 0;
  border-radius: 4px;
  transition: color 0.13s, background 0.14s;
}
nav a.active, nav a:hover, nav a:focus {
  color: var(--vibrant2);
  background: var(--accent);
}

/* --- Header --- */
header {
  background: var(--secondary);
  box-shadow: 0 2px 18px 0 rgba(0,85,122,0.05);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 16px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  gap: 20px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--vibrant2);
  color: var(--secondary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(247,32,87,0.15);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 110;
  transition: background 0.13s, box-shadow 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--vibrant3);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--secondary);
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding-top: 48px;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.39s cubic-bezier(.77,.13,.33,1.01), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--vibrant1);
  color: var(--secondary);
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  z-index: 122;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vibrant2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 32px 30px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--secondary);
  padding: 12px 0 10px 0;
  font-weight: 900;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* --- Features, Steps, Cards and Lists --- */
.features-list, .steps-list, .team-list, .course-list, .modalities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.features-list li, .steps-list li, .team-list li, .course-list li, .modalities-grid li {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(50,201,254,0.06);
  padding: 22px 24px;
  min-width: 220px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.12s;
}
.features-list li:hover, .steps-list li:hover, .team-list li:hover, .course-list li:hover, .modalities-grid li:hover {
  box-shadow: 0 6px 30px 0 rgba(106,53,254,0.12);
  transform: translateY(-4px) scale(1.03);
}
.features-list img, .steps-list img, .modalities-grid img, .features-list li img, .course-list li img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--accent);
  padding: 7px;
}

/* --- Special Cards/Success --- */
.success-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.success-case {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(32,201,254,0.09);
  padding: 22px 24px;
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.success-case h3 { color: var(--vibrant2); }
.success-case:hover {
  box-shadow: 0 8px 36px 0 rgba(39,32,143,0.09);
  transform: translateY(-3px) scale(1.03);
}

/* --- Blog Cards --- */
.blog-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-card-list article {
  flex: 1 1 300px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 4px 13px rgba(50,201,254,0.07);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  transition: box-shadow 0.19s, transform 0.12s;
}
.blog-card-list article h3 {
  color: var(--vibrant1);
  font-size: 1.17rem;
}
.blog-card-list article a {
  color: var(--vibrant3);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.13s;
}
.blog-card-list article a:hover, .blog-card-list article a:focus {
  color: var(--vibrant2);
}
.blog-card-list article:hover {
  box-shadow: 0 8px 36px 0 rgba(106,53,254,0.09);
  transform: translateY(-4px) scale(1.02);
}

/* --- Categories Filter --- */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.categories-filter span {
  font-weight: 700;
  color: var(--vibrant2);
}
.categories-filter a {
  background: var(--vibrant1);
  color: var(--secondary);
  border-radius: 12px;
  padding: 8px 20px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  transition: background 0.13s, color 0.11s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--vibrant2);
  color: #FFF;
}

/* --- Contact Details --- */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1.04rem;
  color: var(--primary);
}
.contact-details img {
  width: 28px;
  height: 28px;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 26px 0 14px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 60px;
  box-shadow: 0 -2px 30px 0 rgba(32,201,254,0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  transition: color 0.11s;
}
footer nav a:hover, footer nav a:focus { color: #fff; }
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: 0.97rem;
}
footer .contact-info span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #CBE8FF;
}
footer .contact-info img {
  width: 22px;
  height: 22px;
}
footer .copyright {
  font-size: 0.92rem;
  color: #B4E1FD;
  margin-top: 16px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--vibrant3);
  color: #fff;
  z-index: 200;
  padding: 24px 16px 24px 16px;
  box-shadow: 0 -8px 36px rgba(106,53,254,0.17);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookieBannerAppear 0.85s cubic-bezier(.76,.07,.34,1.09);
}
@keyframes cookieBannerAppear {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 7px;
  justify-content: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  border-radius: 22px;
  padding: 10px 28px;
  margin: 0;
  transition: background 0.13s, color 0.13s, transform 0.11s;
  box-shadow: 0 2px 8px rgba(106,53,254,0.09);
}
.cookie-banner .accept-all {
  background: var(--vibrant4);
  color: var(--primary);
  border: none;
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: var(--accent);
  color: var(--vibrant2);
}
.cookie-banner .reject-all {
  background: var(--vibrant2);
  color: #fff;
  border: none;
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: var(--primary-tint);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--secondary);
  color: var(--vibrant3);
  border: 1.5px solid var(--vibrant3);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--vibrant3);
  color: var(--secondary);
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 250;
  inset: 0;
  background: rgba(39,32,143,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  animation: cookieModalFadeIn 0.32s;
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  color: var(--primary);
  padding: 38px 30px 32px 30px;
  border-radius: 28px;
  box-shadow: 0 8px 44px rgba(106,53,254,0.17);
  min-width: 330px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalPopIn 0.28s cubic-bezier(.23,.91,.64,1.58);
}
@keyframes modalPopIn {
  0% { transform: translateY(60px) scale(0.85); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--vibrant1);
  color: var(--secondary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--vibrant3);
  margin-bottom: 0;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-category label {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-modal-category input[type=checkbox], .cookie-modal-category input[type=switch] {
  width: 20px;
  height: 20px;
  accent-color: var(--vibrant3);
}
.cookie-modal-category .essential {
  color: var(--vibrant2);
  font-weight: 800;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  min-width: 110px;
  padding: 10px 0;
  font-weight: 800;
  border-radius: 22px;
  border: none;
  background: var(--vibrant1);
  color: #fff;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal-actions .save {
  background: var(--vibrant4);
  color: var(--primary);
}
.cookie-modal-actions .save:hover, .cookie-modal-actions .save:focus {
  background: var(--accent);
  color: var(--vibrant2);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 992px) {
  .container { max-width: 98vw; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 50px 0 42px 0; }
}
@media (max-width: 820px) {
  .container { padding: 0 8px; }
  .section { padding: 32px 10px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  header .container { flex-direction: row; flex-wrap: wrap; }
  header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    padding: 0;
  }
  .features-list, .steps-list, .team-list, .course-list, .modalities-grid, .blog-card-list, .success-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .hero { padding: 32px 0 26px 0; border-radius: 0 0 34px 34px; }
  .hero h1 { font-size: 1.25rem; }
  footer .container {
    gap: 13px;
  }
}
@media (max-width: 480px) {
  .section { padding: 16px 2px; border-radius: 18px; }
  .hero { padding: 18px 0 13px 0; }
  .hero .container > .content-wrapper {
    gap: 9px;
  }
  .card, .blog-card-list article, .features-list li, .steps-list li, .team-list li, .success-case {
    padding: 12px;
    border-radius: 12px;
  }
  .cookie-modal { min-width: unset; padding: 20px 6px 17px 6px; border-radius: 16px; }
}

/* --- Micro-Interactions --- */
.btn-primary,
.cookie-banner button,
.categories-filter a,
nav a,
footer nav a,
.card,
.features-list li, .steps-list li, .success-case, .blog-card-list article {
  transition: box-shadow 0.13s, background 0.15s, color 0.15s, transform 0.12s;
}

.card:focus-visible,
.features-list li:focus-visible,
.blog-card-list article:focus-visible {
  outline: 2.5px solid var(--vibrant2);
  outline-offset: 3.5px;
}

/* --- Utility Classes --- */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Extra Touches for Vibrancy --- */
.section {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 70px 0 rgba(32,201,254,0.06);
}
.hero {
  box-shadow: 0 12px 130px 0 rgba(39,32,143,0.09);
}
/* --- Ensured no grid properties, only flexbox used for all layouts --- */