/* =====================
   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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #E1E8ED;
  color: #1B365D;
  min-height: 100vh;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1B365D;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #FFB81C;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: bold;
  color: #1B365D;
}
em, cite, i {
  font-style: italic;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: none;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.375rem; /* ~38px */
  color: #1B365D;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem; /* ~28px */
  color: #1B365D;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem; /* ~22px */
  color: #FFB81C;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
  color: #1B365D;
  margin-bottom: 10px;
}
h5, h6 {
  font-size: 1rem;
  color: #1B365D;
}
p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  font-weight: 400;
  margin-bottom: 8px;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B365D;
  font-size: 1.125rem;
  font-weight: 600;
  border-left: 5px solid #FFB81C;
  background: #fffbe7;
  padding: 20px 24px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(27,54,93,0.07);
}
cite {
  font-size: 1rem;
  color: #1B365D;
  font-style: normal;
  font-weight: 500;
  margin-left: 6px;
}

/* =====================
   Utility Classes
   ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(27,54,93,0.09);
}

/* =====================
   Header / Navigation
   ===================== */
header {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 10px 0;
  box-shadow: 0 2px 14px rgba(27,54,93,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header > a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  gap: 20px;
  flex: 1 0 auto;
  align-items: center;
  margin: 0 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  color: #1B365D;
  font-weight: 600;
  transition: color 0.2s;
}
header nav a::after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0;
  background: #FFB81C;
  transition: width 0.3s;
  border-radius: 2px;
  position: absolute;
  bottom: -4px;
  left: 0;
}
header nav a:hover, header nav a:focus {
  color: #FFB81C;
}
header nav a:hover::after, header nav a:focus::after {
  width: 80%;
}
.cta-primary {
  display: inline-block;
  background: #FFB81C;
  color: #1B365D;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 38px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 9px rgba(255,184,28,0.19);
  margin-left: 12px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1B365D;
  color: #FFB81C;
  box-shadow: 0 4px 18px rgba(27,54,93,0.17);
}
.cta-secondary {
  display: inline-block;
  background: #1B365D;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 38px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(27,54,93,0.10);
  margin-top: 16px;
  margin-bottom: 8px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #FFB81C;
  color: #1B365D;
  box-shadow: 0 4px 18px rgba(255,184,28,0.18);
}
button {
  outline: none;
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: background .2s;
}
.mobile-menu-toggle {
  display: none;
  background: #FFB81C;
  color: #1B365D;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin-left: 18px;
  z-index: 1201;
  box-shadow: 0 2px 8px rgba(255,184,28,0.14);
  border: 2px solid #FFF7CE;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1B365D;
  color: #FFB81C;
}

/* =====================
   Mobile Menu
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1B365D;
  box-shadow: 0 6px 30px rgba(27,54,93,0.22);
  z-index: 1300;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #1B365D;
  font-size: 2rem;
  align-self: flex-end;
  margin: 16px 22px 0 0;
  border-radius: 12px;
  width: 44px; height: 44px;
  box-shadow: 0 2px 8px #FFEDB4;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFB81C;
  color: #1B365D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 0 0 42px;
  flex: 1;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 0;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: background 0.14s, color 0.15s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFB81C;
  color: #1B365D;
  padding-left: 16px;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================
   Main Layout
   ===================== */
main {
  width: 100%;
  padding-top: 18px;
  margin-bottom: 32px;
  min-height: 76vh;
  background: transparent;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(27,54,93,0.09);
}

/* Content Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(27,54,93,0.10);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.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: #E1E8ED;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(27,54,93,0.08);
  margin-bottom: 20px;
  color: #1B365D;
  position: relative;
  flex-wrap: wrap;
}
.testimonial-card blockquote {
  background: transparent;
  border-left: none;
  padding: 0;
  box-shadow: none;
  font-size: 1.1rem;
  color: #1B365D;
}
.testimonial-card cite {
  color: #222;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================
   Blog Grid, Courses, Experts
   ===================== */
.blog-articles-grid, .course-list, .expert-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 16px 0;
}
.blog-articles-grid article, .course-list > div, .expert-profiles .expert-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(27,54,93,0.09);
  padding: 28px 20px 20px 20px;
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s;
}
.blog-articles-grid article:hover, .course-list > div:hover, .expert-profiles .expert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255,184,28,0.21);
}
.blog-articles-grid article a {
  margin-top: 10px;
  color: #FFB81C;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.18s;
}
.blog-articles-grid article a:hover {
  color: #1B365D;
  text-decoration: underline;
}

/* =====================
   Footer
   ===================== */
footer {
  background: #1B365D;
  color: #fff;
  padding: 36px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer > div img {
  height: 48px;
  margin-bottom: 6px;
  display: block;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0;
}
footer nav a {
  color: #FFB81C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 0;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 1rem;
  color: #E1E8ED;
}
.contact-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img[alt*="icon-"] {
  height: 20px !important;
  width: 20px !important;
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  z-index: 2000;
  bottom: 0; left: 0; right: 0;
  background: #1B365D;
  color: #fff;
  padding: 28px 20px 28px 20px;
  box-shadow: 0 -2px 18px rgba(27,54,93,0.17);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  animation: slideUpBanner 0.44s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes slideUpBanner {
  from { transform: translateY(140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 260px;
  margin-bottom: 10px;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 38px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #FFB81C;
  color: #1B365D;
}
.cookie-btn.reject {
  background: #E84855;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #1B365D;
  border: 2px solid #FFB81C;
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: #1B365D;
  color: #FFB81C;
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #FFB81C;
  color: #E84855;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: #FFB81C;
  color: #1B365D;
}

/* Modal Overlay for Cookie Settings */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(27,54,93,0.72);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(.68,-0.55,.27,1.55);
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #1B365D33;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 90vw;
  min-height: 180px;
  color: #1B365D;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2101;
  animation: modalPop 0.33s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes modalPop {
  from { transform: translateY(44px) scale(.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #1B365D;
  margin-bottom: 8px;
  font-size: 1.18rem;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.cookie-cat-row label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B365D;
}
.cookie-cat-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #FFB81C;
  cursor: pointer;
}
.cookie-cat-row .cookie-essential {
  color: #888;
  font-size: 0.93rem;
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.cookie-modal-close {
  background: #1B365D;
  color: #fff;
  border-radius: 32px;
  font-size: 1.35rem;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  position: absolute;
  top: 14px; right: 18px;
  z-index: 2201;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #FFB81C;
  color: #1B365D;
}

/* =====================
   Responsive Layouts
   ===================== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    padding: 12px 0 6px 0;
  }
  .section {
    padding: 32px 8px;
    border-radius: 12px;
  }
  .content-grid, .card-container, .blog-articles-grid, .course-list, .expert-profiles {
    flex-direction: column !important;
    gap: 16px !important;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3, h4 { font-size: 1rem; }
  section {
    padding: 22px 2px;
    margin-bottom: 34px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .contact-footer {
    flex-direction: column;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .blog-articles-grid article, .course-list > div, .expert-profiles .expert-card {
    min-width: 92vw;
    max-width: 100vw;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 18px 8px 18px 8px;
    font-size: 0.95rem;
    gap: 12px;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
  .cookie-modal {
    padding: 20px 7vw 16px 7vw;
    min-width: 95vw;
    max-width: 99vw;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 { text-align: left; }
  main { padding-top: 8px; }
  .card, .testimonial-card {
    padding: 10px 6px;
  }
  .cookie-modal { min-width: 98vw; }
}

/* =====================
   List & Icon Styling
   ===================== */
ul li, .text-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 1rem;
}
ul li img {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =====================
   Special Sections
   ===================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module-preview {
  background: #E1E8ED;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 28px 0 8px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 2px 10px rgba(27,54,93,0.04);
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #1B365D;
  padding: 9px 0;
}
.category-filter {
  display: flex;
  align-items: center;
  margin: 18px 0 0 0;
  font-size: 0.97rem;
}
.category-filter span {
  background: #FFB81C;
  color: #1B365D;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 2px 14px 2.5px 14px;
  border-radius: 15px;
  margin-right: 8px;
  margin-left: 2px;
}
.category-filter span:last-child {
  margin-right: 0;
}

/* =====================
   Animations/Microinteractions
   ===================== */
.card, .blog-articles-grid article, .expert-card, .testimonial-card {
  transition: transform 0.20s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.20s;
}
.card:hover, .blog-articles-grid article:hover, .expert-card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(27,54,93,0.13);
}
button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.11s;
}
button:active, .cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* =====================
   Vibrant Energetic Personality
   ===================== */
.section {
  border: 2.2px solid #FFB81C;
}
h3, h4 {
  color: #FFB81C;
  text-shadow: 0 2px 6px #FFE99788;
}
.card, .module-preview, .blog-articles-grid article, .expert-card, .testimonial-card {
  border: 1.5px solid #FFB81C40;
  border-radius: 15px;
}
.cta-primary, .cta-secondary, .cookie-btn {
  box-shadow: 0 3px 14px rgba(255,184,28,0.12);
}

/* =====================
   Accessibility Enhancements
   ===================== */
:focus-visible {
  outline: 2px dashed #FFB81C;
  outline-offset: 2px;
}

/* =====================
   Print Adjustments
   ===================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, main, .container {
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/*
  BRAND FONTS (Montserrat for display, Roboto for body). 
  To be loaded via Google Fonts in HTML for best compatibility.
*/