/* === 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-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F9F6EE;
  color: #243147;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #243147;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6A8FBF;
  text-decoration: underline;
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  color: #243147;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #243147;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 22px;
}
strong, b {
  font-weight: 700;
  color: #243147;
}


/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(36,49,71,0.06);
}

@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  .container {
    padding: 0 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}


/* === FLEXBOX LAYOUT CLASSES === */
.card-container, .feature-grid, .service-list, .course-overview-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(36,49,71,0.10);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 220px;
  transition: box-shadow 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(36,49,71,0.14);
}
.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 {
  background: #F4F8FC;
  border-left: 4px solid #6A8FBF;
  border-radius: 14px;
  padding: 20px 32px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 10px 0 rgba(106,143,191,0.06);
}
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Responsive FLEX DIRECTION === */
@media (max-width: 900px) {
  .card-container,
  .feature-grid,
  .service-list,
  .course-overview-grid,
  .card-grid,
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}


/* === BUTTONS & CTA === */
.primary-cta {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  padding: 15px 38px;
  color: #fff;
  background: #243147;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(36,49,71,0.10);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.22s, box-shadow 0.22s, color 0.19s;
  margin-top: 8px;
}
.primary-cta:hover, .primary-cta:focus {
  background: #6A8FBF;
  color: #fff;
  box-shadow: 0 4px 18px rgba(36,49,71,0.20);
  outline: none;
  text-decoration: none;
}
button, .button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  background: #6A8FBF;
  color: #fff;
  cursor: pointer;
  padding: 8px 22px;
  margin: 8px 0;
  transition: background 0.23s, box-shadow 0.23s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #243147;
  color: #fff;
  outline: none;
}


/* === HEADER & MAIN NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #EDEDED;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 0;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 80px;
}
.logo {
  margin-left: 18px;
  display: flex;
  align-items: center;
  z-index: 51;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 30px;
}
.main-nav a {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.04rem;
  color: #243147;
  padding: 7px 12px;
  border-radius: 18px;
  font-weight: 500;
  transition: background 0.16s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4F8FC;
  color: #6A8FBF;
}
header .primary-cta {
  margin: 0 18px 0 0;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 26px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  color: #243147;
  border: none;
  margin-right: 12px;
  cursor: pointer;
  z-index: 51;
  transition: color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #6A8FBF;
}

@media (max-width: 1020px) {
  .main-nav { gap: 16px; margin-left: 10px; }
}
@media (max-width: 900px) {
  header { gap: 2px; height: 64px; }
  .main-nav a { font-size: 0.99rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  header .primary-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,49,71,0.92);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.86,0,0.07,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #fff;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6A8FBF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 40px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  padding: 10px 0;
  border-radius: 16px;
  font-family: 'Lora', Georgia, serif;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6A8FBF;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* === FOOTER === */
footer {
  background: #243147;
  color: #fff;
  padding: 38px 0 20px;
  border-top: 1px solid #EDEDED;
  margin-top: 40px;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.17s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #6A8FBF;
  color: #fff;
}
.footer-logo {
  margin: 8px 0;
  opacity: 0.95;
}
footer p {
  font-family: 'Lora', Georgia, serif;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .footer-nav { gap: 14px; }
  footer { padding: 20px 0 12px; gap: 10px; }
}


/* === FOR UPPER NAVIGATION SPACING FIX === */
body { padding-top: 80px; }
@media (max-width:900px) {
  body { padding-top: 64px; }
}


/* === GENERAL UTILITY CLASSES === */
.mt-32 { margin-top: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }


/* === FORM & INPUTS === */
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D9E2;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.15s;
  background: #F5F7F9;
  color: #243147;
  margin-bottom: 16px;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  outline: none;
  border-color: #6A8FBF;
  background: #fff;
}
label {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #243147;
  margin-bottom: 6px;
  display: block;
}


/* === CARDS, GRID & FEATURE ELEMENTS === */
.feature-grid > div {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(36,49,71,0.07);
  border-radius: 12px;
  padding: 28px 22px 20px 22px;
  flex: 1 1 180px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(36,49,71,0.14);
}
.feature-grid img {
  margin-bottom: 12px;
  width: 48px;
  height: 48px;
}
@media (max-width: 900px) {
  .feature-grid > div {
    min-width: 100%;
  }
}

.service-list {
  gap: 24px;
}
.service-list > div {
  background: #F9F6EE;
  border-radius: 10px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 1px 6px 0 rgba(36,49,71,0.06);
  margin-bottom: 20px;
  flex: 1 1 230px;
}
.course-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.course-overview-grid > div {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px 0 rgba(36,49,71,0.05);
  padding: 16px 18px 10px 18px;
  min-width: 180px;
  flex: 1 1 220px;
  margin-bottom: 18px;
}


/* === TESTIMONIALS === */
.testimonial-slider {
  gap: 24px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #F4F8FC;
  border-left: 4px solid #6A8FBF;
  border-radius: 14px;
  padding: 20px 32px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 400px;
  box-shadow: 0 2px 12px 0 rgba(36,49,71,0.045);
  color: #243147;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.27s, border 0.17s;
}
.testimonial-card p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.09rem;
  color: #243147;
  line-height: 1.7;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #243147;
  opacity: 0.75;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(106,143,191,0.12);
  border-left: 4px solid #243147;
}


/* === MISCELLANEOUS & FINE TUNING === */
.text-section > ul {
  margin-bottom: 12px;
}
.text-section > ul > li {
  margin-bottom: 8px;
}
.text-section > p {
  margin-bottom: 12px;
}


/* === TABLES (if any) === */
table {
  width: 100%;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 5px 0 rgba(36,49,71,0.05);
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 1rem;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #EEE;
  text-align: left;
}
th {
  background: #F4F8FC;
  font-family: 'Lora', serif;
  font-weight: 600;
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #243147;
  color: #fff;
  box-shadow: 0 -2px 16px 0 rgba(36,49,71,0.11);
  padding: 24px 18px 18px 18px;
  border-radius: 18px 18px 0 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.25s, transform 0.31s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  background: #6A8FBF;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
  margin: 0;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #fff;
  color: #243147;
}
.cookie-btn.reject {
  background: #E7E9EC;
  color: #243147;
  border: 1px solid #6A8FBF;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #6A8FBF;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #6A8FBF;
  border: 1px solid #6A8FBF;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #6A8FBF;
  color: #fff;
}


/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(36,49,71,0.56);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1300;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-content {
  background: #fff;
  color: #243147;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(36,49,71,0.19);
  padding: 32px 28px 24px 28px;
  max-width: 370px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  color: #6A8FBF;
  margin-bottom: 6px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.03rem;
  font-family: 'Lora', Georgia, serif;
  color: #243147;
}
.cookie-modal-content input[type=checkbox] {
  accent-color: #6A8FBF;
  width: 16px;
  height: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 1.7rem;
  color: #6A8FBF;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #243147;
}


/* === ANIMATIONS (for smooth slide/transition) === */
@keyframes mobileMenuIn {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}
@keyframes mobileMenuOut {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes cookieBannerOut {
  0% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}

.mobile-menu.open { animation: mobileMenuIn 0.40s cubic-bezier(.44,.9,.7,1) forwards; }
.mobile-menu:not(.open) { animation: mobileMenuOut 0.30s cubic-bezier(.5,.1,.3,1) forwards; }
.cookie-banner { animation: cookieBannerIn 0.45s ease-out forwards; }
.cookie-banner.hide { animation: cookieBannerOut 0.30s ease-in forwards; }


/* === RESPONSIVENESS & MOBILE-FIRST === */
@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.09rem; }
  .card, .feature-grid > div, .service-list > div, .testimonial-card, .course-overview-grid > div {
    padding: 14px 10px;
    min-width: 140px;
    font-size: 15px;
    border-radius: 7px;
  }
  .testimonial-card {
    padding: 12px 16px;
  }
  .cookie-modal-content {
    padding: 13px 7px 13px 9px;
    max-width: 99vw;
  }
}
/* Ensure spacing between all content-cards/sections */
section:not(:last-child) {
  margin-bottom: 60px;
}
@media (max-width: 600px) {
  section:not(:last-child) {
    margin-bottom: 36px;
  }
}


/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 10px;
  background: #F9F6EE;
}
::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4D0E6;
}


/* === ACCESSIBILITY / FOCUS STATES === */
a:focus, .primary-cta:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #6A8FBF;
  outline-offset: 2px;
}


/* === PRINT STYLES === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section {
    box-shadow: none;
    border-radius: 0;
    padding: 0 !important;
    margin-bottom: 16px !important;
  }
}

/* ===== END ===== */
