/* =========================================================
   CSS RESET & BASELINE (Mobile first)
   ======================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222237;
  background: #FFFFFF;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.002em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #283593;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #283593;
  outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #202a44;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 12px; }
h2 { font-size: 1.75rem; margin-bottom: 10px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1rem; }
strong { font-weight: 700; }
p, ul, ol, li { margin-bottom: 0.7em; }
subheadline, .subheadline { color: #283593; font-family: 'Montserrat', Arial, sans-serif; font-size: 1.125rem; opacity: 0.84; margin-bottom: 1.3em; }

/* ============ LAYOUT CONTAINERS ============ */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.section, .hero, .about-section, .features-section, .services-list, .cta-section, .jobs-section,
.contact-section, .thankyou-section, .newsletter-section, .privacy-section, .gdpr-section,
.cookie-section, .terms-section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Additional spacing for last section */
main > section:last-child {
  margin-bottom: 0;
}

/* =========== HEADER: MAIN NAVIGATION =========== */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(40,53,147,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 8px;
}
header img {
  max-height: 44px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: none;
}
header .cta-btn {
  display: none;
}
.mobile-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: #283593;
  font-size: 2rem;
  padding: 5px 16px;
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #f3f6fd;
  color: #1a237e;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    height: auto;
    margin-left: 32px;
  }
  .main-nav a {
    color: #222237;
    padding: 6px 4px;
    border-radius: 3px;
    transition: color 0.15s, background 0.18s;
  }
  .main-nav a:hover, .main-nav a.active {
    color: #283593;
    background: #f5f7fc;
  }
  header .cta-btn {
    display: inline-block;
    margin-left: 24px;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ============ MOBILE MENU ============= */
.mobile-menu {
  position: fixed;
  background: #fff;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 8px 40px rgba(40,53,147,0.10);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.53,.18,.37,1.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #283593;
  align-self: flex-end;
  margin: 20px 24px 6px 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.13s, color 0.19s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #fafbff;
  color: #1a237e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 36px;
  margin-top: 8px;
}
.mobile-nav a {
  font-size: 1.17rem;
  color: #222237;
  padding: 12px 6px 10px 0;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s, background 0.19s;
  margin-right: 24px;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: #e6eaff;
  color: #283593;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* ============= HERO SECTIONS ============= */
.hero {
  background: #fafbff;
  border-radius: 0 0 28px 28px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  min-height: 280px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1 {
  font-size: 2.15rem;
  margin-bottom: 8px;
}
.hero .subheadline {
  margin-bottom: 20px;
  max-width: 600px;
}
.hero .cta-btn {
  margin-top: 18px;
}
@media (min-width:650px) {
  .hero .content-wrapper {
    max-width: 640px;
  }
}

/* ================ BUTTONS ================ */
.cta-btn,
.course-cta,
.application-cta {
  display: inline-block;
  background: #283593;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 13px 32px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(40,53,147,0.02);
  transition: background 0.16s, box-shadow 0.18s, color 0.21s, transform 0.13s;
  margin-top: 12px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus,
.course-cta:hover, .course-cta:focus,
.application-cta:hover, .application-cta:focus {
  background: #1a237e;
  color: #FFC107;
  box-shadow: 0 7px 24px rgba(40, 53, 147, 0.09);
  transform: translateY(-2px) scale(1.03);
}

.course-cta, .application-cta {
  background: #fff;
  color: #283593;
  border: 1px solid #283593;
  margin-top: 10px;
  padding: 10px 20px;
}
.course-cta:hover, .application-cta:hover {
  background: #f4f7fe;
  color: #1a237e;
}

.badge {
  font-size: 0.92em;
  color: #fff;
  background: #FFC107;
  border-radius: 5px;
  padding: 3px 12px;
  font-weight: 700;
  margin-left: 9px;
}

/* ================= FLEX-LAYOUT PATTERNS ================= */
.features, .about-section, .features-section, .services-list, .blog-list-section, .newsletter-section,
.coaching-services, .jobs-section, .contact-section, .privacy-section, .gdpr-section, .cookie-section, .terms-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 14px rgba(40,53,147,0.08);
  padding: 32px 28px;
  min-width: 220px;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(40, 53, 147, 0.11);
}
.content-grid,
.course-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;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 11px rgba(40,53,147,0.08);
  margin-bottom: 20px;
  max-width: 540px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #222237;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #283593;
  margin-top: 7px;
}
.star-rating {
  color: #FFC107;
  font-size: 1.2rem;
  letter-spacing: 1.2px;
  margin-top: -10px;
}

/* ========== Feature/Course/Benefit/USP LISTS ========== */
.feature-list,
.course-list,
.usp-list,
.benefit-list,
.consulting-list,
.job-listings,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 0;
}
.feature-list li, .usp-list li, .benefit-list li, .consulting-list li, .job-listings li, .blog-list li, .course-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 9px rgba(40,53,147,0.07);
  padding: 23px 20px 18px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.16s;
}
.feature-list li:hover, .usp-list li:hover, .benefit-list li:hover, .consulting-list li:hover {
  box-shadow: 0 8px 24px rgba(40,53,147,0.11);
}
.course-list li {
  border-left: 3.5px solid #283593;
}

.course-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2.5px 12px rgba(40,53,147,0.07);
  padding: 32px 24px 22px 24px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s;
}
.course-card:hover {
  box-shadow: 0 9px 38px rgba(40,53,147,0.13);
}

/* =============== SECTION TITLES & HEADINGS =============== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 740px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 3px;
}

/* ============= TESTIMONIALS / TEAM HIGHLIGHT SECTIONS ============== */
.testimonials, .testimonials-section {
  background: #f7f8fb;
  padding-bottom: 50px;
  border-radius: 16px;
}
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.team-testimonial,
.team-highlight {
  background: #fff;
  box-shadow: 0 2.5px 12px rgba(40,53,147,0.09);
  border-radius: 9px;
  padding: 22px 18px 16px 18px;
  margin-bottom: 18px;
  font-size: 1.04rem;
}

/* ============== BLOG LIST / CATEGORY FILTER =============== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 17px 0;
}
.category-filter a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.99rem;
  padding: 7px 16px;
  border-radius: 7px;
  color: #283593;
  background: #f5f7fc;
  transition: background 0.15s, color 0.17s;
}
.category-filter a:hover, .category-filter a.active {
  background: #283593;
  color: #fff;
}

/* ============= FOOTER & GLOBAL FOOTER NAV ============= */
footer {
  background: #f4f7fd;
  padding: 40px 0 10px 0;
  box-shadow: 0 -2px 18px rgba(40,53,147,0.05);
  border-radius: 24px 24px 0 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid #e3e7f7;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.footer-top img {
  max-height: 40px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #222237;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  padding: 6px 8px;
}
.footer-nav a:hover {
  color: #283593;
  background: #e6eaff;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 12px;
}
.footer-contact {
  font-size: 0.96rem;
  color: #212245;
}
.footer-contact a {
  color: #283593;
  word-break: break-word;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.footer-social a img {
  width: 28px; height: 28px;
}
@media (min-width: 780px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

/* ============ COOKIES BANNER & PREFERENCES MODAL ============= */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 38px rgba(40,53,147,0.25);
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-radius: 20px 20px 0 0;
  animation: cookie-slideup 0.35s cubic-bezier(.25,.9,.43,1.22);
}
@keyframes cookie-slideup {
  from { transform: translateY(130%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  font-size: 0.99rem;
  color: #1a237e;
  margin-bottom: 6px;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner-btns button {
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.15s, box-shadow 0.16s;
}
.cookie-accept {
  background: #283593;
  color: #fff;
}
.cookie-accept:hover { background: #1a237e; }
.cookie-reject {
  background: #fafbff;
  color: #283593;
  border: 1px solid #283593;
}
.cookie-reject:hover {
  background: #e6eaff; color: #1a237e;
}
.cookie-settings {
  background: #FFF;
  color: #FFC107;
  border: 1.5px solid #FFC107;
}
.cookie-settings:hover {
  background: #FFF8E1; color: #c68600;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(40,53,147,0.14);
  pointer-events: auto;
  animation: fadein 0.29s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(40,53,147,0.19);
  padding: 36px 26px 24px 26px;
  max-width: 370px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #283593;
  border-radius: 6px;
  padding: 3px 8px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f3f6fd;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category .toggle-switch {
  margin-left: auto;
  pointer-events: auto;
}
.cookie-category .toggle-switch[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.toggle-switch {
  width: 40px;
  height: 23px;
  background: #f5f5f5;
  border-radius: 16px;
  position: relative;
  transition: background 0.14s;
  display: inline-block;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 17px;
  height: 17px;
  background: #b0bbd7;
  border-radius: 50%;
  transition: left 0.15s, background 0.18s;
}
.toggle-switch input:checked + .toggle-slider {
  left: 19px;
  background: #283593;
}
.toggle-switch[disabled] .toggle-slider {
  background: #b0bbd7;
  opacity: 0.5;
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

/* ================== RESPONSIVE STYLES ================== */
@media (max-width: 1100px) {
  .container { max-width:880px; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .course-grid, .content-grid, .feature-list, .usp-list, .benefit-list, .consulting-list, .job-listings, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 780px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .section, .hero, .about-section, .features-section, .services-list, .cta-section, .jobs-section, .contact-section, .privacy-section, .gdpr-section, .cookie-section, .terms-section {
    padding: 25px 7px;
    margin-bottom: 38px;
  }
  .card, .course-card, .feature-list li, .usp-list li, .benefit-list li, .consulting-list li, .job-listings li, .blog-list li {
    padding: 16px 10px 14px 10px;
    min-width: inherit;
    font-size: 0.99rem;
  }
  .testimonial-card, .team-testimonial, .team-highlight {
    padding: 13px 8px 8px 9px;
  }
  .text-section {
    gap: 12px; max-width: 99vw;
  }
  .content-wrapper {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .hero { border-radius: 0 0 10px 10px; }
  .container { padding: 0 7px; }
  .card, .feature-list li, .course-card {
    border-radius: 6px;
  }
}

/* ==================== MISCELLANEOUS ==================== */
::-webkit-scrollbar {
  width: 8px; background: #EEF1F9;
}
::-webkit-scrollbar-thumb {
  background: #b0bbd7; border-radius: 8px;
}

::selection {
  background: #FFC10722;
}

/* Tip for purposeful accent color */
.mark, mark {
  background: #FFF8E1;
  color: #a39018;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  padding: 8px 6px;
  border-bottom: 1px solid #e7eaf7;
}

/* ====================================
   ENSURE MINIMALIST VISUAL HIERARCHY
   ==================================== */
.section, .hero, .about-section, .features-section, .services-list, .cta-section, .jobs-section, .contact-section, .thankyou-section, .newsletter-section, .privacy-section, .gdpr-section, .cookie-section, .terms-section {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2.5px 22px rgba(40,53,147,0.04);
}

/* ================= ACCESSIBILITY HINTS =============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =================== EXTRAS ==================== */
/* Input, if forms are added later */
input, textarea, select, button {
  font-family: inherit;
}

/* Hide visually but keep accessible (for skiplinks etc.) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* ========== Ensure all cards/sections have minimum gaps ========== */
.card-container > *, .content-grid > *, .feature-list > *, .course-list > *, .usp-list > *, .benefit-list > *, .consulting-list > *, .job-listings > *, .blog-list > *, .testimonial-list > * {
  margin-bottom: 0 !important;
}

/* ========== Utility for hiding elements by JS ========== */
.is-hidden { display: none !important; }
