/* ------------------ 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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #21586B;
  background: linear-gradient(135deg, #F9F6EF 0%, #99D2CD 100%);
  min-height: 100vh;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

*, *:before, *:after {
  box-sizing: inherit;
}

ul, ol {
  list-style-type: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ------------------ VARIABLES & BRAND COLORS ------------------ */
:root {
  --primary: #21586B;
  --secondary: #99D2CD;
  --accent: #F9F6EF;
  --gray: #eaf0f3;
  --dark: #14353F;
  --cta-hover: #186174;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ------------------ TYPOGRAPHY ------------------ */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.16;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
}
p, li {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--dark);
  margin-bottom: 12px;
}

strong, b {
  font-weight: 600;
  color: var(--primary);
}

.cta-button, .mobile-nav a, .footer-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ------------------ LAYOUT & CONTAINER ------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(33, 88, 107, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 40px rgba(33, 88, 107, 0.16);
  transform: translateY(-4px) scale(1.02);
  z-index: 1;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(33,88,107,0.12);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
}
.testimonial-card p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.58;
  margin-bottom: 0;
}
.testimonial-name {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(33,88,107,0.08);
  padding: 24px 20px;
  transition: box-shadow 0.3s;
  min-width: 230px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item:hover {
  box-shadow: 0 6px 32px rgba(33,88,107,0.15);
}

/* ------------------ HEADER & NAVIGATION ------------------ */
header {
  width: 100%;
  background: linear-gradient(90deg, #21586B 60%, #99D2CD 100%);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 24px -12px rgba(33,88,107,0.10);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
header img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  font-family: var(--font-display);
  padding: 8px 4px;
  font-size: 1rem;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  line-height: 1.1;
}
.main-nav a:hover, .main-nav a:focus {
  color: #99D2CD;
  border-bottom: 2px solid #99D2CD;
}

.cta-button {
  background: linear-gradient(90deg, #99D2CD 20%, #21586B 100%);
  color: var(--accent);
  padding: 12px 30px;
  border-radius: 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 12px -6px rgba(33,88,107,0.13);
  transition: background 0.28s, box-shadow 0.28s, color 0.18s;
  margin-left: 16px;
  margin-right: 8px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(100deg, #21586B 70%, #99D2CD 120%);
  color: #fff;
  box-shadow: 0 8px 32px -10px #21586B22;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 8px;
  margin-left: 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #99D2CD;
}

/* ------------------ MOBILE MENU ------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(33,88,107,0.96);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.2s;
  transform: translateX(100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  margin: 24px 30px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
  z-index: 10001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #99D2CD;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 60px 0 0 0;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  padding: 16px 0;
  border-radius: 8px;
  width: 85%;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #99D2CD22;
  color: #99D2CD;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  header .container {
    padding: 0 10px;
    height: 66px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none !important;
  }
  .cta-button {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 560px) {
  header .container {
    padding: 0 4px;
    height: 56px;
  }
  .cta-button {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
}

/* ------------------ HERO & SECTIONS ------------------ */
.hero {
  width: 100%;
  background: linear-gradient(120deg, #99D2CD 30%, #F9F6EF 120%);
  padding: 64px 0 36px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper, .cta-main .content-wrapper, .cta-newsletter .content-wrapper, .cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1, .cta-main h2, .cta-newsletter h2, .cta h2 {
  color: var(--primary);
}
.hero p, .cta-newsletter p, .cta-main p, .cta p {
  color: var(--dark);
  max-width: 670px;
  margin: 0 auto 18px auto;
}

@media (max-width: 720px) {
  .hero, .cta-main, .cta-newsletter, .cta {
    padding: 38px 0 22px 0;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 32px;
  }
}

/* ------------------ FEATURE GRID & CARDS ------------------ */
.feature-grid, .course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 20px;
}
.feature-item, .course-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(33,88,107,0.07);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.25s;
}
.course-card:hover, .feature-item:hover {
  box-shadow: 0 8px 32px rgba(33,88,107,0.13);
  transform: translateY(-3px) scale(1.02);
}
.course-card img {
  width: 40px;
  height: 40px;
}

@media (max-width: 900px) {
  .feature-grid, .course-grid {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .course-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ------------------ TESTIMONIALS ------------------ */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
}

.testimonials-preview, .testimonials {
  background: linear-gradient(88deg, #99D2CD 30%, #F9F6EF 130%);
  padding: 62px 0 35px 0;
  margin-bottom: 50px;
}
.testimonials-preview h2, .testimonials h2 {
  color: #21586B;
}

.video-testimonials-teaser {
  margin-top: 30px;
  text-align: center;
}

/* ------------------ ABOUT/TRAINERS/FAQ/RESOURCES ------------------ */
.trainer-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}
.trainer-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(33,88,107,0.08);
  padding: 18px 18px 14px 18px;
  flex: 1 1 225px;
  margin-bottom: 20px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.resource-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(33,88,107,0.07);
  padding: 12px 14px;
  font-size: 1.04rem;
}
.resource-list img {
  width: 28px;
  height: 28px;
}

.contact-info, .footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}
.contact-info p, .footer-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.location-map {
  margin-top: 18px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 13px rgba(33,88,107,0.07);
  padding: 16px 16px 6px 16px;
  transition: box-shadow 0.25s;
}
.faq-item:hover {
  box-shadow: 0 6px 24px rgba(33,88,107,0.13);
}
.faq-item h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.support-snippet {
  background: #99D2CD18;
  padding: 22px 16px 14px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ------------------ FOOTER ------------------ */
footer {
  width: 100%;
  background: linear-gradient(96deg, #21586B 90%, #99D2CD 130%);
  color: #fff;
  margin-top: 80px;
  padding: 0 0 10px 0;
}
footer p {
  color: white;
}
footer .container {
  padding-top: 35px;
  padding-bottom: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  width: 56px;
}
.footer-info {
  flex: 2 1 180px;
  font-size: 0.98rem;
  opacity: 0.94;
  color: #fff;
  gap: 8px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.footer-social a img {
  width: 27px;
  height: 27px;
  opacity: 0.93;
  transition: opacity 0.2s;
}
.footer-social a:hover img { opacity: 1; }

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 1rem;
  margin-top: 8px;
}
.footer-nav a {
  color: #dff6f3;
  font-family: var(--font-display);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #99D2CD;
  border-bottom: 2px solid #99D2CD;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 10px;
    margin-bottom: 0;
    font-size: 0.98rem;
  }
}

/* ------------------ RESPONSIVE FLEX LAYOUTS ------------------ */
@media (max-width: 900px) {
  .content-grid, .trainer-profiles, .feature-grid, .course-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    padding: 17px 8px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    max-width: 98vw;
  }
}

@media (max-width: 520px) {
  .hero h1, h1 { font-size: 1.28rem; }
  h2 { font-size: 1.06rem; }
  .footer-nav, .footer-info {
    font-size: 0.92rem;
    gap: 5px;
  }
}

/* ------------------ BUTTONS & LINKS ------------------ */
button, .cta-button {
  outline: none;
  border: none;
  cursor: pointer;
}
a.cta-button, button.cta-button {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.07rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
a.cta-button:focus {
  outline: 2px solid #21586b88;
  outline-offset: 2px;
}

/* ------------------ ANIMATIONS, SHADOWS, MICRO-INTERACTIONS ------------------ */
.card, .feature-item, .testimonial-card, .faq-item, .course-card {
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover, .feature-item:hover, .course-card:hover {
  box-shadow: 0 10px 38px #21586b18;
  transform: translateY(-5px) scale(1.025);
}
.cta-button {
  transition: background 0.21s, color 0.21s, transform 0.21s, box-shadow 0.2s;
}
.cta-button:hover, .cta-button:focus {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.05);
  box-shadow: 0 10px 30px #21586b1a;
}
.mobile-nav a {
  transition: background 0.18s, color 0.18s;
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(33,88,107,0.11);
  color: var(--dark);
  z-index: 12000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 8px;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.4,0,.2,1), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
  border-radius: 18px 18px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 680px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-left: 30px;
}
.cookie-banner button {
  background: linear-gradient(90deg, #99D2CD 20%, #21586B 100%);
  color: #fff;
  border-radius: 32px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  border: none;
  transition: background 0.28s, color 0.18s, box-shadow 0.18s;
  margin-right: 2px;
  font-weight: 600;
}
.cookie-banner .btn-reject {
  background: #eaf0f3;
  color: #21586B;
  border: 1px solid #99D2CD;
  margin-left: 4px;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #99D2CD44;
  color: #21586B;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: #21586B;
  border: 1px solid #99D2CD;
  margin-left: 4px;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #99D2CD33;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(1.07);
}

@media (max-width: 810px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 18px 7px 18px 7px;
  }
  .cookie-banner-actions {
    margin-left: 0;
  }
}
@media (max-width: 470px) {
  .cookie-banner {
    font-size: 0.97rem;
    padding: 10px 2px;
    border-radius: 6px 6px 0 0;
  }
  .cookie-banner-actions {
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }
}

/* COOKIE POPUP/MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33,88,107,0.55);
  z-index: 19998;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  padding: 38px 20px 14px 24px;
  border-radius: 18px;
  box-shadow: 0 8px 40px #21586b22;
  min-width: 320px;
  min-height: 180px;
  max-width: 94vw;
  color: #21586B;
  font-size: 1.13rem;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.33rem;
  color: #21586B;
  margin-bottom: 14px;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.cookie-modal-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.cookie-modal-toggle {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #eaf0f3;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-right: 3px;
}
.cookie-modal-toggle:checked {
  background: #99D2CD;
}
.cookie-modal-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.cookie-modal-toggle:checked:before {
  left: 18px;
}
.cookie-modal-btn-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  font-size: 1.7rem;
  color: #21586B;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #99D2CD;
}

@media (max-width: 400px) {
  .cookie-modal {
    padding: 12px 5px 10px 8px;
    font-size: 1.06rem;
    border-radius: 8px;
    min-width: 150px;
  }
}

/* ------------------ EXTRA: GENERAL UTILITIES ------------------ */
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }
.mt-12 { margin-top: 12px!important; }
.center { text-align: center; }

/* ------------------ SCROLLBAR STYLING ------------------ */
::-webkit-scrollbar {
  width: 12px;
  background: #F9F6EF;
}
::-webkit-scrollbar-thumb {
  background: #99D2CD;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #21586b;
}

/* ------------------ FORM ELEMENTS (Newsletter, Contact) ------------------ */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #99D2CD;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  width: 100%;
  background: #FBFBFA;
  transition: border 0.18s;
  color: var(--dark);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid #21586B;
  outline: none;
}

label {
  font-family: var(--font-display);
  font-size: 1.01rem;
  margin-bottom: 6px;
  color: #21586B;
}

/* ------------------ MISC SECTION STYLING ------------------ */
.about-preview, .about, .faq, .resources {
  background: #F9F6EF;
}

.instructor-bio-snippet, .trainer-bio {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 20px #21586b0b;
  padding: 18px 20px;
  font-size: 1.07rem;
  margin-top: 13px;
}

ol {
  list-style: decimal inside;
  margin-left: 16px;
  color: #21586B;
  margin-bottom: 12px;
}
ul {
  list-style: disc inside;
  color: #21586B;
  margin-bottom: 11px;
}
ul li {
  margin-bottom: 4px;
}

/***** END OF CSS *****/
