/* ====================================================
   RESET + BASE STYLES (Normalize & Reset)
   ==================================================== */
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,font,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,input,button,textarea {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #12161A;
  color: #E3EAF1;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #73B14A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #82d65e; }

/* ================= BRAND COLORS AND FONTS ================= */
:root {
  --color-primary: #215668;
  --color-secondary: #E3EAF1;
  --color-accent: #73B14A;
  --color-bg-light: #1A2229;
  --color-bg-dark: #12161A;
  --color-bg-highlight: #192E3C;
  --color-footer: #10181E;
  --color-text: #E3EAF1;
  --color-text-dark: #16202B;
  --color-card-bg: #222E38;
  --color-shadow: rgba(33,86,104,0.18);
  --font-display: 'Montserrat',Arial,sans-serif;
  --font-body: 'Open Sans',Arial,sans-serif;
}

/* =================== TYPOGRAPHY =================== */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-secondary);
}
h1   { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2   { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
h3   { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.25; }
h4   { font-size: 1rem; margin-bottom: 8px; }
p,li { font-family: var(--font-body);font-size: 1rem; margin-bottom: 12px; color: var(--color-secondary); }
strong { font-weight: 700; color: var(--color-accent);}
ul,ol {margin-left: 24px; margin-bottom: 16px;}

@media (max-width: 768px) {
 h1 { font-size: 2rem; }
 h2 { font-size: 1.4rem; }
}

/* ====================== LAYOUT CONTAINERS ===================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  max-width: 700px;
}

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

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 5px;
  }
}

/* HERO / CTA BANNERS (Tech-futuristic: dark with neon accent) */
.hero, .cta-banner {
  background: linear-gradient(110deg, #1A2229 60%, #215668 100%);
  padding: 64px 0 48px 0;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero h1, .cta-banner h2 {
  color: #fff;
  text-shadow: 0 0 16px rgba(33,177,74,0.15);
}
.hero .btn-primary, .cta-banner .btn-primary {
  margin-top: 24px;
}

/* =============== MAIN NAVIGATION & HEADER =============== */
header {
  width: 100%;
  background: #171E22;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(33,86,104,0.04);
  z-index: 1001;
}
.logo { display: flex; align-items: center; margin-right: 32px; }
.logo img {height: 48px; width: auto; display: block;}

header > .container {
  min-height: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.main-nav {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  color: #E3EAF1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 8px 0 4px 0;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: border-color 0.25s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  border-radius: 28px;
  box-shadow: 0 4px 18px 0 rgba(115, 177, 74, 0.11), 0 2px 6px rgba(56,255,129,0.05);
  text-shadow: 0 1px 8px rgba(115,255,74,0.09);
  transition: background 0.14s, transform 0.13s, box-shadow 0.17s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #82d65e;
  color: #10181E !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 25px 0 rgba(115,255,74,0.15), 0 1px 12px rgba(33,86,104,0.19);
}
.btn-link {
  color: var(--color-accent);
  background: none;
  border: none;
  font-weight: 600;
  font-family: var(--font-display);
  position: relative;
  padding: 0;
  margin-top: 8px;
  text-decoration: underline dotted 2px var(--color-accent);
  transition: color 0.2s, text-decoration 0.12s;
  cursor: pointer;
  font-size: 1rem;
}
.btn-link:hover {
  color: #82d65e;
  text-decoration: underline solid 2px var(--color-accent);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #E3EAF1;
  cursor: pointer;
  padding: 10px;
  margin-left: 24px;
  transition: color 0.18s;
  display: none;
  z-index: 1021;
}
.mobile-menu-toggle:focus {
  color: var(--color-accent);
}

@media (max-width: 1020px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ================== MOBILE MENU ================== */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: #182126;
  z-index: 1020;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.47,.1,.64,1.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  position: relative;
  top: 26px;
  right: 36px;
  z-index: 1021;
  cursor: pointer;
  margin: 0 0 20px 0;
  transition: color 0.15s;
  padding: 8px 16px;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  width: 100%;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-left: 4px solid transparent;
  transition: color 0.15s, border-color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* =============== FLEXBOX LAYOUT COMPONENTS =============== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 920px) {
  .content-grid, .card-container, .feature-grid, .service-tiles, .post-teasers {
    flex-direction: column !important;
    gap: 20px !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 16px; align-items: stretch; }
}

/* =============== INDEX & PAGE STRUCTURE =============== */
.feature-grid, .service-tiles, .post-teasers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 var(--color-shadow);
  padding: 32px 16px 32px 16px;
  min-width: 220px;
  max-width: 290px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border: 1.5px solid rgba(33,177,74,0.08);
  transition: transform 0.15s, box-shadow 0.2s, border 0.19s;
}
.feature:hover, .feature:focus-within {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 9px 28px 0 rgba(115, 255, 74, 0.11), 0 1.5px 12px var(--color-shadow);
  border: 1.5px solid var(--color-accent);
}
.feature img {
  height: 48px; width: 48px;
  margin-bottom: 12px;
}
.service-tile, .post-teaser {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--color-shadow);
  padding: 32px 20px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid rgba(33, 86, 104, 0.10);
  transition: border 0.17s, transform 0.15s, box-shadow 0.21s;
}
.service-tile:hover, .post-teaser:hover {
  border: 1.5px solid var(--color-accent);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 7px 24px 0 rgba(115,177,74,0.13);
}

@media (max-width: 920px) {
  .feature-grid, .service-tiles, .post-teasers {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service-tile, .post-teaser { max-width: 100%; }
}

/* Testimonials */
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  color: #16202B;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px 0 rgba(33,86,104,0.10);
  border-left: 5px solid var(--color-accent);
  padding: 24px 28px;
  transition: box-shadow 0.15s, border 0.17s;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 660px;
}
.testimonial-card blockquote {
  color: #16202B;
  font-family: var(--font-display);
  font-size: 1.13rem;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.testimonial-meta {
  font-size: 1rem;
  font-weight: 500;
  color: #51822e;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(115,255,74,0.13), 0 1.5px 14px var(--color-shadow);
  border-left: 5px solid #215668;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 18px 11px;
    max-width: 99%;
  }
}

/* Blog teasers */
.post-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* About Team & Milestones (Lists) */
.about-team ul, .milestones ul, .scientific-highlights ul, .workshop-formats ul, .workshop-benefits ul, .contact-info ul, .thank-you ul {
  margin-top: 10px;
  margin-bottom: 22px;
  padding-left: 22px;
}
.about-team li, .milestones li, .scientific-highlights li, .workshop-formats li, .workshop-benefits li, .contact-info li, .thank-you li {
  list-style-type: disc;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-secondary);
}

/* Legal Section Style */
.legal {
  background: var(--color-bg-light);
  border-radius: 14px;
  margin: 40px 0;
  padding: 32px 10px;
  box-shadow: 0 2px 18px rgba(33, 86, 104, 0.07);
}
.legal h1, .legal h2 { color: #fff; }
.legal ul, .legal p { color: var(--color-secondary); }

/* ============ FOOTER ============ */
footer {
  background: var(--color-footer);
  color: #B8C5D1;
  padding: 32px 0 12px 0;
  margin-top: 28px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #B8C5D1;
  font-size: 1rem;
  text-decoration: underline dotted 1.5px #51822e;
  transition: color 0.17s, text-decoration 0.13s;
}
.footer-nav a:hover { color: var(--color-accent); text-decoration: underline solid 1.5px #73B14A;}
footer p {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #B8C5D1;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #215668;
  color: #fff;
  z-index: 4000;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 16px;
  box-shadow: 0 -2px 18px #10181E55;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.cookie-consent--hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  border: none;
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.14s, color 0.15s;
  box-shadow: 0 1px 8px rgba(33,177,74,0.10);
}
.cookie-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-accept:hover {
  background: #82d65e;
  color: #10181E;
}
.cookie-reject {
  background: #fff;
  color: var(--color-bg-dark);
  border: 1.5px solid #51822e;
}
.cookie-reject:hover {
  background: #efefef;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-settings {
  background: none;
  color: #fff;
  border: 1.5px dashed #fff;
}
.cookie-settings:hover {
  color: var(--color-accent);
  border: 1.5px dashed var(--color-accent);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(16, 24, 30, 0.86);
  z-index: 4200;
  display: none;
  justify-content: center;
  align-items: center;
  transition: opacity 0.25s;
  opacity: 0;
}
.cookie-modal.cookie-modal--show {
  display: flex;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #16202B;
  border-radius: 18px;
  box-shadow: 0 6px 32px #21566822;
  min-width: 320px;
  max-width: 95vw;
  padding: 38px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h2 {
  color: #215668;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cookie-category label {
  margin-left: 8px;
  font-weight: 600;
  color: #215668;
}
.cookie-switch {
  width: 32px; height: 18px;
  margin: 0;
  appearance: none;
  background: #E3EAF1;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background .17s;
}
.cookie-switch:checked {
  background: #73B14A;
}
.cookie-switch:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #16202B;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: #215668;
}

/* ___________ RESPONSIVE ADJUSTMENTS ___________ */
@media (max-width: 1020px) {
  header > .container { padding: 0 10px; }
  .logo img {height: 41px;}
}
@media (max-width: 920px) {
  .container { padding: 0 7px; }
  .footer-nav { gap: 12px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 2vw; }
  .hero, .cta-banner { padding: 42px 0 27px 0; }
  .section { padding: 24px 2vw; margin-bottom: 24px; }
  .footer-nav { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
  .feature-grid, .service-tiles, .post-teasers { flex-direction: column !important; gap: 18px !important; }
  .content-wrapper { gap: 13px; }
  .hero .btn-primary, .cta-banner .btn-primary { width: 100%; margin: 14px 0 0 0; }
  .testimonial-card { padding: 12px 4px; font-size: 1rem; }
  .cookie-consent-banner { flex-direction: column; align-items: stretch; gap: 8px; font-size: 0.98rem; }
  .cookie-consent-banner .cookie-actions { flex-direction: column; gap: 7px; }
  .cookie-modal-content { padding: 22px 8px 14px 8px; min-width: 94vw; }
}

/* =========== SMALL MICRO-ANIMATIONS =========== */
.btn-primary, .btn-link, .service-tile, .card, .card-container, .feature {
  will-change: transform, box-shadow;
}
a, .btn-link, .btn-primary, .btn-link, .service-tile, .feature, .testimonial-card {
  transition-timing-function: cubic-bezier(.4,.03,.38,.98);
}
input, textarea, select, button {
  font-family: var(--font-body);
}

/* ========== UTILITY ========== */
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }

/* ====== OVERRIDES FOR DARK-BG READABILITY ====== */
.text-section, .content-wrapper.text-section, .cta-banner .text-section {
  color: #E3EAF1;
}
.cta-banner, .hero {
  color: #E3EAF1;
  background-color: #215668;
  border-radius: 0 0 58px 0;
  border-bottom: 3px solid #73B14A;
}

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