/* ===================================================
  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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F5F7FA;
  color: #262626;
  font-family: 'Open Sans', "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #25396F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #43BC8D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 2em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: #25396F;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; font-weight: 600; }
h4, h5, h6 { font-weight: 500; margin-bottom: 8px; }

/* Typography
------------------------------------------------------- */
.subheadline {
  font-size: 1.2rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #425070;
  margin-bottom: 20px;
  line-height: 1.6;
}
strong { font-weight: 700; }
blockquote {
  font-style: italic;
  color: #2e3546;
  border-left: 4px solid #43BC8D;
  padding-left: 18px;
  margin: 14px 0;
  background: #F3F5F9;
}

/* --------------------------------
  Container Layouts
----------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Section Spacing Utility */
.cta-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #EFF3F9;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(37,57,111,0.06);
  text-align: center;
}

/* =============================================
  Header, Logo, Top Navigation
=============================================== */
header {
  background: #fff;
  border-bottom: 1px solid #E3E7EF;
  box-shadow: 0 2px 8px 0 rgba(37,57,111,0.03);
  z-index: 90;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo img,
.logo-footer img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  color: #25396F;
  background: none;
  border-radius: 0;
  transition: color 0.24s, background 0.24s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #43BC8D;
  background: none;
}

/* Primary Button Style (also in header) */
.btn-primary {
  background: #25396F;
  color: #fff !important;
  font-family: 'Montserrat', Georgia, serif;
  border: none;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(37,57,111,0.08);
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  margin-left: 8px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #43BC8D;
  color: #fff !important;
  box-shadow: 0 4px 20px 0 rgba(67,188,141,0.16);
  text-decoration: none;
}

/* =============================================
  Mobile Burger Menu Styles
=============================================== */
.mobile-menu-toggle {
  background: #25396F;
  color: #fff;
  border: none;
  font-size: 1.8rem;
  border-radius: 6px;
  padding: 6px 14px;
  display: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 121;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #43BC8D;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 100vw; /* Hidden initially */
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 24px 0 rgba(37,57,111,0.12);
  z-index: 120;
  transition: transform 0.4s cubic-bezier(.7,.07,.05,1.02), left 0s 0.4s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 28px 28px 28px;
  overflow-y: auto;
  pointer-events: none;
  transform: translateX(0);
}
.mobile-menu.open {
  left: 0;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(.7,.07,.05,1.02), left 0s;
}
.mobile-menu-close {
  background: #25396F;
  color: #fff;
  border: none;
  font-size: 1.85rem;
  border-radius: 6px;
  padding: 3px 13px 3px 10px;
  align-self: flex-start;
  margin-bottom: 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #43BC8D;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.24rem;
  color: #25396F;
  padding: 10px 0;
  border-bottom: 1px solid #E3E7EF;
  transition: color 0.18s, background 0.13s;
  border-radius: 0;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #43BC8D;
  background: none;
}

/* =========================================
  Hero Sections
=========================================== */
.hero {
  background: #25396F;
  color: #fff;
  padding: 56px 0 56px 0;
  margin-bottom: 48px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 42px 0 rgba(37,57,111,0.12);
}
.hero h1 {
  color: #fff;
  font-size: 2.3rem;
  margin-bottom: 10px;
}
.hero .subheadline {
  color: #f9fafc;
  font-size: 1.18rem;
  margin-bottom: 18px;
}
.hero .btn-primary {
  margin-top: 12px;
}

/* =========================================
  Feature Grids & Cards
=========================================== */
.feature-grid, .course-list, .profile-card-list, .blog-grid, .testimonial-list, .course-overview, .instructor-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .course-list > div, .profile-card, .blog-grid > article, .course-overview > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(37,57,111,0.05);
  padding: 28px 20px 20px 20px;
  min-width: 230px;
  flex: 1 1 240px;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #E9EEF5;
}
.feature-grid > div:hover, .profile-card:hover, .blog-grid > article:hover, .course-list > div:hover {
  box-shadow: 0 6px 28px 0 rgba(37,57,111,0.13);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}
.profile-card h3 { font-size: 1.13rem; margin-bottom: 10px; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(37,57,111,0.09);
  padding: 20px;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================================
  Testimonial Styles
=========================================== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 2px 18px 0 rgba(37,57,111,0.10);
  min-width: 250px;
  max-width: 350px;
  flex: 1 1 280px;
  color: #22303d;
  border: 1px solid #E7ECF4;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #25396F;
  font-size: 1.07rem;
  background: none;
  border-left: 4px solid #43BC8D;
  padding-left: 14px;
}
.testimonial-author {
  color: #43BC8D;
  font-size: 0.98rem;
  font-style: normal;
  letter-spacing: .01em;
}
.star-rating {
  color: #f6c620;
  font-size: 1.1rem;
  letter-spacing: 3px;
  font-family: 'Montserrat', serif;
  font-weight: bold;
}

/* Accessibility: High Contrast for testimonials text*/
.testimonial-card, .testimonial-card blockquote, .testimonial-author {
  background-color: #fff;
  color: #25396F;
}

/* =========================================
  Table Styles (Pricing Table)
=========================================== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(37,57,111,0.07);
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1px solid #E7ECF4;
  color: #25396F;
}
.pricing-table th {
  background: #EFF3F9;
  font-family: 'Montserrat', serif;
  font-size: 1.09rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ===============================================
  Blog Grid
================================================ */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 34px 0;
}
.blog-grid > article {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px 22px 18px;
  box-shadow: 0 1px 10px 0 rgba(37,57,111,0.06);
  flex: 1 1 270px;
  min-width: 220px;
  border: 1px solid #E3E7EF;
  transition: box-shadow 0.2s;
}
.topic-tag {
  display: inline-block;
  background: #25396F;
  color: #fff;
  font-size: .88rem;
  padding: 3px 10px;
  border-radius: 9px;
  margin-top: 10px;
}
.featured-articles {
  margin: 24px 0 0 0;
}
.featured-articles h3 {
  font-size: 1.06rem;
  font-family: 'Montserrat', serif;
  margin-bottom: 9px;
  color: #25396F;
  font-weight: 500;
}

/* =========================================
  Lists, Details, Contact Info
=========================================== */
.text-section, .contact-details {
  margin-top: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details a.btn-primary {
  margin-top: 18px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.levels {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.levels img {
  height: 26px;
  width: auto;
  margin-bottom: 0;
}
.levels span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #425070;
  font-size: .98rem;
  margin-right: 14px;
  margin-left: 4px;
}

/* ===============================================
  Footer Styles
================================================ */
footer {
  background: #fff;
  border-top: 1px solid #E3E7EF;
  box-shadow: 0 -2px 12px 0 rgba(37,57,111,0.06);
  padding: 34px 0 0 0 !important;
  margin-top: 60px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 0 20px 12px 20px;
}
.logo-footer img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  color: #25396F;
}
.footer-nav a {
  color: #25396F;
  transition: color .19s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #43BC8D;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #25396F;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.footer-copy {
  flex-basis: 100%;
  width: 100%;
  color: #425070;
  margin-top: 22px;
  font-size: .95rem;
  text-align: center;
  letter-spacing: .01em;
}

/* ================================================
  Cookie Consent Banner & Modal
================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #25396F;
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -6px 24px 0 rgba(37,57,111,0.25);
  z-index: 300;
  transition: transform 0.38s cubic-bezier(.45,1.35,.31,1), opacity 0.3s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', serif;
  border: none;
  border-radius: 5px;
  font-size: 0.99rem;
  font-weight: 500;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .accept {
  background: #43BC8D;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #267955;
}
.cookie-banner .reject {
  background: #EFF3F9;
  color: #25396F;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e3e7ef;
  color: #25396F;
}
.cookie-banner .settings {
  background: #fff;
  color: #25396F;
  border: 1px solid #43BC8D;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f5f7fa;
  color: #43BC8D;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 60vh) scale(.95);
  background: #fff;
  color: #262626;
  border-radius: 18px;
  box-shadow: 0 10px 36px 0 rgba(37,57,111,0.17);
  width: 96vw;
  max-width: 430px;
  padding: 34px 32px 32px 32px;
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.78,1.24,.38,1.08), opacity 0.38s;
}
.cookie-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
.cookie-modal h2 {
  font-size: 1.14rem;
  margin-bottom: 20px;
  color: #25396F;
}
.cookie-modal .modal-categories{
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 22px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size:1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #43BC8D;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 13px;
}
.cookie-modal button {
  font-family: 'Montserrat', serif;
  border-radius: 5px;
  border: none;
  font-size: 0.99rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  font-weight: 500;
}
.cookie-modal .save {
  background: #43BC8D;
  color: #fff;
}
.cookie-modal .close {
  background: #EFF3F9;
  color: #25396F;
}

/* =========================================
  Responsive Behavior (Mobile-First)
=========================================== */
@media (max-width: 990px) {
  .feature-grid, .course-list, .blog-grid, .testimonial-list, .instructor-profiles {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .profile-card, .course-list > div, .blog-grid > article {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .hero {
    padding: 38px 0 36px 0;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    align-items: center;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container, .section, .cta-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section, .cta-section {
    padding: 27px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .level {
    flex-direction: column;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 17px 12px;
  }
  .pricing-table th, .pricing-table td {
    padding: 11px 9px;
  }
}
@media (max-width: 500px) {
  .btn-primary, .cookie-banner button, .cookie-modal button {
    width: 100%;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    margin-left: 0;
    margin-right: 0;
  }
  .container, .section, .cta-section {
    padding-left: 3px;
    padding-right: 3px;
  }
  .mobile-menu {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* =========================================
  Utilities & Micro-interactions
=========================================== */
::-webkit-scrollbar { width: 8px; background: #EEF2F7; }
::-webkit-scrollbar-thumb { background: #D4D9E5; border-radius: 5px; }

/* Shadows and transitions */
.card, .testimonial-card, .profile-card, .feature-grid > div, .blog-grid > article {
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .profile-card:hover, .feature-grid > div:hover, .blog-grid > article:hover {
  box-shadow: 0 8px 28px 0 rgba(37,57,111,0.14);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, transform 0.13s;
}
.btn-primary:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.98);
}

::selection {
  background: #43BC8D;
  color: #fff;
}

/* Accessibility: focus states */
a:focus, button:focus, .btn-primary:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #43BC8D;
  outline-offset: 1px;
}

/* Hide visually but keep accessible */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===============================
  END OF STYLE.CSS
================================== */
