/* RESET & NORMALIZE: Set up predictable box model, remove default margins, etc. */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-style: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, picture {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  appearance: none;
}
button {
  cursor: pointer;
}

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

:root {
  --color-primary: #253773;
  --color-secondary: #F6E27A;
  --color-accent: #F3F4F6;
  --color-neutral-800: #111827;
  --color-neutral-600: #334155;
  --color-white: #fff;
  --color-black: #141416;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --shadow-sm: 0 2px 12px rgba(37, 55, 115, 0.12);
  --shadow-md: 0 8px 32px rgba(37, 55, 115, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
}

body {
  font-family: var(--font-body);
  color: var(--color-neutral-800);
  background: var(--color-accent);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 700;
}
blockquote {
  font-size: 1.15rem;
  color: var(--color-neutral-600);
  font-style: italic;
  margin: 0 0 8px 0;
  border-left: 4px solid var(--color-secondary);
  padding-left: 20px;
}
cite {
  color: var(--color-neutral-600);
  font-style: normal;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

p {
  font-size: 1rem;
  margin-bottom: 1em;
  color: var(--color-neutral-800);
}

ul, ol {
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
  color: var(--color-neutral-600);
}
ul li:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--color-secondary);
  display: inline-block;
}

/* --- NAVIGATION --- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(37, 55, 115, 0.10);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.main-nav img {
  height: 36px;
  margin-right: 10px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background 0.18s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-neutral-800);
}
.main-nav .cta-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  padding: 9px 22px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, color 0.16s, box-shadow 0.22s;
  margin-left: auto;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 31;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: background 0.18s;
  border: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.77,0,0.18,1), opacity 0.20s;
  box-shadow: 0 0 24px rgba(37,55,115,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  margin: 18px 22px 0 auto;
  font-size: 2rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  width: 45px; height: 45px; border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16vh;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.3rem;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-neutral-800);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px;
    font-size: 0.94rem;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- SECTION FLEX WRAPPERS --- */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-grid > div {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 28px 22px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img {
  height: 32px;
  width: 32px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.service-list > div {
  min-width: 240px;
  flex: 1 1 220px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.course-card {
  min-width: 260px;
  flex: 1 1 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.20s, transform 0.18s;
  position: relative;
}
.course-card:hover, .course-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px) scale(1.025);
}

/* Blog Post Cards */
.blog-post-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
  justify-content: space-between;
}
.blog-post-cards article {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 24px 20px 18px 24px;
  flex: 1 1 260px;
  max-width: 355px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.17s;
  margin-bottom: 20px;
  position: relative;
}
.blog-post-cards article:hover, .blog-post-cards article:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.023);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  max-width: 660px;
  color: var(--color-neutral-800);
}
.testimonial-card blockquote {
  color: var(--color-neutral-800);
  font-size: 1.07rem;
  line-height: 1.5;
  border-left: 4px solid var(--color-primary);
  background: transparent;
  padding-left: 16px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: bold;
}

/* --- CLIENT LOGOS (Testimonials page) --- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 20px;
  justify-content: left;
}
.client-logos li {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(37,55,115,0.08);
  padding: 12px 22px;
  display: flex;
  align-items: center;
}
.client-logos img {
  height: 34px;
  width: auto;
  filter: grayscale(10%) contrast(1.06);
}

/* --- BLOG CATEGORIES --- */
.blog-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.blog-categories-list li {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: bold;
  border-radius: 18px;
  padding: 7px 19px;
  font-size: 1rem;
}

/* --- CTA BUTTONS --- */
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  border-radius: var(--radius-md);
  padding: 13px 37px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
  display: inline-block;
  transition: background 0.15s, color 0.16s, box-shadow 0.19s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 8px 28px 0 rgba(37,55,115,0.18);
  transform: translateY(-2px) scale(1.045);
}

/* --- Footer --- */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 48px 0 28px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.07rem;
  transition: color 0.14s, text-decoration 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--color-secondary);
  font-size: 1rem;
  align-items: flex-start;
}
.footer-contact img {
  height: 18px;
  width: auto;
  margin-right: 13px;
  vertical-align: text-bottom;
}
footer p {
  font-size: 0.93rem;
  color: var(--color-secondary);
  opacity: 0.9;
  margin-bottom: 0;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-accordion h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 7px;
  cursor: pointer;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 10px 18px;
  transition: background 0.13s;
}
.faq-accordion h3:hover, .faq-accordion h3:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.faq-accordion p {
  padding: 0 22px 12px 22px;
  margin-bottom: 0;
}

/* --- MAP PLACEHOLDER (Contact page) --- */
.map-placeholder {
  min-height: 110px;
  max-width: 530px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 24px;
  margin-bottom: 16px;
}

/* --- RESPONSIVENESS: mobile-first --- */
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 8px;
  }
  .container {
    padding: 0 7px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }

  .main-nav .cta-btn {
    margin-left: 0;
  }

  .feature-grid, .service-list, .service-cards, .blog-post-cards, .client-logos {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid > div,
  .service-list > div,
  .course-card,
  .blog-post-cards article {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 14px 12px 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 13px 8px;
    margin-bottom: 16px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch !important;
  }
}
@media (max-width: 540px) {
  .main-nav img { height: 28px; }
  .mobile-menu-toggle { right: 12px; top: 12px; width: 38px; height: 38px; font-size: 1.45rem; }
  .mobile-menu-close { width: 38px; height: 38px; margin: 10px 10px 0 auto; font-size: 1.45rem; }
}

/* --- FLEXBOX LAYOUT PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.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: var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS/STANDARDS (fallback for forms/cookie banner) --- */
button, .button {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-md);
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 30px;
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.17s, color 0.16s, transform 0.13s;
  margin-right: 10px;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: scale(1.03);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 -2px 16px rgba(37,55,115,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 12px 18px 12px;
  animation: banner-pop-up 0.44s cubic-bezier(0.44,1.2,0.43,1.04);
}
@keyframes banner-pop-up {
  from {transform: translateY(60px); opacity:0;}
  to   {transform: translateY(0); opacity:1;}
}
.cookie-banner-message {
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 10px;
  text-align: center;
}
.cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn-accept {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 900;
  border-radius: var(--radius-md);
  padding: 11px 30px;
  transition: background 0.14s, color 0.16s;
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--color-white);
  color: var(--color-primary);
}
.cookie-btn-reject {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: bold;
  border-radius: var(--radius-md);
  padding: 11px 24px;
  border: 1.5px solid var(--color-secondary);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn-settings {
  background: transparent;
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-secondary);
  font-weight: bold;
  padding: 11px 18px;
  transition: background 0.15s, color 0.13s;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 70;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,55,115,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px 26px 28px 26px;
  max-width: 420px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: revealUp 0.34s cubic-bezier(0.44,1.2,0.43,1.04);
}
@keyframes revealUp {
  from {transform: translateY(38px); opacity:0;}
  to   {transform: translateY(0); opacity:1;}
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 9px;
}

/* --- MISC & ACCESSIBILITY --- */
:focus {
  outline: 3px dashed var(--color-secondary);
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 14px;
}


/* --- MICRO-INTERACTIONS AND MODERN GEOMETRIC EFFECTS --- */
.feature-grid > div:after, .course-card:after, .blog-post-cards article:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 8px; right: 8px;
  width: 38px; height: 38px;
  background: var(--color-secondary);
  opacity: 0.13;
  border-radius: 12px 24px 14px 40px;
  z-index: 0;
  pointer-events: none;
}

/* Remove effect on mobile for more space */
@media (max-width: 630px) {
  .feature-grid > div:after, .course-card:after, .blog-post-cards article:after {
    display: none;
  }
}


/* --- UTILITIES & HELPERS --- */
.mt-24 { margin-top: 24px !important; }
.mb-40 { margin-bottom: 40px !important; }
.text-center { text-align: center !important; }
.hide { display: none !important; }


/* --- ENSURE FLEX GAPS EVERYWHERE --- */
.section > .container > .content-wrapper > *:not(:last-child) {
  margin-bottom: 20px !important;
}

/* --- PREVENTING OVERLAP --- */
.section, .card, .feature-grid > div, .course-card, .testimonial-card, .blog-post-cards article {
  margin-bottom: 20px;
}

/* --- END OF STYLES --- */
