* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
}

*:focus {
  outline: none;
}

.tabs { display: flex; }
.tablink {
  background: rgba(0,40,80,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background .25s ease, color .25s ease;
}
.tablink:hover { background: rgba(0,70,140,0.78); }
.tablink.active { background: rgba(0,110,200,0.85); }

/* Overlay variant positioned over hero */
.tabs-overlay {
  position: fixed;
  top: 24px;
  left: 6%;
  z-index: 1000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px -8px rgba(0,40,80,0.55);
  background: url('assets/hero.jpg') center top / cover no-repeat;
}

@media (max-width: 820px) {
  .tabs-overlay { left: 4%; top: 16px; }
  .tablink { padding: 12px 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .tabs-overlay { flex-wrap: wrap; max-width: 92%; }
  .tablink { flex: 1 1 50%; }
}

html, body { height: 100%; }
body { 
  background: #000;
  overflow-x: hidden;
}
#Home.tabcontent { padding: 0; background: transparent; }
.home-tab { padding-top: 0; }

.tabcontent:not(.home-tab) { 
  padding-top: 140px; /* ensure content not hidden under fixed tabs */
}

.tabcontent:not(.home-tab)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(24px + 14px + 30px + 14px + 24px); /* top margin + top padding + line height + bottom padding + bottom margin */
  background: url('assets/hero.jpg') center top / cover no-repeat;
  z-index: 999;
  pointer-events: none;
}

@media (max-width: 820px) {
  .tabcontent:not(.home-tab)::before {
    height: calc(16px + 12px + 28px + 12px + 16px); /* adjusted for mobile: top margin + padding + content + padding + bottom margin */
  }
}

@media (max-width: 560px) {
  .tabcontent:not(.home-tab)::before {
    height: calc(16px + 12px + 56px + 12px + 16px); /* adjusted for wrapped tabs: double height for 2 rows */
  }
}

.tabcontent {
  display: none;
  padding: 20px;
  background: #fff; /* white background for content */
}

h2 {
  color: #003366;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 16px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0088ff, #00aaff);
  border-radius: 2px;
}

/* Hero Section */
.hero, :root { /* add CSS variables on root for easy tweaking */
  --hero-glow-start: rgba(60,180,255,0.25);
  --hero-glow-end: rgba(0,20,40,0.55);
  --hero-overlay-top: rgba(0,30,60,0.30);
  --hero-overlay-bottom: rgba(0,10,20,0.55);
}
.hero {
  position: relative;
  min-height: 100vh; /* full viewport */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px; /* extra top padding for overlaid tabs */
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
  background: url('assets/hero.jpg') center center / cover no-repeat;
}

.hero:before { /* subtle radial glow behind content (lightened) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--hero-glow-start), var(--hero-glow-end) 70%);
  pointer-events: none;
}

.hero-overlay { /* darken for contrast (lightened) */
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-bottom) 70%);
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  margin: 0 0 24px;
  font-weight: 500;
}

.hero .meta {
  margin: 4px 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.cta {
  margin-top: 28px;
  background: linear-gradient(135deg,#00aaff,#0066cc);
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 6px 18px -4px rgba(0, 90, 160, 0.6);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta:hover {
  background: linear-gradient(135deg,#33bbff,#0088ff);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero { padding: 120px 18px 60px; min-height: 100vh; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero .tagline { font-size: 1rem; }
}

/* Objectives Expanded */
.objectives-expanded {
  max-width: 1200px;
  margin: 0 auto;
}

.objectives-expanded p {
  max-width: 100%;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.objectives-expanded ul {
  max-width: 100%;
  padding-left: 0;
  list-style: none;
  margin-bottom: 24px;
}

.objectives-expanded ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.7;
  color: #34495e;
}

.objectives-expanded ul li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: #0088ff;
  font-weight: bold;
  font-size: 1.2rem;
}
.objectives-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.objectives-figures figure {
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px -8px rgba(0,30,60,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objectives-figures figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0,60,120,0.25);
}

.objectives-figures img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e0e7f0;
}

.objectives-figures figcaption {
  font-size: 0.95rem;
  margin-top: 16px;
  color: #2c3e50;
  line-height: 1.5;
  font-weight: 500;
}
@media (max-width: 740px) {
  .objectives-figures { flex-direction: column; }
}

/* Activities Section */
.objectives-activities {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 48px 32px 32px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border-radius: 16px;
  border-top: 4px solid #0088ff !important;
  box-shadow: 0 4px 20px -4px rgba(0,30,60,0.1);
}

.objectives-activities h3 {
  color: #003366;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.wp-group {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 10px;
  border-left: 5px solid #0088ff !important;
  box-shadow: 0 2px 12px -4px rgba(0,30,60,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-group:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px -4px rgba(0,60,120,0.18);
}

.wp-group h4 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: #003366;
  font-weight: 600;
  line-height: 1.4;
}

.wp-group ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.wp-group li {
  line-height: 1.7;
  margin: 10px 0;
  padding-left: 28px;
  position: relative;
  color: #34495e;
}

.wp-group li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00aa66;
  font-weight: bold;
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .objectives-activities h3 { font-size: 1.35rem; }
  .wp-group h4 { font-size: 0.98rem; }
}

/* Results Section */
.results-summary, .results-deliverables, .results-preliminary, .results-next-steps {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.results-summary h3, .results-deliverables h3, .results-preliminary h3, .results-next-steps h3 {
  color: #003366;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: -0.5px;
}

.results-summary h3::after, .results-deliverables h3::after, .results-preliminary h3::after, .results-next-steps h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #0088ff, #00aaff);
  border-radius: 2px;
}

.results-summary p {
  max-width: 100%;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.calibration-steps {
  max-width: 100%;
  padding-left: 0;
  margin: 24px 0;
  list-style: none;
}

.calibration-steps li {
  line-height: 1.7;
  margin: 14px 0;
  padding-left: 32px;
  position: relative;
  color: #34495e;
}

.calibration-steps li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0088ff, #00aaff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.calibration-steps {
  counter-reset: item;
}
.results-figure {
  max-width: 60%;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px -8px rgba(0,30,60,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 1024px) {
  .results-figure {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .results-figure {
    max-width: 90%;
  }
}

@media (max-width: 560px) {
  .results-figure {
    max-width: 100%;
  }
}

.results-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0,60,120,0.25);
}

.results-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e0e7f0;
}

.results-figure figcaption {
  font-size: 0.95rem;
  margin-top: 16px;
  color: #2c3e50;
  line-height: 1.5;
  font-weight: 500;
}
.next-steps {
  max-width: 100%;
  padding-left: 0;
  margin: 24px 0;
  list-style: none;
}

.next-steps li {
  line-height: 1.7;
  margin: 14px 0;
  padding: 16px 20px 16px 56px;
  position: relative;
  background: #f8fbff;
  border-radius: 8px;
  border-left: 4px solid #0088ff;
  color: #34495e;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-steps li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px -4px rgba(0,60,120,0.15);
}

.next-steps li::before {
  content: '➤';
  position: absolute;
  left: 20px;
  color: #0088ff;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.deliverable-item {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #d0dff0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px -6px rgba(0,30,60,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliverable-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px -6px rgba(0,60,120,0.18);
}

.deliverable-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,100,200,0.12);
}

.deliverable-content h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #003366;
}

.deliverable-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
}

.deliverable-content a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.deliverable-content a:hover {
  color: #0088ff;
  text-decoration: underline;
}

/* Preliminary Results */
.results-preliminary h4 {
  color: #074072;
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.publications-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  max-width: 880px;
}

.publications-list li {
  background: #f9fbfd;
  border-left: 4px solid #0088ff !important;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,30,60,0.08);
  line-height: 1.6;
}

.publications-list strong {
  display: block;
  color: #003366;
  margin-bottom: 6px;
}

.publications-list em {
  display: block;
  color: #0d5e99;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255,140,0,0.3);
}

.conference-item {
  background: #f0f7ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
  max-width: 880px;
  box-shadow: 0 3px 10px rgba(0,60,120,0.1);
}

.conference-item p {
  margin: 0;
  line-height: 1.6;
}

.conference-item strong {
  display: block;
  color: #003366;
  margin-bottom: 6px;
}

.conference-item em {
  display: block;
  color: #0d5e99;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.conference-item a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.conference-item a:hover {
  color: #0088ff;
  text-decoration: underline;
}

@media (max-width:640px){
  .results-figure { padding: 12px 12px 16px; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .deliverable-item { padding: 16px; }
  .deliverable-icon { width: 50px; height: 50px; font-size: 2rem; }
  .results-summary h3, .results-deliverables h3, .results-preliminary h3, .results-next-steps h3 {
    font-size: 1.3rem;
  }
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.team-member {
  display: flex;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 14px 16px 16px;
  box-shadow: 0 4px 12px -6px rgba(0,30,60,0.12);
  transition: box-shadow .25s ease, transform .25s ease;
}
.team-member:hover { box-shadow: 0 6px 18px -6px rgba(0,40,80,0.18); transform: translateY(-3px); }
.team-member img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: #eef3f7;
}
.member-info h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #05395f;
}
.member-info p { margin: 0; font-size: 0.83rem; line-height: 1.35; }
.member-info .role { font-weight: 600; color: #0d5e99; }
.funding { margin-top: 32px; }
@media (max-width:600px){
  .team-member { flex-direction: row; }
  .team-member img { width: 60px; height: 60px; }
}
