/* 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 {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F5F2EB;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #214067;
  background: #F5F2EB;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #214067;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #529473;
  outline: none;
}
ul, ol {
  padding-left: 1.25em;
}
main {
  flex: 1 0 auto;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #214067;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 18px; line-height: 1.2; }
h3 { font-size: 1.375rem; margin-bottom: 14px; line-height: 1.25; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 10px; line-height: 1.3; }
p, li, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #214067;
}
strong, b { font-weight: 600; }

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75em 2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.23s, color 0.23s, box-shadow 0.23s, transform 0.2s;
  box-shadow: 0 1px 6px rgba(33, 64, 103, 0.08);
  outline: none;
}
.btn-primary {
  background: #214067;
  color: #F5F2EB;
}
.btn-primary:hover, .btn-primary:focus {
  background: #529473;
  color: #F5F2EB;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(33, 64, 103, 0.12);
}
.btn-secondary {
  background: #F5F2EB;
  color: #214067;
  border: 2px solid #214067;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #214067;
  color: #F5F2EB;
  border-color: #214067;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(33, 64, 103, 0.12);
}

/* HEADER & NAVIGATION */
header {
  background: #ffffff;
  border-bottom: 4px solid #214067;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 12px rgba(33, 64, 103, 0.07);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 18px;
}
.logo img {
  width: 175px;
  min-width: 100px;
  display: block;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #214067;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  position: relative;
  padding: 3px 0;
}
nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: #529473;
  width: 0%;
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2px;
}
nav a:hover::after, nav a:focus::after {
  width: 100%;
}
nav a.active {
  color: #529473;
}
nav a.active::after {
  width: 100%;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 200;
  background: #214067;
  color: #F5F2EB;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(33, 64, 103, 0.12);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #529473;
  box-shadow: 0 4px 16px rgba(33, 64, 103, 0.18);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #214067;
  color: #F5F2EB;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 38px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.64,-0.09,.27,1.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #F5F2EB;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #529473;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav a {
  color: #F5F2EB;
  font-size: 1.15rem;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 2px;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #529473;
  color: #F5F2EB;
}

/* LAYOUT SECTIONS & STRUCTURE */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  background: #214067;
  color: #F5F2EB;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0 0 42px 42px;
  box-shadow: 0 8px 44px -16px rgba(33,64,103, 0.16);
  margin-bottom: 60px;
}
.hero .container {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  gap: 18px;
  text-align: center;
  padding: 40px 0;
}
.hero h1 {
  color: #F5F2EB;
}
.hero p {
  color: #F5F2EB;
  font-size: 1.2rem;
  margin-bottom: 22px;
  max-width: 640px;
}
.hero .btn-primary {
  font-size: 1.15rem;
  min-width: 180px;
}
.section h2 {
  text-align: left;
  font-size: 2rem;
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F5F2EB;
  border: 2.5px solid #214067;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(33,64,103,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  flex: 1 1 340px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px rgba(33,64,103,0.13);
  transform: translateY(-5px) scale(1.015);
  border-color: #529473;
}
.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: center;
  gap: 20px;
  background: #F5F2EB;
  border-radius: 16px;
  border: 2.5px solid #214067;
  box-shadow: 0 2px 16px rgba(33,64,103,0.12);
  padding: 20px;
  max-width: 370px;
  min-width: 260px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  transition: box-shadow 0.25s, border 0.25s;
}
.testimonial-card p {
  color: #214067;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #214067;
}
.testimonial-card .star-rating img {
  width: 26px;
  height: 26px;
  display: inline-block;
  margin-right: 2px;
  vertical-align: middle;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: left;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F2EB;
  border-radius: 14px;
  border: 2.5px solid #529473;
  box-shadow: 0 2px 12px rgba(82,148,115,0.09);
  padding: 24px 18px;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s, border 0.18s, transform 0.18s;
}
.feature-item:hover {
  transform: translateY(-2px) scale(1.03) rotate(-1.2deg);
  box-shadow: 0 8px 30px rgba(82,148,115,0.13);
  border-color: #214067;
}
.feature-item img {
  width: 40px;
  height: 40px;
}

/* LINKS & UI ELEMENTS */
.quick-facts, .unique-approach, .resource-list, .quick-reasons, .course-highlights, .course-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.team-bios, .alumni-spotlights, .blog-post-grid, .support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.team-bios > div, .alumni-spotlights > div, .blog-post, .support-options > div {
  background: #F5F2EB;
  border: 2.5px solid #214067;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(33,64,103,0.07);
  padding: 24px 16px;
  min-width: 240px;
  flex: 1 1 250px;
}
.team-values {
  margin-top: 36px;
  background: #F5F2EB;
  border-radius: 12px;
  padding: 20px 14px;
  border: 2px solid #529473;
}
.newsletter, .subscribe-box {
  margin-top: 16px;
  background: #F5F2EB;
  border-left: 8px solid #214067;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(33,64,103,0.07);
}
.blog-post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 210px;
}
.recent-comments, .social-follow-links {
  margin-top: 24px;
}
.recent-comments ul, .social-follow-links ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-follow-links ul {
  flex-direction: row;
}
.social-follow-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #214067;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.17s;
}
.social-follow-links a:hover, .social-follow-links a:focus {
  color: #529473;
}

.faq-highlight {
  margin-top: 30px;
  background: #F5F2EB;
  border-radius: 14px;
  border: 2px solid #529473;
  padding: 20px 22px;
  max-width: 680px;
}

/* CONTACT + INFO BLOCKS */
.contact-info, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 26px 0;
}
.contact-info div, .contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.07rem;
  color: #214067;
}
.contact-details .address-block, .contact-details .phone-block, .contact-details .email-block, .contact-details .hours-block {
  margin-bottom: 4px;
}

/* FOOTER */
footer {
  background: #214067;
  color: #F5F2EB;
  padding: 46px 0 22px 0;
  border-radius: 38px 38px 0 0;
  box-shadow: 0 -2px 22px rgba(33, 64, 103, 0.07);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer a, footer nav a {
  color: #F5F2EB;
  margin-right: 12px;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.9;
  transition: color 0.16s, opacity 0.16s;
}
footer a:hover, footer nav a:hover {
  color: #529473;
  opacity: 1;
}
.footer-contact {
  margin: 0 0 10px 0;
  font-size: 0.98rem;
  opacity: 0.88;
}
.footer-copy {
  font-size: 0.92rem;
  opacity: 0.75;
}

/* POLICY TEXT + UTILS */
.policy-text ul {
  margin-bottom: 12px;
}
.policy-text ul li {
  margin-bottom: 8px;
  padding-left: 0.5em;
}
.policy-text a {
  color: #529473;
  text-decoration: underline;
  font-weight: 600;
}
.policy-text a:hover {
  color: #214067;
}

/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #214067;
  z-index: 99999;
  box-shadow: 0 -4px 24px rgba(33,64,103,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  gap: 16px;
  font-size: 1rem;
  transition: transform 0.34s cubic-bezier(0.55,0,0.1,1), opacity 0.18s;
  transform: translateY(0);
}
#cookie-banner.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.cookie-btn.accept {
  background: #214067;
  color: #F5F2EB;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #529473;
}
.cookie-btn.reject {
  background: #F5F2EB;
  color: #214067;
  border: 2px solid #214067;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dbe2d9;
}
.cookie-btn.settings {
  background: #529473;
  color: #F5F2EB;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #214067;
  color: #F5F2EB;
}

/* COOKIE PREFS MODAL */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,64,103,0.47);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.28s;
}
#cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #214067;
  border-radius: 12px;
  padding: 38px 32px 28px 32px;
  min-width: 330px;
  max-width: 98vw;
  box-shadow: 0 8px 44px rgba(33,64,103,0.22);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal-content h3 {
  font-family: 'Montserrat', Arial Black, Arial, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.cookie-modal-content label {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-content .toggle {
  width: 44px; height: 24px;
  background: #214067;
  border-radius: 12px;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.19s;
  flex-shrink: 0;
}
.cookie-modal-content .toggle input {
  display: none;
}
.cookie-modal-content .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #F5F2EB;
  border-radius: 50%;
  transition: left 0.21s, background 0.14s;
}
.cookie-modal-content .toggle input:checked + .slider {
  left: 22px;
  background: #529473;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #214067;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover{
  color: #529473;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* GEOMETRIC/STRUCTURED VISUALS */
.section,
.card,
.card-container > *,
.feature-item,
.team-bios > div,
.team-values,
.awards,
.statistics,
.faq-highlight,
.newsletter,
.subscribe-box,
.blog-post {
  border-radius: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card:before {
  content: '';
  display: block;
  position: absolute;
  top: -20px;
  right: 36px;
  width: 40px; height: 40px;
  background: #529473;
  opacity: 0.07;
  border-radius: 16px 0 22px 0;
  transform: rotate(12deg);
  z-index: 0;
  pointer-events: none;
}

/* VISUAL HIERARCHY & MICRO-INTERACTIONS */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main section:last-child, main .section:last-child {
  margin-bottom: 28px;
}
.blog-post a.btn-secondary, .card a.btn-secondary {
  align-self: flex-start;
}

/* SPACING AND GAPS (All mandatory spacing) */
.card-container, .testimonial-slider, .feature-grid, .team-bios, .alumni-spotlights, .blog-post-grid, .support-options {
  gap: 24px;
}
.card, .testimonial-card, .feature-item, .team-bios > div {
  margin-bottom: 20px;
}
.content-grid, .text-image-section {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
}
.feature-item {
  gap: 15px;
}
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .feature-grid, .card-container, .testimonial-slider, .team-bios, .alumni-spotlights, .blog-post-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .card-container, .feature-grid, .testimonial-slider, .team-bios, .alumni-spotlights, .blog-post-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section, section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  .card, .testimonial-card, .feature-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .blog-post-grid .blog-post {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    padding: 14px 10px;
    gap: 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section, section {
    padding: 19px 2vw;
  }
  .content-wrapper {
    padding: 0;
  }
  .text-image-section, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item, .testimonial-card, .team-bios > div {
    margin-bottom: 20px;
    min-width: 0;
    max-width: 100%;
  }
  footer .container {
    padding: 0 8px;
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact, .footer-copy {
    text-align: center;
    font-size: 0.98rem;
  }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .logo img {
    width: 120px;
  }
  header .container {
    gap: 3px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .content-wrapper, .content-wrapper {
    padding: 0 0 10px 0;
  }
  .section, section {
    padding: 12px 3vw;
    margin-bottom: 24px;
  }
  #cookie-banner {
    padding: 10px 6px;
    font-size: 0.97rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* END */
