/* CSS RESET & BASELINE */
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;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F9FB;
  color: #112B3C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: border-box;
}
a {
  color: #205375;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F7CA18;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.25em;
}

/* FONT FACE LOADING (FALLBACKS INCLUDED) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* BRAND COLORS & UTILS */
:root {
  --cg-primary: #205375;
  --cg-secondary: #112B3C;
  --cg-accent: #F7CA18;
  --cg-bg: #F7F9FB;
  --cg-surface: #fff;
  --cg-grey: #d0dae6;
  --cg-shadow: 0 2px 16px 0 rgba(32,83,117,0.10);
  --cg-radius: 16px;
  --cg-radius-sm: 8px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--cg-primary);
  margin-bottom: 20px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.13;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 13px;
}
h4 {
  font-size: 1.1rem;
}
p {
  font-size: 1.0625rem;
  color: var(--cg-secondary);
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  color: var(--cg-primary);
  background: var(--cg-bg);
  border-left: 5px solid var(--cg-accent);
  padding: 16px 24px;
  margin-bottom: 14px;
  border-radius: var(--cg-radius-sm);
}

/* SPACING & STRUCTURE */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section,
.hero,
.about,
.features,
.services,
.cta,
.contact,
.testimonials {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
/* Geometric structure for feature lists and articles */
.feature-grid,
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--cg-surface);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.16s;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(32,83,117,0.16);
  transform: translateY(-3px) scale(1.02);
}

.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: var(--cg-surface);
  box-shadow: var(--cg-shadow);
  border-radius: var(--cg-radius);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.14s;
  border-left: 8px solid var(--cg-accent);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(32,83,117,0.16);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cg-secondary);
  margin-left: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  flex: 1 1 210px;
  background: var(--cg-surface);
  border-radius: var(--cg-radius-sm);
  box-shadow: var(--cg-shadow);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
  position: relative;
  border-top: 4px solid var(--cg-accent);
}
.feature-item img {
  width: 44px;
  height: 44px;
  background: var(--cg-accent);
  border-radius: 8px;
  padding: 6px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 4px 18px rgba(248,183,2,0.09), 0 7px 20px rgba(32,83,117,0.12);
  transform: translateY(-2px) scale(1.012);
}

.article-preview {
  background: var(--cg-surface);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  padding: 28px 22px;
  margin-bottom: 18px;
  flex: 1 1 300px;
  min-width: 210px;
  transition: box-shadow 0.2s, transform 0.12s;
  border-left: 5px solid var(--cg-primary);
}
.article-preview h3 a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--cg-primary);
  border-bottom: 2px solid var(--cg-accent);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.article-preview h3 a:hover {
  color: var(--cg-accent);
  border-bottom: 2px solid var(--cg-primary);
}
.article-preview:hover, .article-preview:focus-within {
  box-shadow: 0 7px 22px rgba(32,83,117,0.14);
  transform: translateY(-2px) scale(1.01);
}

.instructor-profile {
  background: var(--cg-surface);
  border-radius: var(--cg-radius-sm);
  box-shadow: var(--cg-shadow);
  padding: 18px 20px 11px 20px;
  margin-bottom: 18px;
  border-left: 4px solid var(--cg-accent);
}

/* HEADER & NAVIGATION */
header {
  background: var(--cg-surface);
  box-shadow: 0 2px 12px 0 rgba(32,83,117,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 66;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 70px;
  gap: 24px;
}
.logo, .logo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  height: 42px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-left: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cg-secondary);
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--cg-accent);
  border-radius: 3px;
  transition: width 0.2s;
  margin-top: 3px;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--cg-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--cg-accent);
  color: var(--cg-secondary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 10px 26px;
  border-radius: 40px;
  border: none;
  box-shadow: 0 0 0 0 rgba(32,83,117,0.12);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.21s, color 0.18s;
  margin-left: 16px;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--cg-primary);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(32,83,117,0.12);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--cg-primary);
  cursor: pointer;
  margin-left: 12px;
  z-index: 94;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--cg-accent);
}

/* MOBILE NAVIGATION (OFFCANVAS) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 90vw;
  height: 100vh;
  background: var(--cg-surface);
  box-shadow: -4px 0 32px rgba(32,83,117,0.22);
  z-index: 999;
  transform: translateX(105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.17s;
}
.mobile-menu.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.25rem;
  padding: 14px 18px 2px 0;
  background: none;
  border: none;
  color: var(--cg-primary);
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--cg-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 34px;
  margin-top: 32px;
}
.mobile-nav a {
  color: var(--cg-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.7;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--cg-primary);
  background: var(--cg-bg);
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(100deg, #f7f9fb 68%, #F7CA18 180%);
  border-bottom: 6px solid var(--cg-primary);
  position: relative;
  margin-bottom: 60px;
  padding-top: 34px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 640px;
}
.hero h1 {
  color: var(--cg-primary);
  margin-bottom: 14px;
  line-height: 1.12;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 22px;
}
.hero .cta-button {
  margin-top: 12px;
}

/* FOOTER */
footer {
  background: var(--cg-secondary);
  color: #fff;
  padding: 38px 0 24px 0;
  margin-top: 56px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo-footer img {
  height: 38px;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  color: #f6f6f6;
  font-size: 0.98rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--cg-accent);
}
footer p {
  color: #dbe1e7;
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* BUTTONS */
button, .cta-button {
  outline: none;
  border: none;
  cursor: pointer;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--cg-surface);
  box-shadow: 0 -2px 14px rgba(32,83,117,0.16);
  z-index: 1005;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-top: 3px solid var(--cg-accent);
  justify-content: center;
  transition: transform 0.35s, opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1.02rem;
  color: var(--cg-secondary);
  margin: 0 14px 0 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 1.5px 6px rgba(32,83,117,0.07);
  background: var(--cg-accent);
  color: var(--cg-secondary);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  margin: 0 2px;
}
.cookie-banner button:hover {
  background: var(--cg-primary);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--cg-grey);
  color: var(--cg-secondary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--cg-primary);
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1006;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(32,83,117,0.38);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--cg-radius);
  max-width: 408px;
  width: 96%;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 12px 40px rgba(32,83,117,0.23);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 8px;
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--cg-secondary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--cg-accent);
  width: 18px;
  height: 18px;
  margin-left: 10px;
}
.cookie-category .always-on {
  color: var(--cg-accent);
  font-size: 0.96rem;
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 22px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 1.02rem;
  background: var(--cg-accent);
  color: var(--cg-secondary);
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.cookie-modal button:hover {
  background: var(--cg-primary);
  color: #fff;
}
.cookie-modal .close-btn {
  background: var(--cg-grey);
  color: var(--cg-secondary);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.7rem;
  padding: 2px 10px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.cookie-modal .close-btn:hover {
  background: var(--cg-accent);
  color: #fff;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1160px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 980px) {
  .main-nav {
    gap: 12px;
    margin-left: 10px;
  }
  .container {
    padding: 0 10px;
  }
  .feature-grid, .article-grid {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .footer-nav {
    gap: 9px;
  }
  .content-wrapper,
  .feature-grid,
  .content-grid,
  .article-grid {
    gap: 14px;
  }
  .feature-item,
  .article-preview,
  .testimonial-card,
  .card {
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  main, .container {
    padding: 0 4vw;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .hero .content-wrapper {
    max-width: 95vw;
  }
  .content-wrapper,
  .feature-grid,
  .content-grid,
  .article-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item,
  .article-preview,
  .testimonial-card,
  .card {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 8px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    padding: 10px 5vw;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    gap: 6px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .footer-nav a {
    font-size: 0.86rem;
  }
}

/* Utility classes for structure (for geometric feel) */
.angle-decorator {
  width: 50px;
  height: 7px;
  background: var(--cg-accent);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  margin-bottom: 18px;
}

/* MICRO-INTERACTIONS */
.card, .feature-item, .testimonial-card, .article-preview {
  will-change: transform, box-shadow;
  transition: box-shadow 0.17s, transform 0.13s;
}

/* Accessibility: High-contrast text for testimonials */
.testimonial-card blockquote, .testimonial-card .testimonial-author {
  color: var(--cg-secondary);
}
/* Ensuring readable, dark text on light backgrounds in testimonials */
.testimonial-card {
  background: var(--cg-surface);
  color: var(--cg-secondary);
  border-left: 8px solid var(--cg-accent);
}

/* List styling */
ul, ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 4px;
  color: var(--cg-secondary);
  font-size: 1.01rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.48;
}
.text-section ul li img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  margin-bottom: -4px;
}

/* Forms (for contact/message buttons if present) */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: var(--cg-radius-sm);
  border: 1.5px solid var(--cg-grey);
  margin-bottom: 16px;
  background: #fff;
  color: var(--cg-secondary);
  box-sizing: border-box;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cg-accent);
  outline: none;
}

/* Hide visually when not needed */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loader utility if needed */
.loader-spin {
  border: 2.75px solid var(--cg-grey);
  border-top: 2.75px solid var(--cg-primary);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  animation: loader-rotate 1.1s linear infinite;
}
@keyframes loader-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ENSURE NO GRID USED, FLEXBOX ONLY! */
/* End of CSS */
