/* ===================================================================
   CSS RESET & BASELINE 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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #f4f2ed;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  color: inherit;
  box-sizing: border-box;
}

/* ===================================================================
   BRAND TYPOGRAPHY & COLORS
   =================================================================== */
:root {
  --primary: #14397d;
  --secondary: #21a179;
  --accent: #fff5df;
  --background: #f4f2ed;
  --earth1: #ede6ce;
  --earth2: #bea890;
  --earth3: #8d775f;
  --earth4: #ece8e1;
  --green-accent: #21a179;
  --shadow: 0 6px 24px 0 rgba(33, 161, 121, 0.10);
  --radius-card: 18px;
  --radius-btn: 26px;
  --transition: 0.22s cubic-bezier(.58,.3,.78,.95);
}

body {
  color: #2f2a21;
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--background);
  font-size: 16px;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .6em;
  line-height: 1.18;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 0.6em; }
h2 { font-size: 2rem; margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; margin-bottom: 0.3em; }
p, .text-section li {
  color: #574f35;
  font-size: 1rem;
  margin-bottom: 1.2em;
}
strong { color: var(--primary); font-weight: 700; }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

/* ===================================================================
   LAYOUT CONTAINERS & SECTIONS
   =================================================================== */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 40px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px; /* spacing between cards */
  position: relative;
  flex: 1 1 300px;
  background: var(--earth1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 220px;
}
.card:hover {
  box-shadow: 0 12px 32px 0 rgba(33, 161, 121, 0.18);
  transform: translateY(-3px) scale(1.015);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
  text-align: left;
  min-width: 240px;
}
.testimonial-card p { color: var(--primary); font-weight: 600; margin-bottom: 10px; font-size: 1rem; }
.testimonial-card span { color: var(--secondary); font-size: 0.96rem; font-weight: 600; letter-spacing: 0.01em; }
.star-rating img { width: 21px; height: 21px; display: inline-block; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Course + Feature Grids for Flexbox Only */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 18px 24px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature img {
  width: 36px;
  margin-bottom: 18px;
}
.feature:hover {
  box-shadow: 0 18px 36px 0 rgba(20,57,125,0.15);
  transform: translateY(-6px) scale(1.025);
}
.course-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.course-card {
  flex: 1 1 320px;
  min-width: 230px;
  background: var(--earth1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 32px 24px 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card h3 { margin-bottom: 12px; }
.course-card ul { margin-bottom: 20px; }
.course-card:hover {
  box-shadow: 0 14px 32px 0 rgba(20,57,125,0.16);
  transform: translateY(-6px) scale(1.035);
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--earth4);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px 22px;
  transition: box-shadow var(--transition);
}
.faq-item h3 { color: var(--secondary); margin-bottom: 8px; font-size: 1.1rem; }
.faq-item p { margin-bottom: 0; }

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.text-section {
  flex: 1 1 280px;
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 18px 18px 18px;
  min-width: 220px;
}
.text-section ul { list-style: disc outside; padding-left: 22px; }
.text-section li { margin-bottom: 0.7em; }

/* Schedule Table Section */
.schedule-table {
  background: var(--earth1);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 10px 22px 10px;
  overflow-x: auto;
}
.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.schedule-table th, .schedule-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #ded7c7;
  text-align: left;
  font-size: 1rem;
}
.schedule-table th {
  color: var(--primary);
  background: #f6f3e9;
  font-weight: 700;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table p {
  margin: 0;
  color: var(--green-accent);
  font-weight: 600;
}

/* =======================================
   HERO & CALL TO ACTION SECTIONS
   ======================================= */
.hero {
  background: linear-gradient(121deg, #e4ffe2 0%, #fff8ea 70%);
  border-radius: var(--radius-card);
  margin-bottom: 60px;
  padding: 48px 0 40px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
}
.hero h1 { color: var(--secondary); font-size: 2.7rem; }
.hero p { color: var(--primary); font-weight: 500; }
@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 32px 0 16px 0; }
}

.cta.primary {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 13px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px 0 rgba(33,161,121,0.11);
  margin-top: 8px;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  background: #17815d;
  color: #fff;
  transform: scale(1.035);
  box-shadow: 0 8px 24px 0 rgba(33,161,121,0.18);
}
.cta.secondary {
  display: inline-block;
  background: #fff;
  color: var(--green-accent);
  border-radius: var(--radius-btn);
  padding: 11px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--green-accent);
  margin-top: 10px;
  margin-bottom: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(33,161,121,0.08);
  cursor: pointer;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--green-accent);
  color: #fff;
  transform: scale(1.025);
}

/* =======================================
   HEADER & NAVIGATION (DESKTOP & MOBILE)
   ======================================= */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(33,161,121,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
}
.brand-logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 16px;
  padding: 8px 20px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--accent);
  color: var(--secondary);
}
.main-nav .cta.primary {
  margin-left: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--earth2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(33,161,121,0.11);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* -- MOBILE MENU OVERLAY -- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(236,232,225,0.99);
  transition: transform var(--transition);
  transform: translateX(100%);
  flex-direction: column;
  align-items: flex-start;
}
body.menu-open .mobile-menu {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 32px 20px 18px 0;
  border: none;
  transition: background 0.15s, color 0.15s;
  z-index: 4100;
  cursor: pointer;
  box-shadow: 0 2px 15px 0 rgba(33,161,121,0.11);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 40px 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  width: 100%;
  border-radius: 18px;
  background: none;
  padding: 11px 30px 11px 0;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--accent);
  color: var(--secondary);
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

/* =======================================
   FOOTER
   ======================================= */
footer {
  background: linear-gradient(99deg, #effae6 0%, #fff6e2 70%);
  margin-top: 60px;
  padding: 44px 0 0 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
footer section { padding: 0; margin-bottom: 0; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
}
footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 164px;
  min-width: 145px;
  margin-right: 18px;
}
.footer-links a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 10px;
  padding: 5px 10px;
  transition: background .13s, color .13s;
}
.footer-links a:hover {
  background: var(--earth1);
  color: var(--secondary);
}
footer .brand-summary {
  flex: 2 1 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer .brand-summary img { max-height: 44px; opacity: 0.92; margin-bottom: 6px; }
footer .brand-summary p { color: #574f35; margin-bottom: 0; font-size: 1rem; }
footer .contact-details, .contact-details {
  flex: 2 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--primary);
}
footer .contact-details img { width: 18px; margin-right: 6px; vertical-align: middle; }
footer .social-icons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  flex: 1 1 120px;
  margin-top: 18px;
}
footer .social-icons a img { width: 27px; transition: filter 0.12s; filter: grayscale(35%); }
footer .social-icons a:hover img { filter: grayscale(0%) brightness(1.2) contrast(1.1); }
@media (max-width: 900px) {
  footer .content-wrapper { flex-wrap: wrap; gap: 22px; }
  footer .footer-links { margin-bottom: 22px; }
}
@media (max-width: 570px) {
  footer .content-wrapper { flex-direction: column; align-items: flex-start; }
}

/* =======================================
   LISTS & TEXT
   ======================================= */
ul, .text-section ul { list-style: disc outside; margin-left: 18px; font-size: 1rem; }
.benefits-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.benefits-highlights li {
  background: var(--earth2);
  color: #fff;
  border-radius: 12px;
  padding: 7px 20px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* =======================================
   SLIDERS, ANIMATIONS & MICRO-INTERACTIONS
   ======================================= */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
.testimonial-card {
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(20,57,125,0.11);
  transform: scale(1.015) translateY(-3px);
}

/* FAQ Expand Micro-animation for potential JS expansion */
.faq-item {
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.15s;
}
.faq-item:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px 0 rgba(33,161,121,0.14);
}

/* Animations for scale/fade in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.section, .hero, .card, .feature, .testimonial-card, .course-card, .faq-item {
  animation: fadeUp 0.7s cubic-bezier(.88,.23,.58,.86) both;
  animation-delay: 0.03s;
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 900px) {
  .feature-grid, .course-overview-grid, .card-container, .team-profiles {
    gap: 18px;
  }
  .section, .hero {
    padding: 28px 5px;
  }
  .container {
    padding: 0 6px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .course-overview-grid, .card-container, .team-profiles, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .course-card, .feature, .card, .text-section, .testimonial-card {
    min-width: unset;
    width: 100%;
    padding: 20px 12px;
  }
  .section, .hero {
    padding: 17px 0;
  }
  .container {
    padding: 0 4px;
  }
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
   ======================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--earth3);
  color: #fff;
  z-index: 40000;
  padding: 26px 16px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 -4px 22px 0 rgba(20,57,125,0.09);
  animation: fadeUp 0.5s ease both;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.cookie-banner p {
  font-size: 1rem;
  margin: 0 24px 0 0;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: var(--secondary);
  color: #fff;
  border-radius: 22px;
  padding: 7px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 2px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(33,161,121,0.08);
  cursor: pointer;
  transition: background .13s, transform .13s;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #17815d;
  color: #fff;
  transform: scale(1.04);
}
.cookie-btn.settings:hover {
  background: var(--secondary);
  color: #fff;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 40001;
  background: rgba(20,57,125,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp .4s;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px 0 rgba(33,161,121,0.18);
  padding: 32px 28px 22px 28px;
  max-width: 460px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 { color: var(--secondary); font-size: 1.4rem; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 1.03rem;
}
.cookie-switch {
  display: inline-block;
  width: 42px;
  height: 22px;
  position: relative;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: var(--earth1);
  border-radius: 19px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background .12s;
}
.cookie-switch input:checked ~ .cookie-slider {
  background: var(--green-accent);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 17px; width: 17px;
  left: 3px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .13s;
  box-shadow: 0 1px 6px 0 rgba(20,57,125,0.14);
}
.cookie-switch input:checked ~ .cookie-slider:before {
  transform: translateX(19px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
}
.cookie-modal .category-essential {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 550px) {
  .cookie-modal { padding: 20px 6px 12px 6px; }
  .cookie-modal h2 { font-size: 1.08rem; }
}

/* =======================================
   THANK YOU PAGE
   ======================================= */
.thankyou {
  margin: 50px auto;
  border-radius: var(--radius-card);
  background: var(--accent);
  box-shadow: var(--shadow);
  padding: 36px 28px 24px 28px;
}
.thankyou h1 { color: var(--secondary); }
.thankyou .cta.primary { margin-top: 18px; }

/* =======================================
   MISCELLANEOUS UTILITY & OVERRIDES
   ======================================= */
::-webkit-scrollbar { width: 9px; background: var(--earth4); }
::-webkit-scrollbar-thumb { background: var(--earth2); border-radius: 36px; }
::selection { background: #d1e3be; color: #273b13; }

/* Required min spacing between cards and sections (overrides safety net) */
.card, .feature, .testimonial-card, .text-section, .course-card, .faq-item {
  margin-bottom: 20px;
}
.section + .section {
  margin-top: 20px;
}

/* Prevent Overlapping on Small Screens */
@media (max-width: 500px) {
  .card, .feature, .testimonial-card, .text-section, .course-card, .faq-item {
    margin-bottom: 13px;
    padding: 15px 6px;
  }
  .section {
    margin-bottom: 32px;
    padding: 15px 0;
  }
}

/* End of CSS */
