/* =======================================
   CSS RESET & NORMALIZE
======================================= */
html,body,div,span,applet,object,iframe,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;
}
html { box-sizing: border-box; }
*,*:before,*:after { box-sizing: inherit; }
body { line-height: 1; }
ol,ul { list-style: none; }
a { background: transparent; text-decoration: none; color: inherit; }
img { border: 0; max-width:100%; display:block; }
table { border-collapse:collapse; border-spacing:0; }
button,input,select,textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor:pointer; background: none; }

/* =======================================
   CUSTOM PROPERTIES (WITH FALLBACK)
======================================= */
:root {
  --color-primary: #16437E;
  --color-secondary: #16A085;
  --color-accent: #F8F6F0;
  --color-bg: #fff;
  --color-text: #232323;
  --color-muted: #7A7973;
  --color-card: #F8F6F0;
  --color-border: #E4E2DC;
  --color-shadow: rgba(22, 67, 126, 0.08);
  --font-display: 'Montserrat', serif;
  --font-body: 'Open Sans', serif;
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 20px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body), Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-accent);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display), serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.22; margin-bottom: 20px; color: var(--color-primary); }
h3 { font-size: 1.3rem; line-height:1.24; margin-bottom: 14px; color: var(--color-secondary); }
h4,h5,h6 { font-size: 1.1rem; margin-bottom: 12px; color: var(--color-muted); }

p,ul,ol {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 15px;
}
strong, b { font-weight:700; color: var(--color-primary); }
small { font-size: 0.92em; color: var(--color-muted); }

/* =======================================
   GENERIC CONTAINER & SECTIONS
======================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius-large);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}

/* ===============================
      LAYOUT FLEXBOX UTILITIES
=============================== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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: #fff;
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  min-width: 0;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(22,67,126,0.13);
  border-color: var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  position: relative;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(22,67,126,0.14);
  border-color: var(--color-primary);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.team-bio-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.team-bio-grid > div {
  background: var(--color-card);
  border-radius: var(--radius-medium);
  padding: 20px 24px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 220px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.team-bio-grid > div:hover {
  box-shadow: 0 5px 20px rgba(22,67,126,0.13);
  border-color: var(--color-primary);
}

.course-overview-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.course-overview-cards > div {
  background: var(--color-card);
  border-radius: var(--radius-medium);
  padding: 20px 24px;
  flex: 1 1 260px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: 1px solid var(--color-border);
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.course-overview-cards > div:hover {
  box-shadow: 0 5px 20px rgba(22,67,126,0.13);
  border-color: var(--color-primary);
}

.badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 5px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-small);
  font-weight: 600;
  letter-spacing:0.07em;
  margin-top: 12px;
}

/* =======================================
   HEADER & NAVIGATION
======================================= */
header {
  background: #fff;
  box-shadow: 0 2px 20px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0; left: 0; z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
header a img {
  height: 46px;
  width: auto;
  margin-right: 32px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-size: 1.04rem;
  font-family: var(--font-display), serif;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-small);
  transition: background var(--transition), color var(--transition);
  font-weight: 600;
}
header nav a:not(.cta):hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
header nav a.cta.primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:0 2px 6px var(--color-shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
header nav a.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow:0 4px 16px rgba(22,67,126,.15);
}
header nav a.cta.secondary {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow:0 1px 2px var(--color-shadow);
  transition: background var(--transition);
}
header nav a.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 8px 10px;
  margin-left: 18px;
  z-index: 1102;
  border-radius: var(--radius-small);
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
}

/* ================================
   MOBILE MENU OVERLAY
================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(22,67,126,0.98);
  transform: translateX(-100%);
  will-change: transform;
  transition: transform 0.36s cubic-bezier(.55,0,.1,1);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding:0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  position: absolute;
  right: 20px; top: 18px;
  border: none;
  z-index: 1103;
  padding: 6px 16px;
  border-radius: var(--radius-small);
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 80px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display), serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: var(--radius-small);
  transition: background var(--transition), color var(--transition);
  margin-right: 0;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1090px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  header .container {
    padding: 10px 10px;
    gap: 8px;
  }
  header nav {
    gap: 14px;
  }
}
@media (max-width: 820px) {
  header nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 0;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =======================================
   MAIN CONTENT & HERO & FEATURES
======================================= */
main {
  min-height: 70vh;
  padding-bottom: 64px;
  background: none;
}
section {
  margin-bottom:60px;
  padding: 40px 20px;
}
.content-wrapper > ul,
.content-wrapper > ol {
  margin-top: 0; margin-bottom: 14px;
  padding-left: 18px;
  font-size: 1.06rem;
}
.content-wrapper > ul li,
.content-wrapper > ol li {
  margin-bottom: 8px;
  padding-left: 2px;
  line-height:1.7;
}
.content-wrapper > ul li:before {
  content: '–';
  color: var(--color-secondary);
  display: inline-block;
  margin-right: 7px;
  font-size:1.1em;
}

/* Features: Three Icon Columns */
.content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap:24px;
  width: 100%;
}
.content-wrapper > ul > li {
  flex:1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-card);
  border-radius: var(--radius-medium);
  padding: 20px 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  min-width: 190px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.content-wrapper > ul > li img {
  width: 42px; height: 42px; margin-bottom: 11px;
}
.content-wrapper > ul > li:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 24px rgba(22,67,126,0.12);
}

/* =============================
        CARD GRID TWEAKS
============================= */
.card-container, .card-grid, .content-grid {
  width: 100%;
}
.card, .content-wrapper > ul > li, .team-bio-grid > div,.course-overview-cards>div {
  margin-bottom:20px;
}

/* ===========================
        ABOUT PAGE
=========================== */
.certifications {
  display: flex;
  align-items: center;
  gap: 10px;
  margin:18px 0 0 0;
}
.certifications img {
  width: 30px; height: auto; margin-right:6px;
}
.approach-description {
  margin-top: 14px;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.recognition-logos {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}
.recognition-logos img {
  width: 36px; height: 36px;
}

/* =========================
   TESTIMONIALS SECTIONS
========================= */
.testimonial-card p {
  font-size:1.08rem;
  color:var(--color-text);
  line-height: 1.56;
  margin-bottom:5px;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight:700;
}
.testimonial-card span {
  font-size:0.98rem;
  color:var(--color-muted);
  display:flex;
  align-items:center;
  gap:5px;
}
.testimonial-card img[alt="star"] {
  height: 16px; width: auto; display: inline-block;
  margin-right: 5px;
}

/* ============================
   FORM & NEWSLETTER SIGNUP
============================ */
input[type="search"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: 12px 18px;
  font-size: 1rem;
  width: 350px;
  max-width: 94vw;
  margin-bottom: 20px;
  background: #fff;
  box-shadow:0 1px 2px var(--color-shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="search"]:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(22,67,126,0.11);
}

/* FAQ Accordion */
.faq-accordion > div {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  margin-bottom: 20px;
  padding: 18px 22px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-accordion > div:hover {
  border-color: var(--color-secondary);
  box-shadow:0 4px 16px rgba(22,67,126,0.11); 
}
.faq-accordion h3 {
  font-size: 1.06rem; color: var(--color-primary); margin-bottom: 6px;
}
.faq-accordion p {
  font-size:0.99rem; color: var(--color-muted);
}

/* =========================
        BUTTONS CTA
========================= */
.cta,
button.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 32px;
  border-radius: var(--radius-medium);
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align:center;
  box-shadow:0 2px 8px var(--color-shadow);
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta.primary:hover,.cta.primary:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cta.secondary {
  background: var(--color-secondary);
  color: #fff;
}
.cta.secondary:hover,.cta.secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* ============================
        TABLES (Success Stories)
============================= */
table {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 19px;
  background: #fff;
  border-radius: var(--radius-medium);
  box-shadow:0 1px 7px rgba(22,67,126,0.05);
  border: 1px solid var(--color-border);
  font-size: 0.97rem;
  color: var(--color-text);
}
th,td {
  padding: 13px 12px;
  text-align: left;
  border-bottom:1px solid var(--color-border);
}
th {
  background:var(--color-accent);
  color:var(--color-primary);
  font-weight: 600;
}

/* ============================
      CONTACT & FOOTER INFO
============================ */
.contact-information p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.contact-information img {
  width: 22px; height:22px; margin-right: 8px;
}
.footer-contact {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--color-muted);
}
.footer-contact img {
  width: 22px; height: 22px;
}

/* =========================
          FOOTER
========================== */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -1px 12px var(--color-shadow);
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  padding: 28px 20px 18px 20px;
  flex-wrap: wrap;
}
footer a img {
  height: 42px; width: auto; margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-right: 18px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display), serif;
  transition: color var(--transition);
  margin-bottom: 2px;
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-secondary);
}
footer small {
  font-size: .97em; margin-top: 10px; color: var(--color-muted); display:block;
}

/* =============================
       COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right:0;
  bottom: 0;
  z-index: 3500;
  background: #fff;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 16px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 20px 22px 20px;
  font-family: var(--font-body), serif;
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: opacity 0.33s var(--transition), transform 0.33s var(--transition);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  border-radius: var(--radius-small);
  font-family: var(--font-display), serif;
  font-weight:600;
  padding:8px 22px;
  margin:0;
  font-size:1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border:1px solid var(--color-border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-banner button.accept {
  background: var(--color-primary);
  color:#fff;
  border:1px solid var(--color-primary);
}
.cookie-banner button.accept:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-banner button.reject {
  background: #fff;
  color: var(--color-secondary);
  border:1px solid var(--color-secondary);
}
.cookie-banner button.reject:hover {
  background: var(--color-accent);
}
.cookie-banner button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border:1px solid var(--color-border);
}
.cookie-banner button.settings:hover {
  background: var(--color-secondary);
  color:#fff;
  border-color: var(--color-secondary);
}

/* =========================
   COOKIE CONSENT MODAL POPUP
========================= */
.cookie-modal {
  position: fixed;
  left: 0; top:0; right:0; bottom:0;
  z-index: 3600;
  background: rgba(16,35,72,0.51);
  display:flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events:none;
  transition: opacity 0.26s var(--transition);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-large);
  box-shadow:0 10px 42px rgba(22,67,126,0.20);
  border:1.5px solid var(--color-primary);
  padding: 34px 28px 30px 28px;
  min-width: 312px;
  max-width: 98vw;
}
.cookie-modal-dialog h2 {
  font-size:1.41rem;
  margin-bottom:16px;
  color: var(--color-primary);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom:18px;
}
.cookie-modal-category label {
  font-weight: 600; color:var(--color-text);
}
.cookie-modal-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 23px; height:23px;
  vertical-align: middle;
}
.cookie-modal-buttons {
  display: flex; flex-direction: row; gap: 15px; justify-content: flex-end; margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute; right: 20px; top: 15px;
  font-size: 1.44rem;
  color: var(--color-primary);
  background: none; border: none;
  cursor:pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover { color: var(--color-secondary); }

/* =============================
      MISCELLANEOUS
============================== */
a { color: var(--color-primary);text-underline-offset: 4px;transition: color var(--transition); }
a:hover, a:focus { color: var(--color-secondary); text-decoration: underline; }

::-webkit-scrollbar {
  width: 11px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-large);
}

/* =========================
      RESPONSIVE (Mobile First)
=========================== */
@media (max-width: 900px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size:1.38rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 9px; }
  .section, section { padding: 30px 4px; margin-bottom: 42px; }
  .content-wrapper { gap: 13px; }
  .content-wrapper > ul, .team-bio-grid, .course-overview-cards { gap: 14px; }
  .card-container, .card-grid, .content-grid { gap: 14px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .team-bio-grid, .course-overview-cards {
    flex-direction: column;
  }
  .testimonial-card, .card, .content-wrapper > ul > li,
  .team-bio-grid > div, .course-overview-cards > div {
    min-width: 0; padding: 18px 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 15px;
    padding: 19px 9px 10px 9px;
  }
  footer nav {
    flex-direction: row;
    gap: 14px;
    margin-right: 0;
    flex-wrap: wrap;
  }
  .cookie-banner { flex-direction: column; gap:10px; align-items: flex-start; padding: 20px 10px; font-size: 0.99rem;}
  .cookie-banner .cookie-actions { gap: 9px; }
}
@media (max-width: 500px) {
  h1 { font-size:1.36rem; }
  h2 { font-size:1.06rem; }
  .team-bio-grid>div, .course-overview-cards>div, .card {
    min-width:0; padding: 12px 6px;
  }
  .footer-contact p { font-size: 0.96rem; }
  input[type="search"] { width:97vw; min-width:0; }
  .cookie-modal-dialog { padding:15px 11px 14px 14px; }
}
