/* ==========================================================================
   CSS RESET & NORMALIZE (UNIVERSAL)
   ========================================================================== */
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.6;
  min-height: 100vh;
  background: #F8F7F4;
  color: #232626;
}
ol, ul {
  list-style: none;
  padding-left: 0;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
*:focus {
  outline: 2px solid #F9B233;
  outline-offset: 2px;
}

/* ==========================================================================
   FONT IMPORTS & BASE TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --color-primary: #23395D;
  --color-secondary: #F9B233;
  --color-accent: #F2F2F2;
  --color-bg: #F8F7F4;
  --color-muted: #E1E0DC;
  --color-dark: #18191a;
  --color-footer-bg: #23395D;
  --color-footer-text: #fff;
  --color-shadow: rgba(0,0,0,0.05);
  --color-shadow-focused: rgba(35,57,93,0.16);
  --color-card-bg: #fff;
}

body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-dark);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.17;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.24;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
p, ul, ol, blockquote {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1.125rem;
  color: #262728;
  margin-bottom: 16px;
  letter-spacing: 0.009em;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
em {
  font-family: 'Open Sans', Georgia, serif;
  font-style: italic;
}
blockquote {
  font-family: 'Georgia', Times, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-primary);
  border-left: 3px solid var(--color-secondary);
  background: var(--color-accent);
  margin: 24px 0 8px 0;
  padding: 14px 24px;
  border-radius: 0.5em;
}
small {
  font-size: 0.95em;
  color: #827B6C;
}

/* ==========================================================================
   LAYOUT CONTAINERS & SPACING
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 850px;
  margin: 0 auto 20px auto;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 32px 24px;
  gap: 16px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px var(--color-shadow-focused);
}
.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;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  flex-direction: column;
  border: 1.5px solid var(--color-accent);
}
.testimonial-card blockquote {
  background: none;
  border-left: 4px solid var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.2rem;
  padding-left: 15px;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #443E3B;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  align-self: flex-end;
  margin-top: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cards for courses/resources tips/blog teasers */
.course-grid, .tip-card-grid, .blog-teasers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.course-grid .text-section,
.tip-card-grid .text-section,
.blog-teasers-grid .text-section {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 10px var(--color-shadow);
  padding: 28px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s;
}
.course-grid .text-section:hover, .tip-card-grid .text-section:hover, .blog-teasers-grid .text-section:hover {
  box-shadow: 0 6px 22px var(--color-shadow-focused);
}
.level-tag {
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 8px;
  align-self: flex-start;
  margin-top: 6px;
}

/* ==========================================================================
   HEADER, NAVIGATION & CTA BUTTONS
   ========================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 14px var(--color-shadow);
  z-index: 50;
  position: relative;
}
.header-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1.00rem;
  border-radius: 25px;
  box-shadow: 0 1px 5px var(--color-shadow);
  transition: background 0.13s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  border: none;
  letter-spacing: 0.07em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd97f;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px var(--color-shadow-focused);
}

/* Header logo size */
.header-bar img {
  height: 46px;
  width: auto;
}

/* ==========================================================================
   MOBILE NAVIGATION (HAMBURGER)
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 2.2rem;
  z-index: 1051;
  cursor: pointer;
  border: none;
  transition: background 0.13s, color 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,57,93,0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 24px 18px 24px;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.75,-0.34,.16,1.27);
  z-index: 1100;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  position: absolute;
  top: 22px;
  right: 20px;
  cursor: pointer;
  z-index: 1130;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 42px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 7px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .header-bar {
    padding-left: 8px;
    padding-right: 8px;
    gap: 12px;
  }
  .header-bar img {
    height: 39px;
  }
}
/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 42px 0 20px 0;
  font-family: 'Open Sans', Georgia, serif;
}
.footer-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.brand-mini-logo {
  flex: 0 0 auto;
}
.brand-mini-logo img {
  height: 46px;
  width: auto;
}
.contact-snippet {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-snippet img {
  vertical-align: middle;
  margin-right: 5px;
  width: 22px;
  height: 22px;
}
@media (max-width:768px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
    padding-bottom: 14px;
  }
  .brand-mini-logo {
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   EG. FOR icon/visual alignment in lists
   ========================================================================== */
li img {
  margin-right: 9px;
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   BLOG CATEGORIES & FILTERS
   ========================================================================== */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 24px 0;
  flex-wrap: wrap;
}
.categories-filter a {
  padding: 2px 17px;
  border-radius: 9px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  transition: background 0.13s, color 0.13s;
  font-size: 1.08rem;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.subscribe-cta {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 10px var(--color-shadow);
  padding: 28px 20px 34px 20px;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

/* ==========================================================================
   COOKIES CONSENT BANNER & MODAL (ESSENTIAL, ANALYTICS, MARKETING)
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fffbe8;
  color: var(--color-primary);
  box-shadow: 0 -2px 22px rgba(0,0,0,0.13);
  padding: 26px 20px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.10rem;
  flex-wrap: wrap;
  animation: slideUpCookies 0.7s cubic-bezier(.61,-0.2,.53,1.21);
}
@keyframes slideUpCookies {
  from { transform: translateY(96%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Georgia, serif;
  padding: 8px 19px;
  font-size: 1rem;
  border-radius: 9px;
  border: none;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.15s, box-shadow 0.14s, color 0.12s;
  cursor: pointer;
}
.cookie-btn:first-of-type {
  background: var(--color-primary);
}
.cookie-btn.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffd97f;
  color: var(--color-primary) !important;
  box-shadow: 0 3px 22px var(--color-shadow-focused);
}
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1300;
  inset: 0;
  background: rgba(35,57,93,0.66);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
.cookie-modal-backdrop.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 4px 44px rgba(35,57,93,0.23);
  padding: 38px 30px 28px 30px;
  width: 96vw;
  max-width: 420px;
  animation: popInModal 0.47s cubic-bezier(.61,-0.44,.47,1.31);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
@keyframes popInModal {
  0%   { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-toggle {
  width: 45px;
  height: 24px;
  border-radius: 20px;
  background: var(--color-muted);
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle.enabled {
  background: var(--color-secondary);
}
.cookie-toggle input {
  display: none;
}
.cookie-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: left 0.18s;
}
.cookie-toggle.enabled .cookie-slider {
  left: 22px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 19px;
  right: 22px;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  color: var(--color-secondary);
}
@media (max-width:700px){
  .cookie-consent-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.96rem;
  }
}
@media (max-width:480px){
  .cookie-modal{
    padding: 22px 7px 16px 7px;
    max-width: 99vw;
  }
}

/* ==========================================================================
   RESPONSIVE STYLES & FLEX DIRECTION SWITCHES
   ========================================================================== */
@media (max-width: 850px){
  .course-grid, .tip-card-grid, .blog-teasers-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-wrapper{
    gap:18px;
  }
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card,
  .course-grid .text-section,
  .tip-card-grid .text-section,
  .blog-teasers-grid .text-section {
    min-width: 0;
    padding: 22px 12px;
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .testimonial-card {
    padding: 12px 6px;
  }
}
@media (max-width:480px) {
  .footer-wrapper{
    gap:6px;
  }
}

/* ==========================================================================
   UTILITY, MICRO-ANIMATION, BUTTON STATE EFFECTS
   ========================================================================== */
hr {
  border: none;
  border-top: 1.2px solid var(--color-muted);
  margin: 22px 0;
}

a {
  transition: color 0.15s;
}

.text-section a:not(.cta-btn) {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.13s, background 0.12s;
  border-radius: 3px;
  padding: 2px 1px;
}
.text-section a:not(.cta-btn):hover, .text-section a:not(.cta-btn):focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

button, .cta-btn, .cookie-btn {
  cursor: pointer;
  user-select: none;
}

/* ===============================
   OTHER COMMON CLASSES & SECTIONS
   =============================== */

.map-embed {
  background: var(--color-accent);
  border-radius: 8px;
  padding: 18px 12px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: 10px;
}
.contact-information {
  background: var(--color-card-bg);
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 20px 18px;
  font-size: 1.08rem;
  color: var(--color-dark);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Level tag badge */
.level-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.93rem;
}

/* Feature icon alignment */
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
ul li strong {
  margin-right: 3px;
}

/* ==========================================================================
   CLASSIC ELEGANT SHADOWS & SEPARATORS
   ========================================================================== */
.card, .testimonial-card, .course-grid .text-section, .tip-card-grid .text-section, .blog-teasers-grid .text-section, .contact-information, .map-embed {
  box-shadow: 0 1px 7px var(--color-shadow), 0 7px 44px var(--color-shadow-focused);
}
blockquote {
  box-shadow: none;
}

/* ==========================================================================
   CLASSIC MODERN BUTTON/MICRO INTERACTIONS
   ========================================================================== */
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.13s, box-shadow 0.16s, transform 0.12s;
}

.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ===============================
   END OF CSS FILE
   =============================== */
