/* ===================================
   CSS RESET & BASELINE 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 {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #fff;
  color: #22223B;
  font-family: 'Roboto', serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
a {
  color: #203264;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: #EA8B24;
  text-decoration: underline;
}

/* =========================
   BRAND TYPOGRAPHY SYSTEM
   ========================= */
h1, h2, h3, h4, h5, h6 {
  color: #203264;
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin-bottom: 16px;
  color: #37355A;
  font-size: 1rem;
}
strong, b {
  font-weight: bold;
}
ul, ol {
  padding-left: 26px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
.text-section ul, .content-wrapper ul {
  margin-bottom: 16px;
}

.text-section h3 {
  font-size: 1.1rem;
  color: #203264;
  margin-top: 12px;
  margin-bottom: 6px;
}

.text-section p, .content-wrapper p  {
  color: #37355A;
}

/* ===============================
   LAYOUT: CONTAINER & SPACING
   =============================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
}

/* ============================
   FLEXBOX CORE UTILITIES
   ============================ */
.card-container,
.feature-grid,
.courses-preview-grid,
.trainer-grid,
.course-listings,
.blog-post-cards,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.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: 24px 28px;
  background: #F8F7FA;
  border: 1px solid #E6E4F0;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(32, 50, 100, 0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(32, 50, 100, 0.13);
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 1px solid #E6E4F0;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(32,50,100,0.07);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px 0 rgba(32,50,100,0.13);
  border-color: #CBC8D8;
}

.profile-highlight {
  background: #E6E4F0;
  color: #203264;
  border-left: 4px solid #EA8B24;
  padding: 18px 18px;
  border-radius: 8px;
  margin-top: 22px;
  margin-bottom: 16px;
  font-size: 1.09rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/**************** Global Button Styles ***************/
.cta-primary, button.cta-primary {
  display: inline-block;
  background: #203264;
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 34px;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(32,50,100,0.07);
  margin-top: 20px;
  margin-bottom: 12px;
  transition: background 0.18s, box-shadow 0.19s, color 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #EA8B24;
  color: #fff !important;
  box-shadow: 0 4px 18px 0 rgba(234,139,36,0.10);
  text-decoration: none;
}

/* ================= NAVIGATION ================= */
header {
  width: 100%;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 8px 0 rgba(32, 50, 100, 0.07);
  z-index: 40;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 22px 0 20px 0;
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
}

.main-nav .logo {
  margin-right: 34px;
  padding: 0;
  display: flex;
  align-items: center;
}
.main-nav a {
  color: #203264;
  font-weight: 500;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EA8B24;
  background: #E6E4F0;
  text-decoration: none;
}
.main-nav .cta-primary {
  margin-left: auto;
  padding: 10px 26px;
  font-size: 1rem;
}

/* Hide the burger by default */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 22px;
  font-size: 2.1rem;
  color: #203264;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 98;
  padding: 6px 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #EA8B24;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 6px 32px 0 rgba(32,50,100,0.12);
  z-index: 1000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.86,-0.04,.43,1.04);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: transparent;
  border: none;
  font-size: 2.05rem;
  color: #EA8B24;
  z-index: 1004;
  cursor: pointer;
  padding: 7px 12px;
}
.mobile-menu-close:focus {
  outline: 2px solid #203264;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 80px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #203264;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  transition: color 0.18s, background 0.14s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  color: #EA8B24;
  background: #F8F7FA;
}

@media (max-width: 1023px) {
  .main-nav {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 1rem;
  }
}
@media (max-width: 860px) {
  .main-nav .logo {
    margin-right: 18px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/****** FOOTER ******/
footer {
  background: #F8F7FA;
  border-top: 1px solid #E6E4F0;
  margin-top: 70px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 38px 20px 30px 20px;
}
.footer-main .logo {
  margin-bottom: 12px;
  margin-right: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #203264;
  font-family: 'Montserrat', serif;
  font-size: 1.04rem;
  font-weight: 500;
  opacity: 0.88;
  transition: color 0.19s;
}
.footer-contact {
  font-size: 1rem;
  color: #37355A;
  max-width: 290px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.footer-bottom {
  width: 100%;
  border-top: 1px solid #E6E4F0;
  background: #F8F7FA;
  text-align: center;
  font-size: 0.96rem;
  color: #8C8AAD;
  padding: 18px 0 20px 0;
}

/**** FLEX BREAKPOINTS ****/
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-contact {
    margin-top: 18px;
    max-width: 100%;
  }
}

/* ================== 
      SECTIONS
   ================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 800px) {
  section {
    padding: 30px 0;
    margin-bottom: 36px;
  }
}

/***** HERO/CTA BANNER ******/
section .container > .content-wrapper > h1 {
  font-size: 2.5rem;
  font-family: 'Montserrat', serif;
  color: #203264;
  font-weight: 700;
  margin-bottom: 16px;
}
section .container > .content-wrapper > .cta-primary {
  margin-top: 30px;
  margin-bottom: 0;
}

/**** BLOG CARDS, COURSE CARDS, TRAINER CARDS, ETC. ****/
.blog-post-cards > div, .course-listings > div, .courses-preview-grid > div, .trainer-grid > div {
  flex: 1 1 280px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #E6E4F0;
  border-radius: 14px;
  box-shadow: 0 1px 5px 0 rgba(32, 50, 100, 0.07);
  padding: 26px 22px 22px 22px;
  transition: box-shadow 0.21s, border-color 0.23s;
  margin-bottom: 20px;
  position: relative;
}
.blog-post-cards > div:hover, .course-listings > div:hover, .courses-preview-grid > div:hover, .trainer-grid > div:hover {
  box-shadow: 0 4px 18px 0 rgba(32,50,100,0.12);
  border-color: #CBC8D8;
}

/****** FAQ LIST ******/
.faq-list {
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #F8F7FA;
  border-radius: 10px;
  padding: 18px 22px;
  border: 1px solid #E6E4F0;
  box-shadow: 0 2px 8px 0 rgba(32,50,100,0.05);
}

/***** EXPERIENCE HIGHLIGHTS *****/
.experience-highlights ul {
  margin-bottom: 0;
  padding-left: 20px;
}
.experience-highlights li {
  margin-bottom: 8px;
  color: #37355A;
}

/***** TESTIMONIALS ******/
.testimonial-rating {
  font-size: 1.5rem;
  color: #EA8B24;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
  font-family: 'Montserrat', serif;
}
.testimonial-author {
  color: #656384;
  font-size: 0.98rem;
  font-style: italic;
  margin-top: 4px;
  font-family: 'Roboto', serif;
}

/***** PROFILE CARDS & HIGHLIGHTS *****/
.trainer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.trainer-grid > div {
  flex: 1 1 280px;
  min-width: 260px;
  background: #fff;
  border: 1px solid #E6E4F0;
  border-radius: 13px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px 0 rgba(32,50,100,0.06);
  margin-bottom: 20px;
}

/***** CONTACT DETAILS *****/
.contact-details h2 {
  font-size: 1.2rem;
  margin-top: 14px;
  margin-bottom: 8px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================================
   Responsive Flex Adjustments
   ================================ */
@media (max-width: 850px) {
  .container {
    padding: 0 10px;
  }
  .footer-main, .card-container, .feature-grid, .courses-preview-grid, .trainer-grid {
    gap: 14px;
  }
}
@media (max-width: 800px) {
  .container {
    padding: 0 5px;
  }
  .feature-grid, .courses-preview-grid, .trainer-grid, .blog-post-cards, .course-listings {
    flex-direction: column;
  } 
  .content-grid, .text-image-section {
    flex-direction: column;
  }
}

/***** SMALL DEVICES *****/
@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.08rem; }
  .footer-main { padding: 22px 6px 15px 6px; }
  .footer-nav a { font-size: 1rem; }
  .footer-contact { font-size: 0.97rem; }
  .container { padding: 0 2px; }
  section { padding: 26px 0; }
  .testimonial-card { padding: 18px 10px; }
}

/* ================================
   Cookie Consent Banner & Modal
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E6E4F0;
  box-shadow: 0 -2px 16px 0 rgba(32, 50, 100, 0.08);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-size: 1rem;
  font-family: 'Roboto', serif;
  color: #22223B;
  transition: transform 0.35s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  border-radius: 8px;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .accept-cookies {
  background: #203264;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept-cookies:hover {
  background: #EA8B24;
}
.cookie-banner .reject-cookies {
  background: #E6E4F0;
  color: #203264;
  border: 1px solid #203264;
  font-weight: 600;
}
.cookie-banner .reject-cookies:hover {
  background: #CBC8D8;
  color: #EA8B24;
}
.cookie-banner .settings-cookies {
  background: #fff;
  color: #203264;
  border: 1px solid #E6E4F0;
  font-weight: 500;
}
.cookie-banner .settings-cookies:hover {
  background: #F8F7FA;
  color: #EA8B24;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 8px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-actions { gap: 8px; }
}

/****** COOKIE MODAL ******/
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,50,100,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 10px 48px 0 rgba(32,50,100,0.16);
  max-width: 440px;
  width: 95%;
  font-family: 'Roboto', serif;
  color: #37355A;
  min-width: 240px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  color: #EA8B24;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 8px;
  z-index: 1;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category span {
  font-weight: 600;
  color: #203264;
  min-width: 110px;
}
.cookie-modal label.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  margin-left: 10px;
}
.cookie-modal label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  background-color: #E6E4F0;
  border-radius: 16px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: .3s;
}
.cookie-modal label.switch input:checked + .slider {
  background-color: #EA8B24;
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 5px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.cookie-modal label.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal .cookie-modal-actions .save {
  background: #203264;
  color: #fff;
  font-weight: 600;
}
.cookie-modal .cookie-modal-actions .save:hover {
  background: #EA8B24;
}
.cookie-modal .cookie-modal-actions .cancel {
  background: #E6E4F0;
  color: #203264;
}
.cookie-modal .cookie-modal-actions .cancel:hover {
  background: #CBC8D8;
  color: #EA8B24;
}
.cookie-modal .cookie-modal-content h2 {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.16rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-modal-content p {
  font-size: 0.99rem;
  margin-bottom: 16px;
}
@media (max-width:500px) {
  .cookie-modal .cookie-modal-content {
    padding: 20px 5px 18px 10px;
  }
}

/* ==========================
   MICRO INTERACTIONS, EFFECTS
   ========================== */
button, .cta-primary {
  transition: background 0.15s, color 0.15s, box-shadow 0.19s, border 0.17s;
}
.card, .trainer-grid > div, .blog-post-cards > div, .courses-preview-grid > div {
  transition: box-shadow 0.21s, border-color 0.21s;
}

/* ========================
   ACCESSIBILITY/OTHER
   ======================== */
:focus {
  outline: 2px solid #EA8B24;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #CBC8D8; }
::-moz-placeholder { color: #CBC8D8; }
:-ms-input-placeholder { color: #CBC8D8; }
::placeholder { color: #CBC8D8; }

/* ==============
   MISC SPACING
   ==============
*/
.card, .course-listings > div, .trainer-grid > div, .courses-preview-grid > div, .blog-post-cards > div, .faq-list > div {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .courses-preview-grid, .trainer-grid, .blog-post-cards, .course-listings, .faq-list {
  gap: 20px;
}

/* No grid, no column/paging, Flex only for layout containers */

/* END */
