/* ==========================================================
   1. Load Avenir Fonts (WOFF/WOFF2)
   ========================================================== */

/* Avenir Medium (500) */
@font-face {
  font-family: 'AvenirNextCyr-Medium';
  src: url('fonts/Avenir/AvenirNextCyr-Medium.woff2') format('woff2'),
    url('fonts/Avenir/AvenirNextCyr-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

/* Avenir Demi (700) */
@font-face {
  font-family: 'AvenirNextCyr-Demi';
  src: url('fonts/Avenir/AvenirNextCyr-Demi.woff2') format('woff2'),
    url('fonts/Avenir/AvenirNextCyr-Demi.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* Avenir Black (900) */
@font-face {
  font-family: 'AvenirNextCyr-Bold';
  src: url('fonts/Avenir/AvenirNextCyr-Bold.woff2') format('woff2'),
    url('fonts/Avenir/AvenirNextCyr-Bold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

/* ==========================================================
   2. Global Styles
   ========================================================== */
body {
  font-family: 'AvenirNextCyr-Medium', sans-serif;
  color: #1a2d58;
  background-color: #fff;
  line-height: 1.6;
  margin: 0;
}

.AvenirB {
  font-family: 'AvenirNextCyr-Bold';
}

.icon-wiscolor {
  color: #1a2d58;
  font-size: 4rem;
}


/* ==========================================================
   3. Headings & Paragraphs
   ========================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'AvenirNextCyr-Demi', sans-serif;
  color: #1a2d58;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #606163;
}

p {
  font-size: 14px;
  color: #606163;
  margin: 0 0 1rem 0;
}

/* Responsive headings */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }
}

/* ==========================================================
   4. Navbar
   ========================================================== */
.navbar {
  background: transparent !important;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #d0d1d1 !important;
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #606163 !important;
  margin-left: 20px;
  transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover {
  color: #1a2d58 !important;
}

.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:active {
  color: #1a2d58 !important;
  font-weight: 600;
  /* border-bottom: 2px solid #1a2d58; */
}

.navbar.scrolled .nav-link,
.navbar.scrolled .dropdown-toggle {
  color: #1a2d58 !important;
}

/* Contact button in navbar */
.navbar .contact-btn {
  background-color: #1a2d58 !important;
  color: #f7f7f8 !important;
}

.navbar.scrolled .contact-btn {
  color: #f7f7f8 !important;
}

.navbar.scrolled .contact-btn:active {
  color: #1a2d58 !important;
}

/* ==========================================================
   5. Hero / Header Section
   ========================================================== */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

header h1,
header p {
  color: #1a2d58;
}

.hero-section {
  overflow: hidden;
}

.hero-img {
  width: 110%;
  margin-left: -60px;
  height: auto;
  max-width: none;
}

@media (max-width: 992px) {
  .hero-img {
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================
   6. Dropdown Styling
   ========================================================== */
.dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 230px;
}

.dropdown-item {
  font-family: 'AvenirNextCyr-Medium', sans-serif;
  font-weight: 400;
  color: #1a2d58 !important;
  padding: 0.5rem 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #e8eaee !important;
  color: #1a2d58 !important;
}

.navbar .dropdown-toggle.active,
.navbar .dropdown-toggle:focus {
  color: #1a2d58 !important;
}

/* ==========================================================
   7. Contact Button
   ========================================================== */
.contact-btn {
  background-color: #1a2d58 !important;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'AvenirNextCyr-Medium', sans-serif;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  border: none;
  margin-left: 25px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #2b3e7a !important;
  box-shadow: 0 4px 12px rgba(26, 45, 88, 0.3);
  transform: translateY(-2px);
}

.contact-btn:active,
.contact-btn:focus {
  background-color: #ffffff !important;
  color: #1a2d58 !important;
  box-shadow: 0 0 0 3px rgba(26, 45, 88, 0.2);
  transform: translateY(0);
}

/* ==========================================================
   8. Footer
   ========================================================== */
.footer {
  background-color: #f5f6f8;
  font-family: 'AvenirNextCyr-Medium', sans-serif;
  color: #1a2d58;
}

.footer h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 100px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.footer-contact i {
  color: #1a2d58;
  margin-right: 12px;
}

.footer-links li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #1a2d58;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0d1c3a;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
  color: #1a2d58;
  background-color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #1a2d58;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer hr {
  border-color: #d0d1d1;
}

.footer small {
  color: #6c757d;
}

/* ==========================================================
   9. School Cards (From Early Years to Secondary)
   ========================================================== */
.school-card {
  background-color: #f1f3f6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.school-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.school-card h5 {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.school-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

.arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.wshadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  /* x-offset, y-offset, blur, color */
  color: #ffffff
}


/* ==========================================================
   10. Effects
   ========================================================== */
/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #1a2d58;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: #223c70;
  transform: scale(1.1);
}

/* Smooth show */
.scroll-top-btn.show {
  display: flex;
  opacity: 1;
}

/* =========================
   Preloader Styles
   ========================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  /* your brand color */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Loading text */
.loading-text {
  font-family: 'AvenirNextCyr-Demi', sans-serif;
  font-size: 16px;
  color: #1a2d58;
  letter-spacing: 1px;
  opacity: 0.8;
  animation: fade 1.5s ease-in-out infinite;
}

/* Pulsing Star Animation */
.star {
  width: 80px;
  /* adjust size */
  height: auto;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}