/* ================= GLOBAL ================= */

body{
  font-family: Arial, sans-serif;
}

.navbar-brand strong{
  font-size:18px;
}

footer a{
  text-decoration:none;
}


/* ================= MOBILE NAVBAR ================= */

@media (max-width: 991px) {

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #ddd;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 12px;
    font-size: 16px;
  }

}


/* ================= GALLERY (FINAL FIXED) ================= */

/*.gallery-item {*/
    display: none; /* 🔴 hide all by default */
/*    opacity: 0;*/
/*    transform: scale(0.9);*/
/*    transition: all 0.4s ease;*/
/*}*/

/*.gallery-item.show {*/
    display: block; /* ✅ visible items */
/*    opacity: 1;*/
/*    transform: scale(1);*/
/*}*/

/*.gallery-card {*/
/*    overflow: hidden;*/
/*    cursor: pointer;*/
/*}*/

/*.gallery-img {*/
/*    width: 100%;*/
/*    height: 311px;*/
/*    object-fit: cover;*/
/*    display: block;*/
/*    transition: transform 0.4s ease;*/
/*}*/
/*.gallery-card:hover .gallery-img {*/
/*    transform: scale(1.08);*/
/*}*/


/* ================= PAGINATION ================= */

.page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ================= ABOUT PAGE ================= */

.about-hero {
    height: 300px;
    background: linear-gradient(rgba(26,79,140,0.8), rgba(26,79,140,0.8)),
                url('assets/images/banner.jpg') center/cover no-repeat;
}

.feature-box:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.stats-section {
    background: #1a4f8c;
}

.counter {
    font-size: 40px;
    font-weight: bold;
}


/* ================= NEW STAR BADGE ================= */

.new-star {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: red;
  padding: 10px 20px;
  z-index: 1;
  animation: blinkSoft 0.5s infinite;
}

.new-star::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: #fff3a0;

  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%,
    39% 35% 
  );

  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -1;

  animation: rotateStar 3s linear infinite;
}

@keyframes rotateStar {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes blinkSoft {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}


/* ================= CARDS ================= */

.class-card, .method-card {
    border: none;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.class-card:hover, .method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* ================= FACILITY ================= */

.facility-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.facility-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facility-card .p-3 {
    flex-grow: 1;
}


/* ================= ANIMATION ================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.gallery-item,
.gallery-event {
    display: none;
}