/* =============================
   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, 
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;
  background: #fff;
  color: #1a1a1a;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: transparent;
  color: inherit;
}

/* =============================
   CSS CUSTOM PROPERTIES
   ============================= */
:root {
  --color-primary: #163F77;
  --color-secondary: #32BA7C;
  --color-accent: #F9F8F0;
  --color-dark: #10213D;
  --color-light: #fff;
  --color-grey: #F4F4F4;
  --color-grey-600: #444;
  --color-grey-400: #8C8C8C;
  --color-border: #e7e7e7;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =============================
   TYPOGRAPHY & GENERAL SETTINGS
   ============================= */
html {
  font-size: 16px;
  font-family: var(--font-body);
  scroll-behavior: smooth;
  background: var(--color-light);
  color: var(--color-dark);
}
body {
  font-family: var(--font-body);
  background: var(--color-light);
  color: var(--color-dark);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.16;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 15px;
  line-height: 1.22;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol, address {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-dark);
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 28px;
  font-family: var(--font-display);
}
address {
  font-style: normal;
  color: var(--color-grey-600);
  margin-bottom: 16px;
}
strong {
  color: var(--color-primary);
}

/* =============================
   LAYOUT CONTAINERS & SPACING
   ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-flex {
  flex-wrap: wrap;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 28px 24px;
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(22,63,119,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
}
.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;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(22,63,119,0.11);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 480px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card .customer {
  color: var(--color-primary);
  font-size: 0.97rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: var(--color-light);
  box-shadow: 0 2px 12px 0 rgba(22,63,119,0.05);
  position: relative;
  z-index: 20;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header-flex {
  flex-wrap: wrap;
  min-height: 68px;
}
.header-flex a img {
  height: 40px;
}
nav {
  display: flex;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-dark);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px 0 rgba(22,63,119,0.10);
  cursor: pointer;
  transition: background 0.20s, color 0.18s, box-shadow 0.2s;
  margin-left: 4px;
  outline: none;
  border: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-light);
  box-shadow: 0 4px 18px 0 rgba(50,186,124,0.16);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.20s, color 0.18s, border 0.18s, box-shadow 0.2s;
  margin-left: 4px;
  box-shadow: 0 1px 6px 0 rgba(22,63,119,0.04);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-light);
  border: 1px solid var(--color-primary);
}

/* Burger / Mobile Menu (initial state hidden above desktop breakpoint) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  margin-left: auto;
  z-index: 301;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-light);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(22,63,119,0.93);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.4,1.4,.5,.96);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 26px;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-top: 28px;
  margin-bottom: 36px;
  background: transparent;
  border: none;
  color: var(--color-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 400;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-light);
  font-size: 1.13rem;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.13s;
  padding: 10px 8px;
  margin-left: 0;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

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

/* =============================
   FOOTER STYLES
   ============================= */
footer {
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 0 0;
  color: var(--color-grey-600);
  font-size: 0.99rem;
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 12px;
}
.footer-logo img {
  height: 32px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.9;
  transition: opacity 0.12s;
}
.footer-menu a:hover, .footer-menu a:focus {
  opacity: 1;
}
.footer-contact p {
  margin-bottom: 8px;
  color: var(--color-dark);
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-rights {
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-grey-400);
  margin-top: 20px;
  padding: 16px 0 12px 0;
  letter-spacing: .015em;
}

@media (max-width: 700px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-logo {
    margin-bottom: 4px;
  }
}

/* =============================
   CORE FLEX LAYOUT VARIANTS
   ============================= */
/* Card containers, feature grids, testimonials, etc. */
.features-grid,
.feature-blocks,
.course-grid,
.team-grid,
.pricing-table,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid {
  gap: 32px;
}
.feature-block,
.course-block,
.team-member {
  background: var(--color-light);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(22,63,119,0.07);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 230px;
  flex-basis: calc(50% - 24px);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-block:hover, .course-block:hover, .team-member:hover {
  box-shadow: 0 6px 20px 0 rgba(22,63,119,0.14);
}
.course-grid, .team-grid {
  gap: 30px;
}

/* Special content arrangement for wider screens */
@media (min-width: 900px) {
  .features-grid,
  .course-grid,
  .team-grid,
  .pricing-table,
  .faq-list {
    flex-direction: row;
    justify-content: flex-start;
  }
  .feature-block,
  .course-block,
  .team-member {
    flex-basis: calc(25% - 24px);
    min-width: 220px;
    max-width: 330px;
  }
}
@media (max-width: 899px) {
  .feature-block,
  .course-block,
  .team-member {
    flex-basis: 100%;
    min-width: 200px;
    max-width: 100%;
  }
}
/* =============================
   CTA, BANNERS, BOXES
   ============================= */
.cta-banner {
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 13px 0 rgba(50,186,124,0.13);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cta-banner p, .cta-banner h2 {
  color: #fff;
}
.cta-bottom {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* =============================
   TEXT & INFO SECTIONS
   ============================= */
.text-section {
  max-width: 710px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 21px;
  color: var(--color-dark);
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  position: relative;
}
ul li:before, ol li:before {
  content: '';
  display: none;
}
ul li img, ol li img {
  margin-right: 6px;
}

/* =============================
   FAQ LIST, CONTACT, LOCATION
   ============================= */
.faq-list {
  gap: 20px;
  flex-direction: column;
}
.faq-item {
  background: var(--color-grey);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 1px 6px rgba(22,63,119,0.07);
  margin-bottom: 10px;
}
.contact-box, .location-box {
  background: var(--color-grey);
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: 0 2px 13px 0 rgba(22,63,119,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 770px;
  margin: 0 auto;
}
.contact-box ul, .location-box ul {
  margin-left: 0;
}
.contact-box li, .location-box li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.location-map img {
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(22,63,119,0.08);
  width: 120px;
  height: 120px;
  background: var(--color-accent);
  object-fit: cover;
}
.location-block {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: var(--color-grey);
  border-radius: 16px;
  padding: 32px 20px;
  margin-bottom: 20px;
}

/* =============================
   RESPONSIVE FLEX LAYOUT ADJUSTMENTS
   ============================= */
@media (max-width: 899px) {
  .section {
    margin-bottom: 36px;
    padding: 20px 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .header-flex, .footer-flex {
    gap: 18px;
  }
  .content-wrapper,
  .features-grid,
  .feature-blocks,
  .course-grid,
  .team-grid,
  .pricing-table {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    margin-bottom: 16px;
    padding: 20px 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card,
  .feature-block,
  .team-member,
  .course-block {
    min-width: 180px;
    max-width: 100%;
    padding: 18px 12px 16px 12px;
  }
  .cta-banner {
    padding: 16px 8px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .contact-box, .location-box {
    padding: 16px 8px;
    border-radius: 10px;
  }
  .location-map img {
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}
@media (max-width: 489px) {
  .header-flex {
    gap: 11px;
  }
  .container {
    padding: 0 2vw;
  }
}

/* =============================
   MICRO-INTERACTIONS & TRANSITIONS
   ============================= */
.btn-primary, .btn-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
}
.feature-block, .course-block, .testimonial-card, .team-member {
  transition: box-shadow 0.14s, transform 0.14s;
}
.feature-block:hover, .course-block:hover, .testimonial-card:hover, .team-member:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 6px 20px 0 rgba(22,63,119,0.15);
}
nav a, .footer-menu a, .mobile-nav a {
  transition: color 0.2s, background 0.2s;
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-grey);
  box-shadow: 0 -2px 10px rgba(22,63,119,0.08);
  border-top: 1px solid var(--color-border);
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 18px 12px;
  gap: 18px;
  animation: cookieSlideIn .38s cubic-bezier(.36,1.75,.7,.93);
}
@keyframes cookieSlideIn {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  color: var(--color-dark);
  font-size: 1.02rem;
  margin-bottom: 10px;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .btn-cookie {
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 0.97rem;
  font-family: var(--font-display);
  cursor: pointer;
  margin: 0 1px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: var(--color-secondary);
}
.btn-cookie-reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: var(--color-primary);
  color: #fff;
}
.btn-cookie-settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(22,63,119,0.40);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalBackdrop .2s cubic-bezier(.36,1.75,.7,.93);
}
@keyframes cookieModalBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-light);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(22,63,119,0.18);
  padding: 38px 32px 30px 32px;
  max-width: 420px;
  width: 94vw;
  z-index: 4100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cookieModalShow .33s cubic-bezier(.36,1.75,.7,.93);
}
@keyframes cookieModalShow {
  from { transform: translateY(50px) scale(0.91); opacity: 0.75; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.32rem;
  margin-bottom: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
  font-family: var(--font-body);
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: var(--color-grey);
  position: relative;
  cursor: pointer;
  transition: background .17s;
  margin-left: 12px;
  flex-shrink: 0;
}
.cookie-toggle[data-checked='on'] {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--color-light);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(22,63,119,0.10);
  transition: transform .19s;
}
.cookie-toggle[data-checked='on']:before {
  transform: translateX(16px);
  background: #fff;
}
.cookie-category input[type='checkbox'] {
  display: none;
}
.cookie-category.essential label {
  color: var(--color-grey-600);
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-modal-close, .btn-modal-save {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-modal-save {
  background: var(--color-primary);
  color: #fff;
  transition: background .15s;
}
.btn-modal-save:hover, .btn-modal-save:focus {
  background: var(--color-secondary);
}
.btn-modal-close {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background .15s, color .15s;
}
.btn-modal-close:hover, .btn-modal-close:focus {
  background: var(--color-primary);
  color: #fff;
}

/* =============================
   MISC
   ============================= */
::-webkit-input-placeholder { color: #b5becb; }
::-moz-placeholder { color: #b5becb; }
:-ms-input-placeholder { color: #b5becb; }
::placeholder { color: #b5becb; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 38px 0;
}

/* Hide scrollbars in modal/menu for cleaner look on mobile */
.mobile-menu, .cookie-modal {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* =============================
   PRINT SAFE (OPTIONAL)
   ============================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
