/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 16px; }
body {
  min-height: 100vh;
  background: #151e28;
  color: #F5F7FA;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-color: #151e28;
  overflow-x: hidden;
}

/* VARIABLES */
:root {
  --primary: #1C2A38;
  --primary-dark: #151e28;
  --secondary: #FFD600;
  --accent: #F5F7FA;
  --neon: #53FFE2;
  --danger: #ff3b3b;
  --bg-card: #232f41;
  --bg-section: #1C2A38;
  --gradient-hero: linear-gradient(135deg,#232f41 0%,#181f2c 100%);
  --shadow-main: 0 4px 24px 0 rgba(80,255,255,0.12); 
  --shadow-card: 0 2px 8px 0 rgba(80,191,255,0.12);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.015em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.2rem;
  text-shadow: 0 2px 8px rgba(83,255,226,0.10);
  color: var(--neon);
}
h2 {
  font-size: 1.6rem;
  color: var(--secondary);
}
h3 {
  font-size: 1.15rem;
  color: var(--neon);
}
h4 {
  font-size: 1.07rem;
}
p, ul, li {
  font-size: 1rem;
  color: var(--accent);
}
a {
  color: var(--neon);
  text-decoration: none;
  transition: color .20s;
}
a:hover, .main-nav a:hover, .mobile-nav a:hover {
  color: var(--secondary);
}
strong { color: var(--secondary); font-weight: 700; }

/* GENERIC FLEX CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: 20px;
  box-shadow: var(--shadow-main);
}

/* HERO SECTIONS */
main > section:first-child, .hero-section {
  background: var(--gradient-hero);
  border-radius: 32px;
  box-shadow: 0 6px 40px 0 rgba(80,255,255,0.09);
  margin-bottom: 60px;
  padding: 60px 0 48px;
}

/* FEATURES GRID & FLEX ARRANGEMENTS */
.features-grid,
.articles-teaser-grid,
.articles-grid,
.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div,
.articles-teaser-grid > div,
.articles-grid > div,
.events-grid > div {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 30px 24px;
  flex: 1 1 235px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow .18s, border .18s, transform .2s;
  border: 2px solid transparent;
  position: relative;
}
.features-grid > div:hover,
.articles-teaser-grid > div:hover,
.articles-grid > div:hover,
.events-grid > div:hover {
  border: 2px solid var(--neon);
  box-shadow: 0 4px 28px 0 var(--neon), var(--shadow-card);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.features-grid span {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 225px;
}

/* Articles Teaser Grid override for equal width */
.articles-teaser-grid > div {
  min-width: 200px;
  flex: 1 1 300px;
}

.articles-grid > div a,
.articles-teaser-grid > div a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--neon);
  border-bottom: 1px solid var(--neon);
  transition: color .18s, border-color .16s;
}
.articles-grid > div a:hover,
.articles-teaser-grid > div a:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

.categories-tabs {
  display: flex;
  gap: 20px;
  background: rgba(28,42,56,0.7);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(80,255,226,0.04);
}
.categories-tabs span {
  color: var(--neon);
  padding: 7px 21px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background .14s, color .16s;
}
.categories-tabs span:hover {
  background: var(--neon);
  color: #1C2A38;
}

/* LISTS STYLES */
ul {
  padding-left: 21px;
  margin-bottom: 16px;
}
ul li {
  margin-bottom: 8px;
  list-style: disc;
}

/* BUTTONS & CTA */
.cta-btn, .cookie-btn, .mobile-menu-toggle {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: var(--neon);
  color: #1C2A38;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.08rem;
  border: none;
  border-radius: 999px;
  outline: none;
  padding: 12px 36px;
  margin-top: 8px;
  box-shadow: 0 2px 18px 0 rgba(80,255,226,0.09);
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .18s, transform .14s;
  text-shadow: none;
}
.cta-btn:hover, .cookie-btn:hover, .cta-btn:focus, .cookie-btn:focus {
  background: var(--secondary);
  color: #1C2A38;
  box-shadow: 0 4px 24px var(--secondary);
  transform: scale(1.03);
}

.cookie-btn.reject {
  background: var(--danger);
  color: #F5F7FA;
}
.cookie-btn.reject:hover {
  background: #fe8282;
  color: #18232e;
}

.cookie-btn.settings {
  background: transparent;
  color: var(--neon);
  border: 1.5px solid var(--neon);
  margin-left: 8px;
}
.cookie-btn.settings:hover {
  background: var(--neon);
  color: #1C2A38;
}

/* TABLES */
.services-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.services-table th,
.services-table td {
  padding: 18px 12px;
  text-align: left;
}
.services-table th {
  background: var(--primary);
  color: var(--neon);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--neon);
}
.services-table tr {
  border-bottom: 1px solid rgba(83,255,226,0.07);
}
.services-table td {
  color: var(--accent);
}
.services-table tr:nth-child(even) {
  background: #22324A;
}

/* SECTION & CARD MARGINS (MANDATORY) */
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .features-grid, .articles-teaser-grid, .articles-grid, .events-grid {
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(80,255,255,0.08);
  margin-bottom: 32px;
  color: #1C2A38;
  border-left: 5px solid var(--neon);
  min-width: 210px;
  max-width: 700px;
}
.testimonial-card p {
  color: #1C2A38;
  font-size: 1.08rem;
}
.testimonial-card strong {
  color: var(--primary);
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-details div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  color: var(--neon);
}
.contact-details img {
  height: 22px;
  width: 22px;
  margin-right: 4px;
}

.map-placeholder {
  background: #232f41;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: 0 2px 12px rgba(80,255,255,0.07);
  color: var(--neon);
}

.calendar-placeholder {
  background: #232f41;
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(80,255,255,0.03);
  color: var(--neon);
  margin-top: 26px;
  margin-bottom: 15px;
}
.calendar-placeholder h4 {
  margin-bottom: 10px;
}

/* HEADER AND NAVIGATION */
header {
  width: 100%;
  background: #181f2c;
  box-shadow: 0 2px 16px 0 rgba(80,255,226,0.06);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .12s, color .13s;
}
.main-nav .cta-btn {
  margin-left: 8px;
  background: var(--secondary);
  color: #1C2A38;
  box-shadow: 0 2px 18px 0 rgba(255,255,0,0.09);
}
.main-nav .cta-btn:hover {
  background: var(--neon);
  color: #1C2A38;
}

.mobile-menu-toggle {
  display: none;
  background: var(--neon);
  color: #1C2A38;
  border: none;
  border-radius: 50%;
  height: 44px;
  width: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  box-shadow: 0 2px 6px rgba(80,255,255,0.07);
  cursor: pointer;
  transition: background .15s, transform .13s;
}
.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 42, 56, 0.98);
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.63,0,.34,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--neon);
  border: none;
  margin-bottom: 22px;
  cursor: pointer;
  z-index: 2010;
  transition: color .15s, transform .13s;
}
.mobile-menu-close:active { transform: scale(0.93); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--neon);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 13px 0 13px 4px;
  margin-bottom: 8px;
  transition: color .15s, background .13s;
  border-radius: 8px;
  min-width: 180px;
  box-sizing: border-box;
}
.mobile-nav a:active, .mobile-nav a:focus {
  color: var(--secondary);
  background: #22324A;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 8px;
  }
  .container { max-width: 970px; }
}
@media (max-width: 900px) {
  .container { max-width: 750px; }
  .main-nav a { font-size: 1rem; padding: 7px 10px; }
}
@media (max-width: 850px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* FOOTER */
footer {
  background: #151e28;
  padding-top: 36px;
  padding-bottom: 20px;
  color: var(--accent);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(83,255,226,0.08);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--neon);
  font-size: 1.05rem;
  margin-bottom: 2px;
  transition: color .13s;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--secondary);
  font-size: 0.97rem;
}
.footer-contact img {
  vertical-align: middle;
  width: 19px;
  margin-right: 6px;
}
.footer-legal {
  color: #8294a7;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 14px;
  letter-spacing: .02em;
}

/* TEXT SECTIONS */
.text-section {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #1C2A38;
  color: var(--accent);
  box-shadow: 0 -2px 18px rgba(80,255,226,0.08);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 22px 18px;
  gap: 16px;
  transition: transform .26s, opacity .21s;
  transform: translateY(110%);
  opacity: 0;
}
.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

/* Cookie Modal (for preferences/settings) */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,32,51,.96);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .28s;
}
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1; } }
.cookie-modal {
  background: #232f41;
  border-radius: 20px;
  box-shadow: 0 2px 22px rgba(80,255,226,0.12);
  padding: 36px 32px;
  min-width: 320px;
  max-width: 99vw;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 1.7rem;
  background: none;
  color: var(--neon);
  border: none;
  cursor: pointer;
  transition: color .13s;
}
.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-pref-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  font-size: 1.08rem;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  border-radius: 20px;
  background: #18232e;
  border: 2px solid var(--neon);
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.cookie-toggle[data-enabled="true"] { background: var(--neon); }
.cookie-toggle-circle {
  position: absolute;
  top: 1px; left: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .17s cubic-bezier(.46,.2,.48,1), background .09s;
}
.cookie-toggle[data-enabled="true"] .cookie-toggle-circle {
  transform: translateX(18px);
  background: #18232e;
}

/* CONTENT RESPOSIVE: FLEX ONLY */
@media (max-width: 1260px) {
  .container { max-width: 97vw; }
}
@media (max-width: 950px) {
  .features-grid > div,
  .articles-teaser-grid > div,
  .articles-grid > div,
  .events-grid > div {
    min-width: 85vw;
    flex: 1 1 300px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .container {
    padding: 0 8px;
  }
  .footer-main {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 16px;
  }
  .features-grid,
  .articles-teaser-grid,
  .articles-grid,
  .events-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, main > section {
    padding: 22px 5px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 16px;
  }
}
@media (max-width: 560px) {
  .footer-main, .footer-contact, .cookie-modal {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-modal { padding: 14px 9px; min-width: 0; }
}

/* MICRO-INTERACTIONS */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .services-table th, .main-nav a, .mobile-nav a, .features-grid > div, .articles-teaser-grid > div, .articles-grid > div {
  transition: 
    background .16s,
    color .14s,
    box-shadow .18s,
    border-color .18s,
    transform .18s;
}

/* FOCUS STATES */
input, button, a:focus, .cta-btn:focus {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* HIDE/SHOW ON BREAKPOINTS (USE WHEN JS HANDLES MENU) */
.hide-mobile { display: block !important; }
.show-mobile { display: none !important; }
@media (max-width: 850px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* ACCESSIBILITY ENHANCEMENTS */
.sr-only {
  border: 0 !important;
  clip: rect(0,0,0,0) !important;
  height: 1px !important; width: 1px !important;
  margin: -1px !important; overflow: hidden !important;
  padding: 0 !important; position: absolute !important;
}

/* Z-INDEX HANDLING FOR OVERLAYS */
.mobile-menu { z-index: 2000; }
.cookie-consent-banner { z-index: 8000; }
.cookie-modal-overlay { z-index: 9000; }

/* ADDITIONAL ANIMATIONS */
@keyframes slideInMenu {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0vw); }
}
@keyframes slideOutMenu {
  from { transform: translateX(0vw); }
  to { transform: translateX(-100vw); }
}

/* --- END --- */
