/* Slide-Up Animation */
@keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(-40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .slide-up {
    opacity: 0;
    animation: slideUp 0.5s ease-out 0.5s forwards;
  }


/* Fade-in Animation */
@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  /* Hidden Elements */
  .hidden {
    opacity: 0; /* Initially hidden */
    display: none;
    animation: fadeIn 0.5s ease forwards; /* Fade in */
  }
  
  /* Loader Styles */
  .loader {
    width: 80px;
    height: 40px;
    border-radius: 100px 100px 0 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background-color: #15253e; /* Semi-transparent dark background */
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease, background-color 0.5s ease; /* Fade background too */
  }
  
  .loader:before {
    content: "";
    position: absolute;
    inset: 0 0 -100%;
    background: 
      radial-gradient(farthest-side, #ffd738 80%, #0000) left 70% top 20% / 15px 15px,
      radial-gradient(farthest-side, #020308 92%, #0000) left 65% bottom 19% / 12px 12px,
      radial-gradient(farthest-side, #ecfefe 92%, #0000) left 70% bottom 20% / 15px 15px,
      linear-gradient(#9eddfe 50%, #020308 0);
    background-repeat: no-repeat;
    animation: l5 2s infinite;
  }
  
  @keyframes l5 {
    0%, 20%   { transform: rotate(0); }
    40%, 60%  { transform: rotate(.5turn); }
    80%, 100% { transform: rotate(1turn); }
  }
  
  /* Page content */
  .page-content {
    opacity: 0; /* Initially hidden */
    display: none;
  }
  
  /* Body and other content */
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1A2A3C; /* Midnight Navy */
    color: #F5F7FA; /* Icy White */
    line-height: 1.6;
  }
  
  /* Other content sections (No changes to these, just included for reference) */
  
  
  
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1A2A3C; /* Midnight Navy */
    color: #F5F7FA; /* Icy White */
    line-height: 1.6;
  }
  
  /* Navbar Styles */
  .navbar {
    background-color: #15253e; /* Midnight Navy */
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  #logo{
    width:8vw;
    padding:15px;
    padding-left:35px;
  }
  
  /* Navbar Links */
  .navbar-links {
    display: flex;
    list-style: none;
    margin-left: -4vw;
  }
  
  .navbar-links li {
    margin: 0 15px;
  }
  
  .navbar-links a {
    color: #F5F7FA; /* Icy White */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px; /* Increased padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .navbar-links a:hover {
    transform: translateY(-4px) scale(1.08);
    background-color: #223c64;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
  }
  
  /* Navbar CTA */
  .navbar-cta {
    background-color: #73B9F1; /* Soft Maya */
    color: #1A2A3C; /* Midnight Navy */
    padding: 14px 28px; /* Increased padding */
    margin-right: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .navbar-cta:hover {
    transform: scale(1.09); /* Scale up more */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3); /* Larger shadow */
  }
  
  /* Hero Section */
  .hero-section {
    background-image:url("herobg.webp"); /* Midnight Navy */
    background-position: center;
    text-align: center;
    padding: 80px 20px;
    margin-top: 80px; /* To avoid overlap with navbar */
  }
  
  .hero-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Optional: centers vertically if height set */
  }
  
  .hero-container h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
  .hero-container p {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  
  .cta-button {
    background-color: #73B9F1; /* Soft Maya */
    color: #1A2A3C; /* Midnight Navy */
    padding: 14px 28px; /* Increased padding */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 40px;
}
  
  .cta-button:hover {
    transform: scale(1.09); /* Scale up more */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3); /* Larger shadow */
  }

  .contacts-button {
    background-color: #F5F7FA; /* Soft Maya */
    color: #1A2A3C; /* Midnight Navy */
    padding: 14px 28px; /* Increased padding */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}
  
  .contacts-button:hover {
    transform: scale(1.09); /* Scale up more */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3); /* Larger shadow */
  }

  .cta-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Optional: centers vertically if height set */
  }
  
  /* Section Styles */
  .section-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
  }
  
  .about-section {
    background-color: #111c28; /* Dusty Cerulean */
  }
  
  .news-section {
    background-color: #F5F7FA; /* Icy White */
    color: #1A2A3C; /* Midnight Navy */
  }
  
  .faq-section {
    background-color: #5D8CA6; /* Slate Blue */
  }
  
  .link-button {
    display: inline-block;
    margin-top: 15px;
    color: #F5F7FA; /* Icy White */
    text-decoration: underline;
    font-weight: bold;
  }
  
  .news-section .link-button {
    color: #1A2A3C; /* Midnight Navy */
  }
  
  /* FAQ Cards */
  .faq-list > div {
    margin-bottom: 20px;
  }
  
  /* Contact CTA */
  .contact-cta-section {
    background-color: #73B9F1; /* Soft Maya */
    color: #1A2A3C; /* Midnight Navy */
    text-align: center;
    padding: 60px 20px;
  }
  
  /* Footer */
  .footer-section {
    background-color: #5D8CA6; /* Slate Blue */
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
  }

.partners-title {
  font-size: 1.2rem;
  margin-bottom: 15px; /* Increased space below the title */
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* More space between logos */
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.partners-logos img {
  max-height: 30px; /* Smaller logos */
  object-fit: contain;
  padding: 5px; /* Optional: internal spacing around logos */
  filter: brightness(0) invert(1); /* Optional: makes dark logos white for dark footers */
}


/* Hamburger Icon */
.navbar-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #F5F7FA;
  padding-right: 20px;
}


  /* Responsive Design */
@media (max-width: 480px) {
  .hero-container h1 {
    font-size: 2rem;
  }

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

  .cta-button, .contacts-button, .navbar-cta {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .section-container {
    padding: 30px 10px;
  }

  #logo {
    width: 30vw; /* scale better on phones */
    padding-left: 15px;
  }

  .partners-logos {
    gap: 15px;
  }

  .partners-logos img {
    max-height: 25px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
  }

  /* NEW: make logo and toggle inline */
  .navbar-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px; /* optional spacing */
  }

  /* Adjust logo size */
  #logo {
    width: 25vw;
    padding: 10px 0; /* reduce padding top/bottom */
  }

  /* Hamburger already displayed on mobile, adjust right padding */
  .navbar-toggle {
    padding-right: 15px;
    font-size: 2rem;
  }

  /* Navbar links stay full width, below */
  .navbar-links {
    width: 100%;
    background-color: #15253e;
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-out;
    flex-direction: column;
    display: flex;
  }

  .navbar-links.show {
    max-height: 500px;
  }

  /* Keep Register CTA full width, centered below */
  .navbar-cta {
    margin-top: 15px;
    width: 100%;
    text-align: center;
    border-radius: 0;
    margin-left:0;
    margin-right:0;
  }
}


@media (max-width: 768px) {
  .hero-container,
  .cta-container,
  .section-container {
    flex-direction: column !important;
    align-items: center;
  }
  .hero-container{
    margin-top:10vh;
  }
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
    transform-origin: center center;
    padding-left:5vw;
    transition: transform 0.5s ease;
  }

  .navbar-toggle.active{
    transform: rotate(90deg);
  }

  .navbar-links {
    width: 100%;
    background-color: #15253e;
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-out;
    flex-direction: column;
    display: flex;
  }

  .navbar-links.show {
  max-height: 500px; /* Enough height to reveal all items */
}

  .navbar-links li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar-links.show {
    display: flex;
  }

  .navbar-cta {
    width: 100%;
    text-align: center;
    margin-top:-3vh;
    margin-bottom:-4.1vh;
  }
}