/* =============================================
   VRANGOVI - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  background: #F5F3EF;
  line-height: 1.6;
}

body.dark-theme {
  background: #111111;
  color: #f1f5f9;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #EDE9E3; }
::-webkit-scrollbar-thumb { background: #1D4ED8; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #1e40af; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.section { padding: clamp(3rem, 6vw, 6rem) 0; }

.section-sm { padding: clamp(2rem, 4vw, 4rem) 0; }

.bg-white {
  background-color: #FFFFFF !important;
  background-image: radial-gradient(circle, rgba(15,23,42,0.055) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}
.bg-light { background: #EDE9E3 !important; }
.bg-dark { background: #EBF0F8 !important; }
.bg-darker { background: #E0E7F3 !important; }
.bg-card-dark { background: #FFFFFF !important; }
.bg-gradient-blue { background: linear-gradient(to right, #1D4ED8, #3B82F6) !important; }

/* =============================================
   GRID & FLEX
   ============================================= */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.text-center { text-align: center; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1D4ED8;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  width: fit-content;
}
.text-center .label,
.heading-center .label,
.hero-content .label {
  margin-left: auto;
  margin-right: auto;
}
.label::before { display: none; }

.label-red { color: #1D4ED8; }

h1, h2, h3, h4 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #0F172A;
  margin-bottom: 1rem;
}

.section-title-white { color: #FFFFFF; }

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #334155;
  max-width: 56rem;
  margin: 0 auto;
}

.section-subtitle-dark { color: #475569; }

.heading-center { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 5rem); }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.nav-logo-img {
  height: clamp(2.25rem, 3.2vw, 2.5rem);
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  transition: color 0.2s;
}

.nav-link:hover { color: #0F172A; }
.nav-link.active { color: #1D4ED8; }

.nav-btn {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0.5rem;
  transition: box-shadow 0.3s;
}

.nav-btn:hover { box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }

/* ---- Language Switcher ---- */
/* ---- Language Switcher Dropdown ---- */
.lang-switcher {
  position: relative;
  margin-left: 0.75rem;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1.5px solid rgba(99,102,241,0.35);
  border-radius: 2rem;
  padding: 0.3rem 0.6rem 0.3rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.05em;
  line-height: 1;
}

.lang-current:hover,
.lang-switcher.open .lang-current {
  border-color: #6366f1;
  background: rgba(99,102,241,0.07);
  color: #4f46e5;
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }

.lang-arrow {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 1px;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 8px 30px rgba(15,23,42,0.13), 0 2px 8px rgba(15,23,42,0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1),
              transform 0.2s cubic-bezier(0.4,0,0.2,1);
  z-index: 300;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover { background: #f1f5f9; color: #1e293b; }
.lang-option--active { background: #eef2ff; color: #4f46e5; font-weight: 700; }
.lang-option--active:hover { background: #e0e7ff; }
.lang-option .lang-flag { font-size: 1.1rem; }
.lang-name { font-size: 0.84rem; }

/* Mobile language switcher – pill style */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.mobile-lang-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 2rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mobile-lang-option:hover { border-color: #6366f1; color: #4f46e5; }
.mobile-lang-option--active { background: #6366f1; border-color: #6366f1; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #0F172A;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: #0F172A;
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: #F5F3EF;
  border-top: 1px solid rgba(15,23,42,0.1);
  padding: 1.5rem;
}

.mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  border-bottom: 1px solid rgba(15,23,42,0.05);
}

.mobile-nav-link.active { color: #1D4ED8; }

.mobile-nav-btn {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.875rem;
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, #1D4ED8, #3B82F6);
  color: white;
  box-shadow: 0 4px 6px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F5F7FA;
  color: #0F172A;
}

.btn-secondary:hover { background: #e2e8f0; }

.btn-outline {
  background: transparent;
  border: 2px solid #1D4ED8;
  color: #1D4ED8;
}

.btn-outline:hover {
  background: #1D4ED8;
  color: white;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-white:hover {
  background: white;
  color: #1D4ED8;
}

.btn-outline-white-red:hover { color: #1D4ED8; }

.btn-red {
  background: linear-gradient(to right, #1D4ED8, #3B82F6);
  color: white;
}

.btn-red:hover { box-shadow: 0 8px 20px rgba(29, 78, 216, 0.4); transform: translateY(-1px); }

.btn-dark {
  background: #2a2a2a;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-dark:hover { background: #3a3a3a; }

.btn-lg { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-full { min-height: 100vh; }
.hero-md { height: 60vh; min-height: 400px; }
.hero-md .hero-title    { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.hero-md .hero-subtitle { font-size: clamp(0.85rem, 1.5vw, 1.1rem); }
.hero-sm { height: 50vh; min-height: 350px; }

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.6), #FFFFFF);
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.6), #000000);
}

.hero-overlay-half {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.7), #FFFFFF);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #0F172A;
  margin-bottom: 1.5rem;
}

.hero-title-white { color: white; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: #334155;
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle-light { color: #d1d5db; }

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(15,23,42,0.3);
  border-radius: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.375rem;
}

.scroll-dot {
  width: 0.25rem;
  height: 0.75rem;
  background: rgba(15,23,42,0.5);
  border-radius: 9999px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 0.75rem;
  border: 1px solid rgba(15,23,42,0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-dark {
  background: #F8FAFC;
  border: 1px solid rgba(15,23,42,0.1);
}

.card-body { padding: 2rem; }

.card-body-lg { padding: 2.5rem; }

/* Service Card */
.service-card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.service-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.service-card-dark {
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: white;
}

.service-icon-red { background: linear-gradient(135deg, #1D4ED8, #3B82F6); }

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.service-title-white { color: white; }

.service-desc {
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.service-desc-dark { color: #334155; }

/* Project Card */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card {
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.project-card:hover { transform: translateY(-4px); }

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #60a5fa;
  margin-bottom: 0.375rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.project-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* =============================================
   STATS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1D4ED8;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number-red { color: #1D4ED8; }

.stat-number-lg {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334155;
}

.stat-label-dark { color: #334155; }

/* =============================================
   TWO-COLUMN CONTENT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.img-with-accent { position: relative; }

.img-with-accent img {
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  width: 100%;
}

.img-accent-bl {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0.75rem;
  z-index: -1;
}

.img-accent-br {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0.75rem;
  z-index: -1;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1D4ED8;
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) .timeline-content { order: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-spacer { order: 2; }
.timeline-item:nth-child(even) .timeline-empty { order: 1; }

.timeline-item:nth-child(odd) .timeline-content { text-align: right; }

.timeline-dot {
  width: 1rem;
  height: 1rem;
  background: #1D4ED8;
  border-radius: 50%;
  border: 4px solid white;
  justify-self: center;
  box-shadow: 0 0 0 3px #1D4ED8;
}

.timeline-card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.625rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.timeline-year {
  font-size: 2rem;
  font-weight: 900;
  color: #1D4ED8;
  margin-bottom: 0.5rem;
}

.timeline-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.375rem;
}

.timeline-card-desc { color: #334155; font-size: 0.9rem; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.testimonial-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); }

.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }

.star { color: #1D4ED8; font-size: 1.1rem; }

.testimonial-text {
  color: #334155;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author { font-weight: 700; color: #0F172A; }
.testimonial-company { font-size: 0.875rem; color: #64748B; }

/* =============================================
   PARTNERS
   ============================================= */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background: #EDE9E3;
  border-radius: 0.75rem;
  padding: 3rem 2rem;
}

.partner-logo {
  width: 8rem;
  height: 5rem;
  background: white;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  filter: grayscale(1);
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.partner-logo span {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

/* =============================================
   EU HIGHLIGHT BOX
   ============================================= */
.eu-box {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.eu-logo {
  width: 10rem;
  height: 10rem;
  background: #003399;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  flex-shrink: 0;
}

.eu-star { color: #FFD700; font-size: 3rem; }
.eu-text { color: white; font-size: 1.5rem; font-weight: 900; }
.eu-sub { color: white; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.05em; }

.eu-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: rgba(29, 78, 216, 0.1);
  color: #1D4ED8;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* =============================================
   CERTIFICATION CARDS
   ============================================= */
.cert-card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 2px solid rgba(15,23,42,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.cert-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(29, 78, 216, 0.3);
}

.cert-image {
  width: 100%;
  height: 12rem;
  background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 4rem;
  overflow: hidden;
}

.cert-image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  border-radius: 0.75rem;
  border: 2px solid rgba(29, 78, 216, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.cert-category {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: rgba(29, 78, 216, 0.1);
  color: #1D4ED8;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.cert-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cert-meta {
  border-bottom: 1px solid rgba(15,23,42,0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cert-meta p { font-size: 0.875rem; color: #64748B; margin-bottom: 0.25rem; }
.cert-meta strong { color: #0F172A; }

.cert-desc {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* =============================================
   EU PROGRAMS
   ============================================= */
.program-card {
  background-color: white;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
  margin-bottom: 2rem;
}

.program-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); }

.program-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.program-icon-title {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.program-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.program-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.program-number {
  font-size: 0.8125rem;
  color: #64748B;
  font-family: monospace;
}

.program-desc {
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.program-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.program-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon { font-size: 1.1rem; color: #1D4ED8; }

.meta-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
}

.meta-value { font-size: 0.875rem; font-weight: 600; color: #0F172A; }

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #22c55e;
  border-radius: 50%;
}

.program-eu-logo {
  width: 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-step { position: relative; }

.process-img {
  aspect-ratio: 3/4;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.process-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.process-step:hover .process-img img { transform: scale(1.07); }

.process-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
}

.process-number {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(29, 78, 216, 0.5);
  line-height: 1;
}

.process-title {
  font-size: 1.375rem;
  font-weight: 900;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.process-desc { color: #475569; line-height: 1.65; }

/* =============================================
   CONTACT FORM
   ============================================= */
.form-card {
  background-color: #FFFFFF;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.form-title { font-size: 1.875rem; font-weight: 900; color: #0F172A; text-transform: uppercase; margin-bottom: 0.5rem; }
.form-subtitle { color: #475569; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.form-label { display: block; color: #0F172A; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9375rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #FAFAF9;
  border: 1.5px solid rgba(15,23,42,0.18);
  border-radius: 0.5rem;
  color: #0F172A;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #1D4ED8;
  background: #FFFFFF;
}

.form-input::placeholder, .form-textarea::placeholder { color: #94a3b8; }

.form-select option { background: #FFFFFF; color: #0F172A; }

.form-textarea { resize: none; height: 9rem; }

/* =============================================
   CONTACT INFO CARDS
   ============================================= */
.contact-info-card {
  background-color: #FFFFFF;
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-info-title { font-size: 1.375rem; font-weight: 900; color: #0F172A; text-transform: uppercase; margin-bottom: 1.5rem; }

.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: white;
  flex-shrink: 0;
}

.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin-bottom: 0.25rem; }

.contact-value { color: #0F172A; font-weight: 600; font-size: 0.9375rem; }

.contact-value a { color: #0F172A; transition: color 0.2s; }
.contact-value a:hover { color: #1D4ED8; }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.hours-day { color: #475569; }

.hours-time { color: #0F172A; font-weight: 600; font-size: 0.9375rem; }

.hours-divider { border: none; border-top: 1px solid rgba(15,23,42,0.1); margin: 1.5rem 0 1rem; }

.hours-note { font-size: 0.8125rem; color: #64748B; }

/* =============================================
   MAP PLACEHOLDER
   ============================================= */
.map-placeholder {
  aspect-ratio: 16/9;
  background: #DCE5F5;
  border-radius: 0.75rem;
  border: 1px solid rgba(15,23,42,0.1);
  overflow: hidden;
  position: relative;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.map-pin { font-size: 3rem; }
.map-text { color: #0F172A; font-weight: 700; font-size: 1.125rem; }
.map-subtext { color: #475569; font-size: 0.875rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #EDE9E3;
  border-top: 1px solid rgba(15,23,42,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.footer-text { font-size: 0.875rem; color: #334155; line-height: 1.65; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: #334155;
  transition: color 0.2s;
}

.footer-links a:hover { color: #1D4ED8; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.footer-contact-icon { font-size: 1rem; color: #1D4ED8; margin-top: 0.125rem; flex-shrink: 0; }

.footer-contact-text { font-size: 0.875rem; color: #334155; }

.footer-bottom {
  border-top: 1px solid rgba(15,23,42,0.1);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 0.875rem; color: #334155; }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
  font-size: 1.125rem;
  color: #334155;
  transition: color 0.2s;
}

.footer-social a:hover { color: #1D4ED8; }

/* =============================================
   CHECKLIST
   ============================================= */
.check-list { list-style: none; space-y: 0.875rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

/* =============================================
   ANIMATION SYSTEM
   ============================================= */

/* ---- Keyframes ---- */
@keyframes vr-fade-up {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vr-slide-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vr-shimmer {
  0%   { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

@keyframes vr-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-9px); }
}

@keyframes vr-icon-pop {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.25) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ---- Hero section entry ---- */
.hero-title    { animation: vr-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.hero-subtitle { animation: vr-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-btns     { animation: vr-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

/* ---- Navigation slide-down ---- */
.nav { animation: vr-slide-down 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---- Floating scroll indicator (replaces bounce) ---- */
.scroll-indicator { animation: vr-float 2.2s ease-in-out infinite !important; }

/* ---- Scroll reveal: base  ---- */
.reveal {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
    translate 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal--left  { translate: -44px 0; }
.reveal.reveal--right { translate:  44px 0; }
.reveal.reveal--scale {
  translate: 0 0;
  scale: 0.86;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    scale   0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.05s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.19s; }
.reveal[data-delay="4"] { transition-delay: 0.26s; }
.reveal[data-delay="5"] { transition-delay: 0.33s; }
.reveal[data-delay="6"] { transition-delay: 0.40s; }

/* ---- Section-title animated underline ---- */
.heading-center .section-title {
  position: relative;
  display: inline-block;
}
.heading-center .section-title::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #1D4ED8, #60a5fa, #1D4ED8);
  border-radius: 2px;
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.heading-center.visible .section-title::after { width: 72px; }

/* ---- Stat numbers: gradient shimmer ---- */
.stat-number {
  background: linear-gradient(
    90deg,
    #1D4ED8 0%,
    #3B82F6 35%,
    #93c5fd 50%,
    #3B82F6 65%,
    #1D4ED8 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: vr-shimmer 4s linear infinite;
}

/* ---- Button shine swipe on hover ---- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 70%
  );
  translate: -120% 0;
  transition: translate 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { translate: 120% 0; }

/* ---- Footer quick-links animated underline ---- */
.footer-links a { position: relative; }
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: #1D4ED8;
  transition: width 0.28s ease;
}
.footer-links a:hover::after { width: 100%; }

/* ---- Service icon pop on card hover ---- */
.service-card:hover .service-icon i { animation: vr-icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ---- Nav link sliding underline ---- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1D4ED8;
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---- Reduced motion: respect system preference ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal.reveal--left,
  .reveal.reveal--right,
  .reveal.reveal--scale {
    opacity: 1 !important;
    translate: 0 0 !important;
    scale: 1 !important;
  }
}

.check-icon {
  width: 2rem;
  height: 2rem;
  background: #1D4ED8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: white;
  font-size: 0.75rem;
}

.check-item-title { font-weight: 700; color: #0F172A; margin-bottom: 0.25rem; }
.check-item-desc { font-size: 0.875rem; color: #334155; }

/* Bullet list */
.bullet-list { list-style: none; }
.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  color: #334155;
}

.bullet-item::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: #1D4ED8;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* =============================================
   PAGE HERO  (pt-20)
   ============================================= */
.page-content { padding-top: 5rem; }

/* =============================================
   FILTER BUTTONS (Projects)
   ============================================= */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1.5px solid rgba(15,23,42,0.15);
  background: #FFFFFF;
  color: #334155;
  transition: all 0.3s;
}

.filter-btn:hover { border-color: #1D4ED8; color: #1D4ED8; }

.filter-btn.active {
  background: linear-gradient(to right, #1D4ED8, #3B82F6);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(29,78,216,0.25);
}

/* =============================================
   MASONRY GRID (Projects)
   ============================================= */
.masonry {
  columns: 4;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Extra-wide screens — let content breathe even more */
@media (min-width: 1400px) {
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-title { letter-spacing: -0.03em; }
}

/* 1920px+ — restore full-size hero-md typography */
@media (min-width: 1920px) {
  .hero-md .hero-title    { font-size: clamp(2.5rem, 5vw, 5rem); }
  .hero-md .hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.75rem); }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .eu-box { grid-template-columns: 1fr; text-align: center; }
  .eu-logo { margin: 0 auto; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item:nth-child(even) .timeline-content { order: 1; text-align: left; }
  .timeline-dot { display: none; }
  .timeline-empty { display: none; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
  .masonry { columns: 3; }
  .program-header { grid-template-columns: 1fr; }
  .program-eu-logo { flex-direction: row; align-items: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .masonry { columns: 2; }
  .program-meta { grid-template-columns: 1fr; }

  /* Small screens: compact logo */
  .nav-logo-text { display: none; }
  .nav-logo-icon { width: 7.0rem; height: 7.0rem; }
  .nav-logo-img  { height: 7.0rem; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* =============================================
   PUBLIC GALLERY & LIGHTBOX
   ============================================= */
.pub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.pub-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.pub-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  display: block;
}
.pub-gallery-item:hover img { transform: scale(1.06); }
.pub-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.pub-gallery-item:hover .pub-gallery-overlay {
  background: rgba(0,0,0,0.35);
}
.pub-gallery-overlay span {
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
  color: #fff;
}
.pub-gallery-item:hover .pub-gallery-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* Video thumbnail in gallery grid */
.pub-gallery-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.pub-gallery-overlay-play {
  background: rgba(0,0,0,0.4) !important;
}
.pub-gallery-overlay-play span {
  opacity: 1 !important;
  transform: scale(1) !important;
  font-size: 2.25rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(192,57,43,0.85);
  padding-left: 4px;
}
.pub-gallery-video-thumb:hover .pub-gallery-overlay-play {
  background: rgba(0,0,0,0.55) !important;
}
.pub-gallery-video-thumb:hover .pub-gallery-overlay-play span {
  background: rgba(192,57,43,1);
  transform: scale(1.1) !important;
}

/* Video modal */
.pub-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9900;
  align-items: center;
  justify-content: center;
}
.pub-video-modal.open { display: flex; }
.pub-video-modal video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  outline: none;
}

/* Lightbox */
.pub-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9900;
  align-items: center;
  justify-content: center;
}
.pub-lightbox.open { display: flex; }
.pub-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.pub-lb-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; z-index: 1;
}
.pub-lb-prev,
.pub-lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  line-height: 1;
  z-index: 1;
  transition: background 0.2s;
}
.pub-lb-prev:hover,
.pub-lb-next:hover { background: rgba(255,255,255,0.25); }
.pub-lb-prev { left: 1rem; }
.pub-lb-next { right: 1rem; }

@media (max-width: 640px) {
  .pub-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
