/* =========================================================
   CSS RESET & BASELINE NORMALIZATION
========================================================= */
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, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #191C1C;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
:root {
  --primary: #191C1C;         /* deep black for dramatic contrast */
  --secondary: #bbbbbb;       /* subtle gray for muted elements */
  --background: #fff;
  --surface: #f5f5f7;         /* soft surface cards */
  --accent: #dadada;          /* soft borders */
  --brand-main: #17425A;
  --brand-beige: #DDC69C;
  --brand-light: #F5F8FA;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

h1, .hero-section h1 {
  font-size: 2.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
h3 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
h4 {
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.22rem;
  font-family: var(--font-body);
  color: #595959;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.65;
}
p, li, .testimonial-author {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--primary);
}
strong { font-weight: 700; }

em { font-style: italic; color: var(--secondary); }

/* Make sure all small text (e.g., attributions/footers) is readable */
small, .footer-contact, .footer-brand span {
  font-size: 0.97rem;
  color: #50514f;
}

/* =========================================================
   LAYOUT CONTAINERS
========================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 24px;
  margin: 0 auto;
}

.content-wrapper {
  width: 100%;
}

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

/* Card & grid patterns as FLEX ONLY */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 rgba(32, 32, 32, 0.07);
  padding: 24px 28px;
}
.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: 28px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 30px 0 rgba(0,0,0,0.08);
  border: 1.5px solid #e4e4e4;
  margin-bottom: 24px;
  min-width: 220px;
  min-height: 140px;
  transition: box-shadow .23s, transform .23s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 10px 36px rgba(30,30,30,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f7f7f7;
  padding: 28px 22px;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(45,45,45,0.05);
  margin-bottom: 24px;
  flex: 1 1 300px;
}

/* Custom FLEX Grids (mobile-first) */
.feature-grid, .course-preview-grid, .course-list-grid, .review-grid, .article-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.feature-grid      { gap: 24px; }
.course-preview-grid, .course-list-grid {
  gap: 24px;
}
.review-grid, .testimonial-slider {
  gap: 24px;
}
.article-listings {
  flex-direction: column;
  gap: 24px;
}

/* Ensure all cards have spacing between via flex gap and margin-bottom */
.course-card, .course-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30,30,30,0.06);
  padding: 24px 20px;
  min-width: 240px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid #ececec;
  transition: box-shadow .22s, transform .22s;
}
.course-card:hover, .course-summary:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 10px 28px rgba(40,40,40,0.11);
}

/* =========================================================
   HEADER
========================================================= */
header {
  position: relative;
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 24px 0 rgba(0,0,0,0.06);
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 28px;
  position: relative;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  position: relative;
  transition: color .11s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-main);
}
.btn-primary {
  font-family: var(--font-display);
  background: var(--primary);
  color: #fff;
  border-radius: 32px;
  padding: 12px 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.07rem;
  transition: background 0.18s, color 0.18s, box-shadow .16s;
  box-shadow: 0 2px 10px rgba(20,20,20,0.07);
  border: none;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-main);
  color: var(--brand-beige);
  box-shadow: 0 6px 28px rgba(15,15,15,0.15);
}

/* Hamburger (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

/* =================================
  MOBILE MENU OVERLAY & ANIMATION
================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 0 64px 0 rgba(10,10,30,0.27);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.71,-0.06,.12,1.02);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 28px 28px 28px;
  width: 100%;
  min-height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--primary);
  border: none;
  background: transparent;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 30px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary);
  padding: 13px 0;
  border-bottom: 1px solid #eaeaea;
  transition: color .16s, background .16s;
  border-radius: 4px;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--brand-main);
  background: #f3f4f6;
}

/* Hide desktop nav/show burger on mobile */
@media (max-width: 1024px) {
  .main-nav, header .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none!important; }
}

/* ===============================================
   HERO SECTIONS & CTA
=============================================== */
.hero-section {
  background: linear-gradient(115deg, #fff 72%, #f3f6fa 100%);
  padding: 64px 0 54px 0;
  margin-bottom: 48px;
  box-shadow: 0 1px 22px 0 rgba(20,20,22,0.09);
}
.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 650px;
  margin: 0 auto;
  text-align: left;
}

.cta-section {
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(11,9,41,0.08);
  margin-bottom: 60px;
  padding: 36px 0;
}
.cta-section h2, .cta-section p { color: #fff; }
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  margin-top: 22px;
  border: none;
}
.cta-section .btn-primary:hover {
  background: var(--brand-beige);
  color: var(--primary);
}

/* ===============================================
   TESTIMONIALS
=============================================== */
.testimonial-slider, .review-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-author {
  font-style: italic;
  color: #545454;
  font-weight: 700;
  margin-top: 10px;
}
.star-rating {
  font-size: 1.2rem;
  color: #222;
  letter-spacing: 0.05em;
}

/* Ensure testimonial section is high-contrast on white bg */
.testimonial-card p, .testimonial-card .testimonial-author, .testimonial-card .star-rating {
  color: var(--primary);
}

/* ===============================================
   BLOG SEARCH + ARTICLE LISTINGS
=============================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.search-bar input[type='search'] {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1.5px solid #dedede;
  background: #fafbfc;
  font-size: 1.04rem;
  color: var(--primary);
}
.search-bar input[type='search']:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.article-listings article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 17px rgba(30,30,30,0.08);
  padding: 26px 20px 20px 25px;
  margin-bottom: 18px;
  border-left: 4px solid var(--primary);
  transition: box-shadow .16s, border-color .14s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-listings article:hover {
  box-shadow: 0 7px 26px rgba(40,40,40,0.14);
  border-color: var(--brand-main);
}
.article-listings a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color .15s;
}
.article-listings a:hover {
  color: var(--brand-main);
}

.top-categories {
  margin-top: 16px;
}
.top-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.top-categories li {
  background: #e9e9e9;
  color: #232325;
  font-size: 1rem;
  padding: 7px 15px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ===============================================
   GENERIC .text-section AND LISTS
=============================================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.text-section ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section li, ul li, .content-wrapper ul li {
  position: relative;
  color: #261d1d;
  font-size: 1.04rem;
  line-height: 1.6;
}
.text-section li:before {
  content: '\2022';
  color: var(--primary);
  font-weight: 900;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1.15em;
}

/*************
 MAP & CONTACT
**************/
.contact-info-block {
  display: flex;
  flex-direction: row;
  gap: 34px;
  align-items: center;
  margin-bottom: 24px;
}
.contact-info-block .text-section p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info-block img {
  width: 21px;
  height: 21px;
  opacity: 0.70;
}
.map-embed {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px 14px;
  box-shadow: 0 3px 14px rgba(35,35,35,0.08);
  margin-bottom: 20px;
  font-style: italic;
}

/*************
 MISC & UTILITY
**************/
.further-steps {
  margin-bottom: 28px;
}
.further-steps ul {
  gap: 14px;
}
.commitment-statement {
  font-family: var(--font-display);
  font-style: italic;
  color: #232324;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 18px 14px;
  margin-top: 14px;
}

/*************
 LEARNING OUTCOMES, LEVELS
**************/
.learning-outcomes, .levels-explainer {
  margin: 18px 0 22px 0;
  background: #f7f7f9;
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow: 0 2px 7px rgba(50,50,50,0.04);
}
.learning-outcomes ul, .levels-explainer ul {
  gap: 9px;
}
.learning-outcomes li:before, .levels-explainer li:before {
  color: var(--brand-main);
}

/*************
 SEARCH / NEWSLETTER
**************/
input[type='search']::-webkit-input-placeholder { color: #8c8f97; }
input[type='search']::-moz-placeholder { color: #8c8f97; }
input[type='search']:-ms-input-placeholder { color: #8c8f97; }
input[type='search']::placeholder { color: #8c8f97; }

/*************
 FOOTER
**************/
footer {
  background: #18181A;
  color: #fff;
  padding: 56px 0 36px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 58px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-brand img {
  width: 38px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #ececec;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 5px;
  transition: color .13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--brand-beige);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #ccccce;
}
.footer-contact img {
  width: 16px; height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.78;
}
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.055);
  transition: background .18s, box-shadow .14s;
}
.footer-social a:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(20,20,40,0.22);
}
.footer-social img {
  width: 24px; height: 24px;
}

/*************
 COOKIE BANNER & MODAL
**************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1c1c21;
  color: #fff;
  padding: 22px 12px 22px 16px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.17);
  z-index: 998;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  font-size: 1rem;
  animation: banner-slide-up .8s cubic-bezier(.55,1.7,.47,1.32);
}
@keyframes banner-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 180px;
  max-width: 600px;
}
.cookie-banner .cookie-banner-actions {
  flex: 1 1 220px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner .btn-cookie {
  padding: 10px 26px;
  border-radius: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  border: none;
  background: var(--primary);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .btn-cookie.accept {
  background: var(--brand-main);
}
.cookie-banner .btn-cookie.reject {
  background: #464646;
}
.cookie-banner .btn-cookie.settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #292929;
}
.cookie-banner .btn-cookie:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px rgba(40,40,40,0.11);
}
.cookie-modal-overlay {
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(12,14,15,0.64);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: modal-fade-in .35s cubic-bezier(.41,1.13,.54,.98);
}
@keyframes modal-fade-in {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -7px 40px rgba(10,10,10,0.14);
  padding: 36px 30px 30px 30px;
  min-width: 95vw;
  max-width: 480px;
  min-height: 420px;
  animation: modal-slide-up .53s cubic-bezier(.55,1.15,.59,1.13);
  position: relative;
}
@keyframes modal-slide-up {
  from { transform: translateY(64px); }
  to { transform: translateY(0); }
}
.cookie-modal-close {
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--primary);
  position: absolute;
  right: 22px;
  top: 18px;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  background: #f8f8fa;
  border-radius: 8px;
  padding: 16px 12px 14px 18px;
  font-size: 1.05rem;
}
.cookie-category .category-toggle {
  width: 40px; height: 22px;
  border-radius: 12px;
  background: #dedede;
  position: relative;
  cursor: pointer;
  transition: background .13s;
  display: flex;
  align-items: center;
}
.cookie-category .category-toggle .knob {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.11);
  transition: transform .18s;
  transform: translateX(2px);
}
.cookie-category[data-enabled="true"] .category-toggle {
  background: var(--brand-main);
}
.cookie-category[data-enabled="true"] .category-toggle .knob {
  transform: translateX(18px); background: var(--brand-beige);
}
.cookie-category.essential .category-toggle {
  background: #cacaca;
  cursor: not-allowed;
}
.cookie-category.essential .category-toggle .knob {
  background: #fff;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie {
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 34px;
  cursor: pointer;
}
.cookie-modal .btn-cookie:hover {
  background: var(--brand-main);
}

/*************
 ACCESSIBILITY FOCUS STYLES
**************/
a:focus, .btn-primary:focus, .btn-cookie:focus, input:focus, button:focus {
  outline: 2.5px solid var(--brand-main);
  outline-offset: 2px;
  z-index: 7;
}

/*****************************************************
  MOBILE-FIRST RESPONSIVE STYLES
*****************************************************/
@media (max-width: 1200px) {
  .container { max-width: 98vw; padding: 0 16px; }
}
@media (max-width: 1024px) {
  .container { max-width: 98vw; padding: 0 12px; }
  .section { padding: 32px 8px; margin-bottom: 48px; }
}
@media (max-width: 900px) {
  .hero-section {
    padding: 44px 0 40px 0;
  }
  .cta-section {
    padding: 24px 0;
  }
  .footer-social { gap: 11px; }
}
@media (max-width: 768px) {
  h1, .hero-section h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .subheadline { font-size: 1.02rem; }
  .feature-grid, .course-preview-grid, .course-list-grid, .review-grid, .testimonial-slider {
    flex-direction: column;
  }
  .feature-item, .course-card, .testimonial-card, .course-summary {
    min-width: 0;
    width: 100%;
    max-width: unset;
  }
  .content-wrapper, .section, .container { padding-left: 0; padding-right: 0; }
  .contact-info-block { flex-direction: column; gap: 12px; }
  .footer-brand, .footer-contact, .footer-menu, .footer-social {
    margin-bottom: 22px;
    width: 100%;
  }
  .footer-menu { flex-direction: row; flex-wrap: wrap; gap: 12px 16px; }
  footer .container { flex-direction: column; gap: 22px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 500px) {
  .hero-section { padding: 28px 0 26px 0; }
  .cta-section { padding: 12px 0; }
  .testimonial-card, .course-card, .course-summary, .feature-item {
    padding: 16px 10px;
    font-size: 0.97rem;
  }
  .cookie-modal { min-width: 100vw; max-width: 100vw; padding: 20px 9px 17px 13px; }
  .mobile-menu { padding: 22px 8px 12px 8px; }
}
