/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #223A5E;
  background: #F7F7F7;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.2em;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* COLOR VARIABLES (with fallbacks) */
:root {
  --color-primary: #223A5E;
  --color-secondary: #D72638;
  --color-accent: #F7F7F7;
  --color-bg-gradient-top: #223A5E;
  --color-bg-gradient-bottom: #246B8C;
  --color-card-gradient: #FAFAFF;
  --color-footer-bg: #223A5E;
  --color-footer-text: #fff;
  --color-cta-shadow: rgba(34,58,94,0.10);
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #223A5E;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #223A5E;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #223A5E;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #223A5E;
}
p, li, span, label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #223A5E;
}
.hero p, .hero .cta-btn {
  font-size: 1.1rem;
}

strong {
  font-weight: 700;
}

/* SPACING & LAYOUT CLASSES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLEX LAYOUTS – UTILITY CLASSES */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list, .team-grid, .course-list, .event-list, .features-grid, .feature-grid, .testimonial-slider, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list > div, .team-grid > div, .course-list > div, .event-list > div, .features-grid > div, .feature-grid > div, .testimonial-slider > div, .pricing-table > div {
  flex: 1 1 290px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(34,58,94,0.08);
  padding: 26px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.blog-list > div:hover, .team-grid > div:hover, .course-list > div:hover, .event-list > div:hover, .features-grid > div:hover, .feature-grid > div:hover, .testimonial-slider > div:hover, .pricing-table > div:hover {
  box-shadow: 0 8px 24px rgba(34,58,94,0.14);
  transform: translateY(-3px) scale(1.022);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(34,58,94,0.08);
  color: #223A5E;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 520px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(34,58,94,0.14);
  transform: translateY(-2px) scale(1.014);
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #223A5E;
}
.testimonial-card span {
  color: #223A5E;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
}

.map-placeholder {
  background: #F7F7F7;
  border-radius: 12px;
  padding: 20px 14px;
  margin: 20px 0 0 0;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.pricing-table > div {
  flex: 1 1 240px;
  background: #F7F7F7;
  border-left: 4px solid #D72638;
  box-shadow: none;
  border-radius: 14px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #223A5E;
  min-width: 180px;
  margin-bottom: 0;
  padding-left: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(120deg, #223A5E 0%, #246B8C 100%);
  padding: 64px 0 56px 0;
  color: #fff;
  position: relative;
  margin-bottom: 60px;
  border-radius: 0 0 38px 38px;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1, .hero h2, .hero h3, .hero h4 {
  color: #fff;
}
.hero p {
  color: #FAFAFF;
  margin-bottom: 20px;
}
.hero .cta-btn {
  margin-top: 18px;
}

/* BUTTONS */
.cta-btn, .cookie-banner .cta-primary {
  background: linear-gradient(100deg, #D72638 15%, #7e3159 100%);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-cta-shadow);
  transition: box-shadow 0.15s, background 0.18s, transform 0.16s;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 4px;
}
.cta-btn:hover, .cookie-banner .cta-primary:hover {
  background: linear-gradient(100deg, #d03b54 10%, #223A5E 100%);
  box-shadow: 0 6px 32px rgba(215,38,56,0.22);
  transform: translateY(-2px) scale(1.025);
}

button, .cookie-banner button {
  transition: background 0.18s, color 0.14s, box-shadow 0.14s, transform 0.15s;
}

/* NAVIGATION & HEADER */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 24px rgba(34,58,94,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 16px 16px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #223A5E;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
  position: relative;
}
header nav a:hover, header nav a.active {
  background: #F7F7F7;
  color: #D72638;
}

header .cta-btn {
  margin-left: 18px;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}

header img {
  max-height: 48px;
  height: 48px;
  margin-right: 20px;
}

/* MOBILE NAV MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #D72638;
  background: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  margin-left: 10px;
  border: 1.5px solid #EEE;
  z-index: 120;
  transition: background 0.16s;
}
.mobile-menu-toggle:active {
  background: #F7F7F7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 40px 16px rgba(34,58,94,0.1);
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  z-index: 999;
  overflow-y: auto;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #D72638;
  margin: 18px 18px 8px 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 32px 18px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.mobile-nav a {
  color: #223A5E;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
  transition: color 0.13s, background 0.13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #D72638;
  background: #F7F7F7;
}

/* MAIN LAYOUT & SECTIONS */
main {
  padding-top: 18px;
  min-height: 70vh;
  margin-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 768px) {
  section {
    padding: 26px 0 0 0;
    margin-bottom: 40px;
  }
}

/* FOOTER */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-radius: 22px 22px 0 0;
  margin-top: 56px;
  padding: 36px 0 16px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #fff;
  font-size: 1.02rem;
  opacity: 0.96;
  margin-bottom: 2px;
  transition: color 0.12s;
}
footer nav a:hover {
  color: #D72638;
  opacity: 1;
}
.footer-contact {
  color: #fff;
  font-size: 1rem;
  opacity: .87;
  margin-top: 8px;
  text-align: left;
}
footer img {
  filter: brightness(4) saturate(.7);
  max-height: 36px;
}

/* LISTS */
ul, ol {
  margin-bottom: 14px;
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
  color: #223A5E;
  font-size: 1rem;
}
ul li::marker, ol li::marker {
  color: #D72638;
}

/* FORMS (Newsletter, etc.) */
input, textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #DDD;
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  width: 100%;
  transition: border 0.13s, box-shadow 0.16s;
}
input:focus, textarea:focus {
  border: 1.8px solid #D72638;
  box-shadow: 0 2px 12px rgba(215,38,56,0.07);
}

/* SPECIAL CARDS */
.team-grid > div, .feature-grid > div {
  text-align: left;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 8px;
}
.features-grid > div, .feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 14px rgba(34,58,94,0.08);
  padding: 24px 16px;
  flex: 1 1 215px;
  min-width: 190px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  transition: box-shadow 0.13s, transform 0.12s;
}
.features-grid > div:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 28px rgba(215,38,56,0.13);
  transform: translateY(-2px) scale(1.015);
}
.features-grid img, .feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}


/* ANIMATION: Slide in for mobile menu */
.mobile-menu {
  will-change: transform;
}
.mobile-menu.open {
  animation: slideInMenu 0.4s cubic-bezier(.5,.15,.5,1.2);
}
@keyframes slideInMenu {
  from { transform: translateX(-105%); }
  to { transform: translateX(0); }
}

/* CARDS ON HOVER */
.card, .card-container > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 16px rgba(34,58,94,0.09);
  padding: 22px 18px;
}
.card:hover, .card-container > div:hover {
  box-shadow: 0 8px 32px 0 rgba(34,58,94,0.16);
  transform: translateY(-2px) scale(1.011);
  transition: box-shadow 0.2s, transform 0.2s;
}

/* ICONS IN TEXT */
.text-section img, .map-placeholder img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -3px;
}

/* TESTIMONIAL SLIDER/LIST */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: 18px 0 0 0;
}

/* BLOG LIST */
.blog-list > div span {
  background: #F7F7F7;
  color: #7e3159;
  font-size: 0.95rem;
  display: inline-block;
  border-radius: 11px;
  padding: 5px 10px;
  margin-top: 8px;
}

/* COOKIE BANNER (BOTTOM FIXED) */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 32px rgba(34,58,94,0.10);
  padding: 26px 16px 18px 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  animation: cookieFadeIn 0.42s;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner .cta-primary {
  background-color: #D72638;
  color: #fff;
  padding: 12px 32px;
  margin-top: 0;
  font-size: 1rem;
}
.cookie-banner .cta-secondary, .cookie-banner .cta-tertiary {
  background: #F7F7F7;
  color: #223A5E;
  padding: 12px 18px;
  border-radius: 26px;
  border: 1px solid #EEE;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.99rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  transition: color 0.13s, background 0.13s;
}
.cookie-banner .cta-secondary:hover, .cookie-banner .cta-tertiary:hover {
  background: #f8e2e5;
  color: #D72638;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-55%) scale(1);
  background: #fff;
  z-index: 2200;
  border-radius: 26px;
  max-width: 426px;
  min-width: 270px;
  width: 90vw;
  box-shadow: 0 6px 44px rgba(34,58,94,0.15);
  padding: 38px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.33s cubic-bezier(.7,0,.5,1.1);
}
@keyframes modalFadeIn {
  0% { opacity: 0; transform: translate(-50%,0) scale(.94); }
  100% { opacity: 1; transform: translate(-50%,-55%) scale(1); }
}
.cookie-modal-close {
  align-self: flex-end;
  color: #D72638;
  font-size: 1.3rem;
  background: none;
  border: 0;
  margin-bottom: -22px;
  margin-right: -10px;
  cursor: pointer;
}
.cookie-modal h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #223A5E;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.02rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #D72638;
  width: 18px;
  height: 18px;
}
.cookie-category .cookie-essential {
  color: #223A5E;
  font-size: 0.96rem;
  font-weight: 600;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .features-grid, .feature-grid, .course-list, .event-list, .blog-list, .team-grid {
    gap: 18px;
  }
  .features-grid > div, .feature-grid > div, .course-list > div, .event-list > div, .blog-list > div, .team-grid > div {
    min-width: 140px;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .testimonial-slider {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 0 2px;
  }
  .features-grid, .feature-grid, .course-list, .event-list, .blog-list, .team-grid, .testimonial-slider, .pricing-table {
    flex-direction: column !important;
    gap: 12px;
  }
  .features-grid > div, .feature-grid > div, .course-list > div, .event-list > div, .blog-list > div, .team-grid > div {
    margin-bottom: 14px;
    max-width: 100%;
  }
  .testimonial-card {
    min-width: 170px;
    max-width: 100%;
  }
  .pricing-table > div {
    margin-bottom: 10px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 62px;
  }
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .hero {
    padding: 32px 0 22px 0;
    margin-bottom: 34px;
    border-radius: 0 0 22px 22px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .hero p {
    font-size: 0.98rem;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 2px;
    padding-bottom: 8px;
  }
  footer img {
    margin-bottom: 8px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 4px;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
}

/* Misc Improvements */
h1, h2, h3, h4, h5 {
  letter-spacing: -0.5px;
}
::-webkit-scrollbar {
  width: 9px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #e3e7ed;
  border-radius: 18px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c4d0e0;
}

/* Hide visually in mobile menu (to prevent nav overlap) */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* MODAL OVERLAY for cookie modal */
.cookie-modal-bg {
  content: '';
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,58,94,0.36);
  z-index: 2100;
  animation: fadeInBackdrop 0.3s;
}
@keyframes fadeInBackdrop {
  0% {opacity: 0;}
  100% {opacity: 1;}
}

/* ACCESSIBILITY & FOCUS */
a:focus, button:focus {
  outline: 2px solid #D72638;
  outline-offset: 2px;
}

/* VISUAL HIERARCHY: spacing between elements (8/16/24/32px etc.) */
h1, h2, h3, .section, section, .content-wrapper {
  margin-bottom: 18px;
}

/* NO GRID OR COLUMN LAYOUTS USED */
/* No display: grid or CSS columns anywhere above */
