/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables for design system */
:root {
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - Green and Blue Harmony */
  --primary-deep: #1b4332;
  /* Deep Pine Green */
  --primary: #2d6a4f;
  /* Forest Green */
  --primary-light: #52b788;
  /* Leaf Green */
  --primary-glow: rgba(82, 183, 136, 0.15);

  --secondary-deep: #023047;
  /* Ocean Deep Blue */
  --secondary: #219ebc;
  /* Sky/Water Blue */
  --secondary-light: #8ecae6;
  /* Light Sky Blue */
  --secondary-glow: rgba(33, 158, 188, 0.15);

  --accent: #f4a261;
  /* Warm Sun Gold */
  --accent-hover: #e76f51;
  /* Sunset Terracotta */

  --text-main: #212529;
  /* Dark Charcoal */
  --text-muted: #6c757d;
  /* Slate Grey */
  --text-light: #f8f9fa;
  /* Off-white */

  --bg-light: #f4f7f6;
  /* Soft tint of green-grey background */
  --bg-white: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.85);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow-green: 0 15px 30px -5px rgba(45, 106, 79, 0.25);
  --shadow-glow-blue: 0 15px 30px -5px rgba(33, 158, 188, 0.25);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary-deep);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.35);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-deep) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(2, 48, 71, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 6px 16px rgba(2, 48, 71, 0.25);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Sticky Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  transition: var(--transition-fast);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 3px;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary-deep);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  align-items: center;
  color: var(--secondary-deep);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.nav-social:hover {
  color: #e1306c;
  /* Instagram Pink */
  transform: scale(1.1);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--secondary-deep);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 140px 0 100px 0;
  background-image: linear-gradient(135deg, rgba(2, 48, 71, 0.18) 0%, rgba(27, 67, 50, 0.18) 100%), url('images/wallpaper1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
  color: #ffffff;
}

.hero.mobilities-hero {
  background-image: linear-gradient(135deg, rgba(2, 48, 71, 0.18) 0%, rgba(27, 67, 50, 0.18) 100%), url('images/wallpaper3.jpg');
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 158, 188, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(82, 183, 136, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Home Section Layouts */
.section {
  padding: 100px 0;
}

.bg-white-section {
  background-color: var(--bg-white);
}

/* Project Info Section */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.overview-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.meta-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.meta-card {
  padding: 16px;
  border-left: 4px solid var(--primary);
}

.meta-card h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.meta-card p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-deep);
  margin: 0;
}

.overview-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-display {
  max-width: 320px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.06));
}



/* Partners Grid */
.partners-container {
  margin-top: 40px;
}

.partners-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.5rem;
  color: var(--secondary-deep);
  position: relative;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.partner-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-fast);
}

.partner-card.coordinator {
  background: linear-gradient(180deg, rgba(82, 183, 136, 0.04) 0%, var(--bg-white) 100%);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
}

.partner-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  align-self: center;
}

.partner-badge.coord {
  background: rgba(45, 106, 79, 0.1);
  color: var(--primary);
}

.partner-badge.part {
  background: rgba(33, 158, 188, 0.1);
  color: var(--secondary-deep);
}

.partner-logo-container {
  height: 150px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.partner-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.06) 0%, rgba(33, 158, 188, 0.06) 100%);
  border-radius: var(--border-radius-sm);
  border: 1px dashed rgba(33, 158, 188, 0.3);
  color: var(--secondary-deep);
  padding: 12px;
}

.partner-logo-placeholder i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.partner-logo-placeholder span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.partner-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  flex-grow: 1;
}

.partner-country {
  color: var(--secondary-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Objectives Section */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 45px;
}

.objective-card {
  padding: 40px 30px;
  transition: var(--transition-smooth);
  height: 100%;
}

.objective-card:hover {
  box-shadow: var(--shadow-md);
}

.objective-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.objective-card:nth-child(odd) .objective-icon-wrapper {
  background: var(--primary-glow);
  color: var(--primary);
}

.objective-card:nth-child(even) .objective-icon-wrapper {
  background: var(--secondary-glow);
  color: var(--secondary-deep);
}

.objective-card:hover .objective-icon-wrapper {
  /* static style, no scale or rotate */
}

.objective-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.objective-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Expected Results section (counters) */
.results-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  /* static, no hover scale */
}

.stat-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-light);
  border: 8px solid transparent;
}

.stat-card:nth-child(1) .stat-circle {
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(82, 183, 136, 0.2);
}

.stat-card:nth-child(2) .stat-circle {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(244, 162, 97, 0.2);
}

.stat-card:nth-child(3) .stat-circle {
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(33, 158, 188, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary-deep);
  line-height: 1;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stat-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Implementation Streams styling */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.stream-card {
  padding: 40px 30px;
  position: relative;
  height: 100%;
}

.stream-step {
  position: absolute;
  top: -24px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--shadow-sm);
}

.stream-card:nth-child(1) .stream-step {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stream-card:nth-child(2) .stream-step {
  background: linear-gradient(135deg, var(--secondary-deep) 0%, var(--secondary) 100%);
}

.stream-card:nth-child(3) .stream-step {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.stream-card h4 {
  margin-top: 15px;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.stream-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Mobilities Page Elements (Light Split Layout Style) --- */
body.mobilities-page {
  background-color: #ffffff;
  color: var(--text-main);
}

/* Scoped headings and paragraphs inside the mobility sections to prevent footer color overrides */
.mobility-section h1,
.mobility-section h2,
.mobility-section h3,
.mobility-section h4,
.mobility-section h5,
.mobility-section h6 {
  color: var(--secondary-deep);
}

.mobility-section p {
  color: var(--text-main);
}

/* Smooth gradient on Hero matching home page overlay */
body.mobilities-page .hero.mobilities-hero {
  background-image: linear-gradient(135deg, rgba(2, 48, 71, 0.18) 0%, rgba(27, 67, 50, 0.18) 100%), url('images/wallpaper3.jpg');
}
body.results-page .hero.results-hero {
  background-image: linear-gradient(135deg, rgba(2, 48, 71, 0.18) 0%, rgba(27, 67, 50, 0.18) 100%), url('images/wallpaper2.jpg');
}

/* Mobility Sections with Alternating Backgrounds */
.mobility-section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Grid Layout */
.mobility-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 993px) {
  .mobility-body {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }

  .mobility-section.upcoming .mobility-body {
    grid-template-columns: 1fr;
    max-width: 800px;
  }

  .mobility-media {
    margin-top: 55px;
  }
}

/* Metadata and Badges */
body.mobilities-page .mobility-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

body.mobilities-page .mobility-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.mobilities-page .badge {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
  border: 1px solid currentColor;
}

/* Themed Colors & Accents */
/* Themed Colors & Accents */
.croatia-section {
  background-color: #fffbf9;
  /* Soft terracotta background wash */
}

.croatia-section h3 {
  background: rgba(231, 111, 81, 0.18);
  border-left: 5px solid #e76f51;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.croatia-section .badge {
  color: #e76f51 !important;
  background: rgba(231, 111, 81, 0.1) !important;
}

.croatia-section .accent-text {
  color: #e76f51;
}

.norway-section {
  background-color: #f5fbfe;
  /* Soft ocean blue background wash */
}

.norway-section h3 {
  background: rgba(33, 158, 188, 0.18);
  border-left: 5px solid #219ebc;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.norway-section .badge {
  color: #219ebc !important;
  background: rgba(33, 158, 188, 0.1) !important;
}

.norway-section .accent-text {
  color: #219ebc;
}

.turkey-section {
  background-color: #f6fbf8;
  /* Soft forest green background wash */
}

.turkey-section h3 {
  background: rgba(45, 106, 79, 0.18);
  border-left: 5px solid #2d6a4f;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.turkey-section .badge {
  color: #2d6a4f !important;
  background: rgba(45, 106, 79, 0.1) !important;
}

.turkey-section .accent-text {
  color: #2d6a4f;
}

.spain-section {
  background-color: #fefdfb;
  /* Soft sun gold background wash */
}

.spain-section h3 {
  background: rgba(244, 162, 97, 0.22);
  border-left: 5px solid #f4a261;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.spain-section .badge {
  color: #f4a261 !important;
  background: rgba(244, 162, 97, 0.1) !important;
}

.spain-section .accent-text {
  color: #f4a261;
}

body.mobilities-page h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  /* Refined block font size */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-top: 8px;
  margin-bottom: 24px;
  color: var(--secondary-deep);
}

@media (max-width: 768px) {
  body.mobilities-page h3 {
    font-size: 1.45rem;
  }
}

body.mobilities-page .mobility-description {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Outlined Editorial Buttons */
body.mobilities-page .btn-outline-editorial {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 2px solid rgba(2, 48, 71, 0.20);
  color: var(--secondary-deep);
  background: transparent;
  margin-top: 15px;
}

body.mobilities-page .btn-outline-editorial i {
  /* static style, no dynamic motion */
}

.croatia-section .btn-outline-editorial {
  border-color: rgba(231, 111, 81, 0.4);
  color: #e76f51;
}

.norway-section .btn-outline-editorial {
  border-color: rgba(33, 158, 188, 0.4);
  color: #219ebc;
}

.turkey-section .btn-outline-editorial {
  border-color: rgba(45, 106, 79, 0.4);
  color: #2d6a4f;
}

.spain-section .btn-outline-editorial {
  border-color: rgba(244, 162, 97, 0.4);
  color: #f4a261;
}

/* Media Titles & Galleries */
body.mobilities-page .media-title {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.mobilities-page .gallery-item {
  border-radius: 16px;
  border: none;
  box-shadow: none;
}

.gallery-grid[data-gallery="croatia"] {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid[data-gallery="croatia"] .gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 21 / 9;
}

.gallery-grid[data-gallery="croatia"] .gallery-item:not(:first-child) {
  grid-column: span 1;
  aspect-ratio: 16 / 9;
}

.gallery-grid[data-gallery="norway"] {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid[data-gallery="norway"] .gallery-item:first-child {
  grid-column: span 3;
  aspect-ratio: 21 / 9;
}

.gallery-grid[data-gallery="norway"] .gallery-item:not(:first-child) {
  grid-column: span 1;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item::after {
  content: '\f002';
  font-family: sans-serif;
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition-fast);
  font-size: 1.5rem;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Spotify Integration styles */
body.mobilities-page .spotify-integration {
  background: transparent;
  padding: 0;
  border: none;
  margin-top: 0;
  margin-bottom: 24px;
}

body.mobilities-page .spotify-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.mobilities-page .spotify-icon {
  font-size: 1.8rem;
  color: #1ed760;
}

body.mobilities-page .spotify-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary-deep);
}

/* Upcoming Info Box */
body.mobilities-page .upcoming-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
}

/* Desktop line break helper */
@media (min-width: 993px) {
  br.desktop-only {
    display: inline;
  }
}

@media (max-width: 992px) {
  br.desktop-only {
    display: none;
  }
}

.spotify-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #191414;
  /* Spotify Dark */
  border-radius: var(--border-radius-sm);
  color: white;
  transition: var(--transition-smooth);
}

.spotify-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 215, 96, 0.2);
  color: white;
}

.spotify-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotify-details img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.spotify-track-info {
  display: flex;
  flex-direction: column;
}

.spotify-playlist-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
}

.spotify-playlist-curator {
  font-size: 0.75rem;
  color: #b3b3b3;
}

.spotify-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1ed760;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Lightbox Modal styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition-fast);
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-close:hover {
  color: white;
  transform: scale(1.1);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* --- Results Page Elements --- */
.results-section {
  padding: 80px 0;
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.result-card {
  padding: 45px;
  transition: var(--transition-smooth);
}

.result-card:hover {
  box-shadow: var(--shadow-lg);
}

.result-meta {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 24px;
}

.result-card:nth-child(1) .result-meta {
  background: var(--primary-glow);
  color: var(--primary);
}

.result-card:nth-child(2) .result-meta {
  background: var(--secondary-glow);
  color: var(--secondary-deep);
}

.result-card:nth-child(3) .result-meta {
  background: rgba(244, 162, 97, 0.15);
  color: #d77a2a;
}

.result-card h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.result-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 900px;
}

.modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.module-item {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--secondary);
}

.result-card:nth-child(1) .module-item {
  border-left-color: var(--primary);
}

.module-item h5 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.module-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Translation PDF Section */
.download-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--secondary-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  color: var(--primary);
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.download-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-lang {
  line-height: 1.1;
}

.download-format {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Local results adjustments */
.webinar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.webinar-item {
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
}

.webinar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--primary-light);
}

.webinar-item h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.webinar-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: linear-gradient(135deg, var(--secondary-deep) 0%, var(--secondary) 100%);
  border-radius: var(--border-radius-md);
  color: white;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.newsletter-card-content {
  max-width: 60%;
}

.newsletter-card-content h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.newsletter-card-content p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.eguides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.eguide-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--border-radius-sm);
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.eguide-card:hover {
  transform: translateY(-4px);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.eguide-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.eguide-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.eguide-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  text-transform: uppercase;
}

.eguide-card:hover .eguide-status {
  background: var(--primary-glow);
  color: var(--primary);
}

/* Footer & Disclaimers */
.footer {
  background-color: var(--secondary-deep);
  color: var(--text-light);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-info h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-links h4,
.footer-social h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* EU Disclaimer Banner */
.eu-disclaimer-wrapper {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.eu-logo-svg,
.eu-logo-img {
  flex-shrink: 0;
  width: 140px;
  height: auto;
  border-radius: 4px;
}

.eu-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Media Queries / Responsiveness --- */
@media (max-width: 992px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .overview-visual {
    order: -1;
  }

  .meta-details {
    justify-content: center;
  }

  .results-preview-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 40px auto 0 auto;
  }

  .streams-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 40px auto 0 auto;
    gap: 50px;
  }

  .mobility-card {
    padding: 30px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 100px 0 60px 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Navigation burger toggle */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    flex-direction: column;
    padding: 40px 0;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }

  .result-card {
    padding: 24px;
  }

  .newsletter-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .newsletter-card-content {
    max-width: 100%;
  }

  .eu-disclaimer-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Homepage Section Colored Backdrops */
.bg-light-green {
  background-color: #eef7f2 !important;
  /* Soft sage green wash */
}

.bg-light-blue {
  background-color: #edf7fa !important;
  /* Soft sky blue wash */
}

.bg-light-mint {
  background-color: #f4faf6 !important;
  /* Soft fresh mint wash */
}

.bg-light-gold {
  background-color: #faf7f2 !important;
  /* Soft sun gold wash */
}

.bg-light-cream {
  background-color: #faf8f5 !important;
  /* Soft warm cream wash */
}

/* Colored Card Backdrops to reduce whiteness */


/* Objectives Cards */
.objective-card:nth-child(odd) {
  background: rgba(45, 106, 79, 0.04) !important;
  border-color: rgba(45, 106, 79, 0.15) !important;
}

.objective-card:nth-child(even) {
  background: rgba(33, 158, 188, 0.04) !important;
  border-color: rgba(33, 158, 188, 0.15) !important;
}

/* Expected Results Stat Cards */
.stat-card:nth-child(1) {
  background: rgba(45, 106, 79, 0.04) !important;
  border-color: rgba(45, 106, 79, 0.15) !important;
}

.stat-card:nth-child(2) {
  background: rgba(244, 162, 97, 0.04) !important;
  border-color: rgba(244, 162, 97, 0.15) !important;
}

.stat-card:nth-child(3) {
  background: rgba(33, 158, 188, 0.04) !important;
  border-color: rgba(33, 158, 188, 0.15) !important;
}

/* Implementation Streams Cards */
.stream-card:nth-child(1) {
  background: rgba(45, 106, 79, 0.04) !important;
  border-color: rgba(45, 106, 79, 0.15) !important;
}

.stream-card:nth-child(2) {
  background: rgba(33, 158, 188, 0.04) !important;
  border-color: rgba(33, 158, 188, 0.15) !important;
}


/* Custom backgrounds for card bodies removed for dark theme */

/* Results Page: Custom background washes for Result Cards */
.results-grid .result-card:nth-child(1) {
  background-color: #f6fbf8 !important;
  /* Soft green wash */
  border-color: rgba(45, 106, 79, 0.15) !important;
}

.results-grid .result-card:nth-child(2) {
  background-color: #f5fbfe !important;
  /* Soft blue wash */
  border-color: rgba(33, 158, 188, 0.15) !important;
}

.results-grid .result-card:nth-child(3) {
  background-color: #fffbf9 !important;
  /* Soft warm wash */
  border-color: rgba(231, 111, 81, 0.15) !important;
}

/* Soft white background contrast inside results items to pop out */
.result-card .module-item,
.result-card .webinar-item,
.result-card .eguide-card {
  background-color: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
}

/* Concrete Outputs Styles */
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 992px) {
  .outputs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .outputs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.output-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  position: relative;
  text-align: left;
}

.output-card:hover {
  box-shadow: var(--shadow-md);
}

/* Alternate colors for outputs to match our harmony palette */
.output-card:nth-child(1) {
  background: rgba(45, 106, 79, 0.04) !important;
  border: 1px solid rgba(45, 106, 79, 0.15) !important;
}

.output-card:nth-child(1) .output-num {
  color: var(--primary);
}

.output-card:nth-child(2) {
  background: rgba(33, 158, 188, 0.04) !important;
  border: 1px solid rgba(33, 158, 188, 0.15) !important;
}

.output-card:nth-child(2) .output-num {
  color: var(--secondary);
}

.output-card:nth-child(3) {
  background: rgba(244, 162, 97, 0.04) !important;
  border: 1px solid rgba(244, 162, 97, 0.15) !important;
}

.output-card:nth-child(3) .output-num {
  color: var(--accent-hover);
}

.output-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.output-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-deep);
  margin-bottom: 4px;
  line-height: 1.2;
}

.output-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.9;
  margin-bottom: 16px;
}

.output-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.output-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary-deep);
  transition: var(--transition-fast);
}

.output-link:hover {
  color: var(--primary-light);
}

.output-link i {
  transition: transform 0.2s ease;
}

.output-link:hover i {
  /* static style, no transition */
}

/* Social Media Card styling */
.social-card {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 24px 48px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(225, 48, 108, 0.15) !important;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.social-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 48, 108, 0.25) !important;
}

.instagram-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}