/* -------------------
   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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
  background: #F5F7FA;
}
body {
  font-family: 'Arial', sans-serif;
  color: #25365c;
  background: #F5F7FA;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #144872;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:hover, a:focus {
  color: #B7682B;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* Font-face for Montserrat (display) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #144872;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

p, li, span, .subheadline {
  font-family: 'Arial', sans-serif;
  color: #374160;
  font-size: 1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #263352;
}
strong {
  color: #144872;
}

/* -------------------
   LAYOUT CONTAINERS
--------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(20, 72, 114, 0.06);
}
.hero {
  background: linear-gradient(90deg, #f2dfb6 40%, #fff 100%);
  padding: 42px 0 36px 0;
  margin-bottom: 48px;
  border-bottom: 1px solid #dde6f0;
}
.hero .container {
  display: flex;
  align-items: center;
}

/* ----------------------
   NAVIGATION & HEADER
------------------------ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(20,72,114,0.05);
  padding: 0 0;
  z-index: 30;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.logo-link {
  margin: 0 24px 0 0;
  display: flex;
  align-items: center;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #1a3555;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 12px 4px 12px 4px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
  position: relative;
  margin-right: 10px;
}
header nav a:last-child {
  margin-right: 0;
}
header nav a:hover, header nav a:focus {
  background: #F2DFB6;
  color: #B7682B;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
  margin-left: 32px;
  text-align: center;
  outline: none;
  box-shadow: 0 1px 5px 0 rgba(20, 72, 114, 0.06);
}
.cta.primary {
  background: #144872;
  color: #fff;
  border: 2px solid #144872;
}
.cta.primary:hover, .cta.primary:focus {
  background: #11375e;
  color: #F2DFB6;
  border-color: #B7682B;
}
.cta.secondary {
  background: #F2DFB6;
  color: #144872;
  border: 2px solid #F2DFB6;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #fff;
  border-color: #B7682B;
  color: #B7682B;
}

/* -------------------
   MOBILE NAVIGATION
--------------------- */
.mobile-menu-toggle {
  display: none; /* visible on mobile only */
  position: absolute;
  top: 19px;
  right: 18px;
  background: #fff;
  border: 2px solid #144872;
  color: #144872;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  z-index: 200;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(20, 72, 114, 0.08);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F2DFB6;
  color: #B7682B;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 72, 114, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.77,.05,.28,.97);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2DFB6;
}
.mobile-nav {
  margin: 40px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  padding: 14px 8px;
  border-radius: 7px;
  min-width: 200px;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B7682B;
  color: #fffbe7;
  text-decoration: none;
}

@media (max-width: 1050px) {
  header nav {
    gap: 12px;
  }
  .cta.primary {
    margin-left: 10px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 6px;
  }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  header {
    padding: 10px 0;
    flex-direction: row;
    gap: 4px;
  }
  .hero {
    padding: 32px 0 24px 0;
  }
  .container {
    padding: 0 12px;
  }
}

/* -------------------
   FEATURE/CARD SECTION
--------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin: 24px 0;
  padding: 0;
}
.feature-grid li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(20, 72, 114, 0.08);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 290px;
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1px solid #eaf1f7;
  transition: box-shadow 0.22s, border 0.22s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 8px 24px -2px rgba(20, 72, 114, 0.13);
  border: 1.5px solid #144872;
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(20, 72, 114, 0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  min-width: 260px;
  max-width: 350px;
}

/* General grid for content */
.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;
}
@media (max-width: 850px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
}
@media (max-width: 650px) {
  .content-wrapper {
    gap: 14px;
  }
  .feature-grid, .card-container, .content-grid, .text-image-section {
    gap: 14px;
    min-width: 0;
  }
}

/* -------------------
   SERVICE LISTS & TABLES
--------------------- */
.service-list, .course-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 24px 0 0 0;
}
.service-list li, .course-highlights li {
  background: #F2DFB6;
  border-radius: 10px;
  padding: 20px 16px 18px 18px;
  color: #144872;
  font-size: 1.05rem;
  min-width: 220px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px 0 rgba(20, 72, 114, 0.03);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-list .cta, .course-highlights .cta {
  margin-top: 12px;
  align-self: flex-start;
}
@media (max-width: 650px) {
  .service-list, .course-highlights {
    gap: 15px;
    flex-direction: column;
  }
}

/* Tables with Flexbox */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px 0 rgba(20, 72, 114, 0.05);
  margin-bottom: 18px;
  overflow: hidden;
}
thead {
  background: #144872;
}
thead tr {
  display: flex;
  width: 100%;
}
thead th {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 6px;
  flex: 1;
  text-align: left;
}
tbody tr {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #e7e6ea;
}
tbody td {
  flex: 1;
  padding: 16px 8px;
  font-size: 1rem;
  color: #25365c;
}
tbody tr:last-child {
  border: none;
}
@media (max-width: 650px) {
  table, thead tr, tbody tr {
    flex-direction: column;
    display: flex;
    width: 100%;
  }
  thead {
    display: none;
  }
  tbody tr {
    border-bottom: 10px solid #F2DFB6;
    margin-bottom: 8px;
  }
  tbody td {
    padding: 12px 5px;
    display: flex;
    align-items: center;
    width: 100%;
  }
}

/* -------------------
   TESTIMONIALS & BLOCKQUOTES
--------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f6f9fb;
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px -3px rgba(20,72,114,0.07);
  border: 1.5px solid #e2ecf6;
  transition: box-shadow 0.18s, border 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px -3px rgba(20,72,114,0.11);
  border-color: #144872;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #243560;
  font-style: italic;
  margin-right: 12px;
  margin-bottom: 0;
}
.testimonial-author {
  font-size: 1rem;
  color: #144872;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 13px;
}
.rating-stars {
  color: #B7682B;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 11px;
  }
}

blockquote {
  quotes: '“' '”' '‘' '’';
}
blockquote:before {
  content: open-quote;
  color: #B7682B;
  font-size: 2rem;
  vertical-align: top;
  line-height: 1;
  margin-right: 7px;
}
blockquote:after {
  content: close-quote;
  color: #B7682B;
  font-size: 2rem;
  vertical-align: bottom;
  line-height: 1;
  margin-left: 7px;
}

/* -------------------
   INFOBOXES & HIGHLIGHTS
--------------------- */
.infobox {
  background: #f2dfb6e8;
  color: #25365c;
  border-left: 4px solid #B7682B;
  padding: 18px 18px 18px 22px;
  margin: 16px 0;
  border-radius: 7px;
  font-size: 1.04rem;
  box-shadow: 0 2px 6px 0 rgba(183, 104, 43, 0.08);
}

/* -------------------
   FOOTER STYLES
--------------------- */
footer {
  width: 100%;
  background: #144872;
  color: #fff;
  padding: 30px 0 25px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 4px;
}
footer nav a {
  color: #F2DFB6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #B7682B;
}
footer p {
  font-size: 0.98rem;
  color: #e6e7ee;
  margin: 0;
  text-align: center;
  max-width: 90vw;
}

@media (max-width: 600px) {
  footer nav {
    flex-direction: column;
    gap: 6px;
  }
}

/* -----------------
   TEXT SECTION & MISC
------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul {
  list-style-type: disc;
  margin-left: 26px;
  color: #4d5873;
}
.text-section li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.text-section h3 {
  font-size: 1.13rem;
  margin-top: 10px;
  color: #144872;
}

/* -------- Widgets & Misc ---------- */
.rating-stars {
  letter-spacing: 2px;
  user-select: none;
}

/* -------------------
   SPACING UNIFORMITY
--------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---------- RESPONSIVE MAIN ----------- */
@media (max-width: 650px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .infobox {
    font-size: 0.98rem;
    padding: 12px 8px 12px 13px;
  }
  section {
    margin-bottom: 32px;
    padding: 14px 8px;
  }
  .section {
    padding: 16px 7px;
    margin-bottom: 24px;
  }
}

/* -----------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  background: #25365c;
  color: #fff;
  z-index: 10000;
  box-shadow: 0 -2px 12px 0 rgba(20, 72, 114, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px 24px 24px;
  font-size: 1rem;
  gap: 30px;
  transition: transform 0.26s ease;
  font-family: 'Arial', sans-serif;
}
.cookie-consent-banner .cookie-banner-text {
  flex: 1 1 320px;
  color: #f5f7fa;
  margin-right: 20px;
}
.cookie-consent-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.17s;
  outline: none;
  margin-left: 0;
}
.cookie-btn-primary {
  background: #144872;
  color: #fff;
  border: 2px solid #B7682B;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #11375e;
  color: #F2DFB6;
  border-color: #F2DFB6;
}
.cookie-btn-secondary {
  background: #fff;
  color: #144872;
  border: 2px solid #F2DFB6;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #F2DFB6;
  color: #B7682B;
  border-color: #B7682B;
}
.cookie-btn {
  background: #e7ecf6;
  color: #144872;
  border: 1px solid #e7ecf6;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B7682B;
  color: #fff;
  border-color: #B7682B;
}
@media (max-width: 900px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    padding: 17px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner .cookie-banner-actions {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.97rem;
    padding: 11px 8px 11px 8px;
    gap: 7px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 72, 114, 0.62);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #144872;
  border-radius: 16px;
  max-width: 420px;
  padding: 36px 30px 24px 30px;
  box-shadow: 0 8px 36px 0 rgba(20, 72, 114, 0.15);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
}
.cookie-category label {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  color: #25365c;
}
.cookie-category input[type="checkbox"] {
  accent-color: #144872;
  width: 20px; height: 20px;
}
.cookie-modal .cookie-btn {
  align-self: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 8px; right: 16px;
  background: none;
  border: none;
  color: #144872;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: #B7682B;
}
@media (max-width: 500px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 13px 7px 8px 7px;
    font-size: 0.97rem;
  }
  .cookie-modal h2 {
    font-size: 1.12rem;
    margin-bottom: 6px;
  }
}

/* ----------- TRANSITIONS, MICROINTERACTIONS, SHADOWS ----------- */
.card, .feature-grid li, .testimonial-card, .section {
  transition: box-shadow 0.20s, border 0.20s, transform 0.18s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 8px 28px -2px rgba(20, 72, 114, 0.10);
  transform: translateY(-2px) scale(1.01);
}
a, .cta, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  transition: background 0.16s, color 0.15s, box-shadow 0.16s, border 0.16s, outline 0.12s;
}

/* Hide focus outline, except on keyboard navigation */
button:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 2px solid #B7682B;
  outline-offset: 2px;
}
button:focus:not(:focus-visible), .cta:focus:not(:focus-visible), a:focus:not(:focus-visible) {
  outline: none;
}

/* -------------
   UTILITY CLASSES
--------------- */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------
   PRINT GENERAL
--------------- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #111; }
}
