/*------------------------------------------------------
  Illume Facet Style: Scandinavian Clean Responsive Theme
--------------------------------------------------------
  - Modern flexbox layouts (NO GRID)
  - Scandinavian-inspired: light backgrounds, navy accents, natural spacing
  - Brand colors: #184385 (primary/navy), #11A4AF (secondary/teal), #F8FAFC (off-white)
  - Fonts: Montserrat (display), Roboto (body)
------------------------------------------------------*/

/* 1. RESET & BASE NORMALIZATION */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; width: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, nav, figure, blockquote, span, input, button, a { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; background: none; outline: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; border: 0; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F8FAFC;
  color: #253046;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
}


/* 2. TYPOGRAPHY SCALE & HEADINGS */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #184385;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #184385;
  margin-bottom: 12px;
  line-height: 1.2;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  font-weight: 600;
  color: #184385;
  margin-bottom: 8px;
  line-height: 1.3;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #184385;
  font-weight: 500;
  margin-bottom: 6px;
}
p, ul, ol, li {
  color: #364353;
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.7;
}
strong { font-weight: 700; }
em, i { font-style: italic; }

/* Font smoothing */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 3. CONTAINER & LAYOUT STRUCTURE */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
  transition: box-shadow 0.24s;
}

@media (min-width: 900px) {
  .section {
    padding: 60px 40px;
    margin-bottom: 80px;
  }
}


/* 4. HEADER STYLES (NAVBAR) */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 67, 133, 0.06);
  z-index: 120;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 12px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
  vertical-align: middle;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #184385;
  background: none;
  border-radius: 8px;
  padding: 8px 12px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: #11A4AF1a;
  color: #11A4AF;
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #184385;
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 32px;
  box-shadow: 0 3px 12px rgba(24,67,133, 0.06);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.22s;
  cursor: pointer;
  margin-left: 26px;
}
.cta-button:hover,
.cta-button:focus {
  background: #11A4AF;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(17,164,175,0.14);
  text-decoration: none;
}
.mobile-menu-toggle {
  background: none;
  border: 0;
  color: #184385;
  font-size: 2.3rem;
  cursor: pointer;
  padding: 8px 12px;
  display: none;
  z-index: 150;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E1EAED;
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* 5. MOBILE BURGER MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F8FAFC;
  box-shadow: 0 2px 16px rgba(24,67,133,0.08);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px 0 24px;
  transform: translateX(-120%);
  transition: transform 0.36s cubic-bezier(.43,.25,.53,.96);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: 0;
  color: #184385;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E1EAED;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 90%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.14rem;
  color: #184385;
  font-weight: 700;
  padding: 14px 0 12px 4px;
  border-radius: 6px;
  transition: background 0.21s, color 0.21s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #11A4AF1a;
  color: #11A4AF;
}

@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-close, .mobile-menu-toggle { display: none !important; }
}


/* 6. MAIN LAYOUT & SPACING RULES */
main { width: 100%; background: transparent; min-height: 72vh; }
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px rgba(24,67,133,0.03);
  transition: box-shadow 0.22s;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  section {
    padding: 26px 2vw;
    border-radius: 12px;
  }
}

/* 7. FLEXBOX MANDATORY PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  width: 100%;
  align-items: flex-start;
}
.card {
  position: relative;
  margin-bottom: 20px;
  padding: 28px 22px 22px 22px;
  background: #f7fafc;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(24,67,133,0.06);
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(17,164,175,0.15);
  transform: translateY(-2px) scale(1.01);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 22px; }
  .content-grid { flex-direction: column; gap: 22px; }
  .card-container { flex-direction: column; gap: 18px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin: 0 0 20px 0;
  flex: 1 1 200px;
  background: #f4f7fa;
  border-radius: 14px;
  padding: 22px 14px;
  box-shadow: 0 1px 10px rgba(17,164,175,0.1);
}
.feature-item img {
  width: 40px; height: 40px; margin-bottom: 4px;
  filter: grayscale(30%);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  margin-top: 16px;
}
@media (max-width: 880px) {
  .feature-grid { flex-direction: column; gap: 18px; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.team-member {
  background: #f4f7fa;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(24,67,133,0.07);
  padding: 22px 17px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 220px;
}

/* Blog categories, accreditations, course highlights */
.blog-categories, .accreditations {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0 0;
}
.blog-categories span, .accreditations span {
  background: #E5F4F7;
  color: #184385;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 10px;
  padding: 6px 16px;
  font-size: .98rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 8. TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 24px rgba(24,67,133,0.07);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 750px;
  color: #253046;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  color: #184385;
  opacity: 0.98;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
  quotes: "“" "”" "‘" "’";
}
.testimonial-card blockquote:before { content: open-quote; color: #11A4AF; font-size: 2.3rem; vertical-align: top; line-height: .5; }
.testimonial-card blockquote:after { content: close-quote; color: #11A4AF; font-size: 2.3rem; vertical-align: bottom; line-height: .5; }
.testimonial-author {
  font-size: 1rem; color: #253046;
  margin-left: 10px;
}

/* 9. CARDS, COURSE HIGHLIGHTS, RESOURCES */
.course-highlights {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px;
}
.course-highlights > div {
  background: #f4f7fa;
  padding: 22px 16px;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(17,164,175,0.1);
  flex: 1 1 255px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.course-highlights a {
  color: #11A4AF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.18s;
}
.course-highlights a:hover, .course-highlights a:focus { color: #184385; text-decoration: underline; }

.resources-list > h3 { margin-top: 20px; margin-bottom: 6px; font-size: 1.18rem; font-weight: 600; color: #184385; }
.resources-list ul { margin-bottom: 14px; }


/* 10. BUTTONS + INTERACTIVE */
button, .button, .cta-button {
  cursor: pointer;
  border: none;
  background: #184385;
  color: #fff;
  border-radius: 28px;
  padding: 10px 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.16s;
}
button.secondary, .button.secondary {
  background: #11A4AF;
}
button:disabled, .button:disabled { background: #CBCFD6; color: #fff; cursor: not-allowed; }
.button:focus, .cta-button:focus, button:focus { outline: 2px solid #11A4AF; outline-offset: 2px; }


/* 11. FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #e8eff4;
  padding: 40px 0 0 0;
  font-size: .98rem;
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
footer nav a {
  color: #184385;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color 0.16s;
  padding: 8px 6px;
  border-radius: 7px;
}
footer nav a:hover, footer nav a:focus { color: #11A4AF; background: #F0F4F9; }
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  color: #253046;
  font-size: .98rem;
  margin-bottom: 20px;
}
.contact-details > div { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.contact-details a { color: #11A4AF; text-decoration: underline; font-weight: 500; font-family: 'Roboto', sans-serif; }
.contact-details img { width: 20px; height: 20px; opacity: .88; }

@media (max-width: 768px) {
  .contact-details { flex-direction: column; gap: 12px; }
  footer .container { gap: 12px; }
}

/* 12. LISTS, UL, LI */
ul, ol {
  padding-left: 18px;
  margin-bottom: 18px;
  list-style: disc;
  color: #364353;
  line-height: 1.7;
}
li { margin-bottom: 8px; }
ul li strong { color: #184385; font-weight: 600; }
.text-section ul {
  margin-bottom: 16px; margin-top: 0;
}

/* Remove bullets if in .blog-categories, .accreditations, .feature-grid, .team-list */
.blog-categories ul, .accreditations ul, .feature-grid ul, .team-list ul, .resources-list ul {
  list-style: none; padding-left: 0; margin-bottom: 0;
}

/* 13. LINKS */
a {
  color: #11A4AF;
  text-decoration-skip-ink: auto;
  transition: color 0.17s;
}
a:hover, a:focus {
  color: #184385;
  text-decoration: underline;
}
.text-section a { color: #11A4AF; text-decoration: underline; }

/* 14. BADGES & ICONS IN LISTS */
ul li img, .text-section img { width: 22px; height: 22px; vertical-align: middle; margin-right: 3px; opacity: .95; }

/* 15. ACCREDITATIONS */
.accreditations span img { width: 18px; height: 18px; margin-right: 4px; opacity: .92; }


/* 16. ANIMATIONS */
.cta-button, .card, .feature-item, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-modal  {
  transition: box-shadow 0.22s, background 0.2s, color 0.18s, transform 0.18s, opacity 0.21s;
}


/* 17. RESPONSIVE: MOBILE-FIRST ADJUSTMENTS */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-right: 12px;
    padding-left: 12px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.08rem; }
  section { padding: 18px 2vw; margin-bottom: 32px; }
  main { min-height: 64vh; }
}

/* 18. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 26px rgba(24,67,133,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 10vw 20px 10vw;
  z-index: 3000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s, transform 0.26s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner-message {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #184385;
  font-size: 1rem;
  flex: 1 1 auto;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: .98rem;
  font-weight: 600;
  border: none;
  margin-left: 1px;
  background: #E5F4F7;
  color: #184385;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #11A4AF;
  color: #fff;
}
.cookie-btn.accept {
  background: #11A4AF;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #184385;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 22px; gap: 9px; }
  .cookie-actions { width: 100%; gap: 9px; }
}

/* 19. COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4100;
  background: rgba(17,164,175,0.16);
  pointer-events: all;
  opacity: 0.88;
  animation: backdropFadeIn 0.3s;
}
@keyframes backdropFadeIn { from { opacity: 0; } to { opacity: 0.88; } }
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 325px;
  max-width: 94vw;
  width: 400px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(24,67,133,0.18);
  z-index: 4200;
  padding: 38px 28px 28px 28px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #253046;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  transition: opacity 0.33s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.3s;
}
@keyframes modalIn { from { opacity:0; transform: translate(-50%,-58%) scale(.98); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #184385;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  color: #184385;
  font-size: 1.32rem;
  border-radius: 7px;
  cursor: pointer;
  padding: 2px 6px;
  transition: background 0.17s;
}
.cookie-modal .close-modal-btn:hover,
.cookie-modal .close-modal-btn:focus { background: #E1EAED; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #253046;
  font-weight: 500;
}
.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #E5F4F7;
  border-radius: 18px;
  transition: background .18s;
}
.cookie-toggle input:checked + .slider {
  background: #11A4AF;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(24,67,133,0.15);
  transition: transform .18s;
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(24px);
}
.cookie-category[aria-disabled='true'] .slider {
  background: #d1dade;
  opacity: .7;
}
.cookie-category[aria-disabled='true'] label {
  color: #999;
}

.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal { width: 98vw; min-width: 0; padding: 22px 7vw 19px 7vw; }
}

/* 20. MISC + SCANDINAVIAN DETAILS */
::-webkit-scrollbar { width: 10px; background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #e0eaf0; border-radius: 8px; }

/* Subtle shadow for active/focus */
:focus-visible { outline: 2px solid #11A4AF; outline-offset: 2px; }

/* Subtle section hover (only if interactive) */
section:hover:not(:active):not(:focus-within) {
  box-shadow: 0 7px 38px rgba(24, 67, 133, 0.06);
}

/* 21. ACCESSIBLE FOCUS STATES */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #11A4AF;
  outline-offset: 2px;
  z-index: 10;
}

/* 22. PRINT OVERRIDE (ensure clean look) */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, main { box-shadow: none !important; background: #fff !important; color: #000 !important; }
}

/* END SCANDINAVIAN CLEAN CSS */
