/* ====== CSS RESET & BASE ====== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1d2935;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
main {
  flex: 1 0 auto;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #38A3A5;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background .2s, color .2s;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22577A;
  line-height: 1.22;
  margin-bottom: 0.5em;
  font-weight: 700;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.1rem;
}
p, dl, address, table {
  margin-bottom: 1em;
}
strong {
  font-weight: 600;
}
em {
  color: #3382ad;
}

/* ===== LAYOUT CONTAINERS ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}

/* ===== HEADER & NAVBAR ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F6F6;
  padding: 0 24px;
  min-height: 72px;
  border-bottom: 1px solid #e7eaf0;
  position: relative;
  z-index: 100;
}
.header-content {
  display: flex;
  align-items: center;
}
.brand {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #22577A;
  margin-right: 32px;
}
.brand a {
  color: #22577A;
  text-decoration: none;
}
.main-nav {
  display: flex;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #22577A;
  padding: 8px 0;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #38A3A5;
  transition: width .2s;
  margin: 0 auto;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #38A3A5;
  color: #fff !important;
  border: none;
  border-radius: 26px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-left: 32px;
  box-shadow: 0 3px 12px rgba(56,163,165,0.08);
  transition: background .15s, box-shadow .18s, color .18s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #22577A;
  color: #fff;
}
.secondary-cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: 2px solid #22577A;
  background: #fff;
  color: #22577A;
  border-radius: 22px;
  padding: 10px 24px;
  font-weight: 600;
  margin-top: 24px;
  transition: background .18s, color .18s, border-color .18s;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #22577A;
  color: #fff;
  border-color: #38A3A5;
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  background: #22577A;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 6px;
  padding: 7px 13px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #38A3A5;
  color: #fff;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: 20px;
    z-index: 1201;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 40px rgba(34,87,122,0.10);
  z-index: 1200;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.77,0,.18,1);
}
.mobile-menu[aria-hidden="false"],
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #22577A;
  color: #fff;
  font-size: 2rem;
  border-radius: 6px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border: none;
  transition: background .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #38A3A5;
  color: #fff;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #22577A;
  background: none;
  border-radius: 8px;
  padding: 10px 2px;
  transition: background .18s, color .18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f0f6fa;
  color: #38A3A5;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F6F6F6;
  text-align: center;
  padding: 50px 20px 40px 20px;
  gap: 24px;
  margin-bottom: 60px;
}
.hero h1 {
  font-size: 2.5rem;
  letter-spacing: .01em;
  margin-bottom: 12px;
  color: #22577A;
}
.hero p {
  width: 100%;
  max-width: 520px;
  font-size: 1.22rem;
  margin: 0 auto 18px auto;
  color: #364350;
}
.hero .cta-button {
  margin-top: 14px;
}

/* ===== FEATURES SECTION ===== */
.features {
  background: #fff;
}
.features h2 {
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: stretch;
}
.feature-grid > div {
  background: #F6F6F6;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(34,87,122,0.06);
  padding: 32px 28px 28px 28px;
  min-width: 230px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
  transition: box-shadow .18s, background .16s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(56,163,165,0.19);
  background: #e9f3f4;
}
.feature-grid svg {
  margin-bottom: 6px;
  display: block;
}
.feature-grid h3 {
  font-size: 1.13rem;
  text-align: center;
  color: #22577A;
}
.feature-grid p {
  font-size: .98rem;
  text-align: center;
  color: #364350;
}

/* ===== SERVICE CARDS ===== */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.service-cards > div {
  background: #fff;
  border: 1.2px solid #eaf0f3;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(34,87,122,.07);
  padding: 30px 28px 26px 28px;
  min-width: 220px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 180px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow .15s, border-color .14s;
}
.service-cards > div:hover {
  border-color: #38A3A5;
  box-shadow: 0 6px 28px rgba(34,87,122,.16);
}
.service-cards h3 {
  font-size: 1.09rem;
  color: #22577A;
  margin-bottom: 8px;
}
.service-cards p {
  color: #436176;
  font-size: .96rem;
  margin-bottom: 6px;
}
.price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #38A3A5;
  font-weight: 700;
  font-size: 1.11rem;
  background: #eef7fa;
  padding: 7px 14px;
  border-radius: 14px;
  letter-spacing: .01em;
}

/* ===== TESTIMONIALS ===== */
.testimonials, .thank-you {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 16px;
}
.testimonials h2 {
  font-size: 1.28rem;
  color: #22577A;
}
.testimonials blockquote {
  background: #F6F6F6;
  border-left: 6px solid #38A3A5;
  border-radius: 10px;
  padding: 22px 26px 16px 26px;
  font-size: 1.08rem;
  color: #294057;
  font-style: italic;
  margin-bottom: 0;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 16px rgba(34,87,122,0.07);
}
.testimonials blockquote footer {
  font-style: normal;
  font-size: .96rem;
  color: #22577A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-top: 9px;
  margin-left: 6px;
}

/* ===== CALLOUTS ===== */
.cta {
  background: #F6F6F6;
  padding: 44px 18px 28px 18px;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(56,163,165,0.04);
}
.cta h2 {
  font-size: 1.52rem;
  margin-bottom: 23px;
  color: #22577A;
}
.cta-banner {
  background: #22577A;
  color: #fff;
  font-size: 1.09rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-weight: 500;
}

/* ===== COURSE LIST / TEAM / FAQ ===== */
.course-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team {
  margin-top: 34px;
  margin-bottom: 33px;
}
.team ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team li {
  background: #F6F6F6;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(34,87,122,.08);
  padding: 24px 22px;
}
.faq {
  margin: 44px 0 24px 0;
}
.faq dl {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.faq dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22577A;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 4px;
}
.faq dd {
  margin-bottom: 14px;
  margin-left: 0;
  color: #2d2d2d;
  font-size: 1rem;
}

/* ===== PRICING TABLE ===== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 26px;
  box-shadow: 0 2px 16px rgba(34,87,122,.06);
  border-radius: 12px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 14px;
  text-align: left;
}
.pricing-table th {
  background: #F6F6F6;
  color: #22577A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.pricing-table tr {
  background: #fff;
}
.pricing-table tbody tr:nth-child(even) {
  background: #f3f9fa;
}
.pricing-table td {
  color: #294057;
  font-size: .99rem;
}
.best-value {
  background: #22577A;
  color: #fff;
  font-weight: 600;
  font-size: 1.11rem;
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34,87,122,.13);
}

/* ===== FOOTER ===== */
footer {
  background: #F6F6F6;
  padding: 36px 20px 22px 20px;
  color: #22577A;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 64px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #22577A;
  font-size: .99rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #38A3A5;
}
address {
  text-align: center;
  font-style: normal;
  margin-bottom: 0;
  color: #294057;
  font-size: .96rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  transition: transform .13s;
}
.footer-social a:hover, .footer-social a:focus {
  transform: scale(1.13);
}
.footer-social svg {
  vertical-align: middle;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #22577A;
  color: #fff;
  box-shadow: 0 -3px 18px rgba(34,87,122,0.18);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 23px 18px 18px 18px;
  font-size: 1rem;
  animation: slideUpCookie .48s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0.9; }
  to {   transform: translateY(0);     opacity: 1;   }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  padding: 9px 22px;
  border-radius: 21px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  margin: 0;
  transition: background .17s, color .17s;
}
.cookie-banner .accept {
  background: #38A3A5;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #31c9ba;
}
.cookie-banner .reject {
  background: #fff;
  color: #22577A;
  border: 1.2px solid #38A3A5;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e9f6fa;
  color: #22577A;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 1.2px solid #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #38A3A5;
  color: #fff;
  border-color: #31c9ba;
}

/* ===== COOKIE MODAL POPUP ===== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2530;
  background: rgba(34,87,122,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieBg .23s;
}
@keyframes fadeInCookieBg {
  from { opacity: .2; }
  to {   opacity: 1;   }
}
.cookie-modal {
  background: #fff;
  color: #294057;
  border-radius: 16px;
  padding: 36px 28px 24px 28px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 40px rgba(34,87,122,.19);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: slideUpCookie .36s;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22577A;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.cookie-category {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
  gap: 18px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: #38A3A5;
  cursor: pointer;
}
.cookie-category .cookie-essential {
  font-size: 0.95em;
  color: #38A3A5;
  font-weight: 600;
}
.cookie-modal .modal-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 15px; top: 13px;
  background: #38A3A5;
  color: #fff;
  border: none;
  font-size: 1.25em;
  border-radius: 7px;
  padding: 4px 13px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #22577A;
}

/* ===== SPACING, FLEXBOX UTILITY CLASSES ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(56,163,165,0.07);
  border: 1.2px solid #eaf0f3;
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F6F6;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(34,87,122,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ===== MEDIA QUERIES: RESPONSIVE LAYOUTS ===== */
@media (max-width: 1024px) {
  .service-cards,.feature-grid,.card-container,.content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .features .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 8px;
    min-height: 58px;
  }
  .brand { font-size: 1rem; }
  .cta-button { font-size: 1rem; padding: 9px 17px; }
  .secondary-cta { padding: 8px 12px; font-size: .99rem; }
  .hero {
    padding: 30px 8px 26px 8px;
    font-size: 1rem;
  }
  .hero h1 { font-size: 1.38rem; }
  .hero p { font-size: 1rem; }
  .cta { padding: 26px 8px 18px 8px; }
  .cta h2 { font-size: 1.13rem; }
  .cta-banner { font-size: .98rem; }
  .testimonials, .thank-you { padding: 22px 6px; font-size: .99rem; }
  .testimonials blockquote { padding: 13px 12px 10px 14px; }
  .team li { padding: 16px 11px; }
  .best-value { font-size: .99rem; padding: 8px 10px; }
  .service-cards > div, .feature-grid > div { max-width: 98vw; padding: 20px 10px; }
}

/* ====== THANK YOU PAGE ===== */
.thank-you {
  min-height: 290px;
  background: #F6F6F6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(56,163,165,.08);
  text-align: center;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
  margin-bottom: 60px;
}
.thank-you h1 {
  color: #38A3A5;
}
.thank-you a {
  margin-top: 14px;
  color: #22577A;
  font-weight: 600;
  text-decoration: underline;
  font-size: 1.13rem;
  transition: color .18s;
}
.thank-you a:hover, .thank-you a:focus {
  color: #38A3A5;
}

/* ====== MISC =========== */
.contact-details, .contact-form-info {
  font-size: 1.01rem;
  margin-bottom: 22px;
  color: #294057;
}
@media (max-width: 600px) {
  .team ul, .faq dl { font-size: .97rem; }
  .contact-details, .contact-form-info { font-size: .95rem; }
}

/* ====== ACCESSIBILITY: FOCUS OUTLINE ====== */
a:focus, button:focus, .cta-button:focus, .secondary-cta:focus {
  outline: 2px solid #38A3A5;
  outline-offset: 2px;
  z-index: 30;
}

/* ====== ANIMATIONS ====== */
.cta-button, .secondary-cta, .footer-social a, .mobile-menu-toggle, .mobile-menu-close {
  transition: background .22s, color .22s, border .17s, box-shadow .16s, transform .16s;
}

/* ====== SCROLLBAR FOR CONSISTENCY ====== */
::-webkit-scrollbar { width: 10px; background: #fafdff; }
::-webkit-scrollbar-thumb { background: #d7e8f1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #38A3A5; }

/* ===== ENSURE MIN 20PX BETWEEN CARDS/SECTIONS ===== */
.section + .section,
.section + .features,
.features + .section,
.service-cards > div + div,
.team li + li,
.card-container .card + .card {
  margin-top: 24px !important;
}

/* ===== DIALOG-SUPPORTED MODAL FALLBACK ===== */
@media (max-width: 480px) {
  .cookie-modal {
    padding: 22px 6px 12px 6px;
    min-width: 0;
    font-size: .97rem;
  }
}
