*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
}

/* ===== HEADER ===== */
html, body{
  max-width:100%;
  overflow-x:hidden;
}



/* ================= TOP HEADER ================= */
.top-header{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  padding:20px;
  background: linear-gradient(135deg, #F8DDE3, #F3C7D3);
  position:relative;
  flex-wrap:wrap;
  text-align:center;
}

/* SHINE EFFECT */
.top-header::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  animation:shine 6s infinite;
}

@keyframes shine{
  0%{ left:-100%; }
  100%{ left:100%; }
}

/* HEADER TEXT */
.header-center{
  text-align:center;
}

/* TITLE (similar to 5th image) */
.top-header h1{
  font-size:clamp(24px, 3vw, 52px);
  font-weight:700;
  color:#7B1E3A;
  letter-spacing:2px;
  font-family:'Cinzel', serif;
}

/* SUB TITLE */
.top-header h2{
  font-size:clamp(18px, 2.5vw, 26px);
  font-weight:600;
  color:#9A2E50;
  margin-top:5px;
font-family:'Cinzel', serif;
}

@media(max-width:768px){
  .top-header h2{
    font-size:26px !important;
  }
}


/* SUB TEXT */
.sub-text{
  font-size:clamp(14px, 2vw, 20px);
  font-weight:500;
  color:#6A2C45;
  margin-top:6px;
font-family:'Cinzel', serif;
}

/* LOGO */
.top-logo{
  width:clamp(90px, 10vw, 150px);
  height:auto;
}

/* ================= MAIN HEADER ================= */
.main-header{
  padding:14px 0;
  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  border-top:1px solid rgba(255,255,255,0.4);
}

/* NAV CONTAINER */
.container{
  width:95%;
  max-width:1300px;
  margin:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}


/* NAV LINKS */
.navbar a{
  color:#6A1B37;
  text-decoration:none;
  margin:0 12px;
  font-weight:600;
  font-size:16px;
  font-family:'Poppins', sans-serif;
  transition:0.3s;
}

.navbar a:hover{
  color:#ffffff;
}

/* RESPONSIVE */
@media(max-width:768px){
  .top-header{
    flex-direction:column;
    gap:15px;
  }

  .top-header h1{
    font-size:22px;
  }

  .top-header h2{
    font-size:18px;
  }

  .sub-text{
    font-size: 18px;
        font-weight: 500;
  }
}


/* MENU CONTAINER */
.menu{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap; /* ✅ IMPORTANT */
  gap:10px;
  overflow:hidden;


  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  padding:10px;

}

/* MENU LINKS */
.menu a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  color:#2E1B25; /* dark readable text */
  text-decoration:none;

  font-size:17px;
  font-weight:600;

  padding:12px 14px;
  border-radius:20px;

  transition:0.3s;
  white-space:nowrap;

  background:rgba(255,255,255,0.3); /* soft pill background */
  backdrop-filter:blur(4px);
}

/* ICON INSIDE MENU (if any) */
.menu a i{
  color:#6A1B37; /* violet icon */
}

/* HOVER EFFECT */
.menu a:hover{
  background:#ffffff;
  color:#6A1B37;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(111,66,193,0.25);
}

/* HOVER ICON */
.menu a:hover i{
  color:#6A1B37;
}

/* MENU TOGGLE ICON */
.menu-toggle{
  display:none;
  font-size:26px;
  color:#6A1B37; /* dark violet */
  cursor:pointer;
  transition:0.3s;
}

.menu-toggle:hover{
  color:#6A1B37;
}


/* ===== BANNER ===== */
.banner1{
  background: url('/tuition-frontend/image/gallery.png') no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 600px;
}

/* Tablet */
@media (max-width:1024px){
  .banner1{
    height: 400px;
  }
}

/* Mobile */
@media (max-width:768px){
  .banner1{
    height: 100vh;
    background-position: top center;
  }
}


/* ===== GALLERY GRID ===== */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:15px;
  padding:20px;
}

/* ITEMS */
.item{
  overflow:hidden;
}

.item img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
  transition:0.3s;
}

/* HOVER */
.item img:hover{
  transform:scale(1.1);
  box-shadow:0 10px 20px rgba(0,0,0,0.3);
}

/* ===== MODAL ===== */
.modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  justify-content:center;
  align-items:center;
}

#modal-img{
  max-width:90%;
  max-height:80%;
  border-radius:10px;
}

/* CLOSE BUTTON */
.close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:35px;
  color:#fff;
  cursor:pointer;
  font-weight:bold;
}

.close:hover{
  color:#ff7a00;
}

/* ARROWS */
.prev, .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  color:#fff;
  cursor:pointer;
  padding:10px;
  user-select:none;
  transition:0.3s;
}

.prev{ left:20px; }
.next{ right:20px; }

.prev:hover, .next:hover{
  color:#ff7a00;
}

img {
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* 🔥 iPhone save option remove */
  user-select: none;
  pointer-events: auto;
}


/* ================= MOBILE MENU ================= */

/* show toggle button */
@media(max-width:768px){

  .menu-toggle{
    display:block;
    position:absolute;
    right:20px;
    top:15px;
    z-index:1000;
  }

.menu{
  position:absolute;
  top:60px;
  left:0;
  width:100%;
  flex-direction:column;
  background: linear-gradient(135deg, #E9AFC0, #D98CA5);
  display:none;
  padding:15px 0;
  border-radius:0;
  overflow:hidden; /* ✅ add this */
}


  .menu a{
    width:90%;
    margin:5px auto;
    text-align:center;
  }

  .menu.active{
    display:flex; /* show when clicked */
  }
}


