
/* ===== Modern base styles & utilities ===== */
:root{
  --bg: rgba(0,0,0,0.4);
  --card-bg: rgba(20,20,25,0.7);
  --accent: #3EB64B;
  --accent-2: #5f499e;
  --text: #f5f7fa;
  --muted: #cfd6dd;
  --shadow: 0 10px 30px rgba(0,0,0,.3);
}

html{scroll-behavior:smooth}
html,body{max-width:100%; overflow-x:hidden;}

body {
  color: var(--text);
}

.section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
  text-shadow: none;
}

.section .lead {
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(16px, 2.2vw, 18px);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(2px);
}

.card h3 {margin: 0 0 6px; font-size: clamp(18px,2.1vw,22px); text-shadow:none}
.card p {color: var(--muted); text-shadow:none}

.btnbar { display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.btn {
  background: var(--accent);
  color: white;
  border-radius: 10px;
  padding: 10px 16px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn.secondary { background: var(--accent-2); }

.band-cta {
  background: linear-gradient(90deg, rgba(62,182,75,.85), rgba(95,73,158,.85));
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
}

.stats { display:grid; grid-template-columns: repeat(4,1fr); gap:12px; margin-top:10px }
.stat { background: var(--card-bg); border-radius:12px; text-align:center; padding:16px 10px }
.stat .n { font-size: clamp(22px,3vw,32px); font-weight:700 }

/* Newsletter simple form */
.newsletter { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px }
.newsletter input[type="email"]{
  padding:12px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.15);
  flex:1 1 260px; background: rgba(255,255,255,.1); color:white
}

/* Cards grids on news/publications overview pages */
.cards .card_content{ max-height:none; overflow:visible }
.card_content{ max-height:none !important; overflow:visible !important }

/* Gallery layout small tweak */
.gallery-grid{ columns: 3 300px; column-gap: 14px }
.gallery-grid img{ width:100%; border-radius:12px; margin:0 0 14px; display:block }

/* Mobile */
@media (max-width: 900px){
  .grid.cards-3{ grid-template-columns: 1fr; }
  .band-cta{ flex-direction: column; align-items: flex-start }
  .stats{ grid-template-columns: repeat(2,1fr) }
  .section{ margin:40px auto }
  .topnav a{ font-size: 16px; } /* minor nav legibility */
  .container h1{ font-size: 16vw !important }
  .container p{ font-size: 5vw !important }
}

/* Improve contrast for default paragraphs on image backgrounds */
.text-panel{
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
}

/* Prevent horizontal overflow from wide elements */
img, .section, .grid, .card, .band-cta { max-width: 100%; }
    

/* === Desktop compact panels === */
@media (min-width: 1024px){
  .section{ max-width: 980px; margin: 32px auto; }
  .grid{ gap: 12px; }
  .card{ padding: 14px; border-radius: 12px; }
  .band-cta{ padding: 20px; border-radius: 14px; }
  .section h2{ font-size: 28px; }
  .section .lead{ font-size: 16px; }
  .stats{ gap: 10px; }
  .stat{ padding: 12px 8px; }
}


/* === Desktop compact v2 === */
@media (min-width: 1024px){
  .section{ max-width: 980px; margin: 24px auto; }
  .text-panel{ padding: 12px; border-radius: 10px; }
  .grid{ gap: 10px; }
  .card{ padding: 12px; border-radius: 10px; }
  .band-cta{ padding: 16px; border-radius: 12px; }
  .section h2{ font-size: 24px; }
  .section .lead{ font-size: 15px; }
  .stats{ gap: 8px; }
  .stat{ padding: 10px 6px; }
}

@media (min-width: 1400px){
  .section{ max-width: 1080px; }
  .section h2{ font-size: 26px; }
  .section .lead{ font-size: 16px; }
}

/* section spacing v2 */
.section{ margin-top: 28px; margin-bottom: 28px; }
