/* ===== 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, button, textarea, input, select, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  color: #26334d;
  background-color: #f5f5f5;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #283593;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D32F2F;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ====== VARIABLES ====== */
:root {
  --primary: #283593;
  --secondary: #D32F2F;
  --accent: #F5F5F5;
  --dark: #1a2236;
  --gray-700: #34405a;
  --gray-200: #e3e9f0;
  --white: #FFFFFF;
  --shadow: 0px 3px 16px rgba(40,53,147,0.10);
  --radius: 10px;
  --transition: 0.2s cubic-bezier(.45,.3,.35,1.1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 18px;}
h2 { font-size: 2rem; line-height: 1.13; margin-bottom: 14px;}
h3 { font-size: 1.35rem; line-height: 1.22; }
h4 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px;}
p, li, ul {
  font-family: var(--font-body);
  color: #26334d;
  font-size: 1rem;
  margin-bottom: 10px;
}
strong { font-weight: 700;}
.subheadline {
  color: var(--gray-700);
  font-size: 1.23rem;
  max-width: 680px;
  margin-bottom: 14px;
}

/* ====== LAYOUT & CONTAINER ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* ===== HERO ===== */
.hero {
  background: var(--primary);
  color: var(--white);
  padding-top: 62px;
  padding-bottom: 50px;
  margin-bottom: 38px;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1, .hero h2, .hero h3, .hero h4 {
  color: var(--white);
}
.hero .subheadline {
  color: #cdd2e1;
  font-weight: 500;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 9px rgba(40,53,147,0.06);
  position: sticky;
  top: 0;
  z-index: 1050;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}
.logo-link img {
  height: 44px;
  min-width: 110px;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--gray-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  border: none;
  cursor: pointer;
  margin-left: 14px;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.cta-btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(40,53,147,0.10);
}
.cta-btn:hover, .cta-btn:focus {
  background: #3140BC;
  color: #fff;
  box-shadow: 0 8px 32px rgba(40,53,147,0.14);
  text-decoration: none;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #4351c7;
  color: #fff;
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 21px;
  z-index: 2100;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(40,53,147,0.15);
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #4351c7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,53,147, 0.96);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(110vw);
  transition: transform 0.33s cubic-bezier(.55,.19,.28,1);
  z-index: 2200;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -6px 0 24px rgba(40,53,147,0.15);
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2rem;
  margin: 22px 22px 0 0;
  align-self: flex-end;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 28px 0 38px;
  align-items: flex-start;
  margin-top: 20px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: color var(--transition);
  padding: 5px 0;
  display: block;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* ====== MAIN CONTENT STRUCTURE ====== */
main {
  background: var(--accent);
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  background: var(--white);
}

.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;
}

/* === Utility Feature/Grid Patterns === */
.feature-grid, .service-list, .testimonial-slider, .testimonial-grid, .resource-list, .post-list, .categories, .achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}
.feature-grid li, .resource-list li, .post-list li {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px 22px 22px 22px;
  min-width: 240px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid li:hover, .resource-list li:hover, .post-list li:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px rgba(40,53,147,0.17);
}
.feature-grid img, .resource-list img {
  height: 42px; width: 42px;
  margin-bottom: 2px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.service-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 310px;
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-item:hover {
  box-shadow: 0 8px 30px rgba(40,53,147,0.12);
  transform: translateY(-3px) scale(1.015);
}

/* === Cards, Testimonials, Features === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px; 
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.achievements li {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  background: #e3e9f0;
  border-radius: 8px;
  padding: 10px 18px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonials, .testimonial-slider, .testimonial-grid {
  background: var(--accent);
}
.testimonial-slider, .testimonial-grid {
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--white);
  color: #1a2236;
  padding: 22px 30px 18px 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(40,53,147,0.10);
  min-width: 240px;
  min-height: 120px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 7px 37px rgba(40,53,147,0.16);
  transform: scale(1.025);
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #2b354d;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
}

/* ====== CTA FINAL ====== */
.cta-final {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(40,53,147,0.12);
  margin-bottom: 0 !important;
  padding: 50px 0;
}
.cta-final .content-wrapper {
  align-items: center;
  gap: 18px;
}
.cta-final h2, .cta-final p {
  color: var(--white);
}

/* ===== TEXT SECTIONS ===== */
.text-section {
  background: var(--white);
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(40,53,147,0.05);
  padding: 19px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instructor-intro {
  background: #e3e9f0;
  border-radius: 6px;
  padding: 15px 18px;
  margin-top: 16px;
  color: var(--dark);
  font-weight: 500;
}

.featured-post {
  background: #e3e9f0;
  border-radius: 9px;
  box-shadow: 0 2px 11px rgba(40,53,147,0.08);
  padding: 18px 18px 12px 18px;
  margin-bottom: 22px;
}

.categories li {
  background: #e3e9f0;
  display: inline-flex;
  border-radius: 18px;
  padding: 7px 22px;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== CONTACT DETAILS & MAP ===== */
.contact-details, .map-office, .office-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details p img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 30px 0 20px 0;
  font-size: 1rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 165px;
}
.footer-nav a {
  color: #d0d6ee;
  padding: 2px 0;
  font-size: 1rem;
  font-family: var(--body);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  color: #e3e9f0;
  line-height: 1.6;
  font-size: 0.99rem;
  min-width: 210px;
}
.footer-contact img {
  vertical-align: middle;
  height: 19px;
  width: 19px;
  margin-right: 8px;
}

.footer-social {
  display: flex;
  gap: 13px;
}
footer a img {
  min-width: 34px;
  margin-bottom: 8px;
}

/* ===== BUTTONS & INTERACTIONS ===== */
button, .cta-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card, .testimonial-card, .service-item, .feature-grid li, .resource-list li, .post-list li {
  animation: fadeUp 0.58s cubic-bezier(.37,.21,.59,1) both;
}

/* ===== FORM ELEMENTS (FORMS WHEN PRESENT) ===== */
input, textarea, select {
  border: 1px solid #c5c8d4;
  border-radius: 8px;
  padding: 12px 13px;
  margin-bottom: 16px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: #26334d;
  box-shadow: 0 1px 5px rgba(40,53,147,0.02);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  background: #f1f3fa;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #e3e9f0;
  color: #1a2236;
  padding: 24px 18px 20px 20px;
  box-shadow: 0px -2px 18px rgba(40,53,147,0.08);
  font-size: 1rem;
  z-index: 2540;
  animation: fadeUp 0.7s cubic-bezier(.3,.85,.35,1.1);
  gap: 28px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 26px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: var(--white);
  margin-left: 6px;
  box-shadow: 0 1px 8px rgba(40,53,147,0.06);
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.reject {
  background: #8f98a5;
  color: var(--white);
}
.cookie-btn.settings {
  background: #e3e9f0;
  color: var(--dark) !important;
  border: 1px solid #b7bac8;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #4351c7;
  color: var(--white);
}
.cookie-btn.accept:hover {
  background: #881e1e;
}
.cookie-btn.reject:hover {
  background: #727887;
}
.cookie-btn.settings:hover {
  background: #f7f8fc;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,53,147,0.22);
  z-index: 2550;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.6s cubic-bezier(.42,.1,.45,1.05);
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 44px rgba(40,53,147,0.22);
  padding: 36px 30px 26px 30px;
  max-width: 380px;
  min-width: 320px;
  font-size: 1rem;
  color: #26334d;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.4s;
  
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  align-self: flex-end;
  margin-bottom: -12px;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover {
  color: var(--primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.cookie-category-label {
  font-weight: 600;
  margin-right: 6px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
  .container { max-width: 970px; }
}
@media (max-width: 990px) {
  .container { max-width: 90vw; }
  .service-list, .feature-grid, .testimonial-slider, .testimonial-grid, .card-container { gap: 16px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
  .footer-contact, .footer-nav { font-size: .97rem; }
  .section, section { padding: 32px 6px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .container { max-width: 100vw; padding-left: 8px; padding-right: 8px; }
  .header .container, .footer .container { flex-direction: column; align-items: flex-start; }
  .main-nav, header .container { display: none !important; }
  .mobile-menu-toggle { display: flex; }
  .feature-grid, .service-list, .testimonial-slider, .testimonial-grid, .card-container, .resource-list, .post-list { flex-direction: column; gap: 20px; }
  .content-wrapper { gap: 12px; }
  .section, section { padding: 24px 0; }
  .hero { padding: 38px 0 30px 0; }
  .testimonial-card, .service-item, .feature-grid li, .resource-list li, .post-list li {
    padding: 18px 8px 12px 10px;
    min-width: unset;
    margin-bottom: 20px;
  }
  .cta-final { padding: 28px 0; }
  .footer-contact { min-width: unset; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 17px; }
  .cookie-consent-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 10px 16px 10px; }
  .cookie-modal { max-width: 92vw; min-width: 0; padding: 20px 10px 16px 10px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.39rem; }
  h2 { font-size: 1.05rem; }
  .cta-btn, .cookie-btn { font-size: .99rem; padding: 10px 14px; }
  .container { padding-left: 5px; padding-right: 5px; }
}

/* ===== Z-INDEX LAYERING ===== */
header { z-index: 1050; }
.mobile-menu-toggle { z-index: 2100; }
.mobile-menu { z-index: 2200; }
.cookie-consent-banner { z-index: 2540; }
.cookie-modal-overlay { z-index: 2550; }
footer { z-index: 10; }

/* ====== OVERRIDES & FINAL TWEAKS ====== */
::-webkit-scrollbar { width: 9px; background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d0d6ee; border-radius: 5px; }

@media (max-width: 440px) {
  .footer-contact {
    font-size: .91rem;
  }
  .footer-nav {
    font-size: .91rem;
  }
}

/* === Hide desktop nav on mobile and show menu button === */
@media (max-width: 900px) {
  .main-nav, .cta-btn { display: none !important; }
}
@media (min-width: 901px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}

