/* CSS RESET & BASE ------------------------------- */
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, 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;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #FAFAFA;
  color: #1A2328;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s;
}
main { flex: 1 1 auto; }
img { max-width: 100%; display: block; height: auto; }
a { color: #264653; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #2A9D8F; text-decoration: underline; }
ol, ul { list-style: none; }
strong, b { font-weight: 700; }
hr { border: none; border-bottom: 1px solid #EEE; margin: 32px 0; }

/* TYPOGRAPHY ------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #264653;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }
p, ul, ol { margin-bottom: 14px; line-height: 1.65; }
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}

/* LAYOUT SPACING & FLEX UTILS ------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(38,70,83,0.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(42,157,143,0.09);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 250px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 2px 14px rgba(38,70,83,0.12);
}
.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 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F8F8;
  color: #264653;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(38,70,83,0.07);
  min-width: 260px;
  margin-bottom: 20px;
  flex: 1 0 240px;
}
.feature-grid, .team-grid, .highlighted-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F3F8F6;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(42,157,143,0.07);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 0 200px;
  transition: box-shadow 0.2s;
}
.feature-item:hover {
  box-shadow: 0 2px 14px rgba(42,157,143,0.14);
}
.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(38,70,83,0.08);
  padding: 18px 16px;
  flex: 1 0 180px;
}
.blog-highlight {
  background: #F7F3EE;
  border-left: 5px solid #F4A261;
  border-radius: 9px;
  padding: 18px 18px 18px 16px;
  box-shadow: 0 1px 3px rgba(244,162,97,0.05);
  flex: 1 0 240px;
  min-width: 220px;
}
.highlighted-posts {
  gap: 20px;
}

.course-list, .course-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* BUTTONS & LINKS ------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #2A9D8F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(42,157,143,0.08);
  cursor: pointer;
  transition: background 0.19s, transform 0.14s, box-shadow 0.19s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #22907b;
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 3px 16px rgba(38,70,83,0.06);
  color: #fff;
  text-decoration: none;
}
/* Secondary Button (eg. cookie modal) */
.btn-secondary {
  background: #264653;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  padding: 11px 24px;
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.19s, transform 0.14s, box-shadow 0.19s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #20576e;
  color: #fff;
}
.btn-accent {
  background: #F4A261;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 11px 24px;
  margin-top: 4px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.19s, transform 0.14s, box-shadow 0.19s;
}
.btn-accent:hover, .btn-accent:focus {
  background: #e4893c;
  color: #fff;
}

/* HEADER & NAVIGATION ------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 16px rgba(38,70,83,0.03);
  padding: 0 0 0 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-direction: row;
  position: sticky;
  top: 0;
  z-index: 51;
}
header img {
  height: 48px;
  margin: 10px 24px 10px 12px;
  width: auto;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #264653;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.13s;
}
header nav a:hover, header nav a:focus {
  background: #F7F8F8;
  color: #2A9D8F;
  text-decoration: none;
}
header nav .btn-primary {
  margin-left: 12px;
  padding: 10px 26px;
  font-size: 1rem;
  color: #fff;
  background: #2A9D8F;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #264653;
  margin-left: 14px;
  cursor: pointer;
  z-index: 61;
  transition: color 0.18s;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F3F8F6;
  color: #2A9D8F;
}

/* MOBILE MENU ------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(38, 70, 83, 0.93);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  margin: 16px 24px 0 auto;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #2A9D8F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 36px;
  margin-left: 32px;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  background: none;
  border-radius: 10px;
  padding: 12px 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4A261;
  background: rgba(244,162,97,0.12);
}

/* Only show burger on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN CONTENT REFINEMENT ------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main section:last-child {
  margin-bottom: 0;
}

/* Misc utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.gap-24 { gap: 24px !important; }

/* BLOG, POST LISTS, FILTERS */
.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.category-filters a {
  color: #2A9D8F;
}
.category-filters a:hover { text-decoration: underline; }
.blog-post-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.blog-post-list li {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 1px 4px rgba(38,70,83,0.045);
  margin-bottom: 0;
  transition: box-shadow 0.16s;
}
.blog-post-list li:hover {
  box-shadow: 0 2px 14px rgba(38,70,83,0.085);
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.faq-list li { background: #F7F8F8; border-radius: 9px; padding: 16px 14px; color: #2A9D8F; }
.faq-topics {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.faq-topics a { color: #264653; text-decoration: underline; font-size: 1.05rem; }

/* CONTACT / MAP BLOCKS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.08rem;
}
.contact-details img {
  width: 22px; height: 22px; margin-right: 8px; display: inline-block; vertical-align: middle;
}
.contact-details p { display: flex; align-items: center; gap: 7px; }
.location-map { margin-top: 16px; padding: 12px 16px; background: #f0f5f5; border-radius: 10px; }

/* TESTIMONIAL SLIDER / CARDS -------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #2A9D8F;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #264653;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

/* FOOTER ------------------------------- */
footer {
  background: #f3f6f5;
  border-top: 1.5px solid #ECECEC;
  padding: 32px 20px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: auto;
  font-size: 1rem;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
footer nav a {
  color: #264653;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 7px;
  transition: background 0.13s, color 0.16s;
}
footer nav a:hover {
  background: #E8F4F1;
  color: #2A9D8F;
}
footer address {
  color: #2A9D8F;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
}
footer address a {
  color: #264653;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}
footer address a:hover { color: #2A9D8F; }

/* COOKIE CONSENT BANNER & MODAL -------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #264653;
  box-shadow: 0 -1px 12px rgba(42,157,143,0.13);
  padding: 22px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2004;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1.08rem;
  transition: transform 0.3s cubic-bezier(0.6,0,0.4,1), opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,70,83,0.38);
  z-index: 2006;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 92vw;
  width: 420px;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 8px 28px rgba(38,70,83,0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: modalfadein 0.36s cubic-bezier(0.5,0,0.2,1);
}
@keyframes modalfadein {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: #F4A261;
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 36px; height: 36px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e4893c;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #F7F8F8;
  border-radius: 9px;
  padding: 10px 16px;
  margin-bottom: 10px;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
}
.cookie-category .category-label {
  font-size: 1.08rem;
  font-weight: 500;
  color: #264653;
}
.cookie-category .category-desc {
  font-size: 0.98rem;
  color: #2A9D8F;
}

/* Responsive: COL + GAPS ------------------------------- */
@media (max-width: 992px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
  .feature-item, .team-member, .card, .blog-highlight, .testimonial-card {
    min-width: 140px;
    flex: 1 1 160px;
  }
  .feature-grid, .team-grid, .highlighted-posts, .testimonial-slider {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 32px;
    padding: 24px 8px;
    border-radius: 10px;
  }
  .content-grid, .feature-grid, .blog-highlight, .team-grid, .testimonial-slider, .card-container {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .card, .feature-item, .team-member, .testimonial-card, .blog-highlight {
    min-width: 90px;
    padding: 16px 8px;
    border-radius: 8px;
    font-size: 1rem;
  }
  header img {
    height: 40px;
    margin: 7px 10px 7px 8px;
  }
  .cookie-modal {
    width: 98vw;
    min-width: unset;
    padding: 18px 6px 18px 6px;
  }
  .cookie-modal h2 { font-size: 1rem; }
}
@media (max-width: 650px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.2rem; }
  .btn-primary, .btn-secondary, .btn-accent { font-size: 0.98rem; padding: 10px 15px; }
}
@media (max-width: 480px) {
  .cookie-banner { font-size: 0.92rem; flex-direction: column; gap: 8px; padding: 15px 8px; }
  .cookie-banner .cookie-buttons { flex-direction: column; gap: 6px; }
}

/* SECTION: VISUAL HIERARCHY + SUBTLE ACCENTS ---------- */
.feature-item img, .team-member img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  filter: saturate(0.86);
}
.feature-item h3, .team-member h3 { color: #2A9D8F; font-size: 1.1rem; }
.feature-item p, .team-member p { font-size: 0.98rem; color: #264653; }

/* MISC DECORATIVE & ANIMATION ------------------- */
.card:hover, .feature-item:hover, .team-member:hover, .blog-highlight:hover {
  box-shadow: 0 3px 16px rgba(42,157,143,0.16);
  transition: box-shadow 0.18s;
}

/* FORM CONTROLS ------------------ */
input,
select,
textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 8px;
  border: 1px solid #cfdbd5;
  padding: 10px 12px;
  font-size: 1rem;
  background: #F7F8F8;
  transition: border-color 0.15s;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: #2A9D8F;
  outline: none;
}

/* HIGHLIGHT/SELECTED */
.selected, .active {
  background: #F4A261 !important;
  color: #fff !important;
}

/* CUSTOM SCROLLBAR --------------------- */
::-webkit-scrollbar { width: 7px; background: #F7F8F8; }
::-webkit-scrollbar-thumb {
  background: #cfdbd5;
  border-radius: 12px;
}

/* ACCESSIBILITY HIGH CONTRAST FOR TESTIMONIALS / REVIEW SECTIONS --------- */
.testimonial-card,
.faq-list li {
  background: #F8F9FA !important;
  color: #1A2328 !important;
}
.testimonial-card p, .testimonial-card span,
.faq-list li {
  color: #264653 !important;
}

/* Z-INDEX FOR UI LAYERS ------------------------------- */
header { z-index: 51; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 2004; }
.cookie-modal-overlay { z-index: 2006; }

/* HIDE PRINTED UI ELEMENTS */
@media print {
  .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
