/* === 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 {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #f7fafc 0%, #e6ecf6 100%);
  color: #213D63;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #287CBF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFCE54;
  outline: none;
}
ul, ol {
  padding-left: 1.7em;
}
section, footer, header {
  width: 100%;
  box-sizing: border-box;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1em;
}

/* === BRAND FONTS === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #213D63;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.15rem; }

p, li, blockquote, span, label, input, button {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  color: #213D63;
}
strong { font-weight: bold; color: #213D63; }

/* === LAYOUT & SPACING SYSTEM === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}
.section:last-child {
  margin-bottom: 0;
}

/* === HEADER/NAVIGATION === */
header {
  width: 100%;
  background: linear-gradient(90deg, #213D63 0%, #287CBF 100%);
  box-shadow: 0 4px 24px 0 rgba(33, 61, 99, 0.04);
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 24px;
}
.logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #FFCE54;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.btn-primary {
  background: linear-gradient(90deg, #287CBF 0%, #FFCE54 100%);
  color: #213D63;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(40,124,191,0.08);
  transition: background 0.3s, transform 0.15s, color 0.2s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #FFCE54 0%, #287CBF 100%);
  color: #213D63;
  transform: translateY(-2px) scale(1.04);
}
.btn-secondary {
  background: #fff;
  color: #287CBF;
  border-radius: 28px;
  padding: 10px 26px;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #287CBF;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(40,124,191,0.07);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #287CBF;
  color: #fff;
  border-color: #FFCE54;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #FFCE54;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s, box-shadow 0.2s;
  z-index: 110;
  padding: 2px 10px;
}
.mobile-menu-toggle:focus { outline: 2px solid #FFCE54; }

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #213D63 80%, #287CBF 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: 28px 32px 0 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.7,.2,.29,.95);
  z-index: 9999;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #FFCE54;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #287CBF;
  color: #FFCE54;
}

/* --- Responsive Hide/Show Navigation --- */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(100deg, #287CBF 0%, #fff 60%);
  padding: 56px 0 32px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 32px 0 rgba(40,124,191,0.09);
}
.hero .container { align-items: stretch; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: #213D63;
  font-size: 2.3rem;
  line-height: 1.15;
}
.hero p {
  font-size: 1.12rem;
  color: #213D63;
  opacity: 0.95;
  max-width: 600px;
}

/* === FLEX LAYOUT UTILITY CLASSES === */
.feature-grid, .features-grid, .course-cards, .resource-cards, .event-list, .blog-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 290px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(33,61,99,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.23s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 24px 0 rgba(40,124,191,0.15);
}
.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: #fff;
  padding: 24px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(33,61,99,0.09);
  border-left: 5px solid #287CBF;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, border-color 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(40,124,191,0.15);
  border-left-color: #FFCE54;
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  color: #213D63;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-meta {
  font-size: 0.99em;
  color: #287CBF;
  margin-top: 4px;
  font-weight: bold;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* --- Feature Cards and Course Cards --- */
.feature, .feature-card, .course-card, .event-card, .value-card, .blog-card, .resource-card, .faq-item {
  flex: 1 1 248px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(40,124,191,0.08);
  padding: 26px 24px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  border: 1px solid #e6ecf6;
}
.feature:hover, .feature-card:hover, .course-card:hover, .event-card:hover, .value-card:hover, .blog-card:hover, .resource-card:hover, .faq-item:hover {
  box-shadow: 0 8px 26px 0 rgba(33,61,99,0.14);
  transform: translateY(-2px) scale(1.01);
}
.feature img, .course-card img, .event-card img, .resource-card img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
}

/* --- Resource & Blog Card Spec --- */
.blog-cards, .resource-cards {
  gap: 24px;
}
.blog-card h3, .resource-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #213D63;
}
.read-more-link {
  color: #287CBF;
  font-size: 0.98em;
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.16s;
}
.read-more-link:hover, .read-more-link:focus {
  color: #FFCE54;
}

/* --- Timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0;
}
.milestone {
  padding-left: 18px;
  position: relative;
  font-size: 1.01em;
  color: #287CBF;
}
.milestone:before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px;
  height: 10px;
  background: #FFCE54;
  border-radius: 100%;
  box-shadow: 0 2px 6px #FFD88099;
}

/* --- Certification Badges in Courses --- */
.certification-badges {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin: 16px 0 0 0;
}
.certification-badges img {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 2px 8px #287CBF22);
}

/* --- Resource Categories --- */
.resource-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.resource-categories span {
  background: #F7F9FC;
  color: #287CBF;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 0.98em;
}

/* --- FAQ List --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item h3 {
  font-size: 1.09rem;
  color: #287CBF;
  margin-bottom: 6px;
}

/* --- Newsletter Form --- */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px 0;
  flex-wrap: wrap;
}
.newsletter-form label {
  font-size: 1em;
  font-weight: 500;
}
.newsletter-form input[type=email] {
  border: 1px solid #e6ecf6;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 1em;
  outline: none;
  min-width: 200px;
  background: #fff;
  transition: border 0.18s;
}
.newsletter-form input[type=email]:focus {
  border-color: #287CBF;
}
.newsletter-form button[disabled],
.newsletter-form input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Filter Buttons (Courses) --- */
.filter-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.filter-buttons button {
  background: #F7F9FC;
  color: #287CBF;
  border: 1.5px solid #287CBF;
  border-radius: 22px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.97em;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.filter-buttons button:hover, .filter-buttons button.active {
  background: #287CBF;
  color: #fff;
  border-color: #FFCE54;
}

/* --- Footer --- */
footer {
  background: linear-gradient(90deg, #213D63 0%, #287CBF 100%);
  padding: 0;
  color: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 32px 0 rgba(33,61,99,0.07);
}
footer .container {
  padding: 36px 18px 18px 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 22px 0;
}
.footer-nav a {
  color: #FFCE54;
  font-size: 1em;
  font-weight: 600;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 5px;
}
footer p {
  margin-top: 16px;
  color: #fff;
  font-size: 0.95em;
  text-align: left;
  opacity: 0.75;
}
footer img {
  height: 38px;
  margin-bottom: 10px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #213D63;
  color: #fff;
  box-shadow: 0 -4px 18px 0 rgba(33,61,99,0.11);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 18px 22px 24px;
  font-size: 1em;
  transition: transform 0.3s cubic-bezier(.77,0,.175,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner p {
  color: #fff;
  max-width: 580px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  border-radius: 22px;
  border: none;
  outline: none;
  font-size: 1em;
  font-weight: bold;
  padding: 9px 22px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.15s;
}
.cookie-banner .accept {
  background: #FFCE54;
  color: #213D63;
}
.cookie-banner .reject {
  background: #fff;
  color: #287CBF;
  border: 1.5px solid #287CBF;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #FFCE54;
  border: 2px solid #FFCE54;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #287CBF;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,61,99,0.33);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 400px;
  width: 95vw;
  padding: 36px 32px 24px 32px;
  box-shadow: 0 4px 38px 0 rgba(40,124,191,0.14);
  color: #213D63;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeSlideIn 0.35s cubic-bezier(.62,.18,.6,.99);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  color: #287CBF;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0;
}
.cookie-modal label {
  flex: 1 0 60%;
  font-size: 1em;
  color: #213D63;
  font-weight: 600;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 38px;
  height: 20px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e6ecf6;
  border-radius: 14px;
  transition: background 0.17s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: #FFCE54;
}
.cookie-modal .toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
  box-shadow: 0 1px 5px rgba(40,124,191,0.12);
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .essential {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 22px;
  background: none;
  color: #287CBF;
  border: none;
  font-size: 1.42rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #FFCE54;
}
.cookie-modal .modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  font-weight: 600;
  font-size: 1em;
  background: #287CBF;
  color: #fff;
  transition: background 0.18s, color 0.15s;
}
.cookie-modal .modal-actions button:last-child {
  background: #FFCE54;
  color: #213D63;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: #213D63;
  color: #FFCE54;
}

/* === MISCELLANEOUS === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
  color: #213D63;
}
.text-section ul {
  margin-bottom: 8px;
}
.value-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.value-card {
  flex: 1 1 248px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(33,61,99,0.08);
  border-radius: 14px;
  padding: 20px 20px 16px 20px;
  margin-bottom: 20px;
  color: #287CBF;
  border: 1px solid #e6ecf6;
  transition: box-shadow 0.21s, transform 0.16s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-card:hover {
  box-shadow: 0 8px 22px 0 rgba(40,124,191,0.12);
}
.event-list {
  gap: 24px;
}
.event-card h3 {
  font-size: 1.2rem;
  color: #287CBF;
}
.event-card p {
  font-size: 1em;
  color: #213D63;
}

/* === SPACING AND EASY UTILITIES === */
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.pl-2 { padding-left: 16px !important; }
.pr-2 { padding-right: 16px !important; }

/* === MEDIA QUERIES === */
@media (max-width: 991px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid, .features-grid, .card-container, .course-cards, .event-list, .blog-cards, .resource-cards, .value-cards {
    flex-direction: column;
    gap: 20px;
  }
  .certification-badges {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 34px 0 24px 0;
    border-radius: 0 0 18px 18px;
  }
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
  .content-wrapper {
    gap: 14px;
  }
  .section { margin-bottom: 38px; padding: 22px 8px; }
  .card, .feature, .feature-card, .value-card, .faq-item, .resource-card, .blog-card, .event-card {
    padding: 15px 14px 13px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
  }
  .testimonial-card {
    padding: 18px 12px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
    align-items: stretch !important;
  }
  .footer-contact {
    font-size: 0.98em;
    gap: 7px;
  }
  .testimonials-list { flex-direction: column; gap: 18px; }
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cookie-modal {
    padding: 16px 6vw 16px 6vw;
  }
}
@media (max-width: 500px) {
  .container {
    padding: 0 2vw;
  }
  .hero { padding: 18px 0 7px 0; }
  .footer-nav { margin: 6px 0 16px 0; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.99em;
    padding: 15px 6px 15px 12px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* === MODERN MICRO-INTERACTIONS === */
.btn-primary, .btn-secondary {
  will-change: transform, box-shadow;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}
a, button, .feature, .card, .value-card, .testimonial-card, .blog-card, .resource-card, .event-card {
  transition: box-shadow 0.22s, transform 0.17s, background 0.17s, color 0.17s, border 0.17s;
}

/* === COLOR ACCESSIBILITY OVERRIDES === */
.testimonial-card, .testimonial-card blockquote {
  background: #fff !important;
  color: #213D63 !important;
}

/* === ACCESSIBILITY & FOCUS === */
a:focus, button:focus {
  outline: 2px solid #FFCE54;
  outline-offset: 2px;
}
[tabindex="0"]:focus {
  outline: 2px solid #287CBF;
}

/* Hide visually but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* === PRINT === */
@media print {
  header, footer, .mobile-menu, .cookie-banner { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
