/* Головний фон сайту */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
  color: #1a237e;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
}

/* Стиль для "скляного" navbar */
.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.85); /* підвищено прозорість */
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: #212121 !important; /* темний текст для кращої контрастності */
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2962ff !important;
  text-shadow: 0 0 3px rgba(41, 98, 255, 0.4);
}

/* Стиль для карток */
.card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background-color: #ffffffdd;
  backdrop-filter: blur(4px);
  color: #37474f; /* м’який темно-сірий текст */
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Заголовки */
h2.section-title {
  text-align: center;
  font-weight: 600;
  color: #212121;
  margin-bottom: 40px;
}

/* Адаптивність для карток */
@media (max-width: 768px) {
  .card {
    margin-bottom: 20px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .card {
    margin-bottom: 25px;
  }
}

@media (min-width: 992px) {
  .card {
    margin-bottom: 30px;
  }
}

/* Адаптивність заголовків */
@media (max-width: 576px) {
  h2.section-title {
    font-size: 1.5rem;
  }
}
.school-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  max-width: 800px;
}

.map-room {
  background-color: #e3f2fd;
  border-radius: 16px;
  padding: 30px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.map-room:hover {
  background-color: #bbdefb;
  transform: scale(1.05);
  color: #0d47a1;
}

.map-info {
  font-size: 1.1rem;
  min-height: 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}
footer {
  background-color: rgba(0, 0, 0, 0.5); /* Напівпрозорий чорний фон, щоб текст був видимий */
  backdrop-filter: blur(10px); /* М'яка розмитість фону */
  color: white; /* Білий текст */
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3); /* Легкий білий контур */
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

footer a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #007bff; /* Кольорова зміна при наведенні на емейл */
}

footer .container {
  padding: 0;
}

footer .mb-1 {
  font-weight: 500;
}

footer .mb-0 {
  font-weight: 400;
}

footer .container p {
  font-size: 1rem;
}
.sky-scene {
  position: relative;
  height: 200px;
  background: linear-gradient(to top, #e3f2fd 0%, #ffffff 100%);
  overflow: hidden;
  z-index: 0;
}

.sun {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 235, 59, 0.7), rgba(253, 216, 53, 0.6));
  border-radius: 50%;
  z-index: 2;
  animation: pulse 5s infinite ease-in-out;
}

.ray {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 59, 0.1), transparent);
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.ray1 {
  animation: rotateRay 20s linear infinite;
}

.ray2 {
  animation: rotateRay 30s linear infinite reverse;
}

@keyframes rotateRay {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  box-shadow: 40px 0px #fff, 80px 10px #fff, 120px 0px #fff;
  animation: cloudMove 60s linear infinite;
  z-index: 3;
}

.cloud1 { width: 100px; height: 40px; top: 50px; left: -200px; animation-delay: 0s; }
.cloud2 { width: 140px; height: 50px; top: 80px; left: -300px; animation-delay: 15s; }
.cloud3 { width: 80px; height: 30px; top: 120px; left: -150px; animation-delay: 30s; }

@keyframes cloudMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(2000px); }
}

.wave {
  position: absolute;
  bottom: -10px;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 120 28" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 V12 Q30 17 55 2 T120 11 V30z" fill="%23ffffff"/></svg>') repeat-x;
  background-size: contain;
  animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 1200px; }
}
body {
  background: linear-gradient(135deg, #e0f7fa, #fce4ec);
  background-attachment: fixed;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  color: #212121 !important;
  font-weight: 600;
  font-size: 1.1rem;
  white-space: normal;
  line-height: 1.2;
}

.nav-link {
  color: #212121 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #007bff !important;
  text-shadow: 0 0 2px rgba(0, 123, 255, 0.3);
}

.navbar-toggler {
  border: none;
  padding: 10px;
  font-size: 1.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%2821, 21, 21, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

h1.page-title {
  text-align: center;
  margin: 40px 0 20px;
  font-weight: 600;
  color: #343a40;
}

header.hero {
  padding: 100px 0;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #42a5f5, #7e57c2);
}

header.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  animation: fadeInDown 1s ease-out;
}

header.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 20px auto;
  animation: fadeInUp 1.2s ease-out;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  background-color: #ffffff;
  color: #007bff;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn-hero:hover {
  background-color: #f8f9fa;
  color: #0056b3;
  transform: scale(1.05);
}

h2.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #343a40;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптивність */
@media (max-width: 768px) {
  header.hero h1 {
    font-size: 2rem;
  }

  header.hero p {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 10px 24px;
    font-size: 1rem;
  }

  h1.page-title {
    font-size: 1.8rem;
  }

  h2.section-title {
    font-size: 1.5rem;
  }

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

  .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@media (max-width: 576px) {
  header.hero {
    padding: 60px 0;
  }

  section {
    padding: 40px 15px;
  }

  #news-container .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Стилі для блоку "Про нас" */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 60px auto;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

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

.social-icons a {
  font-size: 1.8rem;
  margin: 0 15px;
  color: #333;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #007bff;
  transform: scale(1.2);
}





.navbar {
  transition: all 0.3s ease-in-out;
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.glass-navbar.scrolled {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(to right, #e3f2fd, #fff);
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 15px;
}

.btn-hero {
  background-color: #007bff;
  color: #fff;
  border-radius: 30px;
  padding: 10px 25px;
}

.btn-hero:hover {
  background-color: #0056b3;
  color: #fff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.social-icons a {
  font-size: 2rem;
  margin: 0 15px;
  color: #333;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #007bff;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #007bff;
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.footer {

  text-align: center;
  font-size: 0.95rem;
}



/* === АДАПТИВНІСТЬ === */
@media (max-width: 991px) {
  .navbar-brand {
    font-size: 1rem;
    line-height: 1.2;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 8px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .glass-card h1, .glass-card h2 {
    font-size: 1.5rem;
  }

  .glass-card p {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 20px;
  }

  .glass-card {
    padding: 20px;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .scroll-to-top {
    right: 15px;
    bottom: 15px;
    padding: 10px;
    font-size: 1.5rem;
  }

  .sun {
    width: 70px;
    height: 70px;
    top: 30px;
  }

  .footer {
    font-size: 0.85rem;
  }
}
#preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.glass-loader {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pulse {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #007bff, #6610f2);
  animation: pulseAnim 1.2s ease-in-out infinite;
}

@keyframes pulseAnim {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
html {
  scroll-behavior: smooth;
}

