/* 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: #25416D;
  background: linear-gradient(135deg, #F6F5F0 0%, #e9eef8 100%);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
main, section {
  width: 100%;
}
ul, ol {
  list-style: none;
}
a {
  color: #2C9257;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #25416D;
  text-decoration: underline;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* TYPOGRAPHY -------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #25416D;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
p, li {
  font-size: 1rem;
  color: #25416D;
  margin-bottom: 12px;
}
strong {
  font-weight: 600;
  color: #2C9257;
}

/* BUTTONS ----------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#2C9257 0%, #25416D 100%);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44,146,87,0.13);
  transition: background 0.3s, transform 0.15s, box-shadow 0.2s;
  margin: 8px 0;
  white-space: nowrap;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,#25416D 0%, #2C9257 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(37,65,109,0.17);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#F6F5F0 0%, #e9eef8 100%);
  color: #25416D;
  border: 2px solid #2C9257;
  padding: 11px 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(44,146,87,0.09);
  margin: 8px 0;
  transition: background 0.25s, color 0.2s, transform 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #2C9257;
  color: #fff;
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 6px 16px rgba(44,146,87,0.15);
}

/* HEADER & NAV ------------------------ */
header {
  background: #fff;
  box-shadow: 0 2px 22px rgba(37,65,109,0.03);
  padding: 0;
  position: relative;
  z-index: 1100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 16px 12px 16px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 10px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #25416D;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e9eef8;
  color: #2C9257;
}
header .btn-primary {
  margin-left: 10px;
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #2C9257;
  margin: 0 8px 0 0;
  cursor: pointer;
  z-index: 1200;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #25416D;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 32px rgba(37,65,109,0.08);
  z-index: 1300;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.55,.07,.43,.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 34px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 1320;
  background: none;
  border: none;
  font-size: 2.0rem;
  color: #2C9257;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 36px 16px 36px;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #25416D;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e9eef8;
  color: #2C9257;
}

/* HERO SECTION ------------------------ */
.hero {
  background: linear-gradient(100deg, #2C9257 0%, #25416D 100%);
  color: #fff;
  padding: 72px 0 54px 0;
  min-height: 320px;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 680px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero h1 {
  font-size: 2.6rem;
}
.hero p {
  font-size: 1.23rem;
  opacity: 0.97;
}
.hero .btn-primary {
  background: #fff;
  color: #25416D;
}
.hero .btn-primary:hover {
  background: #F6F5F0;
  color: #2C9257;
}

/* FLEX UTILS AND LAYOUTS --------------- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 12px;
  align-items: stretch;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(37,65,109,0.08);
  padding: 32px 24px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 28px rgba(37,65,109,0.13);
  transform: translateY(-3px) scale(1.03);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F6F5F0;
  border-radius: 18px;
  box-shadow: 0 3px 12px rgba(37,65,109,0.08);
  font-size: 1.12rem;
  color: #25416D;
  margin-bottom: 24px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 300px;
  border-left: 6px solid #2C9257;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 22px rgba(44,146,87,0.14);
  border-left: 8px solid #25416D;
}
.testimonial-card p {
  color: #25416D;
  margin-bottom: 0;
  font-size: 1.06rem;
}
.testimonial-card span {
  color: #2C9257;
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-card div {
  font-size: 1.2rem;
  color: #25416D;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 9px rgba(44,146,87,0.07);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.course-card, .instructor-card, .blog-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37,65,109,0.08);
  padding: 26px 22px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.course-card:hover, .instructor-card:hover, .blog-preview:hover {
  box-shadow: 0 8px 20px rgba(44,146,87,0.13);
  transform: translateY(-2px) scale(1.025);
}
.experience-highlights {
  background: #e9eef8;
  border-radius: 14px;
  padding: 20px 22px;
  color: #25416D;
  margin-bottom: 18px;
  flex: 1 1 220px;
  box-shadow: 0 2px 7px rgba(37,65,109,0.05);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 650px;
}

.blog-preview a {
  color: #2C9257;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 2px;
  transition: color 0.18s;
}
.blog-preview a:hover {
  color: #25416D;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px 0;
  flex-wrap: wrap;
}
.blog-filters span {
  color: #25416D;
  font-weight: 600;
}
.blog-filters a {
  color: #2C9257;
  background: #e9eef8;
  border-radius: 12px;
  padding: 4px 13px;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.17s, color 0.18s;
  margin-right: 5px;
}
.blog-filters a:hover, .blog-filters a:focus {
  background: #2C9257;
  color: #fff;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-search input[type="text"] {
  border: 1.7px solid #2C9257;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  width: 210px;
  transition: border 0.16s;
}
.blog-search input[type="text"]:focus {
  outline: none;
  border-color: #25416D;
}

/* TABLE STYLES (Cookie page) ----------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 14px 0 8px 0;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 11px rgba(37,65,109,0.06);
  overflow: hidden;
}
th, td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid #e9eef8;
}
th {
  background: #F6F5F0;
  color: #25416D;
  font-weight: 700;
}

/* FOOTER ------------------------------- */
footer {
  background: linear-gradient(90deg,#25416D 0%, #2C9257 100%);
  color: #fff;
  padding: 26px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
  font-weight: 400;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #2C9257;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 22px;
  margin-right: 8px;
}

/* COOKIE BANNER & MODAL ---------------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid #2C9257;
  box-shadow: 0 -2px 22px rgba(37,65,109,0.10);
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  font-size: 1.025rem;
  animation: cookie-in 0.45s cubic-bezier(.41,.67,.45,.89);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(30%); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #25416D;
  margin-right: 18px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-banner button {
  display: inline-flex;
  align-items: center;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 18px;
  cursor: pointer;
  padding: 8px 20px;
  font-size: 1em;
  transition: background 0.19s, color 0.16s, transform 0.13s;
}
.cookie-banner .cookie-accept {
  background: linear-gradient(90deg, #2C9257 0%, #25416D 100%);
  color: #fff;
}
.cookie-banner .cookie-accept:hover {
  background: #2C9257;
  color: #fff;
  transform: scale(1.03);
}
.cookie-banner .cookie-reject {
  background: #F6F5F0;
  color: #25416D;
  border: 1.2px solid #2C9257;
}
.cookie-banner .cookie-reject:hover {
  background: #25416D;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #2C9257;
  border: 1.2px solid #2C9257;
}
.cookie-banner .cookie-settings:hover {
  background: #2C9257;
  color: #fff;
  border: 1.2px solid #2C9257;
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(37,65,109,0.15);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s ease;
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 48px rgba(44,146,87,0.17);
  max-width: 410px;
  width: 95vw;
  padding: 28px 33px 22px 33px;
  z-index: 2550;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: popIn 0.37s cubic-bezier(.45,.95,.38,.98);
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  color: #2C9257;
  margin-bottom: 12px;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: #25416D;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: #92b4e7;
}
.cookie-modal input[type="checkbox"]:not([disabled]) {
  accent-color: #2C9257;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject {
  min-width: 90px;
}
.cookie-modal .cookie-cancel {
  background: #F6F5F0;
  color: #25416D;
  border: 1.2px solid #2C9257;
}
.cookie-modal .cookie-cancel:hover {
  background: #25416D;
  color: #fff;
}

/* MEDIA QUERIES: RESPONSIVENESS -------- */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
  .hero .container {
    max-width: 95vw;
    padding: 0 12px;
  }
}
@media (max-width: 930px) {
  .main-nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.05rem; }
  .hero {
    padding: 40px 0 30px 0;
    min-height: 220px;
    margin-bottom: 24px;
  }
  .hero .container {
    padding: 0 5px;
    max-width: 98vw;
  }
  .content-wrapper {
    flex-direction: column !important;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 6px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 7px;
  }
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 14px;
  }
  .testimonial-card, .course-card, .instructor-card, .experience-highlights, .blog-preview {
    min-width: 0;
    max-width: 98vw;
    width: 100%;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner p {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .cookie-banner-actions {
    gap: 11px;
  }
  .cookie-modal {
    padding: 17px 8px 12px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 28px 0 12px 0;
  }
  .hero .content-wrapper {
    padding: 0;
    gap: 14px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.89rem;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  th, td {
    padding: 8px 8px;
    font-size: 0.9rem;
  }
}

/* ACCESSIBILITY: FOCUS STYLES ---------- */
a:focus, button:focus, input:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2.5px solid #2C9257;
  outline-offset: 2px;
  z-index: 1;
}

/* MISC: ICONS IN TEXT ------------------- */
p img, .text-section img, .footer-contact img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  height: 19px;
  width: 19px;
}

/* SPECIAL LISTS ------------------------- */
ul li, .text-section ul li, .content-wrapper ul li {
  margin-bottom: 7px;
  position: relative;
  padding-left: 22px;
  color: #25416D;
  font-size: 1rem;
}
ul li strong {
  color: #2C9257;
}
ul li:before {
  content: '';
  width: 10px;
  height: 10px;
  background: #2C9257;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
  opacity: 0.16;
}
ul li:last-child { margin-bottom: 0; }

/* SPECIALS: EXPERIENCE NUMBERS --------- */
.experience-highlights ul li {
  font-size: 1.05rem;
  color: #25416D;
  margin-bottom: 5px;
  padding-left: 18px;
}
.experience-highlights ul li:before {
  background: #25416D;
  opacity: 0.3;
}

/* ICONS ------------------------------ */
[alt$="Icon"], [class*="icon-"] {
  height: 28px;
  width: 28px;
  margin-bottom: -4px;
}

/* Z-INDEX LAYERING --------------------- */
header { z-index: 1100; }
.mobile-menu { z-index: 1300; }
.cookie-banner { z-index: 2000; }
.cookie-modal-overlay { z-index: 2500; }

/* PRINT OPTIMIZATION ------------------- */
@media print { 
  header, nav, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section, .container { box-shadow: none !important; background: #fff !important; }
}
