/* ============================================================
   MedIT-HuB Website Stylesheet
   Design: Professional, clean, EU-compliant medical/tech theme
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary:        #0A2342;
  --primary-light:  #1a3a5c;
  --accent:         #00B4D8;
  --accent-dark:    #0077A8;
  --accent-light:   #90E0EF;
  --teal:           #0077A8;
  --success:        #10B981;
  --error:          #EF4444;
  --white:          #FFFFFF;
  --off-white:      #F8FAFC;
  --light-gray:     #E2E8F0;
  --mid-gray:       #94A3B8;
  --text:           #1E293B;
  --text-light:     #475569;

  --font-body:      'Inter', system-ui, sans-serif;
  --font-heading:   'Montserrat', system-ui, sans-serif;

  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);

  --transition:     all 0.25s ease;
  --nav-height:     72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Animations ---- */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left  { transform: translateX(-32px); }
.fade-in-right { transform: translateX(32px); }
.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible {
  opacity: 1;
  transform: none;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 35, 66, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}
.nav-links a.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); }
.nav-links a.nav-cta.active { background: var(--accent-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,180,216,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(0,119,168,0.1) 0%, transparent 60%),
    url('../images/hero-bg-pattern.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0A2342 0%, #0d2d52 50%, #0A2342 100%);
  opacity: 0.85;
  filter: brightness(0.4);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B4D8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  width: 100%;
}
.hero-text { max-width: 720px; margin-bottom: 3rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title .block { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,180,216,0.3);
  transform: translateY(-3px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,180,216,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Key Facts Bar ---- */
.key-facts {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 1.5rem 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--light-gray);
}
.fact-item:last-child { border-right: none; }
.fact-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.fact-icon .fa-solid,
.fact-icon .fa-regular,
.fact-icon .fa-brands { color: var(--accent-dark); }
.fact-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.fact-label { font-size: 0.72rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Section Utilities ---- */
.section-tag {
  display: inline-block;
  background: rgba(0,180,216,0.1);
  color: var(--accent-dark);
  border: 1px solid rgba(0,180,216,0.25);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  margin: 0 auto;
}

/* ---- About Section ---- */
.about-section { background: var(--off-white); padding: 5rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.highlight-item:hover { border-color: var(--accent-light); box-shadow: var(--shadow-sm); }
.highlight-icon { font-size: 1.5rem; flex-shrink: 0; }
.highlight-icon .fa-solid,
.highlight-icon .fa-regular,
.highlight-icon .fa-brands { color: var(--accent-dark); }
.highlight-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.highlight-text p { font-size: 0.83rem; color: var(--text-light); margin: 0; line-height: 1.5; }
.about-image-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-block img {
  width: 100%;
  height: 820px;
  object-fit: cover;
  display: block;
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}
.badge-icon { font-size: 1.5rem; }
.badge-icon .fa-solid,
.badge-icon .fa-regular,
.badge-icon .fa-brands { color: var(--accent-dark); }
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { font-size: 1rem; font-weight: 800; color: var(--primary); }
.badge-text span { font-size: 0.75rem; color: var(--text-light); }

/* ---- Objectives Section ---- */
.objectives-section { background: var(--white); padding: 5rem 0; }
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.objective-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--light-gray);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.obj-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.05em;
}
.obj-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.obj-icon .fa-solid,
.obj-icon .fa-regular,
.obj-icon .fa-brands { color: var(--accent-dark); }
.objective-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.objective-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* ---- Impact Section ---- */
.impact-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2d52 50%, var(--primary) 100%);
  padding: 5rem 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.impact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.impact-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.impact-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.impact-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
.impact-features { display: flex; flex-direction: column; gap: 1.25rem; }
.impact-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.impact-feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.impact-feature-icon .fa-solid,
.impact-feature-icon .fa-regular,
.impact-feature-icon .fa-brands { color: var(--accent); }
.impact-feature h4 { font-size: 0.9rem; font-weight: 700; color: white; margin-bottom: 0.35rem; }
.impact-feature p { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0; }

/* ---- Partners Section ---- */
.partners-section { background: var(--off-white); padding: 5rem 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.partner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.partner-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.partner-flag {
  width: 52px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.partner-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner-header-info h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.partner-role-badge {
  display: inline-block;
  background: rgba(0,180,216,0.2);
  border: 1px solid rgba(0,180,216,0.4);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.partner-card-body { padding: 1.5rem; }
.partner-type { font-size: 0.78rem; color: var(--accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.partner-card-body p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.partner-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag {
  background: rgba(0,180,216,0.08);
  color: var(--accent-dark);
  border: 1px solid rgba(0,180,216,0.2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.partner-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: var(--transition); }
.partner-link:hover { color: var(--accent-dark); }

.associated-partners {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--light-gray);
}
.associated-partners h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; }
.assoc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.assoc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
}
.assoc-flag {
  width: 36px;
  height: 24px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  flex-shrink: 0;
}
.assoc-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.country-flags img {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.35);
}
.assoc-info { display: flex; flex-direction: column; }
.assoc-info strong { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.assoc-info span { font-size: 0.75rem; color: var(--text-light); }

/* ---- EU Banner ---- */
.eu-banner {
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 2rem 0;
}
.eu-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.eu-logo-group img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.eu-disclaimer {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.65;
}
.eu-disclaimer strong { color: var(--text); }
.eu-disclaimer small { color: var(--mid-gray); font-size: 0.72rem; }

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary), #0d2d52);
  padding: calc(var(--nav-height) + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(0,180,216,0.1) 0%, transparent 60%);
}
.page-header-content { position: relative; z-index: 1; max-width: 700px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.page-header p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; }

/* ---- Work Package Tabs ---- */
.wp-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}
.wp-tab {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.wp-tab:hover { background: var(--off-white); color: var(--primary); }
.wp-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.wp-content { display: none; }
.wp-content.active { display: block; }
.wp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
}
.wp-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.wp-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.wp-card-header h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  max-width: 500px;
}
.wp-meta { text-align: right; flex-shrink: 0; }
.wp-budget {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.wp-lead { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.wp-card-body {
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.wp-description h4, .wp-deliverables h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}
.wp-description p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.wp-deliverables ul { display: flex; flex-direction: column; gap: 0.6rem; }
.wp-deliverables li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.wp-deliverables li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.wp-timeline-bar {
  padding: 1.25rem 2.5rem;
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  display: none;
  align-items: center;
  gap: 1rem;
}
.timeline-label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.timeline-track {
  flex: 1;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 4px;
  position: relative;
}
.timeline-months { font-size: 0.78rem; color: var(--mid-gray); white-space: nowrap; }

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--teal), var(--primary));
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.2);
}
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-light); }
.timeline-period {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.timeline-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.timeline-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ---- Contact Form ---- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}
.form-input::placeholder { color: var(--mid-gray); }

/* ---- Footer ---- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 0 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.55);
}
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-link i { font-size: 0.9rem; }
.social-link:hover { background: var(--accent); color: white; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col li a:hover { color: var(--accent); }
.footer-eu-section {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.footer-eu-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.footer-eu-emblem {
  flex-shrink: 0;
  width: 210px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.footer-eu-funding {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.footer-eu-funding p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin: 0;
}
.footer-eu-funding strong { color: rgba(255,255,255,0.85); font-weight: 700; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-block { max-height: 320px; }
  .about-image-block img { height: 320px; }
  .impact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .objectives-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact-item:nth-child(3) { border-right: none; }
  .fact-item:nth-child(4) { border-top: 1px solid var(--light-gray); }
  .wp-card-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 35, 66, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .objectives-grid { grid-template-columns: 1fr; }
  .assoc-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-item:nth-child(2n) { border-right: none; }
  .fact-item:nth-child(3) { border-right: 1px solid var(--light-gray); }
  .fact-item:nth-child(n+3) { border-top: 1px solid var(--light-gray); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-eu-inner { flex-direction: column; align-items: left; gap: 1.5rem; }
  .footer-eu-emblem { width: 160px; }
  .wp-tabs { flex-direction: column; }
  .wp-tab { min-width: unset; }
  .wp-card-header { flex-direction: column; }
  .wp-meta { text-align: left; }
  .wp-timeline-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .timeline-label { display: block; width: 100%; }
  .timeline-track { margin-top: 0.5rem; width: 100%; min-height: 12px; height: 12px; }
  .timeline-fill { height: 100%; }
  .timeline-months { margin-top: 0.5rem; width: 100%; }
  .eu-banner-inner { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .impact-stats { grid-template-columns: 1fr 1fr; }
  
  /* Mobile optimization: stack sections vertically */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Remove left borders from budget items on mobile */
  [style*="border-left:1px solid rgba(255,255,255,0.1)"] {
    border-left: none !important;
  }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .impact-stats { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.75rem; }
}
