/* ==== 1. 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;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; border: 0; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
}
table { border-collapse: collapse; border-spacing: 0; }

/* ==== 2. ROOT & BRAND VARIABLES ==== */
:root {
  --color-primary: #304269;
  --color-secondary: #13a89e;
  --color-accent: #f0f4fc;
  --color-bg: #fff;
  --color-text: #1A2233;
  --color-light-gray: #f5f7fa;
  --border-radius: 14px;
  --shadow: 0 2px 16px 0 rgba(64, 87, 109, 0.07);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ==== 3. BODY, TYPOGRAPHY, LAYOUT ==== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ==== 4. HEADER & NAVIGATION ==== */
header {
  background: var(--color-bg);
  box-shadow: 0 1px 8px 0 rgba(48, 66, 105, 0.05);
  position: sticky;
  top: 0;
  z-index: 24;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  align-items: center;
  width: 100%;
}
header nav > a img {
  height: 38px;
  width: auto;
  margin-right: 35px;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
header nav ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-primary);
  padding: 9px 8px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 28px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(48, 66, 105, 0.08);
}
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--color-secondary);
  border-radius: var(--border-radius);
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 18px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hamburger menu styles */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 7px 20px;
  border-radius: var(--border-radius);
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 105;
  transition: background 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px 30px 30px 30px;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 125;
  outline: none;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.4rem;
  color: var(--color-primary);
  padding: 12px;
  border-radius: 9px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ==== 5. HERO, FEATURES, TESTIMONIALS, CARDS ==== */
.hero {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 60px 0 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container, .hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 { color: var(--color-primary); }
.hero p { max-width: 650px; font-size: 1.15rem; color: #35405b; }

.features {
  background: var(--color-bg);
}
.features .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features h2 {
  color: var(--color-primary);
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.features ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  font-size: 1.05rem;
  color: #364057;
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 400px;
}
.features ul li img {
  width: 38px;
  height: 38px;
}

.testimonials {
  background: var(--color-bg);
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonials h2 {
  margin-bottom: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
  margin-bottom: 20px;
  max-width: 550px;
  color: #24304a;
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1A2233;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.courses-preview, .course-listing, .program-highlights, .benefits, .services, .value-of-certification {
  background: var(--color-bg);
}
.courses-preview .content-wrapper,
.course-listing .content-wrapper,
.benefits .content-wrapper,
.services .content-wrapper,
.value-of-certification .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.course-card {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 22px 26px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}
.course-card h3 {
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 700;
}
.course-level {
  font-size: .95rem;
  color: var(--color-secondary);
  margin-left: 13px;
}

.blog-post-card {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 22px 23px 18px 23px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-post-card h3 {
  color: var(--color-primary);
}
.blog-post-card p { color: #1A2233; }
.blog-post-card a {
  color: var(--color-secondary);
  font-weight: 600;
  margin-top: 4px;
  transition: text-decoration 0.15s, color 0.2s;
}
.blog-post-card a:hover, .blog-post-card a:focus {
  text-decoration: underline;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.category-filter a {
  color: var(--color-secondary);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.category-filter a:hover, .category-filter a:focus {
  background: var(--color-accent);
}

.newsletter, .about-summary, .contact, .contact-info, .map, .thank-you {
  background: var(--color-bg);
}
.newsletter .content-wrapper,
.about-summary .content-wrapper,
.contact .content-wrapper,
.contact-info .content-wrapper,
.map .content-wrapper,
.thank-you .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.newsletter-benefits ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin-top: 12px;
}
.newsletter-benefits li {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 1rem;
}
.static-map {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 16px 23px;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-top: 14px;
}

/* ==== 6. ACCORDIONS/TABS ==== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-question {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  padding: 15px 22px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: background 0.18s;
  position: relative;
}
.faq-question:hover, .faq-question.open {
  background: #eaf6fa;
}
.faq-answer {
  margin-top: 11px;
  color: #253054;
  font-size: 1rem;
  font-weight: 400;
  display: none;
  transition: max-height 0.3s;
}
.faq-question.open .faq-answer {
  display: block;
}

/* ==== 7. FOOTER DESIGN ==== */
footer {
  background: var(--color-accent);
  color: #313B4C;
  padding: 44px 0 25px 0;
  margin-top: 80px;
  box-shadow: 0 -2px 16px 0 rgba(64,87,109,0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  border-radius: 6px;
  padding: 4px 3px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .97rem;
  margin-bottom: 6px;
  color: #304269;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 18px;
}
.footer-social a img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: var(--shadow);
  transition: border 0.16s, background 0.17s;
}
.footer-social a:hover img, .footer-social a:focus img {
  border: 2px solid var(--color-secondary);
  background: var(--color-accent);
}
.legal {
  width: 100%;
  margin-top: 20px;
  font-size: .95rem;
  color: #68758d;
  text-align: left;
}

/* ==== 8. LEGAL PAGES, COOKIE BANNER, MODAL ==== */
.legal .container, .legal .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 32px 0 rgba(64,87,109,0.12);
  padding: 26px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.35s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(180px);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner strong {
  color: var(--color-primary);
}
.cookie-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s;
}
.btn-cookie-accept {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: var(--color-primary);
}
.btn-cookie-reject {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-cookie-settings {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,40,65,0.38);
  z-index: 202;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 37px 28px 37px;
  border-radius: var(--border-radius);
  box-shadow: 0 7px 44px 0 rgba(60,88,130,.2);
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-switch label {
  flex: 1;
  color: #283142;
}
.cookie-switch input[type="checkbox"] {
  width: 36px;
  height: 20px;
  accent-color: var(--color-secondary);
  appearance: none;
  background: var(--color-accent);
  border-radius: 10px;
  position: relative;
  outline: none;
  margin-right: 0;
  cursor: pointer;
}
.cookie-switch input[type="checkbox"]:before {
  content: '';
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.18s;
}
.cookie-switch input[type="checkbox"]:checked:before {
  left: 17px;
  background: var(--color-secondary);
}
.cookie-switch input[type="checkbox"][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==== 9. ACCESSIBILITY & FORM ELEMENTS ==== */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
input, textarea {
  border: 1.5px solid var(--color-accent);
  border-radius: 7px;
  padding: 12px;
  font-size: 1rem;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
}
label {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 7px;
}

/* ==== 10. FLEX PATTERNS (MANDATORY) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== 11. RESPONSIVE DESIGN ==== */
@media (max-width: 1200px) {
  header .container,
  footer .container {
    max-width: 970px;
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 900px) {
  .hero .container, .hero .content-wrapper {
    align-items: flex-start;
    padding: 0 0;
  }
  footer .container, .container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .container {
    max-width: 100vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  header nav ul {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  header nav > a img {
    margin-right: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 44px 0 44px 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 6px;
  }
  .features ul, .newsletter-benefits ul {
    flex-direction: column;
    gap: 14px;
    padding-left: 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .testimonial-card {
    align-items: flex-start;
    gap: 13px;
    padding: 13px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.02rem; }
  .hero, .section {
    padding: 14px 2px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  .btn-primary, .btn-secondary {
    padding: 11px 18px;
    font-size: .94rem;
  }
  .cookie-banner {
    padding: 18px 4vw 16px 4vw;
  }
  .cookie-modal-content {
    padding: 23px 7px 14px 13px;
    min-width: 94vw;
  }
}

/* ==== 12. MICRO-INTERACTIONS/TRANSITIONS ==== */
.card, .course-card, .testimonial-card, .blog-post-card {
  transition: box-shadow 0.22s, transform 0.2s;
}
.card:hover, .card:focus,
.course-card:hover, .course-card:focus,
.testimonial-card:hover, .testimonial-card:focus,
.blog-post-card:hover, .blog-post-card:focus {
  box-shadow: 0 7px 28px 0 rgba(48,66,105,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* ==== 13. SPECIAL: SECTION GAPS ENFORCEMENT==== */
main > section, main .section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
main > section:last-child, main .section:last-child { margin-bottom: 0 !important; }

/* ==== 14. THANK YOU PAGE ==== */
.thank-you .content-wrapper {
  align-items: center;
  justify-content: center;
}
.thank-you h1 {
  color: var(--color-secondary);
  margin-bottom: 18px;
}

/* ==== 15. PRINT FRIENDLY ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .section, main > section {
    margin-bottom: 15px !important;
    padding: 5px !important;
  }
}
