* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, #0d0d0d, #1a1a40, #2a004f);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header vľavo hore */
.top-header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.header-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Hero sekcia */
.hero {
  text-align: center;
  padding: 70px 20px 60px;
  max-width: 1400px;
  margin: 0 auto -80px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

.title-line-1 {
  display: inline-block;
  color: #777;
  position: relative;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

.title-line-1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(0 100% 0 0);
  animation: reveal 2.0s ease forwards,
             animateGradient 6s ease infinite 2.0s;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes reveal {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes animateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ddd;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Štatistiky */
.statistics {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.stat-card {
  background: linear-gradient(145deg, rgba(30,30,60,0.95), rgba(20,20,40,0.95));
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6),
              0 0 25px rgba(139,92,246,0.6),
              0 0 35px rgba(236,72,153,0.4);
}

.stat-icon {
  width: 40px;
  height: 40px;
  color: #3b82f6;
  margin: 0 auto 15px;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: #eee;
  font-weight: 500;
}

/* Sekcia organizačných zložiek */
.organizational-units {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
}

.schools {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.school-card {
  flex: 1 1 450px;
  max-width: 550px;
  background: linear-gradient(145deg, rgba(30,30,60,0.95), rgba(20,20,40,0.95));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.school-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.school-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6),
              0 0 25px rgba(139,92,246,0.6),
              0 0 35px rgba(236,72,153,0.4);
}

.school-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.school-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.school-card:hover .school-image-wrapper img {
  transform: scale(1.08) rotate(-1deg);
}

.edupage-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #4dd0e1;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edupage-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.edupage-icon {
  width: 16px;
  height: 16px;
  color: #4dd0e1;
}

.school-content {
  padding: 25px;
}

.school-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.school-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.school-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.location-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 0;
  margin: 0px 0 20px;
  width: 100%;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: default;
}

.footer p {
  margin: 4px 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 4px;
}

.footer-locations {
  font-size: 0.85rem;
  color: #999;
}

/* Responzivita */
@media (max-width: 1024px) {
  .top-header {
    top: 15px;
  }

  .header-container {
    padding: 0 15px;
  }

  .header-text {
    font-size: 1.2rem;
  }

  .header-logo-img {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 100px 15px 40px;
    margin-bottom: -45px;
  }

  .statistics {
    gap: 20px;
    padding: 30px 15px;
  }

  .stat-card {
    min-width: 150px;
    padding: 25px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .organizational-units {
    padding: 40px 15px;
  }

  .section-title {
    margin-bottom: 35px;
  }

  .schools {
    gap: 25px;
  }

  .school-card {
    max-width: 100%;
  }

  .school-image-wrapper {
    height: 240px;
  }

  .school-name {
    font-size: 1.5rem;
  }

  .school-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .statistics {
    flex-direction: row;
    justify-content: center;
  }

  .stat-card {
    max-width: calc(50% - 10px);
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .statistics {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    max-width: 100%;
    width: 100%;
  }
}
