/* ========== CSS RESET & BASE STYLES ========== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #232937;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2D4373;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #EA6A47;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ========== BRAND COLORS ========== */
:root {
  --color-primary: #2D4373;
  --color-secondary: #E1EAF3;
  --color-background: #fff;
  --color-accent: #EA6A47;
  --color-accent-alt: #C14A25;
  --color-dark: #232937;
  --color-border: #E0E3E8;
  --color-neutral: #F5F7FA;
}

/* ========== TYPOGRAPHY ========== */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--color-primary);
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.15;
}
@media (max-width: 500px) {
  h1, .hero h1 { font-size: 2rem; }
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--color-primary);
}
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #232937;
  margin-bottom: 16px;
  line-height: 1.65;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}
section .content-wrapper > *:last-child,
section .text-section > *:last-child {
  margin-bottom: 0;
}

/* ========== LAYOUT & SPACING ========== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-background);
}
@media (max-width: 768px) {
  .section, section {
    padding: 32px 5vw;
    margin-bottom: 40px;
  }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-dark);
  padding: 6px 0;
  transition: color 0.2s, border-bottom 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}
.main-nav .cta-btn {
  margin-left: 18px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 24px;
  padding: 8px 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 12px rgba(234,106,71, 0.08);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-accent-alt);
  color: #fff;
  box-shadow: 0 4px 20px rgba(234,106,71, 0.12);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 1024px) {
  .main-nav { gap: 15px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
}

/* Mobile burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.2s;
  z-index: 80;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,67,115,0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-105%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.77,.13,.18,.81), opacity 0.18s;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  margin: 28px 30px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 100;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 48px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  width: 85vw;
  max-width: 350px;
  transition: color 0.18s, border-bottom 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--color-secondary);
  border-radius: 0 0 40px 40px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  box-shadow: 0 8px 36px rgba(45,67,115,0.04);
}
.hero .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px 24px 10px;
  min-height: 330px;
}
.hero .content-wrapper {
  max-width: 600px;
  text-align: center;
  align-items: center;
  gap: 24px;
}
.hero p {
  font-size: 1.2rem;
  color: #35405c;
  margin-bottom: 24px;
}
.hero .cta-btn {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero {
    min-height: 230px;
    border-radius: 0 0 22px 22px;
    margin-bottom: 32px;
  }
}

/* ========== CTA BUTTON ========== */
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 25px;
  padding: 12px 38px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(234,106,71,0.09);
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  text-align: center;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent-alt);
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(234,106,71,0.18);
  transform: translateY(-2px) scale(1.05);
}

/* ========== FLEX CONTAINER UTILITIES (MANDATORY PATTERNS) ========== */
.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;
}

/* ========== BRAND CARD & BLOCK STYLES ========== */
.features, .features-methodology, .feature-highlights {
  background: var(--color-neutral);
  border-radius: 24px;
  box-shadow: 0 1px 10px rgba(45,67,115,0.03);
  margin-bottom: 60px;
}
.features-grid, .feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  justify-content: space-between;
}
.feature-block {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 6px 28px rgba(45,67,115,0.06);
  padding: 32px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.14s;
  border: 1px solid #ECF0F5;
}
.feature-block img {
  width: 36px; height: 36px; margin-bottom: 8px; opacity: 0.9;
}
.feature-block:hover, .feature-block:focus-within {
  box-shadow: 0 8px 32px rgba(45,67,115,0.13);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 1024px) {
  .features-grid, .feature-highlights {
    gap: 20px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .features-grid, .feature-highlights {
    flex-direction: column;
    gap: 18px;
  }
  .feature-block {
    max-width: 100%; width: 100%;
  }
}

/* ========== SERVICES / COURSES CARDS ========== */
.service-cards, .courses-list, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.service-card, .team-member, .course-brief {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(45,67,115,0.04);
  padding: 24px 18px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.12s;
  border: 1px solid #EFF4F9;
  display: flex; flex-direction: column; align-items: flex-start;
}
.service-card h3, .team-member h3, .course-brief h2 {
  margin-bottom: 10px;
  color: var(--color-accent);
}
.service-card:hover, .team-member:hover, .course-brief:hover {
  box-shadow: 0 8px 32px rgba(57,90,168,0.11);
  transform: translateY(-4px) scale(1.023);
}
.course-brief ul {
  margin-top: 10px;
  margin-bottom: 8px;  
  color: #3F4C69;
  font-size: 0.98rem;
  list-style-type: disc;
}
@media (max-width: 900px) {
  .service-cards, .courses-list, .team-profiles {
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .service-cards, .courses-list, .team-profiles {
    flex-direction: column;
    gap: 10px;
  }
  .service-card, .team-member, .course-brief {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials, .testimonial-cta {
  background: var(--color-neutral);
  border-radius: 22px;
  margin-bottom: 52px;
  box-shadow: 0 2px 16px rgba(45,67,115,0.03);
}
.testimonials .testimonial-slider, .testimonials .testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(57,76,100,0.10);
  padding: 24px 28px;
  min-width: 240px;
  max-width: 380px;
  color: #222;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 8px;
  transition: box-shadow 0.16s, transform 0.10s;
  border: 1px solid #EBF1F8;
}
.testimonial-card p {
  color: #222;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 8px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 12px 48px rgba(45,67,115,0.11);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 800px) {
  .testimonials .testimonial-slider, .testimonials .testimonial-list {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .testimonials .testimonial-slider, .testimonials .testimonial-list {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px;
  }
}

/* ========== FAQ ACCORDION ========== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(45,67,115,0.05);
  border: 1px solid #ECEEF2;
  transition: box-shadow 0.16s, border 0.16s;
}
.faq-item h2 {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  margin: 0;
  cursor: pointer;
  padding: 20px 28px 10px 26px;
  user-select: none;
}
.faq-answer {
  padding: 8px 28px 18px 26px;
  color: #232937;
  font-size: 1rem;
  display: block;
}
.faq-item.open, .faq-item:focus-within {
  box-shadow: 0 7px 22px rgba(45,67,115,0.11);
  border: 1.5px solid var(--color-primary);
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 30px 0 12px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav.footer-nav {
  display: flex;
  gap: 28px;
  margin: 18px 0 10px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 5px 0;
}
.footer-nav a:hover { color: var(--color-accent);
    text-decoration: underline;
}
.footer-contact {
  color: #2D4373;
  font-size: 1rem;
  text-align: center;
  margin-top: 3px; margin-bottom: 6px;
}
.footer-contact img {
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.73;
}
footer p {
  color: #A1A6B2; font-size: 0.93rem; text-align: center; margin-top: 10px;
}
footer a img { height: 38px; }

/* ========== LEGAL PAGES (PRIVACY, COOKIES, TERMS) ========== */
.legal {
  background: var(--color-neutral);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(45,67,115,0.03);
  margin-bottom: 50px;
}
.legal .text-section {
  margin-top: 12px;
}
.legal h1 { margin-bottom: 28px; font-size: 2.1rem; }

/* ========== CTA SECTION ========== */
.cta {
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(234,106,71,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 52px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* ========== RESPONSIVE FLEX ADJUSTMENTS ========== */
@media (max-width: 900px) {
  .content-grid, .features-grid, .service-cards, .courses-list {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper { gap: 20px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section, section { margin-bottom: 34px; padding: 28px 4vw; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #232937;
  border-top: 1.5px solid #E1EAF3;
  box-shadow: 0 -2px 18px rgba(45,67,115,0.07);
  z-index: 110;
  padding: 20px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: transform 0.32s cubic-bezier(.85,.01,.16,.99), opacity 0.16s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1rem;
  max-width: 470px;
  color: #2D4373;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  padding: 7px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 1px 5px rgba(45,67,115,0.04);
  transition: background 0.15s, color 0.15s;
  outline: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent-alt);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-accent);
  border: 1.2px solid var(--color-accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffeceb;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #3E5A92;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 12px;
  }
}

/* ========== COOKIE MODAL (PREFERENCES) ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(45,67,115,0.36);
  z-index: 130;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FFF;
  border-radius: 16px;
  width: 95vw;
  max-width: 460px;
  padding: 32px 24px 22px 24px;
  box-shadow: 0 12px 52px rgba(45,67,115,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 400;
  animation: cookie-modal-fade-in 0.29s cubic-bezier(.86,0,.15,1) 1;
  color: var(--color-dark);
}
@keyframes cookie-modal-fade-in {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  margin: 0; padding: 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  gap: 15px;
}
.cookie-category input[type=checkbox] {
  transform: scale(1.24);
  accent-color: var(--color-accent);
  margin-right: 8px;
}
.cookie-category label {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}
.cookie-category.disabled label { color: #aaa; }
.cookie-category input[disabled] { opacity: 0.53; }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 17px;
  justify-content: flex-end;
}

/* ========== OTHER ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.map-location { font-size: 1rem; margin-top: 9px; }
.success-stories,
.contact-prompt {
  margin-top: 34px;
  font-size: 1.13rem;
  color: var(--color-primary);
}

/* ========== UTILITY CLASSES ========== */
.hide { display: none !important; }
.visible { display: block !important; }
.center { text-align: center !important; }

/* ========== THANK YOU PAGE STYLES ========== */
.thank-you .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}
.continue-navigation-links {
  display: flex;
  flex-direction: row; gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.continue-navigation-links a {
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 1px solid #C6DAED;
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.continue-navigation-links a.cta-btn {
  border: none; background: var(--color-accent); color: #fff !important; border-radius: 19px; margin-bottom: 0; padding: 6px 24px;
}
.continue-navigation-links a:hover, .continue-navigation-links a:focus {
  color: var(--color-accent);
  border-bottom: 1.7px solid var(--color-accent);
}

/* ========== ACCESSIBILITY FOCUS STATES ========== */
a:focus, button:focus
{outline: 2px solid var(--color-accent);outline-offset: 2px;}

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