/* ==================== 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;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #FBF7EA 0%, #EFCD59 100%);
  color: #2D2056;
  font-size: 16px;
  line-height: 1.7;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 10px;
  text-align: left;
}

/* ==================== BRAND FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&family=Roboto:wght@400;500&display=swap');

:root {
  --primary: #2D2056;
  --secondary: #EFCD59;
  --accent: #FBF7EA;
  --grey-light: #faf9f6;
  --grey-dark: #231944;
}

/* ==================== LAYOUT HELPERS ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 0 25px 0;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(45, 32, 86, 0.06);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(45,32,86,0.12);
}
.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: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #231944;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px rgba(45,32,86,0.07);
  font-size: 1.08em;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(45,32,86,0.13);
  transform: translateY(-3px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom for feature GRID (Kurser.html) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 200px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(45,32,86,0.07);
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 26px rgba(45,32,86,0.13);
  transform: translateY(-3px) scale(1.01);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
}
p, ul li, ol li, table, address {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
}
ul {
  margin-left: 20px;
  margin-top: 7px;
}
li {
  margin-bottom: 8px;
}
blockquote {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--secondary);
  font-size: 1.15rem;
  border-left: 4px solid var(--secondary);
  padding-left: 15px;
  margin-top: 10px;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

.caption {
  font-size: 0.97rem;
  color: var(--secondary);
}

.cta-btn, .cta-link {
  display: inline-block;
  border: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(90deg, #2D2056 0%, #EFCD59 100%);
  padding: 15px 32px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(45,32,86,0.13);
  transition: background 0.2s, box-shadow 0.2s, transform 0.16s;
  text-align: center;
  margin-top: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #EFCD59 0%, #2D2056 100%);
  color: #2D2056;
  box-shadow: 0 7px 20px 0 rgba(45,32,86,0.16);
  outline: none;
  transform: translateY(-1px) scale(1.025);
}
.cta-link {
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  box-shadow: none;
  transition: color 0.16s;
}
.cta-link:hover,
.cta-link:focus {
  color: var(--secondary);
}

/* ==================== HEADER AND NAVIGATION ==================== */
header {
  background: linear-gradient(90deg, #FBF7EA 0%, #EFCD59 100%);
  box-shadow: 0 2px 14px 0 rgba(45,32,86,0.03);
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
  position: relative;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a:not(.cta-btn) {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  color: var(--primary);
  font-weight: 500;
  padding: 8px 8px 8px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background: var(--secondary);
  color: #2D2056;
  outline: none;
}
.main-nav .cta-btn {
  margin-left: 24px;
}
.main-nav img {
  height: 42px;
  margin-right: 12px;
}

/* Hide mobile nav and menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ==================== MOBILE NAVIGATION ==================== */
@media (max-width: 992px) {
  .main-nav ul, .main-nav .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    font-family: 'Oswald', Arial, sans-serif;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 2rem;
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    top: 17px;
    right: 21px;
    z-index: 120;
    box-shadow: 0 2px 8px 0 rgba(45,32,86,0.13);
    transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: var(--primary);
    color: #fff;
    outline: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(110deg, var(--accent) 40%, var(--secondary) 90%);
  box-shadow: -4px 0 32px rgba(45,32,86,0.21);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  margin: 30px 26px 20px 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 3px 16px 2px 16px;
  transition: background 0.18s, color 0.18s;
  z-index: 10001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 25px 32px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.32rem;
  color: var(--primary);
  font-weight: 600;
  padding: 18px 0 4px 4px;
  border-radius: 6px;
  width: 100%;
  display: block;
  transition: background 0.18s, color 0.18s;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
    display: none !important;
  }
}

/* ==================== MAIN AND SECTIONS ==================== */
main {
  min-height: 70vh;
  margin-bottom: 30px;
}
section {
  background: transparent;
}

/* ==================== TABLES (SCHEMA & KURSER) ==================== */
table {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(45,32,86,0.07);
  border-radius: 14px;
  margin-top: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  font-size: 1rem;
}
thead {
  background: var(--secondary);
}
th {
  color: var(--primary);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  border-bottom: 2px solid #e7debb;
}
td {
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-bottom: 1px solid #f1ecd8;
}
caption {
  font-family: 'Oswald', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.19rem;
  font-weight: 500;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    font-size: 0.94rem;
    padding: 7px 4px;
  }
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(90deg, #2D2056 0%, #EFCD59 100%);
  color: #fff;
  padding: 40px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer img {
  height: 60px;
  margin-bottom: 14px;
}
footer nav ul {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  padding: 3px 7px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer address {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #fff;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  footer img {
    margin-bottom: 8px;
  }
}

/* ==================== ABOUT (INSTRUCTOR/FEATURE CARDS) ==================== */
.instructor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.instructor-list > div {
  background: #fff;
  border-radius: 14px;
  flex: 1 1 240px;
  min-width: 200px;
  padding: 20px 22px;
  box-shadow: 0 2px 20px 0 rgba(45,32,86,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.instructor-list > div:hover {
  box-shadow: 0 8px 28px rgba(45,32,86,0.16);
  transform: translateY(-2px) scale(1.015);
}
.instructor-list h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.24rem;
  color: var(--primary);
}
.instructor-list p,
.instructor-list span {
  font-size: 0.97rem;
  margin-bottom: 4px;
}
@media (max-width: 750px) {
  .instructor-list {
    flex-direction: column;
    gap: 18px;
  }
}

.list-of-strengths ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
}
.list-of-strengths li {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}

/* ==================== GALLERY STYLES ==================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--accent) 55%, var(--secondary) 100%);
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  box-shadow: 0 -3px 32px 0 rgba(45,32,86,0.04);
  z-index: 5050;
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.48,-0.04,.19,.98);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 10px 24px;
  margin: 0 2px;
  background: var(--primary);
  color: #fff;
  transition: background 0.17s;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(45,32,86,.07);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--primary);
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 32, 86, 0.41);
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.54,0,.22,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  min-width: 310px;
  max-width: 97vw;
  padding: 28px 21px 24px 21px;
  box-shadow: 0 12px 38px 0 rgba(45,32,86,0.21);
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: fadeInModal 0.36s;
}
@keyframes fadeInModal { from { transform: scale(.92) translateY(25px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.cookie-modal h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}
.cookie-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0 7px 0;
  border-bottom: 1px solid #f3e6bf;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.03rem;
  color: var(--primary);
}
.cookie-category input[type="checkbox"]:not(:disabled) {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
  cursor: pointer;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--secondary);
  outline: none;
}

/* ==================== RESPONSIVE IMAGE and LAYOUTS ==================== */
@media (max-width: 700px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .footer nav ul {
    gap: 10px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.28rem;
  }
}
@media (max-width: 420px) {
  .cta-btn {
    font-size: 1rem;
    padding: 12px 18px;
  }
  .main-nav img, footer img {
    height: 32px !important;
  }
}

/* ==================== MICRO-INTERACTIONS (TRANSITIONS) ==================== */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .main-nav a, .mobile-nav a, .instructor-list > div, .cookie-banner, .cookie-modal {
  transition-timing-function: cubic-bezier(.46,.03,.52,.96);
}

/* ==================== FOCUS STATES FOR ACCESSIBILITY ==================== */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* ==================== UTILITY & SPACING CLASSES ==================== */
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
@media (max-width: 520px) {
  .testimonial-card, .feature-grid > div, .card, .instructor-list > div {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ==================== Z-INDEX MANAGEMENT ==================== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .cookie-modal { z-index: 400; }
.cookie-banner { z-index: 5020; }
.cookie-modal-overlay { z-index: 5100; }
.cookie-modal { z-index: 5110; }

/* ==================== BASIC FORM ELEMENTS ==================== */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1.5px solid #e0dede;
  border-radius: 7px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: none;
  color: #2D2056;
  transition: border-color 0.18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
}

/* ========== END OF CSS ========== */
