/* ============================================
   INŠTITUT IVAN - Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #FAFAFA;
  --color-bg-alt: #F0F0F0;
  --color-bg-dark: #1A1A1A;
  --color-text: #1A1A1A;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-accent: #C5A572;
  --color-accent-dark: #A8884F;
  --color-accent-light: #E8D5B0;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;
  --color-overlay: rgba(0, 0, 0, 0.7);

  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container-width: 1200px;
  --container-narrow: 800px;
  --header-height: 110px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.12s ease;
}
body.ready {
  opacity: 1;
}
/* Fallback: show page after 2s even if JS fails */
@keyframes body-fallback { to { opacity: 1; } }
body { animation: body-fallback 0s 2s forwards;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Section --- */
.section {
  padding: var(--space-3xl) 0;
}

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

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255,255,255,0.7);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__header h2 {
  margin-bottom: var(--space-sm);
}

.section__header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section__subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: 6px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
  transition: color var(--transition);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger--open .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--open .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav--mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 999;
}

.nav--mobile.open {
  display: flex;
}

.nav--mobile .nav__link {
  font-size: 1.5rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero--small {
  height: 45vh;
  min-height: 350px;
  max-height: 500px;
}

.hero--gallery {
  height: 55vh;
  min-height: 420px;
  max-height: 600px;
}
.hero--gallery h1 {
  margin-bottom: 0.6rem;
}
.hero__content .hero__author {
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
.hero__content .hero__date {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero__content .hero__bio {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}
.hero__author:empty,
.hero__date:empty,
.hero__bio:empty {
  display: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

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

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

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

.btn--dark:hover {
  background: #333;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card__image .card__img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
  pointer-events: none;
}

.card:hover .card__image .card__img-el {
  transform: scale(1.05);
}

.card__tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  z-index: 1;
}

.card__tag--dogodek {
  background: #2D6A4F;
}

.card__tag--produkcija {
  background: #9B2226;
}

.card__tag--galerija {
  background: #4A4E69;
}

.card__body {
  padding: var(--space-lg);
}

.card__date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  color: var(--color-text);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Film card variant */
.card--film .card__image {
  aspect-ratio: 16/10;
}

/* ============================================
   NEWS FEATURED (Landing)
   ============================================ */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ============================================
   ABOUT SECTION (Landing)
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-preview__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-preview__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-preview__content h2 {
  margin-bottom: var(--space-md);
}

.about-preview__content p {
  margin-bottom: var(--space-lg);
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.filter-tab:hover,
.filter-tab--active {
  background: var(--color-text);
  color: var(--color-white);
}

/* ============================================
   EVENT DETAIL
   ============================================ */
.detail {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  transition: color var(--transition);
}

.detail__back:hover {
  color: var(--color-accent);
}

.detail__hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.detail__meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
}

.detail__meta-value {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.detail__content {
  max-width: var(--container-narrow);
}

.detail__content h1 {
  margin-bottom: var(--space-lg);
}

.detail__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Film detail specifics */
.detail__poster-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.detail__poster {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.detail__info-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.detail__info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.detail__info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.detail__info-value {
  color: var(--color-text);
}

.detail__trailer {
  margin-top: var(--space-2xl);
}

.detail__trailer h3 {
  margin-bottom: var(--space-lg);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

/* Large items — span 2 cols and 2 rows */
.gallery-item:nth-child(5n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Wide items — span 2 cols */
.gallery-item:nth-child(5n+4) {
  grid-column: span 2;
}

/* Tall items — span 2 rows */
.gallery-item:nth-child(7n+3) {
  grid-row: span 2;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-item__image {
  transform: scale(1.03);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.gallery-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.gallery-item__info {
  font-size: 0.8rem;
  opacity: 0.8;
}

.gallery-item__info span {
  display: inline-block;
}

.gallery-item__info span + span::before {
  content: ' · ';
}

.gallery-item__price {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.2rem 0.6rem;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox.open {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: min(100%, 900px);
  max-height: 65vh;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.lightbox__info {
  text-align: center;
  color: var(--color-white);
  margin-top: var(--space-lg);
}

.lightbox__info h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.lightbox__info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev { left: var(--space-lg); }
.lightbox__nav--next { right: var(--space-lg); }

/* ============================================
   DONATION PAGE
   ============================================ */
.donation-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.donation-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition);
}

.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.donation-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.donation-card h3 {
  margin-bottom: var(--space-md);
}

.donation-card p {
  font-size: 0.9rem;
}

.bank-details {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: left;
}

.bank-details__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.bank-details__row:last-child {
  border-bottom: none;
}

.bank-details__label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.bank-details__value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.gdpr-notice {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.gdpr-notice h4 {
  margin-bottom: var(--space-md);
}

.gdpr-notice p {
  font-size: 0.9rem;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
}

.team-member__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-md);
}

.team-member h4 {
  margin-bottom: var(--space-xs);
}

.team-member p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h5 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ============================================
   PAGE INTRO (for subpages)
   ============================================ */
.page-intro {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.page-intro h1 {
  margin-bottom: var(--space-md);
}

.page-intro p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .detail__poster-layout {
    grid-template-columns: 250px 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 3rem;
    --space-3xl: 5rem;
  }

  :root {
    --header-height: 70px;
  }

  .header__inner {
    gap: 0;
  }

  .header__inner .nav {
    display: none;
  }

  .header__top {
    justify-content: space-between;
  }

  .header__logo-img {
    height: 24px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .hero--small {
    height: 35vh;
    min-height: 280px;
  }

  .hero--gallery {
    height: auto;
    min-height: 380px;
    max-height: none;
    padding: 6rem 0 3rem;
  }

  .hero__bio {
    font-size: 0.82rem;
    max-width: 320px;
  }

  .card-grid,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-preview__image {
    order: -1;
  }

  .detail__poster-layout {
    grid-template-columns: 1fr;
  }

  .detail__poster {
    max-width: 300px;
  }

  .donation-methods {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__logo-img {
    height: 22px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: center;
  }

  .detail__hero-image {
    aspect-ratio: 16/9;
  }

  .detail__meta {
    flex-direction: column;
    gap: var(--space-md);
  }

  .detail__info-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* --- Language Toggle --- */
.nav__lang {
  margin-left: auto;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: all var(--transition);
  color: var(--color-text);
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--color-bg-alt);
}

.lang-toggle__current {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-toggle--mobile {
  color: var(--color-text);
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  margin: var(--space-md) var(--space-lg);
  display: inline-block;
}

/* Hide Google Translate default bar */
.goog-te-banner-frame, .skiptranslate,
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}

body { top: 0 !important; }


/* --- Partners Slider (infinite) --- */
.partners-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-slider__inner {
  display: flex;
  width: max-content;
  animation: partners-scroll 80s linear infinite;
}

.partners-slider:hover .partners-slider__inner {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-slider__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  padding: var(--space-md) var(--space-xl);
  min-height: 90px;
  flex-shrink: 0;
}

.partners-slider__item img {
  height: 60px;
  width: 200px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .partners-slider__item {
    width: 180px;
    padding: var(--space-sm) var(--space-lg);
  }
  .partners-slider__item img {
    height: 45px;
    width: 150px;
  }
}
