/* RESET & BASE STYLES */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: linear-gradient(135deg, #39A2DB 0%, #1C3879 100%);
  font-family: 'Lato', Arial, sans-serif;
  color: #1C3879;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #1C3879;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #39A2DB;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
ul, ol {
  margin-left: 24px;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Lato:400,700&display=swap');

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #1C3879;
}
@media (min-width: 768px) {
  h1, .hero h1 {font-size: 3rem;}
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.625rem;
  margin-bottom: 18px;
  color: #1C3879;
  line-height: 1.2;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #1C3879;
}
p, li, address {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #1C3879;
}
strong { font-weight: 700; }
.subheadline {
  font-size: 1.125rem;
  margin-bottom: 28px;
  color: #1C3879;
  line-height: 1.6;
}

/* CONTAINER / WRAPPER STRUCTURE */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 18px;
  padding-right: 18px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
}

/* SECTION SPACING PATTERN */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(28,56,121,0.05);
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 9px;
    border-radius: 10px;
    margin-bottom: 36px;
  }
}

/* CARD CONTAINERS / FLEX LAYOUTS */
.card-container, .courses-grid, .content-grid, .courses-preview-list, .features-grid, .features-list, .testimonials-preview, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.content-grid {
  justify-content: space-between;
  gap: 20px;
}
.card { margin-bottom: 20px; position: relative; }

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #F7FBFF;
  box-shadow: 0 3px 14px 0 rgba(28,56,121,0.06);
  margin-bottom: 24px;
  width: 100%;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px 0 rgba(57,162,219,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION STYLES */
.hero {
  background: linear-gradient(120deg, #39A2DB 0%, #FFD662 120%);
  color: #1C3879;
  border-radius: 0 0 42px 42px;
  margin-bottom: 60px;
  box-shadow: 0 16px 36px 0 rgba(28,56,121,0.07);
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  padding: 48px 0;
  gap: 22px;
}
@media (max-width: 768px) {
  .hero .content-wrapper {
    padding: 32px 0 18px 0;
  }
}
.hero h1, .hero .subheadline {
  color: #1C3879;
}
.hero .cta-btn {
  margin-top: 14px;
}

/* BUTTONS & CTA */
.cta-btn, button.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  padding: 13px 34px;
  background: linear-gradient(90deg, #39A2DB 0%, #FFD662 100%);
  color: #1C3879;
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(28,56,121,0.08);
  cursor: pointer;
  transition: background 0.26s, box-shadow 0.22s, transform 0.18s, color 0.18s;
  margin: 0 4px;
  text-decoration: none;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #FFD662 0%, #39A2DB 100%);
  color: #1C3879;
  box-shadow: 0 6px 24px 0 rgba(57,162,219,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* BADGES */
.badge {
  display: inline-block;
  background: #39A2DB;
  color: #fff;
  font-size: 0.89rem;
  font-weight: 700;
  margin-left: 11px;
  padding: 3px 15px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

/* FEATURES SECTION */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px 0 rgba(57,162,219,0.06);
  padding: 22px 22px 17px 22px;
  min-width: 210px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  transition: box-shadow 0.21s, transform 0.21s;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 5px 28px 0 rgba(57,162,219,0.18);
  transform: translateY(-3px) scale(1.025);
}

/* COURSES CARDS */
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 24px 0;
}
.course-card {
  background: #F7FBFF;
  border-radius: 13px;
  box-shadow: 0 1.5px 10px rgba(28,56,121,0.05);
  padding: 22px 18px;
  flex: 1 1 280px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.course-card h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.course-card:hover {
  box-shadow: 0 6px 28px 0 rgba(57,162,219,0.20);
  transform: translateY(-2px) scale(1.02);
}

/* TESTIMONIALS & METRICS */
.testimonials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  color: #1C3879;
  line-height: 1.5;
  margin-bottom: 12px;
  background: none;
}
.testimonial-card .testimonial-meta {
  font-size: 0.97rem;
  color: #1C3879;
  opacity: 0.86;
  margin-bottom: 0;
}
.success-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0;
  list-style-type: none;
  padding-left: 0;
}
.success-metrics li {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #39A2DB;
  color: #fff;
  padding: 9px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.97rem;
  margin-right: 11px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* LISTS AND TIMELINES */
.icon-list li, .module-list li, .learning-outcomes li, .difficulty-levels li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.icon-list img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0 0 0;
  border-left: 3px solid #39A2DB;
  padding-left: 18px;
}
.timeline div {
  font-size: 1rem;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: #fff;
  border-left: 4px solid #39A2DB;
  border-radius: 0 14px 14px 0;
  padding: 20px 22px;
  box-shadow: 0 1.5px 8px rgba(28,56,121,0.06);
  transition: box-shadow 0.17s, border-color 0.17s;
}
.blog-list article.featured-post {
  border-left: 4px solid #FFD662;
  background: #fef9ea;
}
.blog-list article:hover {
  box-shadow: 0 5px 20px 0 rgba(57,162,219,0.18);
  border-left-color: #FFD662;
}
.category-tag {
  color: #39A2DB;
  font-size: 0.93rem;
  font-weight: 500;
  margin-bottom: 7px;
  opacity: 0.82;
}

/* ACCORDION FAQ */
.accordion-faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0;
}
.faq-item h3 {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.faq-item p {
  margin: 7px 0 0 0;
}


/* FOOTER */
footer {
  background: linear-gradient(90deg, #1C3879 0%, #39A2DB 100%);
  color: #fff;
  padding: 44px 0 22px 0;
  margin-top: 40px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 60px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.9;
  font-size: 0.97rem;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD662;
  opacity: 1;
}
.footer-contact img {
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.97rem;
  margin-bottom: 6px;
}
.footer-legal {
  text-align: center;
  color: #fff;
  opacity: 0.70;
  font-size: 0.89rem;
  padding-top: 7px;
}
@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: 24px 0; align-items: flex-start; }
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 1.5px solid #e4e9ef;
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0.88rem 18px;
}
.logo-link img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1C3879;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 18px;
  transition: background 0.22s, color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #39A2DB;
  color: #fff;
  text-decoration: none;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1C3879;
  cursor: pointer;
  z-index: 31;
  margin-left: 12px;
  transition: color 0.19s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FFD662;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1C3879;
  box-shadow: 0 0 0 500vw rgba(28,56,121,0.20);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 38px;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.44,.17,.14,1.05);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 24px 12px 0;
  background: none;
  border: none;
  color: #FFD662;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1000;
  padding: 0 7px;
  transition: color 0.18s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  width: 100%;
  align-items: flex-start;
  margin: 38px 0 0 43px;
}
.mobile-nav a {
  color: #FFD662;
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.21s, color 0.2s;
  min-width: 160px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE9A0;
  color: #1C3879;
}
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    font-size: 1.01rem;
    padding: 11px 23px;
  }
}
@media (min-width: 971px) {
  .mobile-menu { display: none !important; }
}

/* RESPONSIVE FLEX CHANGES */
@media (max-width: 960px) {
  .card-container, .courses-grid, .features-grid, .content-grid, .testimonials-preview, .success-metrics {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .footer-main, .main-nav {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .success-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* NEWSLETTER & LATEST NEWS */
.newsletter-signup, .latest-news-widget {
  background: #F7FBFF;
  border-radius: 10px;
  padding: 18px 18px 11px 18px;
  margin-top: 14px;
  font-size: 1rem;
  color: #1C3879;
}
.latest-news-widget h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.latest-news-widget ul {
  padding-left: 16px;
}

/* MISC CARD & HIGHLIGHT BLOCKS */
.courses-preview-list > div {
  background: #F7FBFF;
  padding: 12px 18px;
  border-radius: 11px;
  margin-bottom: 13px;
  font-size: 1rem;
}
.course-highlights {
  background: #fff8e3;
  color: #1C3879;
  border-left: 4px solid #FFD662;
  border-radius: 0 12px 12px 0;
  padding: 13px 18px;
  margin-top: 17px;
  font-size: 1rem;
}

/* THANK YOU PAGE */
.thank-you {
  background: linear-gradient(90deg, #FFD662 0%, #39A2DB 95%);
  color: #1C3879;
  border-radius: 22px;
  box-shadow: 0 3px 24px 0 rgba(57,162,219,0.07);
}
.thank-you .cta-btn {
  background: #1C3879;
  color: #fff;
  margin-top: 14px;
}
.thank-you .cta-btn:hover, .thank-you .cta-btn:focus {
  background: #FFD662;
  color: #1C3879;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  z-index: 999999;
  background: #1C3879;
  color: #fff;
  padding: 20px 24px 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -3px 20px 0 rgba(28,56,121,0.14);
  font-size: 1.05rem;
  transition: transform 0.33s, opacity 0.33s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  max-width: 560px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  padding: 8px 21px;
  cursor: pointer;
  background: #FFD662;
  color: #1C3879;
  font-weight: 600;
  margin-right: 7px;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px 0 rgba(255,214,98,0.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #39A2DB;
  color: #fff;
}
.cookie-btn-settings {
  background: #f7fbff;
  color: #1C3879;
  border: 1px solid #39A2DB;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #39A2DB;
  color: #fff;
  border-color: #FFD662;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.99rem;
    padding: 17px 10px 17px 10px;
  }
  .cookie-banner .cookie-banner-text {
    max-width: 100%;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 200000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,56,121, 0.67);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 7px 32px 0 rgba(28,56,121,0.13);
  padding: 32px 22px 22px 22px;
  min-width: 340px;
  max-width: 99vw;
  color: #1C3879;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadein-modal 0.33s cubic-bezier(.25,.8,.25,1);
}
@keyframes fadein-modal {
  from {transform: scale(0.95) translateY(36px); opacity: 0;}
  to   {transform: scale(1) translateY(0);  opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
  font-size: 1.09rem;
  font-weight: 600;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  accent-color: #39A2DB;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category[aria-disabled='true'] input[type='checkbox'] {
  accent-color: #A9B6D0;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #1C3879;
  background: none;
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover { color: #FFD662; }

/* ANIMATIONS */
section, .testimonial-card, .feature, .course-card, .blog-list article, .courses-preview-list > div {
  transition: box-shadow 0.21s, background 0.17s, transform 0.17s;
}

/* UTILITY */
.mt-4 { margin-top: 1.5rem; }
.mb-3 {margin-bottom: 1.1rem;}
.gap-16  { gap: 16px; }
.gap-20  { gap: 20px; }
.gap-24  { gap: 24px; }

/* ACCESSIBILITY & MISC */
button, .cta-btn, input[type=button], input[type=submit] {
  outline: none;
}
a:focus, button:focus {
  box-shadow: 0 0 0 2px #FFD662, 0 0 2px 4px #39A2DB33;
}

/* ENSURE MINIMUM MARGIN BETWEEN ALL CARDS/SECTIONS */
.card, .feature, .testimonial-card, .course-card, section, .section {
  margin-bottom: 20px;
}

/* ENSURE NO OVERLAP */
.card, .feature, .testimonial-card, .course-card, section, .section {
  z-index: 1;
}

/* Hide mobile menu when not open */
.mobile-menu:not(.open) {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hide scroll on mobile menu open for background */
body.mobile-menu-open {
  overflow: hidden;
}

/* Misc fix for icon alignment in footer/contact */
.footer-contact img, .contact-details img {
  vertical-align: middle;
  margin-right: 7px;
}

/* Hide empty lines from extra padding on smaller cards */
.features-list > .feature:last-child, .courses-grid > .course-card:last-child {
  margin-bottom: 0;
}

/* --- END OF STYLE.CSS --- */
