/* 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

/* VARIABLES (with fallbacks) ======================== */
:root {
  --color-primary: #163955;
  --color-secondary: #49A078;
  --color-accent: #F8F9FA;
  --color-dark: #11181E;
  --color-mid: #29323c;
  --color-steel: #9daab6;
  --color-surface: #232A31;
  --color-lg-card: #232b33;
  --color-metallic: #BCC2C6;
  --color-btn-metal: #283544;
  --color-success: #63B97B;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* BASE BODY & TYPOGRAPHY ============================ */
body {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  background: var(--color-mid);
  color: var(--color-accent);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  font-weight: 700;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 1.1em; }
strong { color: var(--color-secondary); font-weight: 700; }
a {
  transition: color 0.2s cubic-bezier(.4, 0, .2, 1);
}
a:hover, a:focus { color: var(--color-secondary); }

/* CONTAINERS ======================================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* FLEXBOX LAYOUT PATTERNS =========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-lg-card);
  box-shadow: 0 2px 12px rgba(17, 24, 30, 0.08);
  border: 1px solid #222c35;
  border-radius: 10px;
}
.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;
  background: #F8F9FA;
  color: var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 1.5px 10px rgba(22, 57, 85, 0.1);
  border-left: 6px solid var(--color-secondary);
  min-width: 220px; max-width: 480px;
  margin-bottom: 20px;
}
.testimonial-content {
  display: flex; flex-direction: column; gap: 8px;
}
.testimonial-author {
  display: block;
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
  margin-top: 6px;
}
.stars {
  display: flex; flex-direction: row; gap: 2px; margin-top: 5px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-metallic);
  border-radius: 8px;
  padding: 24px 20px;
  min-width: 220px; max-width: 320px;
  box-shadow: 0 2px 8px rgba(34, 44, 53, 0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.45,.05,.55,.95);
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 5px 22px 0 rgba(73, 160, 120, 0.11);
  transform: translateY(-2px) scale(1.025);
}

/* HERO AREA ========================================= */
section {
  margin-bottom: 60px; padding: 40px 20px;
}

/* NAVIGATION + HEADER =============================== */
header {
  width: 100%; padding: 0; background: var(--color-dark);
  box-shadow: 0 2px 12px 0 rgba(17,24,30,0.07);
  z-index: 40;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo img {
  height: 42px;
  filter: grayscale(0.15) brightness(0.98) contrast(1.08) drop-shadow(0px 1px 0 #222c35);
  transition: filter 0.25s;
}
.main-nav {
  display: flex; align-items: center; gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-weight: 600;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin: 0 auto;
  transition: width 0.2s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 10px rgba(36, 140, 100, 0.05);
  margin-left: 24px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1e5740;
  color: #fff;
  box-shadow: 0 5px 15px 0 rgba(36,140,100,0.13);
  transform: translateY(-1px) scale(1.02);
}

/* Hamburger menu (mobile-menu-toggle) ================ */
.mobile-menu-toggle {
  display: none;
  background: var(--color-btn-metal);
  color: var(--color-accent);
  font-size: 2.1rem;
  border: none;
  border-radius: 5px;
  height: 44px; width: 48px;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  z-index: 99;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* MOBILE MENU (slide-over, z-index above header) ===== */
.mobile-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; height: 100vh; width: 88vw; max-width: 370px;
  background: var(--color-dark);
  box-shadow: -3px 0 18px 6px rgba(22,57,85,0.26);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2rem;
  color: var(--color-accent);
  border: none;
  padding: 16px 16px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  margin: 32px 0;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* Overlays for mobile menu background fade ----------- */
body.menu-active::after {
  content: '';
  z-index: 150;
  position: fixed; inset: 0;
  background: rgba(34, 43, 53, 0.55);
  transition: background 0.2s;
  pointer-events: all;
}

/* Footer layout ===================================== */
footer {
  width: 100%; background: var(--color-dark);
  margin-top: 40px;
  color: var(--color-accent);
  border-top: 2px solid var(--color-metallic);
  font-size: 15px;
}
footer .container {
  display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
  padding-top: 36px; padding-bottom: 36px;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-metallic);
  transition: color 0.18s, border-color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact ul {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-contact li {
  display: flex; align-items: center; gap: 12px;
}
.footer-contact img {
  width: 19px; height: 19px;
  opacity: .84;
  filter: grayscale(60%) brightness(1.25) contrast(1.13);
}
.footer-copyright {
  margin-top: 16px;
  color: var(--color-metallic);
  opacity: .85; font-size: 0.93rem;
}

/* Responsive headline and spacing scaling ============ */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .container {
    padding-left: 12px; padding-right: 12px;
  }
  .section, section {
    padding: 27px 5px;
    margin-bottom: 30px;
  }
  .footer-nav {
    gap: 13px;
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1rem; }
  .container {
    padding-left: 7px; padding-right: 7px;
  }
  .footer-contact img { width: 16px; height: 16px; }
}

/* CARDS & GRIDS ===================================== */
.feature-grid, .features, .testimonial-grid, .card-container {
display: flex;
    gap: 24px;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
.features { gap: 24px; }
.testimonials, .testimonial-grid {
display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    flex-direction: row;
    align-items: stretch;
}
.card, .feature-item, .testimonial-card {
  min-width: 230px; max-width: 380px;
}
@media (max-width: 900px) {
  .feature-grid, .features, .testimonial-grid, .card-container, .testimonials {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card, .feature-item, .testimonial-card {
    min-width: 0; max-width: 100%;
  }
}

/* FAQ ACCORDION ===================================== */
.faq-accordion {
  display: flex; flex-direction: column; gap: 22px;
}
.faq-item {
  background: var(--color-surface);
  border-radius: 7px;
  border: 1.5px solid var(--color-metallic);
  box-shadow: 0 2px 8px rgba(34, 44, 53, 0.06);
  padding: 22px 17px;
  transition: box-shadow 0.18s, transform 0.22s;
}
.faq-item h3 {
  font-size: 1.09rem;
  color: var(--color-secondary);
  margin-bottom: 7px;
  cursor: pointer;
  letter-spacing: 0.015em;
}
.faq-answer {
  max-height: 850px;
  overflow: hidden;
  transition: max-height 0.32s;
}
.faq-item.closed .faq-answer {
  max-height: 0; padding-bottom: 0;
}

/* CONTACT PAGE STYLES ============================== */
.contact-details {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.contact-info ul {
  gap: 12px;
}
.business-hours { color: var(--color-metallic); font-size: 1rem; margin-top: 10px; }

/* BUTTONS & INTERACTIONS ============================ */
button, .btn-primary {
  transition: background 0.21s, color 0.21s, box-shadow 0.21s, transform 0.21s;
}
button:active, .btn-primary:active { transform: scale(0.97); }

/* Cookie CONSENT BANNER ============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #232A31;
  box-shadow: 0 -4px 22px 0 rgba(34,44,53,0.18);
  color: #fff;
  padding: 24px 16px;
  gap: 24px;
  font-size: 1rem;
  border-top: 2px solid var(--color-metallic);
  animation: slideUpBanner 0.35s cubic-bezier(0.66,0,0.2,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-right: 22px;
}
.cookie-banner .cookie-actions {
  display: flex; flex-direction: row; gap: 12px;
}
.cookie-banner button {
  min-width: 90px;
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  border: 0;
  background: var(--color-secondary);
  color: var(--color-dark);
  margin-right: 0;
  cursor: pointer;
}
.cookie-banner .btn-reject {
  background: transparent;
  color: var(--color-accent);
  border: 1.7px solid var(--color-secondary);
}
.cookie-banner .btn-settings {
  background: var(--color-btn-metal);
  color: var(--color-accent);
  border: 1.2px solid var(--color-steel);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-success);
  color: var(--color-dark); outline: 2px solid var(--color-secondary);
}

/* Cookie Modal ===================================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(17,24,30,0.74);
  display: flex; align-items: center; justify-content: center;
  animation: fadeInModal 0.32s cubic-bezier(.82,0,.21,1);
}
@keyframes fadeInModal {
  from {background: rgba(17,24,30, 0); opacity: 0;}
  to {background: rgba(17,24,30,0.74); opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  padding: 38px 32px 32px 32px;
  border-radius: 13px;
  box-shadow: 0 12px 42px rgba(22,57,85,0.22);
  width: 100%; max-width: 410px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  animation: modalPop 0.37s cubic-bezier(.78,0,.18,1);
}
@keyframes modalPop {
  from {transform: scale(0.93);
        opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal h2 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.cookie-modal .modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-modal .cookie-categories {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; gap: 16px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-actions {
  margin-top: 16px;
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
}
.cookie-modal .cookie-actions button {
  padding: 7px 19px;
  font-size: 1rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 700; border: none; margin: 0;
}
.cookie-modal .cookie-actions .btn-accept {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.cookie-modal .cookie-actions .btn-reject {
  background: var(--color-btn-metal);
  color: var(--color-accent);
}
.cookie-modal .cookie-actions button:focus {
  outline: 2px solid var(--color-secondary);
}

/* SCROLLBARS ======================================= */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #232B33;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #181d22;
}

/* IMAGES & ICONS =================================== */
img, svg {
  display: inline-block; max-width: 100%; vertical-align: middle;
}
.feature-item img, .testimonial-card img, .footer-contact img, .footer-nav img {
  filter: grayscale(30%) contrast(1.1);
}

/* list styles */
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1.1em;
  color: var(--color-steel);
  font-size: 1rem;
}
ul li::before {
  content: '•';
  position: absolute; left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* TIMELINE/OBJECTIVES (Programme page) ============= */
.timeline p, .learning-objectives, .outcomes {
  color: var(--color-accent); background: var(--color-surface);
  border-radius: 9px; padding: 17px 20px; margin-top: 16px;
  font-size: 1rem;
  border-left: 5px solid var(--color-secondary);
}

/* OUTCOMES list, inside .outcomes =================== */
.outcomes ul, .learning-objectives ul {
  color: var(--color-steel);
  font-size: 1rem;
}

/* Animations, hover etc. ============================ */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.19s cubic-bezier(.4,0,.2,1), transform 0.17s cubic-bezier(.4,0,.2,1);
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,44,53,0.10);
  transform: translateY(-2px) scale(1.015);
}

/* Accessibility: Focus states ======================= */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Responsive layout tweaks ========================== */
@media (max-width: 1023px) {
  header .container { gap: 12px; }
  .main-nav { gap: 18px; }
  .btn-primary { margin-left: 12px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 820px) {
  .testimonial-card, .feature-item, .card {
    min-width: 0; max-width: 99vw;
    padding-left: 16px; padding-right: 16px;
  }
  footer .container {
    gap: 13px;
    padding-bottom: 22px;
  }
}
@media (max-width: 600px) {
  .content-wrapper, .text-image-section, .feature-grid, .features, .testimonials, .testimonial-grid, .card-container, .content-grid {
    flex-direction: column !important; gap: 14px !important; align-items: stretch !important;
  }
}

/* Z-index for overlays & menus ====================== */
.mobile-menu, .cookie-modal-overlay { z-index: 9999; }

/* White/dark bg testimonials/sections ============== */
section {
  background: var(--color-lg-card);
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(22,57,85,0.05);
}
.testimonial-card {
  background: #F8F9FA;
  color: var(--color-primary);
}

/* Utility: hide/show (for JavaScript) =============== */
.hidden { display: none !important; }

/* End of style.css */
