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

html {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #223963;
  text-decoration: none;
  transition: color .15s;
}
a:hover, a:focus {
  color: #ED9333;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 20px; margin-top: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; margin-top: 10px; }
h4, h5, h6 { font-size: 1.125rem; }
p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #333;
}
p { margin-bottom: 16px; }
strong { font-weight: bold; }
subheadline, .subheadline {
  font-size: 1.125rem;
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  display: block;
  line-height: 1.5;
}

/* ========== 
   COLORS
   ========== */
:root {
  --primary: #223963;
  --secondary: #E6F0FA;
  --accent: #ED9333;
  --white: #fff;
  --black: #111;
  --gray-100: #fafbfc;
  --gray-200: #f3f3f3;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #888;
  --gray-700: #444;
  --shadow-1: 0 2px 8px rgba(20,20,20,0.07);
  --shadow-2: 0 4px 18px rgba(34,57,99,.07);
}

/* ========== 
   CONTAINER
   ========== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===================================================
   HEADER, NAVIGATION, MOBILE BURGER MENU & CTAS
   =================================================== */
header {
  background: #fff;
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 30px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: .03em;
  font-weight: 800;
}
.brand-logo img {
  width: 40px;
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--primary);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .14s, border-color .18s;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  line-height: 1.2;
  min-width: 120px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 10px 26px;
  margin-left: 14px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: color 0.19s, background 0.19s, border-color 0.19s, box-shadow 0.23s;
}
.cta-button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(237,147,51,0.13);
}
.cta-button:not(.primary):hover, .cta-button:not(.primary):focus {
  background: var(--gray-200);
  color: var(--primary);
}
.cta-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

/* --------- Hamburger menu button ---------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 1101;
  transition: color 0.16s, transform 0.17s;
}
.mobile-menu-toggle:active { color: var(--accent); transform: scale(1.08); }

@media (max-width: 1024px) {
  .container {
    max-width: 920px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 16px;
  }
  nav.main-nav {
    gap: 16px;
  }
}
@media (max-width: 860px) {
  .container {
    max-width: 98vw;
  }
  nav.main-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header .container { gap: 10px; }
  .main-nav, .cta-button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* =================================================
   MOBILE OFFCANVAS MENU STYLES
   ================================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right:0;
  background: rgba(17,17,17,0.94);
  color: #fff;
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.61,0.04,0.18,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.4rem;
  padding: 22px 24px 8px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100vw;
  padding: 12px 38px 28px 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 0;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  width: 100%;
  transition: color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: none;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* =============================
   MAIN SECTIONS, HERO & LAYOUT
   ============================= */
main {
  padding-bottom: 60px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.hero, .blog-hero {
  background: linear-gradient(90deg, #fff 70%, #fafbfc 99%);
  border-bottom: 1px solid var(--gray-200);
}
.hero, .blog-hero, .contact-cta {
  display: flex;
  justify-content: center;
}
.hero .container, .blog-hero .container, .contact-cta .container {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.content-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1, .blog-hero h1, .contact-cta h2 {
  font-size: 2.65rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero .subheadline, .blog-hero .subheadline {
  color: #555;
  font-size: 1.22rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  section, .section { padding: 32px 10px; margin-bottom: 38px; }
  .hero h1, .blog-hero h1 { font-size: 2rem; }
  .contact-cta h2 { font-size: 1.25rem; }
}

/* =============================
   FEATURE SECTIONS & FLEXBOX
   ============================= */
.features {
  background: #fafbfc;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.feature-grid, .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 22px 0 0 0;
}
.feature-grid li, .benefit-grid li {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  padding: 28px 26px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 320px;
  margin-bottom: 20px;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: box-shadow .18s, border-color .16s, transform .16s;
}
.feature-grid li:hover, .benefit-grid li:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(34,57,99,0.11);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img {
  width: 38px; height: 38px; margin-bottom: 10px;
}
.feature-grid h3 { color: var(--primary); font-size: 1.22rem; }
.feature-grid p { color: #333; }

@media (max-width: 900px) {
  .feature-grid, .benefit-grid {
    gap: 14px;
  }
  .feature-grid li, .benefit-grid li {
    padding: 18px 10px; min-width: 150px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .benefit-grid{
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li, .benefit-grid li{
    width: 100%; max-width: 100%; min-width: unset;
  }
}

/* =====================
   SERVICE/COURSES LIST
   ===================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}
.service-list li {
  background: #fff;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .16s, border-color .19s;
}
.service-list li h3, .service-list li h2 {
  color: var(--primary);
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.service-list li span {
  background: var(--gray-100);
  color: var(--black);
  font-size: 1rem;
  border-radius: 12px;
  padding: 2px 10px;
  margin-left: 12px;
}
.service-list li h2 { font-size: 1.38rem; margin-bottom: 12px; }
.service-list li p {
  color: #222;
}
.service-list li:hover {
  box-shadow: 0 6px 24px rgba(34,57,99,0.16);
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .service-list li { padding: 18px 10px; }
}

/* =======================================
   TESTIMONIALS CARDS (Strong Contrast)
   ======================================= */
.testimonials, .testimonial-section {
  background: #fafbfc;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--gray-300);
}
.testimonials .content-wrapper {
  gap: 34px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 26px 26px 22px 26px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(34,57,99,0.11);
  border-radius: 18px;
  border: 2px solid #222;
  color: #111;
  position: relative;
  transition: box-shadow .16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 38px rgba(34,57,99,0.18);
  border-color: var(--accent);
}
.testimonial-card p {
  font-size: 1.13rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #000;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #444;
  font-style: italic;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .testimonial-card { padding: 18px 12px; }
}

/* =======================================
   TEXT-IMAGE, FLEX-LAYOUT, CARD CONTAINERS
   ======================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px 18px;
  transition: box-shadow .18s, border-color .15s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(34,57,99,0.14);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.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;
}
@media (max-width: 768px) {
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch;
  }
}

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

/* =======================================
   CONTACT INFO, MAP, AND CONTACT PAGE
   ======================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.location-map {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #666;
  font-size: 0.97rem;
}
.location-map img {
  width: 30px;
  height: 30px;
}

/* ============
   FOOTER
   ============ */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 12px 0;
  margin-top: 38px;
  border-top: 3px solid var(--gray-200);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}
.footer-brand img {
  width: 36px;
  height: 36px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.96;
  transition: color .12s, opacity .12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
footer address {
  font-size: 0.98rem;
  color: #cbdcff;
  font-style: normal;
}
.footer-legal {
  font-size: 0.96rem;
  opacity: 0.80;
}

/* ========
   BLOG LIST
   ========= */
.blog-list .blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-post-list li {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow .15s, border-color .16s;
}
.blog-post-list li:hover {
  box-shadow: 0 8px 30px rgba(34,57,99,0.16);
  border-color: var(--accent);
}
.blog-post-list h3 {
  color: var(--primary);
  margin-bottom: 7px;
}
.blog-post-list em {
  color: var(--gray-500);
  font-size: 0.96rem;
}

/* =======================================
   SOCIAL LINKS (Thank-You Page)
   ======================================= */
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  padding: 6px;
  background: none;
  border-radius: 50%;
  transition: background .12s, transform .11s;
}
.social-links a:hover {
  background: var(--accent);
  transform: scale(1.09);
}
.social-links img {
  width: 26px;
  height: 26px;
}

/* =======================================
   POLICY & LEGAL PAGE SECTIONS
   ======================================= */
.policy .container {
  max-width: 800px;
}
.policy h1 { font-size: 2rem; }
.policy .text-section {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 30px 24px;
  margin-top: 18px;
  box-shadow: var(--shadow-1);
}
.policy h2 { margin-top: 18px; font-size: 1.2rem; }

@media (max-width: 600px) {
  .policy .text-section { padding: 16px 8px; }
}

/* =======================================
   MICRO-INTERACTIONS & ANIMATIONS
   ======================================= */
.cta-button, .card, .testimonial-card, .service-list li, .feature-grid li, .benefit-grid li, .blog-post-list li {
  transition: box-shadow .18s, border-color .16s, transform .16s, background .19s;
}

/* Button ripple effect - subtle, on focus only */
.cta-button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--secondary);
}

/* =======================================
   COOKIES CONSENT BANNER & MODAL
   ======================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222;
  color: #fff;
  width: 100vw;
  z-index: 1700;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 18px 20px;
  gap: 40px;
  box-shadow: 0 -3px 12px rgba(20,20,26,.13);
  font-size: 1rem;
  transition: transform 0.42s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner-message {
  flex: 2;
}
.cookie-banner-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  margin-left: 0;
  background: #fff;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  transition: background .17s, color .17s;
}
.cookie-button.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-button.accept:hover { background: #e88205; }
.cookie-button.reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-button.reject:hover {
  background: #222;
  color: #fff;
}
.cookie-button.settings {
  background: none;
  border: 1.5px solid #fff;
  color: #fff;
}
.cookie-button.settings:hover,
.cookie-button.settings:focus {
  background: #222;
  color: #fff;
  border-color: var(--accent);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 16px;
    font-size: 0.98rem;
  }
  .cookie-banner-actions {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }
}

.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(17,17,17,0.64);
  z-index: 1750;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  color: #222;
  border-radius: 13px;
  box-shadow: 0 8px 40px rgba(20,20,40,.22);
  max-width: 370px;
  width: 95vw;
  padding: 34px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modal-in 0.35s cubic-bezier(.47,.06,.41,.98);
}
@keyframes modal-in {
  0%{ opacity:0; transform: translateY(80px) scale(.91); }
  100%{ opacity:1; transform: none; }
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
  z-index: 1;
  opacity: .75;
}
.cookie-modal-close:hover { color: var(--accent); opacity: 1; }
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cookie-pref-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}
.cookie-pref-label {
  font-size: 1.08rem;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: bold;
}
.cookie-pref-toggle {
  min-width: 34px;
  min-height: 20px;
}
.cookie-pref-toggle[disabled] { opacity: .42; cursor: not-allowed; }
.cookie-pref-desc {
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 14px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 450px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 22px 6px;
  }
}

/* ===============
   FORM ELEMENTS
   =============== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--gray-400);
  border-radius: 7px;
  padding: 10px 13px;
  margin-bottom: 18px;
  transition: border-color .17s, box-shadow .13s;
  color: #222;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1.5px var(--primary);
}
label {
  display: inline-block;
  font-weight: 600;
  color: #223963;
  font-size: .98rem;
  margin-bottom: 5px;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================
   UTILITY/MISC
   ========================== */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); border:0; padding:0; margin:-1px; }

/* =============
   MEDIA QUERIES
   ============= */
@media (max-width: 1100px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.32rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.54rem; }
  h2 { font-size: 1.15rem; }
  .content-wrapper { max-width: 98vw; }
}

/* Google Fonts integration */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
}
