/* 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;
}
/* Set core body defaults */
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #24315E;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, background 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
table { border-collapse: collapse; border-spacing: 0; }

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

:root {
  --primary: #24315E;
  --secondary: #F5C042;
  --accent: #ECECEC;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 24px 0 rgba(36,49,94,0.07), 0 1.5px 6px 0 rgba(36,49,94,0.05);
  --radius: 16px;
}

body {
  background: #fff;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--primary);
  line-height: 1.13;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.85rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol, address, table {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #22306e;
}
strong, b { font-weight: 700; }
.tagline {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--secondary);
  font-style: italic;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

/* GEOMETRIC STRUCTURED STYLES */
.feature-grid, .values-grid, .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 24px;
}
.feature-grid > div,
.values-grid > div,
.team-grid > div,
.content-wrapper > div,
.card,
.testimonial-card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.feature-grid > div img,
.values-grid > div img,
.team-grid > div img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.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;
  align-items: stretch;
}
.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;
  background: #fff;
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  color: #18204f;
  box-shadow: var(--shadow-card);
  min-width: 230px;
  margin-bottom: 20px;
}
.star-rating {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--secondary);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  user-select: none;
}

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

/* BUTTONS CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 3px 12px 0 rgba(245,192,66,0.09);
  border: 2px solid var(--secondary);
  transition: background 0.23s cubic-bezier(.65,-0.06,.34,1.36), color 0.23s, transform 0.15s;
  margin-top: 8px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff8e4;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.025) skew(-2deg, -2deg);
}

button, .btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.16s, color 0.18s, box-shadow 0.18s, transform 0.2s;
  cursor: pointer;
  outline: none;
  margin: 6px;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(36,49,94,0.09);
  transform: translateY(-1.5px) scale(1.015) skew(-1deg, -1deg);
}

/* NAVIGATION */
header {
  background: #fff;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 12px 0 rgba(36,49,94,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 18px 0 18px 0;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 18px;
  letter-spacing: 0.01em;
  margin-right: 2px;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav img {
  margin-right: 16px;
  height: 40px;
  width: auto;
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.25rem;
  border: none;
  margin-left: auto;
  padding: 8px 18px;
  border-radius: 50%;
  position: relative;
  z-index: 101;
  box-shadow: 0 2px 8px 0 rgba(36,49,94,0.10);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffefb9;
  color: #18204f;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: 0 10px 40px 0 rgba(36,49,94,0.11);
  z-index: 1000;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.65,-0.03,.37,1.43), opacity 0.32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 1002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
  background: #f6d97e22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 86px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary);
  padding: 16px 0 12px 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: #f6d97e16;
  padding-left: 10px;
}

/* Responsive Nav hamburger */
@media (max-width: 998px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 999px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 50px;
  box-shadow: 0 -2px 8px 0 rgba(36,49,94,0.05);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  transition: background 0.15s;
}
footer nav a:hover,footer nav a:focus {
  color: var(--primary);
}
footer address {
  font-style: normal;
  font-size: 1rem;
  margin: 0 auto;
  text-align: center;
  color: #c9d1eb;
  line-height: 1.6;
}

/* TABLES (Courses) */
table {
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(36,49,94,0.06);
  font-size: 1rem;
}
thead th {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 8px;
  text-align: left;
}
tbody td {
  padding: 10px 8px;
  color: var(--primary);
  border-top: 1.5px solid #d3dbf5;
  font-size: 1rem;
}
tr:last-child td {
  border-bottom: none;
}

/* UL, LISTS */
ul li, ol li {
  margin-left: 22px;
  margin-bottom: 10px;
  list-style-type: square;
  color: #22306e;
  font-size: 1rem;
  font-family: var(--font-body);
}
ul li img {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* MISC VISUAL ELEMENTS */
hr {
  border: none;
  border-top: 2px solid var(--secondary);
  margin: 32px auto;
  width: 60%;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe5;
  color: var(--primary);
  box-shadow: 0 -2px 16px 0 rgba(36,49,94,0.13);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 21px 22px;
  font-size: 1.07rem;
  border-top: 5px solid var(--secondary);
  animation: cookieBannerIn 0.75s cubic-bezier(.45,-0.2,.44,1.25);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 60vw;
  align-items: flex-start;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-reject, .cookie-settings {
  font-family: var(--font-display);
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.99rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
  margin-left: 0;
  margin-right: 0;
  margin-top: 6px;
}
.cookie-btn:hover, .cookie-settings:hover, .cookie-reject:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

/* Cookie Modal Overlay */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,49,94,0.32);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(.64,-0.01,.38,1.11);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 36px 0 rgba(36,49,94,0.19);
  padding: 36px 32px;
  max-width: 460px;
  width: 94vw;
  font-family: var(--font-body);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: popupIn 0.42s cubic-bezier(.71,-0.23,.41,1.2) both;
}
@keyframes popupIn {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 9px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #b7c3e0;
  border-radius: 9px;
  position: relative;
  outline: none;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.20s;
  box-shadow: 0 2px 8px #e6eeff77;
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 19px;
}
.cookie-modal-close {
  background: transparent;
  color: var(--primary);
  font-size: 1.25rem;
  border: none;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}


/* RESPONSIVE DESIGN */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .feature-grid,.values-grid,.team-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.07rem; }
  h2 { font-size: 1.5rem; }
  .feature-grid, .values-grid, .team-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .values-grid > div, .team-grid > div {
    min-width: 0;
    width: 100%;
  }
  .content-wrapper > div, .card {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 7px;
  }
  .container {
    padding: 0 9px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .content-grid > div, .card-container > div, .card {
    width: 100%;
    min-width: 0;
  }
  .feature-grid, .values-grid, .team-grid {
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  header {
    padding: 0;
  }
  .mobile-menu {
    padding-top: 22px;
  }
  .section {
    padding: 20px 2px;
  }
  .cta-btn, button, .btn {
    padding: 12px 17px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 16px 9px;
    font-size: 0.95rem;
  }
  .cookie-banner-buttons {
    gap: 9px;
    justify-content: flex-start;
  }
  .cookie-modal-dialog {
    padding: 24px 7px 20px 16px;
    width: 97vw;
    font-size: .94rem;
    min-width: 0;
  }
}

/* PRIMARY HERO SECTION (minimal geometric shapes) */
main > section:first-of-type .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  min-height: 320px;
  padding-top: 45px;
  padding-bottom: 44px;
}
main > section:first-of-type {
  background: linear-gradient(120deg, #ececec 60%, #fff 100%);
  overflow: hidden;
  border-bottom: 8px solid var(--accent);
}
main > section:first-of-type .content-wrapper {
  background: #fff;
  border-radius: 28px 90px 28px 20px;
  box-shadow: 0 6px 60px 0 rgba(36,49,94,0.07);
  gap: 21px;
  padding: 48px 38px;
  align-items: flex-start;
  position: relative;
}
@media (max-width: 600px) {
  main > section:first-of-type .content-wrapper {
    border-radius: 18px 40px 18px 12px;
    padding: 25px 10px 25px 13px;
  }
}
/* CTA Final Section */
main > section:last-of-type .content-wrapper {
  background: #ECECEC;
  border-radius: 120px 23px 24px 40px;
  box-shadow: 0 3px 26px 0 rgba(36,49,94,0.06);
}
@media(max-width: 600px) {
  main > section:last-of-type .content-wrapper {
    border-radius: 48px 9px 9px 22px;
    padding: 17px 6px;
  }
}

/* Micro-interactions */
a:not(.cta-btn):not(.main-nav a):not(.mobile-nav a):hover {
  color: var(--secondary);
  text-decoration: underline;
}
.cta-btn:active,
button:active {
  transform: scale(0.98) skew(-1deg,0);
}

/* Table scroll on mobile */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: .97rem;
    min-width: 460px;
  }
}

/* GEOMETRY: Section Headings Decor */
h2:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 0.54em;
  background: var(--secondary);
  border-radius: 10px 2px 10px 2px;
  margin-right: 10px;
  vertical-align: middle;
}
h2 {
  font-family: var(--font-display);
  letter-spacing: -.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card h3, .feature-grid h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -.3px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Animation for appearance */
.fade-in {
  animation: fadeIn 0.95s cubic-bezier(.78,-0.12,.29,1.13) both;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(28px);}
  to {opacity: 1; transform: none;}
}

/* Misc alignments and spacing */
/* Helper for flexbox vertical centering where needed */
.align-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.align-start {
  display: flex;
  align-items: flex-start;
}

/* Remove accidentally added double spacing between elements */
.content-wrapper > * + * {
  margin-top: 0 !important;
}

/* Accessibility: Focus outline for keyboard users */
a, button, .cta-btn, .btn, input, select, textarea {
  outline-color: var(--secondary);
  outline-width: 2.5px;
  outline-offset: 1px;
  outline-style: solid;
}
:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 1.5px;
}

/* Hide focus for mouse users */
:focus:not(:focus-visible) {
  outline: none !important;
}

/* Ensures proper margin for all cards/sections */
.card, .testimonial-card,
.feature-grid > div, .values-grid > div, .team-grid > div,
.content-wrapper > div {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* Hide visually only, remain accessible */
.sr-only,.visually-hidden {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}
