/* =============================================================
   CSS RESET & NORMALIZE (minimal, Scandinavian Clean adjusted)
   ============================================================= */
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #17324C;
  background: #F5F3F0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #479CAD;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17324C;
  text-decoration: underline;
}
ul, ol {
  padding-left: 28px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* =============================================================
   BRAND TYPOGRAPHY
   ============================================================= */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #17324C;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
@media (min-width:600px) {
  h1, .hero h1 { font-size: 2.7rem; }
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #17324C;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #17324C;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
  color: #17324C;
}
p, li, .subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #244769;
}
.subheadline {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: #479CAD;
}
.brand-tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: #479CAD;
  margin-bottom: 18px;
  letter-spacing: 0.1px;
  font-style: italic;
}

/* =============================================================
   LAYOUT: Containers & Sections (Flex Only)
   ============================================================= */
.container {
  width: 100%;
  padding: 0 18px;
  max-width: 1150px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: none;
}
.text-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 16px 0 rgba(23,50,76,.07);
  gap: 18px;
}

/****************************
 HERO & CTA
****************************/
.hero {
  width: 100%;
  background: #F5F3F0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  background: none;
  gap: 14px;
  max-width: 670px;
  align-items: flex-start;
  padding: 0;
}
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(23,50,76,0.07);
  padding: 32px 24px;
  gap: 18px;
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .cta-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-section > * {
    margin-right: 42px;
  }
  .cta-section > *:last-child {
    margin-right: 0;
  }
}

/****************************
  FLEX CONTAINERS
****************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 15px;
  justify-content: flex-start;
}
.feature-item {
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 12px 0 rgba(23,50,76,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}
.feature-item:hover {
  box-shadow: 0 6px 24px 0 rgba(23,50,76,0.12);
  transform: translateY(-3px) scale(1.012);
}
@media (min-width: 768px) {
  .feature-grid {
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
  }
  .feature-item {
    width: calc(50% - 24px);
    min-width: 272px;
  }
}
@media (min-width: 1000px) {
  .feature-item {
    width: calc(25% - 24px);
    min-width: 265px;
  }
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 26px 0 rgba(23,50,76,0.10);
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 240px;
  max-width: 370px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: #17324C;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #244769;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(23,50,76,0.17);
  transform: translateY(-4px) scale(1.018);
}

/*******************************
 CARDS & LISTS
*******************************/
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  background: #F5F3F0;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(23,50,76,0.07);
  padding: 22px 16px;
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 290px;
  margin-bottom: 20px;
}
.team-member h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.resources-list, .recommended-books, .event-benefits, .key-learning-outcomes, .values-list, .contact-list, .achievement-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.resources-list li, .recommended-books li, .event-benefits li,
.key-learning-outcomes li, .values-list li, .contact-list li, .achievement-highlights ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9.5px 0;
  background: none;
  border-bottom: 1px solid #F5F3F0;
  font-size: 1.03rem;
}
.resources-list li img,
.values-list li img,
.contact-list li img {
  width: 23px;
  height: 23px;
}

/******************************
 CONTACT & MAP
******************************/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.map-location {
  margin-top: 20px;
}

/****************************
 NAVIGATION (DESKTOP & MOBILE)
****************************/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 22px;
  position: relative;
  box-shadow: 0 1px 12px 0 rgba(23,50,76,.07);
  z-index: 150;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #17324C;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 2px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #479CAD;
  background: #F5F3F0;
}
/* Hide mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
}
/**** Mobile Nav Panel ****/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,50,76,0.93);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.2rem;
  position: absolute;
  right: 25px;
  top: 18px;
  cursor: pointer;
  line-height: 1;
  z-index: 10010;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: #479CAD; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 80px 0 0 0;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  width: 85%;
  background: #17324C;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  transition: background 0.16s, color 0.16s;
  display: block;
  margin-bottom: 6px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #479CAD;
  color: #17324C;
}
@media (max-width: 1100px) {
  header {
    padding: 10px 2vw;
  }
}
@media (max-width: 900px) {
  .main-nav { gap: 17px; }
}
@media (max-width: 820px) {
  .main-nav { gap: 11px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.15rem;
    padding: 4px 8px;
    margin-left: 15px;
    background: none;
    border: none;
    color: #17324C;
    cursor: pointer;
    z-index: 20000;
    transition: color 0.17s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover { color: #479CAD; }
}

/************************
 BUTTONS & CTAs
************************/
.cta-btn, .cta-btn.primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.26;
  border-radius: 24px;
  padding: 12px 32px;
  background: #479CAD;
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(23,50,76,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  margin-top: 15px;
  margin-bottom: 0;
}
.cta-btn.primary:hover, .cta-btn.primary:focus, .cta-btn:hover, .cta-btn:focus {
  background: #17324C;
  color: #fff;
  box-shadow: 0 4px 26px 0 rgba(23,50,76,0.16);
  transform: translateY(-1px) scale(1.017);
}

/************************
 FOOTER
************************/
footer {
  background: #17324C;
  color: #f5f3f0;
  padding: 40px 0px 16px 0px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: flex-start;
}
footer a {
  color: #f5f3f0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-right: 19px;
  margin-bottom: 12px;
  display: inline-block;
  transition: color 0.16s;
}
footer a:hover, footer a:focus {
  color: #479CAD;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}
footer img {
  height: 38px;
  margin-bottom: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}
.footer-contact span {
  display: block;
  font-size: 0.95rem;
  margin-top: 4px;
  color: #e5e1db;
}
@media (max-width: 960px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 30px 0 12px 0;
  }
  footer .container { gap: 10px; }
  .footer-contact {
    font-size: 0.97rem;
  }
}

/************************
 SPACING UTILITIES
************************/
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 { gap: 20px !important; }
.gap-30 { gap: 30px !important; }

/************************
 MEDIA QUERIES FOR FLEX DIRECTION & RESPONSIVENESS
************************/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .feature-grid, .testimonial-list, .team-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item, .testimonial-card, .team-member {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    font-size: 0.96em;
    gap: 7px;
  }
}

/***********************
 COOKIE CONSENT BANNER
***********************/
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 16px 16px 16px;
  background: #fff;
  color: #17324C;
  box-shadow: 0 -2px 24px 0 rgba(23,50,76,.15);
  z-index: 21000;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1rem;
  transition: transform 0.28s, opacity 0.22s;
  transform: translateY(0);
  opacity: 1;
}
#cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 20px;
  border-radius: 40px;
  border: none;
  background: #479CAD;
  color: #fff;
  font-size: 1rem;
  margin-right: 5px;
  margin-bottom: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cookie-btn.settings {
  background: #fff;
  color: #17324C;
  border: 1px solid #479CAD;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #17324C;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F5F3F0;
  color: #17324C;
}

/*******************
 COOKIE SETTINGS MODAL
*******************/
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,50,76,0.70);
  z-index: 21500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #17324C;
  border-radius: 15px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 50px rgba(23,50,76,0.15);
  max-width: 380px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
#cookie-modal h2 {
  margin-top: 0;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-switch input[type="checkbox"] {
  accent-color: #479CAD;
  width: 20px;
  height: 20px;
  margin: 0 7px 0 0;
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #17324C;
  font-size: 2rem;
  position: absolute;
  right: 15px;
  top: 9px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #479CAD;
}

/**************************
 SCROLLBARS (Scandinavian subtle)
**************************/
body, .cookie-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #479CAD #F5F3F0;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #479CAD;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #F5F3F0;
}

/**************************
 Miscellaneous (Cards, Lists)
**************************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23,50,76,0.07);
  padding: 20px 18px;
  transition: box-shadow 0.23s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 6px 22px 0 rgba(23,50,76,0.13);
  transform: translateY(-3px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/***********************
 ANIMATIONS & TRANSITIONS
***********************/
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity:1; transform: none;}
}
.slide-in {
  animation: slideIn 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes slideIn {
  from {opacity: 0; transform: translateX(100%);} 
  to {opacity: 1; transform: translateX(0);}
}
/* Form Inputs (if/when used) */
input[type="text"], input[type="email"], textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 19px;
  background: #fff;
  font-size: 1rem;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #479CAD;
  outline: none;
}

/*****************************
 PRINT (Optional Scandinavian clean)
*****************************/
@media print {
  body, html { background: #fff; color: #17324C; }
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  section, .container, .content-wrapper, article { box-shadow: none !important; background: #fff !important; }
}

/* ===========================
  ACCESSIBILITY FOCUS OUTLINE
=========================== */
a:focus, button:focus, input:focus {
  outline: 2px solid #479CAD;
  outline-offset: 1px;
}

/* ===========================
  HELPERS & OVERRIDES
=========================== */
.hidden { display: none !important; }

/* EMERGENCY: Remove grid/column fallbacks (critical requirement) */
[class*="grid"], [class*="columns"] {
  display: flex !important;
  flex-wrap: wrap !important;
}

