/* ================================
   CSS RESET & 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, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7FAFC;
  color: #1a253a;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
/* ================================
   BRAND COLORS & CUSTOM FONTS
   ================================ */
:root {
  --primary: #154273;
  --secondary: #ffffff;
  --accent: #40BFA3;
  --accent-dark: #379e89;
  --gray-light: #F7FAFC;
  --gray-medium: #E0E6EF;
  --gray-dark: #525C6D;
  --border-card: #E0E6EF;
  --shadow-card: rgba(21,66,115,0.08);
  --shadow-hover: rgba(21,66,115,0.15);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

/* ================================
   GEOMETRIC STRUCTURED BASE LAYOUT
   ================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 40px;
    padding: 32px 8px;
    border-radius: 12px;
  }
}

/* Geometric/Structured Grids */
.card-container,
.card-grid,
.feature-grid,
.content-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container { gap:24px; }
.card-grid { gap:24px; }
.feature-grid { gap:24px; }
.content-grid { gap:20px; justify-content:space-between; }

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* FAQ Accordion Flex */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: var(--gray-light);
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  padding: 24px 24px 12px 32px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 7px var(--shadow-card);
  transition: box-shadow 0.18s;
}
.faq-item:hover {
  box-shadow: 0 3px 16px var(--shadow-hover);
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px;}
h4 { font-size: 1.1rem; margin-bottom: 10px;}

@media (max-width: 900px) {
  h1 { font-size:2rem; }
  h2 { font-size:1.4rem; }
}

p, ul, li, a, span, label {
  font-family: var(--font-body);
  font-weight: 400;
  color: #232b38;
  font-size: 1.05rem;
}
p, ul, ol {
  margin-bottom: 12px;
  line-height: 1.7;
}
ul li {
  margin-bottom: 8px;
  padding-left: 0.5rem;
}
ul li::marker {color:var(--accent);}

strong {font-weight:700; color:var(--primary);}

.text-section {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  display:flex; flex-direction:column; align-items: flex-start; gap:18px;
}
.text-section h2, .text-section h1 {
  margin-bottom: 12px;
}

@media (max-width:600px) {
  h1 {font-size:1.4rem;}
  h2 {font-size:1.15rem;}
  h3, h4 {font-size:1rem;}
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
header {
  width: 100%;
  background: var(--primary);
  padding: 0;
  box-shadow: 0 2px 8px rgba(21,66,115,0.09);
  position: relative;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 74px;
}
.logo img {
  height: 46px;
  width: auto;
  display: inline-block;
}
@media (max-width: 600px) {
  .logo img {
    height: 32px;
  }
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-left: 40px;
}
.main-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 2.5px solid transparent;
  transition: border 0.18s, color 0.18s;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
}

/* CTA Button */
.cta-btn {
  margin-left: 32px;
  padding: 11px 32px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--secondary);
  border-radius: 7px;
  border: none;
  text-transform: uppercase;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 5px var(--shadow-card);
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px var(--shadow-hover);
}

/* Header Flex Stacking Mobile */
@media (max-width: 1020px) {
  header .container { gap: 16px; }
  .main-nav { gap: 18px; margin-left: 12px; }
  .cta-btn { margin-left: 14px; padding:9px 20px; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    padding: 11px 18px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===============
   MOBILE NAV
   =============== */
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--secondary);
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 5px;
  border: none;
  display: none;
  transition: background 0.2s;
  z-index: 1011;
  margin-left: 18px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}

/* ----------
Mobile Menu
----------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--primary);
  height: 100vh;
  width: 100vw;
  z-index: 1020;
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.81, -.02, .32, 1.02);
  box-shadow: 0 0 14px var(--shadow-hover);
  padding: 36px 30px 20px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 23px;
  right: 24px;
  font-size: 2.1rem;
  color: var(--accent);
  background: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  z-index: 1032;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--gray-medium);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 70px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.36rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 0;
  border-bottom: 2px solid var(--primary);
  transition: color .19s, border-bottom .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================================
   MAIN CONTENT WRAPPER/GRIDS
   ================================ */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 18px;
  }
}

/* ================================
   CARDS & FEATURE BLOCKS
   ================================ */
.card,
.feature-block,
.testimonial-card,
.blog-post {
  background: var(--gray-light);
  border-radius: 14px;
  box-shadow: 0 1.5px 8px var(--shadow-card);
  border: 1.5px solid var(--border-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px 22px;
  transition: box-shadow 0.20s, border-color 0.15s, transform 0.19s;
  min-width: 200px;
}
.card:hover,
.feature-block:hover,
.testimonial-card:hover,
.blog-post:hover {
  box-shadow: 0 7px 32px var(--shadow-hover);
  border-color: var(--accent-dark);
  transform: translateY(-4px) scale(1.025);
}
.feature-block img {
  height: 58px;
  width: 58px;
  border-radius: 11px;
  background: var(--secondary);
  border: 2.5px solid var(--accent);
  padding: 7px;
  margin-bottom: 12px;
}
.feature-block h3 {
  margin-bottom: 7px;
  font-size:1.18rem;
  color: var(--primary);
  font-weight: 700;
}

/* Feature block responsive grid */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.feature-block {
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 300px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .feature-grid {
    gap:18px;
  }
  .feature-block {
    min-width: 150px;
    padding:20px 10px;
  }
}

/* Testimonial Cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border: 2.5px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 3px 24px rgba(21,66,115,0.11);
  color: #212835;
  min-width: 220px;
  min-height: 120px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow .18s, border-color .12s, transform .18s;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1e2532;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 500;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 0.98rem;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 9px 26px rgba(21,66,115,0.16);
  transform: scale(1.018) translateY(-2px);
}
@media (max-width: 900px) {
  .testimonial-slider { gap:16px; }
  .testimonial-card {padding:16px;}
}

/* Blog List Cards */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post {
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  padding: 28px 16px;
  border-top: 4.5px solid var(--primary);
}
.blog-post h3 a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.21rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: underline;
  transition: color 0.16s;
}
.blog-post h3 a:hover,
.blog-post h3 a:focus {
  color: var(--accent);
}

.topic-categories {
  margin-top: 30px;
}
.topic-categories ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.topic-categories li {
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 18px;
  border-radius: 7px;
  font-size: .96rem;
  font-family: var(--font-display);
}

/* ================================
   BUTTONS & INTERACTIVE CONTROLS
   ================================ */
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 11px 28px;
  background: var(--accent);
  color: var(--secondary);
  border: none;
  border-radius: 7px;
  font-weight: 700;
  transition: background 0.18s, color 0.17s, box-shadow 0.15s, transform 0.13s;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--shadow-card);
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px); 
  box-shadow: 0 7px 22px var(--shadow-hover);
}

/* ================================
   CARDS & FEATURES: MANDATORY CLASSES
   ================================ */
.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; }

/* ================================
   SECTIONS: SPACING ADJUSTMENT
   ================================ */
section + section {
  margin-top: 0 !important;
}
section {
  width: 100%;
}

/* ================================
   CTAS, TEXT-IMAGE, HIGHLIGHTS
   ================================ */
.course-highlights {
  margin-top: 20px;
  background: var(--gray-medium);
  border-radius: 10px;
  padding: 18px 22px;
  border-left: 6px solid var(--accent);
}
.event-list {
  margin-top: 22px;
  background: var(--gray-light);
  border-radius: 10px;
  padding: 18px 18px 10px 30px;
  border-left: 5px solid var(--primary);
}

/* ================================
   CONTACT DETAILS, FOOTER
   ================================ */
footer {
  background: var(--primary);
  padding-top: 38px;
  padding-bottom: 18px;
  color: var(--secondary);
  box-shadow: 0 -3px 14px rgba(21,66,115,0.055);
  font-size : 1rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
}
.footer-nav {
  display: flex;
  gap: 29px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.01rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.12s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-family: var(--font-body);
  max-width: 370px;
}
.footer-contact img {
  height: 38px;
  margin-bottom: 10px;
  background: var(--secondary);
  border-radius: 7px;
  padding: 2.5px;
}
.footer-contact p {
  color: var(--secondary);
  font-size: 0.98rem;
  margin-bottom: 6px;
  display:flex;
  align-items:center;
  gap:8px;
}
.footer-contact img[alt*="icon"] {
  height: 18px !important;
  width: auto;
  margin: 0 4px 0 0;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* ================================
   CONTACT DETAILS
   ================================ */
.contact-details {
  background: var(--gray-medium);
  border-radius: 9px;
  padding: 22px 18px 14px 30px;
  margin-bottom: 18px;
  border-left: 4.5px solid var(--accent);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.contact-details img {
  height: 19px;
  width: auto;
  display:inline-block;
  margin-right: 5px;
  vertical-align: middle;
  background: var(--secondary);
  border-radius: 4px;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  z-index: 9999;
  box-shadow: 0 -5px 18px rgba(21,66,115,0.09);
  font-family: var(--font-body);
  font-size: 1.06rem;
  gap: 32px;
  transition: transform 0.3s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-banner-text {
  flex: 1 1 240px;
  margin-right: 22px;
  color: white;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 7px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  margin-left: 0;
  background: var(--accent);
  color: var(--secondary);
  transition: background 0.19s, color 0.15s, box-shadow 0.13s;
}
.cookie-btn.settings {
  background: var(--accent-dark);
  color: var(--secondary);
}
.cookie-btn.reject {
  background: var(--gray-light);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 2px 10px var(--shadow-hover);
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    font-size:0.99rem;
    padding: 18px 10px 28px 10px;
  }
  .cookie-banner-actions { gap: 8px; justify-content:flex-start; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(21,66,115,0.24);
  z-index: 10050;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s;
}
.cookie-modal {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 8px 48px var(--shadow-hover);
  padding: 42px 36px 28px 36px;
  min-width: 310px;
  max-width: 95vw;
  font-family: var(--font-body);
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.32rem;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-switch {
  width: 42px;
  height: 24px;
  background: var(--gray-medium);
  border-radius: 12px;
  position: relative;
  margin-left:16px;
  cursor:pointer;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.16s, background 0.16s;
}
.cookie-switch input:checked ~ .slider {
  left: 20px;
  background: var(--accent);
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  padding: 9px 25px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gray-light);
  color: var(--primary);
  border-radius: 9px;
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* ================================
   MICRO-INTERACTIONS & TRANSITIONS
   ================================ */
.cta-btn, button, .feature-block, .testimonial-card, .blog-post, .main-nav a, .mobile-nav a {
  transition: background 0.21s, color 0.15s, box-shadow 0.21s, transform 0.12s, border-bottom 0.16s;
}

/* Animations for mobile menu & cookie modal */
.mobile-menu {
  will-change: transform;
}
.cookie-consent-banner {
  will-change: transform, opacity;
}
.cookie-modal {
  animation: cookieModalFadeIn 0.32s cubic-bezier(.82,.04,.13,1.03);
}
@keyframes cookieModalFadeIn {
  0% {transform: scale(0.97) translateY(30px); opacity: 0;}
  100% {transform: scale(1) translateY(0px); opacity: 1;}
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1100px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; padding:0 7vw; }
}
@media (max-width: 600px) {
  .container { padding: 0 4vw; }
}

@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .testimonial-slider, .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-block, .testimonial-card, .blog-post {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-contact p {font-size:0.91rem;}
}

/* Fine-tune spacing for mobile cards/sections */
@media (max-width:700px) {
  .section, .feature-block, .testimonial-card, .card, .blog-post {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ================================
   ACCESSIBLE FOCUS OUTLINES
   ================================ */
a:focus,
button:focus,
.cta-btn:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  z-index: 1002;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.hidden {
  display: none !important;
}

/* ================================
   END OF MAIN STYLES
   ================================ */