/* ===========================================================
   RESET & BASE
=========================================================== */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA; /* light background to reflect Scandinavian design */
  color: #234078;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #234078;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #1d305c;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/* ===========================================================
   BRAND TYPOGRAPHY & HEADINGS
=========================================================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #234078;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #234078;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #234078;
}
h4, .h4 {
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #234078;
}
p, label, address, span, li, .button-primary {
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #234078;
}
address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===========================================================
   LAYOUT: CONTAINERS & FLEXBOX
=========================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 64, 120, 0.05);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.24s, transform 0.18s;
  padding: 24px 20px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(35, 64, 120, 0.10);
  transform: translateY(-2px) scale(1.012);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Helper: for text-section class */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/* # Only used in courses overview for highlight lists # */
.course-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0 10px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35, 64, 120, 0.06);
  padding: 28px 20px 18px 20px;
  min-width: 220px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 1px solid #f0f4fa;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 5px 16px rgba(35, 64, 120, 0.09);
  border-color: #ACCDED;
}
.feature-grid img {
  max-width: 52px;
  margin-bottom: 12px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,64,120,0.07);
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border-left: 6px solid #ACCDED;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(35,64,120,0.15);
  transform: scale(1.015);
}
.testimonial-content > p {
  font-size: 1.08rem;
  color: #234078;
}
.testimonial-author {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #234078;
  margin-top: 8px;
  font-size: 1rem;
}
.star-rating {
  color: #FFDD63;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-top: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ===========================================================
   HEADER & NAVIGATION
=========================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(35,64,120,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 18px;
}
.logo img {
  width: 138px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #234078;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 8px;
  border-radius: 8px;
  position: relative;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: #ACCDED;
}
.button-primary {
  background: #234078;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1.07rem;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.17s, transform 0.14s;
  box-shadow: 0 2px 6px rgba(35,64,120,0.06);
  outline: none;
  display: inline-block;
  margin-left: 18px;
}
.button-primary:focus, .button-primary:hover {
  background: #FFDD63;
  color: #234078;
  box-shadow: 0 4px 12px rgba(35,64,120,0.11);
  transform: translateY(-2px) scale(1.04);
}
.button-secondary {
  background: #ACCDED;
  color: #234078;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  outline: none;
}
.button-secondary:hover, .button-secondary:focus {
  background: #FFDD63;
  color: #234078;
  box-shadow: 0 3px 10px rgba(35,64,120,0.09);
}

/* Hamburger menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #234078;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
  display: none;
  z-index: 1111;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ACCDED;
  color: #fff;
}

/* MOBILE MENU (OFFCANVAS) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 64, 120, 0.94);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  z-index: 1200;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFDD63;
  background: #23407833;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
  align-items: flex-start;
  padding: 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8;
  padding: 10px 0 10px 10px;
  border-radius: 12px;
  transition: color 0.13s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #234078;
  background: #FFDD63;
}

/* ===========================================================
   FOOTER
=========================================================== */
footer {
  background: #234078;
  color: #fff;
  padding: 56px 0 22px 0;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: flex-start;
  margin-bottom: 36px;
  border-bottom: 1px solid #fff3;
  padding-bottom: 28px;
}
.footer-logo img {
  width: 58px;
  height: auto;
}
.footer-main-nav, .footer-sub-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main-nav a, .footer-sub-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 4px 0;
  border-radius: 5px;
  transition: background 0.16s, color 0.14s;
}
.footer-main-nav a:hover, .footer-main-nav a:focus,
.footer-sub-nav a:hover, .footer-sub-nav a:focus {
  background: #ACCDED;
  color: #234078;
}
.footer-contact-info {
  margin: 18px 0 12px 0;
  font-size: 1rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-contact-info a {
  color: #FFDD63;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
  color: #fff;
  opacity: 0.88;
}
/* Ensure breathing room for the copyright line */
.footer-bottom small {
  font-size: 0.92rem;
  opacity: 0.8;
}

/* ===========================================================
   COOKIE BANNER & COOKIE MODAL
=========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(35,64,120,.09);
  padding: 18px 16px;
  z-index: 1400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: center;
  font-size: 1rem;
  border-top: 2px solid #ACCDED;
  animation: slideUpIn 0.6s cubic-bezier(0.36,1.4,0.44,1) 1;
}
@keyframes slideUpIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  max-width: 440px;
  line-height: 1.5;
  color: #234078;
}
.cookie-banner .button-primary,
.cookie-banner .button-secondary,
.cookie-banner .button-tertiary {
  margin: 0 8px 0 0;
  font-size: 0.96rem;
  padding: 9px 18px;
  border-radius: 20px;
  font-weight: 600;
}
.cookie-banner .button-tertiary {
  background: transparent;
  border: 1px solid #ACCDED;
  color: #234078;
  transition: background 0.12s, color 0.12s;
}
.cookie-banner .button-tertiary:hover, .cookie-banner .button-tertiary:focus {
  background: #ACCDED;
  color: #234078;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,64,120,0.44);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.27s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 38px 28px 28px 28px;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(35,64,120,.22);
  min-width: 340px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #234078;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal-category {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #E6F1FB;
  border-radius: 18px;
  transition: background 0.12s;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1px solid #ACCDED;
}
.cookie-toggle:checked {
  background: #FFDD63;
}
.cookie-toggle::before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.13s;
  box-shadow: 0 2px 5px rgba(35,64,120,0.09);
}
.cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal .modal-footer {
  margin-top: 18px;
  text-align: right;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 12px;
  background: none;
  border: none;
  color: #234078;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #ACCDED;
  color: #234078;
}

/* ===========================================================
   MEDIA QUERIES: RESPONSIVE
=========================================================== */
@media (max-width: 1140px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-bottom: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .main-nav, .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-top {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-bottom: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding: 32px 0 32px 0;
    margin-bottom: 36px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.45rem;
  }
  .logo img {
    width: 110px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 4vw;
  }
  .feature-grid > div, .card {
    padding: 16px 8px;
  }
  .cookie-modal {
    padding: 19px 7px 17px 7px;
    min-width: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 3vw;
    font-size: 0.97rem;
  }
}

/* ===========================================================
   SCANDINAVIAN DESIGN ENHANCEMENTS
=========================================================== */
/* Subtle card, section shadow & border, white-space, and minimalism */
.section {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35, 64, 120, 0.04);
}
.content-wrapper {
  background: none;
  border-radius: 0;
}
.text-section {
  background: none;
  box-shadow: none;
}

/* Spacing utilities */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.pt-32 { padding-top: 32px; }

/* ===========================================================
   FORM ELEMENTS, LINKS, & ACCESSIBILITY
=========================================================== */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ACCDED;
  padding: 12px 10px;
  margin-bottom: 18px;
  background: #f7fafc;
  color: #234078;
  outline: none;
  transition: border 0.16s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #FFDD63;
}
::placeholder {
  color: #a7b7cd;
}
.btn-link, .link-inline {
  color: #234078;
  text-decoration: underline dotted;
  font-weight: 500;
  transition: color 0.12s;
}
.btn-link:hover, .btn-link:focus,
.link-inline:hover, .link-inline:focus {
  color: #FFDD63;
}

/* ===========================================================
   MISCELLANEOUS
=========================================================== */
hr {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 24px 0;
}

::-webkit-scrollbar {
  width: 12px;
  background: #EFF5FB;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #ACCDED;
  border-radius: 8px;
}

/* Focus outline for accessibility */
a:focus, .button-primary:focus, button:focus, .button-secondary:focus {
  outline: 2px solid #FFDD63;
  outline-offset: 2px;
}

/* Hide visually but keep for a11y */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px; margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ==============================================================
   END OF STYLE.CSS FOR LUMINOUS ARK AKADEMIE – SCANDINAVIAN CLEAN
================================================================ */
