.bar{
    background: linear-gradient(to bottom, #024bba, #00265f); 
     padding: 4px 20px ;
     
     
   
}
.nav{
     display: flex;
    align-items: right;
    justify-content: right;
    padding: 2px;
    margin-right: 50px;
    
}
.navbar{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin-right: 80px;
}
.nav-links{
    display: flex;
    line-height: 1.2;
    list-style: none;

}
.nav-links li a {
    padding: 6px 30px;  /* equal space on both sides */
    display: inline-block;
    text-align: center;
}
.nav-links a{
    color: #e7e7e7;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.25s ease;
    font-weight: 400;


}
.nav-links a:hover{
    background: rgba(255,255,255,0.22);
    padding: 8px 16px;
    border-radius: 25px;
    transform: translateY(-2px) scale(1.05);
    
    
}
 
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  width: 280px;

  background: linear-gradient(to bottom, #024bba, #00265f);
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  clip-path: circle(0% at 50% 0%);
  
  transition:
    clip-path 0.6s ease-out,
    transform 0.5s ease-out,
    opacity 0.3s ease;
  
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  z-index: 1000;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  clip-path: circle(150% at 50% 0%);
}
.dropdown-menu li a {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}
.upper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  gap: 60px;
border-bottom: 4px solid #003a8f;
}


.logo img {
  width: 140px;
  height: auto;
  
}
.school-text {
  text-align: center;
  line-height: 1.3;
}
.school-text h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  color: #222;
}
.school-text h2 {
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: #1b3f8b;
  margin: 8px 0 12px;
}

.school-text p {
  font-size: 18px;
  color: #444;
  margin: 2px 0;
}
.ad {
  width: 98%;
  background-color: #ffffff;
  border: 2px solid #0e45bc;
  border-bottom: 6px solid #0e45bc;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px;
}

/* Left blue block */
.block {
  background: #0e45bc;
  padding: 10px 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

/* "Latest News" text */
.new {
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
  
}


/* News text */
.admi {
  color: #000000;
  font-size: 22px;
  margin: 0;
  display: inline-block;
  white-space: nowrap;
  animation: slideLeftToRight 25s linear infinite;
  font-weight: 520;
  
}
.admi img{
    width:24px;
  height: auto;
}
/* Ticker container */
.news-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

/* Moving text */
/* Keyframes */
@keyframes slideLeftToRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

    /*mobile*/
/* ================= MOBILE NAVBAR ================= */
@media (max-width: 900px) {

  /* NAV BAR */
  .bar {
    background: linear-gradient(to right, #0e45bc, #002f7a);
  }

  .navbar {
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 999;
    box-sizing: border-box;
    width: 100%;
    margin-right: 0;
  }

  /* HAMBURGER */
  .menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: 4px;

    background: transparent;
    border-radius: 6px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .menu-toggle:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
  }

  /* ================= MOBILE MENU ================= */
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #024bba, #00265f);

    flex-direction: column;
    align-items: center;

    display: none;
    padding: 20px 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: inline-block;
    width: auto;
    padding: 14px 20px;
    font-size: 18px;
  }
  .nav-links a:hover {
    background: none;
    padding: 14px 10px;
    border-radius: 0;
    transform: none;
  }

  /* ================= DROPDOWN (MOBILE) ================= */

  .dropdown-menu {
    position: static;
    width: 100%;
    background: linear-gradient(to bottom, #013c9a, #001f4d);

    display: none;
    padding: 0;
    margin: 0;

    border-radius: 0;
    box-shadow: none;

    clip-path: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  /* 🔥 THIS IS THE IMPORTANT PART */
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  /* ================= OTHER MOBILE SECTIONS ================= */

  .upper {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .logo img {
    width: 110px;
  }

  .school-text h1 {
    font-size: 34px;
  }

  .school-text h2 {
    font-size: 18px;
  }

  .school-text p {
    font-size: 15px;
  }

  .ad {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .block {
    width: 80%;
    justify-content: center;
  }

  .admi {
    font-size: 18px;
    animation-duration: 18s;
  }
}
/*mobile css end*/

.homefaci{
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 🔥 prevents height stretching */
  padding: 30px 30px;
  border-radius: 25px;
}
@media (max-width: 900px) {
  .homefaci {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }
}
/*viell al button */
/* ===== VIEW ALL BUTTON ===== */
.facilities-btn-wrap {
  margin-top: 50px;
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 34px;
  font-size: 16px;
  font-weight: 600;

  color: #ffffff;
  background: linear-gradient(135deg, #0e45bc, #00265f);
  border-radius: 50px;

  text-decoration: none;
  letter-spacing: 0.5px;

  box-shadow: 0 12px 28px rgba(0, 38, 95, 0.35);
  transition: all 0.35s ease;
}

/* Arrow */
.view-all-btn span {
  font-size: 18px;
  transition: transform 0.35s ease;
}

/* Hover */
@media (hover: hover) {
  .view-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 38, 95, 0.5);
  }

  .view-all-btn:hover span {
    transform: translateX(6px);
  }
}

/* Focus (Accessibility) */
.view-all-btn:focus {
  outline: 3px solid rgba(14, 69, 188, 0.4);
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 480px) {
  .view-all-btn {
    padding: 12px 26px;
    font-size: 15px;
  }
}
.fancy{
  padding: 60px 5%;
  background: linear-gradient(to bottom, #f8fbff, #eef3ff);
  text-align: center;
  border: 15px solid #5d90ff;
  border-radius: 25px;
}