/* ============================================
   ДУБРОВИЦЬКИЙ ЛІЦЕЙ — Design System
   Colors from logo: #0F2D1D (dark green), #D6AF43 (gold)
   ============================================ */

:root {
  /* Logo Colors */
  --green-900: #0F2D1D;
  --green-800: #163D28;
  --green-700: #1E4D34;
  --green-50: #F2F7F4;
  --green-100: #E8F0EB;
  --gold: #D6AF43;
  --gold-light: #E4C96E;
  --gold-dark: #B8952F;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 6rem;

  /* Effects */
  --transition: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 45, 29, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 45, 29, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--green-900);
  line-height: 1.2;
  font-weight: 700;
}

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

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  list-style: none;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad) 0;
}

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

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--green-700);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--green-900);
  color: var(--green-900);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--green-900);
  transform: translateY(-2px);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(214, 175, 67, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(214, 175, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 175, 67, 0); }
}

.btn-gold {
  background: var(--gold);
  color: var(--green-900);
  font-weight: 700;
  animation: pulseGlow 2.5s infinite;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-edu {
  background: var(--gold);
  color: var(--green-900);
  font-weight: 700;
}

.btn-edu:hover {
  background: var(--green-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--green-900);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--green-100);
  border-color: var(--green-100);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
}


.nav-main {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  border-radius: 0 0 1.5vw 1.5vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled .nav-main {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav-main {
  padding-left: 2rem;
  padding-right: 2rem;
}
.nav-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.5px;
}






.mobile-close {
  display: inline-flex !important;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  padding-top: 120px;
  overflow: hidden;
  border-radius: 0 0 1.5vw 1.5vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) brightness(0.68);
  transform: scale(1.12);
  will-change: transform;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 45, 29, 0.5) 0%, rgba(15, 45, 29, 0.2) 100%);
  z-index: 2;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  color: var(--white);
}

@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(214, 175, 67, 0.15);
  border: 1px solid rgba(214, 175, 67, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 5px 20px rgba(0,0,0,0.4);
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-logo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--green-100);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--green-900);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ============================================
   INTERACTIVE SCHEDULE & BELLS TRACKER
   ============================================ */
.schedule-tracker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-100);
  color: var(--green-900);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  border: 1px solid rgba(22, 61, 40, 0.15);
}


.tracker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
  display: inline-block;
}

.tracker-dot.active {
  background: #22c55e;
  animation: pulse-dot 1.5s infinite;
}

.tracker-dot.break {
  background: var(--gold);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.schedule-row-active {
  background: rgba(214, 175, 67, 0.15) !important;
  border-left: 4px solid var(--gold) !important;
  font-weight: 600;
}


/* ============================================
   PHOTO GALLERY & LIGHTBOX
   ============================================ */
.gallery-section {
  margin-top: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-grid.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1.5rem; /* space for scrollbar */
  -webkit-overflow-scrolling: touch;
}

.gallery-grid.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.gallery-grid.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}
.gallery-grid.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--green-900);
  border-radius: 10px;
}

.gallery-grid.horizontal-scroll .gallery-item {
  flex: 0 0 320px;
  width: 320px;
  margin-right: 1.5rem;
}
.gallery-grid.horizontal-scroll .gallery-item:last-child {
  margin-right: 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-overlay-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-overlay-desc {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

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

.gallery-item:hover .gallery-overlay,
.marquee-item:hover .gallery-overlay {
  opacity: 1;
}

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

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--gold);
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--green-900);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 992px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: var(--white);
  text-align: center;
  max-width: 80%;
}

.lightbox-caption-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lightbox-caption-desc {
  color: var(--gold-light);
  font-size: 0.9rem;
}

/* ── 12. Interactive Components Styles ── */
.interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

/* Event Calendar */
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day:not(.empty):hover {
  background: var(--gray-200);
  cursor: pointer;
}

.calendar-day-today {
  background: var(--green-100) !important;
  color: var(--green-900) !important;
  border-color: var(--green-900) !important;
  font-weight: 700 !important;
}

.calendar-day-event {
  position: relative;
  font-weight: 700;
  color: var(--white) !important;
  cursor: pointer !important;
  box-shadow: var(--shadow-sm);
}

.calendar-day-event:hover {
  transform: scale(1.08);
}

.event-type-event {
  background: var(--gold) !important;
  border-color: var(--gold-dark) !important;
}

.event-type-exam {
  background: var(--green-900) !important;
  border-color: var(--green-900) !important;
}

.event-type-holiday {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
}

/* Poll Widget */
.poll-option-label {
  font-weight: 500;
  color: var(--gray-700);
}

.poll-option-label:hover {
  background: var(--gray-50);
  border-color: var(--gold);
}

.poll-option-label input[type="radio"]:checked+* {
  font-weight: 600;
}

.poll-option-label:has(input[type="radio"]:checked) {
  border-color: var(--green-900);
  background: var(--green-50);
}

.poll-bar-fill {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================
   REDUCED MOTION — respect user preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal content immediately, no slide-in */
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Stop the floating hero logo and pulsing tracker dot */
  .hero-logo {
    animation: none !important;
  }

  .tracker-dot.active,
  .tracker-dot.break {
    animation: none !important;
  }
}




/* ===== SOCIAL NETWORKS ===== */
.social-networks {
  background: var(--white);
  padding: 5rem 0;
}

.social-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  background: var(--gray-50);
  color: var(--green-900);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.03);
}

.social-card i {
  font-size: 1.5rem;
  color: var(--green-900);
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.25) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--white);
}

.social-card:hover i {
  color: var(--gold);
}

@media (max-width: 576px) {
  .social-card {
    width: 100%;
    justify-content: center;
  }
}


/* ===== TRANSPARENCY PAGE ===== */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.doc-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(214, 175, 67, 0.15);
  border-radius: 12px;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.doc-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
}

.doc-card-link {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--gold);
}

.doc-card img {
  transition: transform 0.5s ease;
}

.doc-card:hover img {
  transform: scale(1.05);
}

.doc-card:hover .doc-card-icon {
  background: var(--green-900);
  color: var(--white);
  transform: scale(1.1);
}

.doc-card:hover .doc-card-title {
  color: var(--green-900);
}

.doc-card:hover .doc-card-link {
  opacity: 1;
  transform: translateX(0);
}


/* ===== PAGE HEADER ===== */
.page-header {
  position: relative;
  padding: 8rem 0 4rem;
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  color: var(--white);
  overflow: hidden;
  border-radius: 0 0 1.5vw 1.5vw;
  margin-bottom: 3rem;
}

.page-header .page-title {
  color: var(--white);
  font-size: 3rem;
}


/* ===== PREMIUM TABLES & ACHIEVEMENTS ===== */
.table-responsive {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border-radius: 12px;
  background: var(--white);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 700px;
}

.premium-table th,
.premium-table td {
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.premium-table th,
.premium-table strong {
  font-weight: 600;
}

.premium-table tr:first-child th,
.premium-table tr:first-child td,
.premium-table tr:nth-child(2) th,
.premium-table tr:nth-child(2) td {
  background: var(--green-900);
  color: var(--white);
  border-color: rgba(255,255,255,0.1);
}

.premium-table td,
.premium-table th {
  transition: background-color 0.2s ease;
}

/* Очищення стилів шапки для рядків з даними в інтерактивній таблиці */
#gsheet-table tbody tr:first-child td,
#gsheet-table tbody tr:nth-child(2) td,
#creative-gsheet-table tbody tr:first-child td,
#creative-gsheet-table tbody tr:nth-child(2) td {
  background: var(--white);
  color: var(--gray-800);
  border-color: rgba(0,0,0,0.05);
}

#gsheet-table tbody tr.row-hover:first-child td:not(:first-child),
#gsheet-table tbody tr.row-hover:nth-child(2) td:not(:first-child),
#creative-gsheet-table tbody tr.row-hover:first-child td:not(:first-child),
#creative-gsheet-table tbody tr.row-hover:nth-child(2) td:not(:first-child) {
  background: var(--gray-50);
}

/* Зафарбовуємо першу колонку (роки) зеленим */
#gsheet-table tbody td:first-child,
#creative-gsheet-table tbody td:first-child {
  background: var(--green-900) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.1);
}

/* Base highlight for columns and rows, avoiding the header rows - Dark Green */
.premium-table tr.row-hover:not(:first-child):not(:nth-child(2)) td:not(:first-child),
.premium-table tr:not(:first-child):not(:nth-child(2)) td.col-hover:not(:first-child) {
  background-color: rgba(18, 48, 33, 0.08) !important; /* dark green with low opacity */
}

/* Intersection cell gets dark green background and default text */
.premium-table tr.row-hover:not(:first-child):not(:nth-child(2)) td.col-hover {
  background-color: rgba(18, 48, 33, 0.15) !important;
  font-weight: 700;
}

/* Ensure the green headers stay green */
.premium-table tr:first-child th.col-hover,
.premium-table tr:first-child td.col-hover,
.premium-table tr:nth-child(2) th.col-hover,
.premium-table tr:nth-child(2) td.col-hover {
  background-color: var(--green-900) !important;
}

/* Fix crosshair for dynamically generated tbody rows in Google Sheet table */
#gsheet-table tbody tr td.col-hover:not(:first-child),
#creative-gsheet-table tbody tr td.col-hover:not(:first-child) {
  background-color: rgba(18, 48, 33, 0.08) !important;
}
#gsheet-table tbody tr.row-hover td.col-hover:not(:first-child),
#creative-gsheet-table tbody tr.row-hover td.col-hover:not(:first-child) {
  background-color: rgba(18, 48, 33, 0.15) !important;
}

/* Achievement List */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.achievement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--gray-800);
  transition: all 0.3s ease;
}

.achievement-item.linked:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border-color: rgba(214, 175, 67, 0.3);
  color: var(--green-900);
}

.achievement-year {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.achievement-year i {
  color: var(--gold);
}

.achievement-count {
  background: rgba(214, 175, 67, 0.15);
  color: var(--green-900);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
}


/* ===== HORIZONTAL SCROLL CAROUSEL ===== */
.horizontal-scroll-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-top: 1rem; /* space for hover lift */
  padding-bottom: 2rem; /* space for scrollbar and hover effects */
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.horizontal-scroll-grid::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 50px;
}

.horizontal-scroll-grid::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 50px;
}

.horizontal-scroll-grid::-webkit-scrollbar-thumb:hover {
  background: #c29d3c; /* slightly darker gold for hover */
}

.horizontal-scroll-grid .doc-card {
  min-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
}

.horizontal-scroll-grid .doc-card-icon {
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.horizontal-scroll-grid .doc-card-content {
  align-items: center;
}

.horizontal-scroll-grid .doc-card-link {
  transform: translateY(10px); /* Adjust hover transform for vertical layout */
}

.horizontal-scroll-grid .doc-card:hover .doc-card-link {
  transform: translateY(0);
}

/* ===== IMAGE CAROUSEL (Transparency) ===== */
.image-carousel-card img {
  transition: transform 0.5s ease;
}
.image-carousel-card:hover img {
  transform: scale(1.05);
}
.image-carousel-card:hover {
  transform: translateY(-4px);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--green-900);
  background-image: radial-gradient(rgba(214, 175, 67, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 1.5rem;
  border-radius: 1.5vw 1.5vw 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 40px;
}

.footer-brand-name {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--green-900);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links, .footer-contact {
  list-style: none;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* ===== PAGE ANCHOR NAV (Floating FAB Format) ===== */
.page-layout {
  display: block;
}

.page-sidebar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* Let clicks pass through empty space */
}

.page-sidebar > * {
  pointer-events: auto; /* Re-enable clicks for children */
}

.page-anchor-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  
  /* FAB logic: hidden by default, shown when active */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

.page-sidebar.active .page-anchor-nav {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.page-nav-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 68, 43, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-nav-fab:hover {
  background: var(--green-900);
  transform: scale(1.05);
}

.page-sidebar.active .page-nav-fab {
  background: var(--gray-800);
  transform: rotate(90deg);
}

.page-sidebar.active .page-nav-fab i::before {
  content: "\f00d"; /* fa-times */
}

.page-anchor-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.page-anchor-nav li {
  margin: 0;
}

.page-anchor-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  line-height: 1.35;
}

.page-anchor-nav a:hover {
  background: var(--gray-100);
  color: var(--green-900);
}

.page-anchor-nav a.active {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-sidebar {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}


/* ANIMATED HAMBURGER */




.mobile-toggle i { display: none !important; }

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--green-900);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}


/* --- DESKTOP NAV --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-icon-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.desktop-nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.desktop-nav-link .tab-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.desktop-nav-link span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--green-900);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  border: 1px solid var(--gray-200);
  z-index: 1000;
}
.desktop-nav-link.active-nav .tab-icon {
  background: var(--green-900);
  color: var(--gold-light);
  box-shadow: 0 4px 10px rgba(11, 61, 46, 0.2);
}
.desktop-nav-link:hover .tab-icon {
  background: var(--green-900);
  color: var(--gold-light);
  transform: scale(1.15) rotate(5deg) translateY(-4px);
  box-shadow: 0 10px 20px rgba(214, 175, 67, 0.3), 0 0 15px rgba(214, 175, 67, 0.2);
}
.desktop-nav-link:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.desktop-nav-link:active span,
.desktop-nav-link:focus span {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}


/* ===== AUDIENCE PORTAL ===== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.audience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--gray-800);
  border: 1px solid rgba(15, 45, 29, 0.05);
}

.audience-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(214, 175, 67, 0.2), 0 0 20px rgba(214, 175, 67, 0.1);
  border-color: var(--gold);
  z-index: 2;
}

.audience-icon {
  width: 64px;
  height: 64px;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.audience-card:hover .audience-icon {
  background: var(--green-900);
  color: var(--gold-light);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 20px rgba(15, 45, 29, 0.2);
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--green-900);
  font-family: var(--font-heading);
}

.audience-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ===== TEACHER CARDS ===== */
.teacher-card {
  flex: 0 0 auto;
  width: 240px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  background: var(--white);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  border: 1px solid rgba(15, 45, 29, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.teacher-photo {
  width: 100%;
  height: 270px;
  background-size: cover;
  background-position: center top;
  border-radius: 0 0 var(--radius-md, 16px) var(--radius-md, 16px);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.teacher-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.3;
  margin: 0;
  padding: 1.2rem 1rem;
  background: transparent;
  transition: color 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TEACHER MODAL ===== */
.teacher-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.teacher-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.teacher-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.teacher-modal-overlay.active .teacher-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1;
}

.modal-close-btn:hover {
  background: var(--gray-100);
  color: var(--green-900);
}

.modal-photo {
  width: 220px;
  min-width: 220px;
  height: 280px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.modal-info {
  flex: 1;
  text-align: left;
}

.modal-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.modal-position {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-details {
  text-align: left;
  width: 100%;
}

.modal-details p {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

.modal-details p:last-child {
  border-bottom: none;
}

.modal-details p strong {
  color: var(--green-900);
  font-weight: 600;
  margin-right: 0.35rem;
}

@media (max-width: 600px) {
  .teacher-modal-content {
    flex-direction: column;
    padding: 1.5rem;
    align-items: center;
    text-align: center;
  }
  .modal-photo {
    width: 100%;
    min-width: unset;
    max-width: 250px;
    height: 250px;
  }
  .modal-info {
    text-align: center;
  }
  .modal-details {
    text-align: left;
  }
  .modal-name {
    font-size: 1.3rem;
  }
  .teacher-card {
    width: 150px;
  }
  .teacher-photo {
    height: 170px;
  }
}

/* ==========================================================================
   MOBILE BOTTOM BAR (max-width: 991px)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 991px) {
  .nav-links {
    display: none !important; /* Hide desktop nav on mobile */
  }
  
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0)) 0;
    border-radius: 1.5rem 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .bottom-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    padding: 0.25rem 0;
  }
  
  .bottom-tab-link .tab-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .bottom-tab-link span {
    display: none;
  }
  
  .bottom-tab-link:hover .tab-icon {
    transform: scale(1.05);
  }
  
  .bottom-tab-link.active-nav .tab-icon {
    background: var(--green-900);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(11, 61, 46, 0.2);
  }
  
  body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }
}

/* ==========================================================================
   MOBILE OPTIMIZATION (Overrides for smaller screens)
   ========================================================================== */
@media (max-width: 991px) {
  /* NAVBAR FIXES */
  .navbar {
    padding: 0 !important;
  }
  .nav-main {
    border-radius: 0 0 1.5rem 1.5rem !important;
    padding: 0.5rem 1rem !important;
  }
  .nav-main .container {
    position: relative;
    justify-content: center;
  }
  .nav-logo {
    width: 100%;
    position: relative;
    justify-content: center;
  }
  .nav-logo img {
    position: absolute;
    left: 0;
  }
  .nav-logo > div {
    text-align: center;
  }
  .nav-logo-text {
    font-size: 1.1rem;
  }
  .nav-logo-sub {
    font-size: 0.7rem;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 1000;
  }

  /* OVERALL LAYOUT / CONTAINER */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    overflow-x: hidden;
  }

  /* TYPOGRAPHY */
  h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.5rem !important; line-height: 1.4 !important; }
  p { font-size: 1rem !important; line-height: 1.5 !important; }

  /* HERO SECTIONS & BANNERS */
  .hero, .page-header {
    min-height: 50vh !important;
    padding: 6rem 0 3rem 0 !important;
  }
  .hero-content h1, .page-header h1 {
    font-size: 2rem !important;
  }
  .hero-content p, .page-header p {
    font-size: 1.1rem !important;
  }
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  .hero-logo {
    display: none !important;
  }
  .hero-badge {
    white-space: normal !important;
    height: auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
    line-height: 1.4;
    padding: 10px 15px;
  }

  /* GRIDS TO SINGLE COLUMN */
  .features-grid,
  .news-grid,
  .quick-links,
  .methodology-grid,
  .parents-grid,
  .documents-grid,
  .clubs-grid,
  .contact-grid,
  .gallery-grid,
  .interactive-grid,
  .transparency-grid,
  .footer-grid,
  .wp-block-gallery,
  .blocks-gallery-grid,
  .post-grid,
  .audience-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--gray-100) !important;
  }
  
  .stat-item:nth-child(even) {
    border-left: 1px solid var(--gray-100) !important;
  }
  
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none !important;
  }
  
  .about-content,
  .admission-content {
    flex-direction: column !important;
  }
  
  .about-image, .admission-image {
    width: 100% !important;
    margin-bottom: 2rem;
  }
  
  /* BUTTONS & LINKS (Touch Targets) */
  .btn, button, .nav-icon-link {
    min-height: 44px; /* Apple Human Interface Guidelines */
    padding: 0.75rem 1.5rem;
  }
  
  /* PADDINGS & MARGINS (Sections) */
  section {
    padding: 3rem 0 !important;
  }
  
  /* CARDS */
  .news-card, .feature-card, .doc-card, .methodology-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  /* EVEN SMALLER SCREENS */
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  
  .hero, .page-header {
    min-height: 40vh !important;
    padding: 7rem 0 5rem 0 !important;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}


/* Marquee Styles */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}
.marquee-content {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.marquee-content::-webkit-scrollbar {
  display: none;
}
.marquee-item .gallery-overlay {
  display: none !important;
}
.marquee-item {
  position: relative; /* THIS IS THE CRITICAL FIX */
  flex: 0 0 auto;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
}
.marquee-item img {
  height: 250px;
  width: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.marquee-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* ── Transparency Redesign ── */
/* Search Bar */
.transparency-search-container {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
}

.transparency-search-input {
  width: 100%;
  padding: 1.2rem 3rem 1.2rem 3rem;
  font-size: 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.transparency-search-input:focus,
.transparency-search-input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 175, 67, 0.2);
  outline: none !important;
}

.search-clear {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.search-clear:hover {
  color: var(--gold);
}

/* Accordion - Premium Styling */
.transparency-accordion {
  margin-bottom: 1.5rem; /* Додав простору між пунктами */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 4px solid transparent;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Експериментальна плавна анімація для браузерів, що підтримують ::details-content (Chrome 131+) */
.transparency-accordion::details-content {
  transition: block-size 0.4s ease, content-visibility 0.4s ease;
}

/* Анімація появи вмісту */
.transparency-accordion[open] .transparency-grid {
  animation: accordionOpen 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.transparency-accordion:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-left-color: var(--gold); /* Замість "чорної" тепер золотиста */
}

.transparency-accordion[open] {
  border-left-color: var(--green-900); /* Замість золотої тепер темно-зелена */
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.transparency-accordion-title {
  padding: 1.5rem 1.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default arrow */
  transition: all 0.3s ease;
  user-select: none;
}

.transparency-accordion-title::-webkit-details-marker {
  display: none; /* Hide arrow in Safari */
}

.transparency-accordion-title:hover {
  color: var(--gold);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
  background: var(--gray-50);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 1rem;
}

.transparency-accordion[open] .accordion-icon {
  transform: rotate(180deg);
  color: white;
  background: var(--gold);
  box-shadow: 0 4px 15px rgba(214, 175, 67, 0.4);
}

.transparency-accordion[open] .transparency-accordion-title {
  border-bottom: 1px solid var(--gray-100);
}

/* Grid Layout for Documents */
.transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fdfbf7 0%, #f9f9f9 100%);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Premium Document Cards */
.transparency-grid .minimal-doc-card {
  width: 100%;
  margin: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Glassmorphism shine effect */
.transparency-grid .minimal-doc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.transparency-grid .minimal-doc-card:hover::after {
  left: 200%;
}

.transparency-grid .minimal-doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 175, 67, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.transparency-grid .card-icon {
  font-size: 1.5rem;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.transparency-grid .minimal-doc-card:hover .card-icon {
  background: var(--green-900);
  color: var(--gold);
  border-color: var(--green-900);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(15, 45, 29, 0.25);
}

.transparency-grid .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-800);
  margin: 0;
  transition: color 0.3s ease;
}

.transparency-grid .minimal-doc-card:hover .card-title {
  color: var(--primary-color);
}

/* Social Media Buttons Jelly Effect */
.fb-section-container .btn-primary {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.fb-section-container .btn-primary:hover {
  transform: scale(1.08) translateY(-4px) !important;
  filter: brightness(1.15);
}

.fb-section-container .btn-primary i {
  transition: all 0.3s ease;
}

.fb-section-container .btn-primary:hover i {
  transform: scale(1.3) rotate(15deg);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gold);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(214, 175, 67, 0.5);
}

/* ── Global Info Modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.active .modal-window {
  transform: translateY(0);
}

