*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
  background:#f6f8fb;
  overflow-x:hidden;
}


/* HEADER */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 80px;
  background:white;
  overflow:visible;
}

.logo span{
  font-size:12px;
  color:#777;
}
/* NAV LINKS */
nav{
  position:relative;
}

nav a{
  margin:0 20px;
  text-decoration:none;
  color:#333;
  position:relative;
  padding-bottom:6px;
  transition:0.3s;
}

/* HOVER ANIMATION */
nav a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:0;
  height:3px;
  background:#22a45a;
  transition:0.3s ease;
  transform:translateX(-50%);
  border-radius:5px;
}

/* ON HOVER */
nav a:hover::after{
  width:40px;
}

/* ACTIVE LINK */
nav .active{
  color:#22a45a;
}

nav .active::after{
  width:40px;
}
.navbar {
  display: flex;
  justify-content: space-between; /* pushes items apart */
  align-items: center;
  padding: 10px 40px;
  background: #f5f5f5;
  overflow: visible;
  position: relative;
  z-index: 1000;
}

/* Left text */
.logo-box{
  display:flex;
  align-items:center;
  gap:22px;
  perspective: 1000px;
}

/* LOGO — layout size unchanged; scale() draws larger without growing the header bar */
.logo-img{
  width:80px;
  height:140px;
  object-fit:contain;
  transform-origin:center center;
  animation: logo-spin 4s linear infinite;
  position:relative;
  z-index:2;
  display:block;
}

/* TEXT */
.logo-text h2{
  font-size:24px;
  color:#22a45a;
  margin:0;
  font-weight:600;
}

/* SUBTEXT */
.logo-text span{
  font-size:12px;
  color:#666;
  display:block;
  margin-top:2px;
}
/* Right side menu */
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto; /* pushes menu to right */
}


.apply-btn{
  background:#22a45a;
  color:white;
  padding:10px 25px;
  border:none;
  border-radius:25px;
}

/* HERO */
.hero{
  flex-wrap:wrap;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:50px 5%;
}
.hero-right img{
  width:100%;
  max-width:500px;
  border-radius:20px;
}

.hero-right{
  width:40%;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}
.govt-tag{
  font-size:12px;
  color:#666;
  margin-bottom:8px;
  letter-spacing:0.4px;
}
.badge{
  background:linear-gradient(135deg,#22a45a,#15803d);
  color:white;
  padding:10px 18px;
  border-radius:25px;
  display:inline-block;
  margin-bottom:10px; /* reduced gap */
  font-weight:500;
  box-shadow:0 8px 20px rgba(34,164,90,0.3);
}

.hero-left{
  width:55%;
}

.hero-left h1{
  font-family:'Playfair Display', serif;
  font-size:64px;
  line-height:1.2;
  color:#1b2b3c;
}

.hero-left h1 span{
  color:#22a45a;
}

.hero-left p{
  margin:20px 0;
  color:#555;
  line-height:1.7;
}

.buttons{
  display:flex;
  gap:15px;
  margin-bottom:25px;
}
.primary{
  background:#22a45a;
  color:white;
  padding:14px 28px;
  border-radius:30px;
  border:none;
}

.secondary{
  border:2px solid #1b2b3c;
  padding:14px 28px;
  border-radius:30px;
  background:white;
}
.stats-bar{
  display:flex;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
  gap:18px;
  padding:40px 48px;
  background:white;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  text-align:center;
}

.stat{
  flex:1 1 200px;
  max-width:320px;
  padding:22px 20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 1px 3px rgba(15,23,42,0.06);
}

.stat h3{
  font-size:36px;
  color:#22a45a;
}

.stat p{
  font-size:14px;
  color:#64748b;
  line-height:1.45;
  margin-top:6px;
}

/* PROGRAMS */
.programs{
  padding:60px 60px;
  text-align:center;
  background:#f6f8fb;
}

.programs h2{
  font-family:'Playfair Display', serif;
  font-size:42px;
  color:#1b2b3c;
}

.programs .sub{
  margin-top:10px;
  color:#666;
}

.program-grid{
  margin-top:50px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:30px;
}

.program-card{
  background:#ffffff;
  padding:30px;
  border-radius:20px;
  transition:all 0.35s ease;
  box-shadow:0 8px 25px rgba(0,0,0,0.06);
  border:1px solid rgba(0,0,0,0.05);
}

/* 🔥 HOVER EFFECT FOR ALL */
.program-card:hover{
  transform:translateY(-12px) scale(1.02);
  box-shadow:0 25px 60px rgba(0,0,0,0.15);
  border-color:#22a45a;
}
.program-card .icon{
  width:55px;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  color:white;
  margin-bottom:20px;
  font-size:20px;
}

.blue{background:#3b82f6;}
.green{background:#22a45a;}
.purple{background:#9333ea;}
.orange{background:#f97316;}

.program-card h3{
  font-size:20px;
  margin-bottom:10px;
}

.program-card p{
  color:#555;
  font-size:14px;
  margin-bottom:15px;
}

.program-card ul{
  padding-left:18px;
  margin-bottom:15px;
}

.program-card a{
  color:#22a45a;
  text-decoration:none;
}
.youtube-section{
  padding:60px 60px;
  text-align:center;
  background:#0f7c94; /* similar blue */
}

.youtube-section h2{
  font-size:42px;
  color:white;
  margin-bottom:40px;
  font-family:'Playfair Display', serif;
}

.video-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.video-card{
  position:relative;
  background:white;
  padding:10px;
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.2);
  overflow:hidden;
}

.video-card a{
  display:block;
  position:relative;
}

.thumb{
  width:100%;
  border-radius:10px;
  display:block;
}

/* PLAY BUTTON */
.play-btn{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-size:40px;
  color:white;
  background:rgba(255,0,0,0.85);
  padding:12px 18px;
  border-radius:50%;
  transition:0.3s;
}

/* HOVER EFFECT 🔥 */
.video-card:hover .play-btn{
  transform:translate(-50%, -50%) scale(1.1);
  background:red;
}

.video-card:hover .thumb{
  transform:scale(1.05);
  transition:0.4s;
}
@media (max-width:768px){

  .video-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
}
/* ===== FEATURES ===== */
.features{
  padding:60px 60px;
  text-align:center;
  background:#f6f8fb;
}

.features h2{
  font-family:'Playfair Display', serif;
  font-size:42px;
  color:#1b2b3c;
}

.features .sub{
  margin-top:10px;
  color:#666;
}

.features-grid{
  margin-top:50px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.feature-card{
  background:white;
  padding:30px;
  border-radius:20px;
  text-align:left;
  transition:0.3s;
}

.feature-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

.feature-card .icon{
  font-size:28px;
  margin-bottom:15px;
}

.feature-card h3{
  margin-bottom:10px;
}

.feature-card p{
  color:#555;
  font-size:14px;
}
/* ===== CAMPUS LIFE ===== */
.campus{
  padding:44px 60px 48px;
  text-align:center;
  background:#ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;

}

.campus h2{
  font-family:'Playfair Display', serif;
  font-size:38px;
  color:#1b2b3c;
}

.campus .sub{
  margin-top:8px;
  color:#666;
}

/* GRID */
.program-grid,
.features-grid,
.achieve-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
}
.campus-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:1.45fr 1fr;
  gap:16px;
  align-items:stretch;
  min-height:220px;
}

@media (min-width:769px){
  .campus-grid{
    max-height:min(37.4vh, 352px);
  }
}

.campus-photo-frame{
  position:relative;
  overflow:hidden;
  border-radius:16px;
  background:#e8ecf0;
  box-shadow:0 4px 24px rgba(15,23,42,0.08);
}

.campus-left.campus-photo-frame{
  min-height:0;
  height:100%;
}

.campus-right{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:0;
}

.campus-right .campus-photo-frame{
  flex:1;
  min-height:0;
}

.campus-right img{
  width:100%;
  height:100%;
  min-height:96px;
  object-fit:cover;
  object-position:center;
  display:block;
  border-radius:0;
  transform:scale(1.001);
  transition:transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease;
  will-change:transform;
}

.campus-left img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:center;
  display:block;
  border-radius:0;
  transform:scale(1.001);
  transition:transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease;
  will-change:transform;
}

.campus-photo-frame:hover img{
  transform:scale(1.06);
  filter:saturate(1.05) contrast(1.03);
}

/* Staggered entrance when section scrolls into view */
@keyframes campus-photo-in {
  from{
    opacity:0;
    transform:scale(1.08) translateY(16px);
  }
  to{
    opacity:1;
    transform:scale(1.001) translateY(0);
  }
}

.campus.active .campus-left img{
  animation:campus-photo-in 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

.campus.active .campus-right .campus-photo-frame:nth-child(1) img{
  animation:campus-photo-in 0.85s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.campus.active .campus-right .campus-photo-frame:nth-child(2) img{
  animation:campus-photo-in 0.85s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

@media (prefers-reduced-motion:reduce){
  .campus.active .campus-left img,
  .campus.active .campus-right .campus-photo-frame img{
    animation:none !important;
    opacity:1;
    transform:none;
  }
  .campus-photo-frame:hover img{
    transform:none;
    filter:none;
  }
}
/* ===== SCROLL REVEAL (scoped — never use bare .active; it breaks nav + hero slider) ===== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STUDENT REVIEWS (simple) ===== */
.reviews{
  padding:72px 24px 80px;
  background:#fff;
  border-top:1px solid #eceff3;
  position:relative;
  z-index:2;
  opacity:1;
  transform:none;
  visibility:visible;
}

.reviews .review-card{
  opacity:1;
  transform:none;
}

.reviews-inner{
  max-width:920px;
  margin:0 auto;
}

.reviews-header{
  text-align:center;
  margin-bottom:36px;
}

.reviews h2{
  font-family:'Playfair Display', serif;
  font-size:38px;
  color:#1b2b3c;
  letter-spacing:-0.02em;
}

.reviews .sub{
  margin-top:8px;
  color:#64748b;
  font-size:15px;
  line-height:1.5;
  max-width:32em;
  margin-left:auto;
  margin-right:auto;
}

.reviews-carousel{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.review-nav{
  flex-shrink:0;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #d8dee6;
  background:#fff;
  color:#1b2b3c;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  transition:background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.review-nav:hover{
  border-color:#22a45a;
  color:#22a45a;
  background:#f8fcf9;
}

.reviews-container{
  flex:1;
  min-width:0;
  overflow:hidden;
}

.reviews-scroll{
  display:flex;
  gap:20px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:20px;
  padding:8px 0 20px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.reviews-scroll::-webkit-scrollbar{
  display:none;
}

.review-card{
  min-width:min(100%, 300px);
  max-width:340px;
  scroll-snap-align:center;
  background:#fff;
  padding:24px 24px 22px;
  border-radius:12px;
  border:1px solid #e8ecf1;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
  text-align:left;
  flex-shrink:0;
  border-left:3px solid #22a45a;
}

.review-dots{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}

.review-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  border:none;
  padding:0;
  background:#cbd5e1;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease;
}

.review-dot:hover{
  background:#94a3b8;
}

.review-dot.current{
  background:#22a45a;
  transform:scale(1.15);
}

.review-card .stars{
  font-size:14px;
  margin-bottom:12px;
  letter-spacing:1px;
  line-height:1;
}

.review-card .review-text{
  color:#475569;
  font-size:14px;
  line-height:1.75;
  margin-bottom:18px;
}

.reviewer-info{
  padding-top:14px;
  border-top:1px solid #f1f5f9;
}

.reviewer-name{
  font-weight:600;
  font-size:14px;
  color:#1b2b3c;
  margin-bottom:2px;
}

.reviewer-course{
  font-size:12px;
  color:#22a45a;
  font-weight:500;
}

/* ===== COUNSELLING SECTION ===== */
.counselling{
  padding:120px 80px;
  text-align:center;
  background:linear-gradient(135deg,#0d2c4a,#123d63);
  color:white;
}

.counselling h2{
  font-family:'Playfair Display', serif;
  font-size:48px;
}

.counselling .sub{
  margin-top:10px;
  opacity:0.9;
}

/* FORM BOX */
.form-container{
  margin-top:50px;
  display:flex;
  justify-content:center;
}

form{
  width:500px;
  background:rgba(255,255,255,0.08);
  padding:40px;
  border-radius:20px;
  text-align:left;
  backdrop-filter:blur(10px);
}

/* INPUTS */
form label{
  display:block;
  margin-bottom:5px;
  font-size:14px;
}

form input,
form select{
  width:100%;
  padding:15px;
  margin-bottom:20px;
  border-radius:12px;
  border:none;
  outline:none;
  background:#e5e7eb;
  font-size:14px;
}

/* BUTTON */
form button{
  width:100%;
  padding:16px;
  background:#22a45a;
  color:white;
  border:none;
  border-radius:12px;
  font-size:16px;
  cursor:pointer;
  transition:0.3s;
}

form button:hover{
  background:#1b8a4a;
}
/* ===== FOOTER ===== */
.footer{
  background:#0d2c4a;
  color:white;
  padding:80px 80px 30px;
}

.footer-container{
  display:grid;
  grid-template-columns:2fr 1fr 1.5fr;
  gap:60px;
}

/* LEFT */
.footer-left p{
  margin:20px 0;
  line-height:1.6;
  color:#cbd5e1;
}

.footer-left .logo{
  display:flex;
  gap:10px;
  align-items:center;
}

.footer-left .icon{
  background:#22a45a;
  padding:10px;
  border-radius:10px;
}

/* SOCIAL */
.socials{
  display:flex;
  gap:15px;
}
.call{
  background:#6c86be;
}

.socials span{
  background:#173a5e;
  padding:10px;
  border-radius:8px;
  cursor:pointer;
}

/* LINKS */
.footer-links h4,
.footer-contact h4{
  margin-bottom:15px;
}

.footer-links a{
  display:block;
  margin-bottom:10px;
  color:#cbd5e1;
  text-decoration:none;
}

/* CONTACT */
.footer-contact p{
  margin-bottom:10px;
  color:#cbd5e1;
}

/* BOTTOM */
.footer-bottom{
  margin-top:50px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.1);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
}

.footer-policy{
  display:flex;
  gap:20px;
}
/* ===== ANIMATIONS ===== */

/* Initial hidden state */
.reveal{
  opacity:0;
  transform:translateY(60px);
  transition:all 0.8s ease;
}

/* Visible state */
.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* Slide from left */
.reveal-left{
  opacity:0;
  transform:translateX(-80px);
  transition:all 0.8s ease;
}

.reveal-left.active{
  opacity:1;
  transform:translateX(0);
}

/* Slide from right */
.reveal-right{
  opacity:0;
  transform:translateX(80px);
  transition:all 0.8s ease;
}

.reveal-right.active{
  opacity:1;
  transform:translateX(0);
}

/* BUTTON HOVER */
button{
  transition:all 0.3s ease;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

/* CARD HOVER ENHANCED */
.program-card:hover,
.feature-card:hover,
.achieve-card:hover{
  transform:translateY(-10px) scale(1.02);
}

/* Campus photo motion: see .campus-photo-frame in CAMPUS LIFE section */
.modal{
  display:none;
  position:fixed;
  z-index:999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
}

.modal-content{
  background:white;
  margin:5% auto;
  padding:20px;
  width:60%;
  border-radius:20px;
  position:relative;
}

.close-btn{
  position:absolute;
  right:20px;
  top:10px;
  font-size:28px;
  cursor:pointer;
}
html{
  scroll-behavior: smooth;
}
/* ===== RIGHT SIDE SOCIAL BAR ===== */

.side-social{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  z-index:9999;
}

/* BUTTON */
.social-btn{
  width:60px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  text-decoration:none;
  font-size:24px;
  transition:0.3s;
  border-radius:20px 0 0 20px;
}

.youtube{
  background:#FF0000;
}

.call{
  background:#6c86be;
}

.whatsapp{
  background:#25D366;
}

.instagram{
  background: linear-gradient(
    45deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5
  );
}

/* HOVER EFFECT */
.social-btn:hover{
  transform:translateX(-10px);
}

.slider.single{
  position:relative;
  width:100%;
  max-width:550px; /* 🔥 BIG IMAGE */
  height:340px;
  border-radius:20px;
  overflow:hidden;
}

.slider.single img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transition:opacity 0.8s ease;
}

.slider.single img.active{
  opacity:1;
}

/* ===== BACKGROUND SLIDING IMAGES ===== */
.background-slider {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  z-index: 0;
}

.bg-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: opacity 0.8s ease;
  animation: slideInOut 20s infinite;
}

.bg-slide.active {
  opacity: 0.25;
}

.bg-slide:nth-child(1) {
  animation-delay: 0s;
}

.bg-slide:nth-child(2) {
  animation-delay: -4s;
}

.bg-slide:nth-child(3) {
  animation-delay: -8s;
}

.bg-slide:nth-child(4) {
  animation-delay: -12s;
}

.bg-slide:nth-child(5) {
  animation-delay: -16s;
}

.bg-slide:nth-child(6) {
  animation-delay: -20s;
}

@keyframes slideInOut {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.15;
  }
  10% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.1;
  }
}

.programs,
.program-card,
.achievements,
.achieve-card,
.features,
.feature-card,
.campus,
.youtube-section,
.counselling,
.footer {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state: must match scroll-reveal script; do not use a global .active selector */
.programs.active,
.program-card.active,
.achievements.active,
.achieve-card.active,
.features.active,
.feature-card.active,
.campus.active,
.youtube-section.active,
.counselling.active,
.footer.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: slideIn 0.6s ease-in-out;
}
section{
  position: relative;
  z-index: 1;
}
@media (max-width:768px){

  .hero-right{
    width:100%;
    display:flex;
    justify-content:center;  /* 🔥 CENTER IMAGE */
    align-items:center;
  }

  .slider.single{
    width:100%;
    max-width:320px;   /* 🔥 CONTROL SIZE */
    height:auto;       /* 🔥 REMOVE FIXED HEIGHT */
    aspect-ratio:auto;
    overflow:visible;
  }

  .slider.single img{
    position:relative;     /* 🔥 REMOVE ABSOLUTE */
    width:100%;
    height:auto;
    object-fit:contain;    /* 🔥 FULL IMAGE */
    display:block;
    margin:0 auto;         /* 🔥 CENTER */
    opacity:1;
  }

  .slider.single img:not(.active){
    display:none;          /* 🔥 SHOW ONLY ONE */
  }

  .background-slider {
    bottom: -30px;
    width: 320px;
    height: 150px;
  }

}
@media (max-width:768px){

  .navbar{
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:10px 10px;   /* 🔥 slightly reduced */
  }

  .logo-box{
    display:flex;
    align-items:center;
    gap:6px;             /* 🔥 reduce space */
  }

  .logo-text h2{
    font-size:18px;      /* 🔥 smaller → creates space */
    line-height:1.1;
  }

  .logo-text span{
    font-size:9px;
  }

  nav{
    display:flex;
    gap:10px;            /* 🔥 reduce gap */
    flex-wrap:nowrap;    /* 🔥 MOST IMPORTANT (no line break) */
  }

  nav a{
    margin:0;
    font-size:12px;      /* 🔥 smaller text */
    white-space:nowrap;  /* 🔥 prevent breaking */
  }

}
/* POPUP BACKGROUND */
.popup{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  z-index:9999;
  justify-content:center;
  align-items:center;
}

/* POPUP BOX */
.popup-content{
  position:relative;
  max-width:90%;
  max-height:90%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:16px;
}

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* IMAGE */
.popup-content img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
}

.popup-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
}

.popup-apply-btn,
.popup-youtube-btn{
  flex:1 1 auto;
  min-width:140px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 22px;
  border-radius:30px;
  font-size:15px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  border:none;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-apply-btn{
  background:linear-gradient(135deg,#22a45a,#15803d);
  color:#fff;
  box-shadow:0 8px 24px rgba(34,164,90,0.35);
}

.popup-apply-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(34,164,90,0.45);
}

.popup-youtube-btn{
  background:#ff0000;
  color:#fff;
  box-shadow:0 6px 20px rgba(255,0,0,0.3);
}

.popup-youtube-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(255,0,0,0.4);
}

.popup-youtube-btn i{
  font-size:18px;
}

/* CLOSE BUTTON */
.close-popup{
  position:absolute;
  top:-10px;
  right:-10px;
  background:white;
  color:black;
  font-size:24px;
  width:35px;
  height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  cursor:pointer;
  border:none;
  line-height:1;
  z-index:2;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== COMPREHENSIVE MOBILE STYLES ===== */

/* TABLETS (768px and below) */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .navbar {
    padding: 8px 15px;
  }

  .hamburger {
    display: flex;
  }

  .logo-text h2 {
    font-size: 20px;
  }

  .logo-text span {
    font-size: 10px;
  }

  .logo-img {
    width: 43px;
    height: 80px;
    animation: logo-spin-sm 4s linear infinite;
  }

  /* MOBILE NAV */
  #nav-menu {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  #nav-menu.active {
    max-height: 300px;
  }

  #nav-menu a {
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align: center;
  }

  #nav-menu a:hover {
    background: #f6f8fb;
  }

  /* HERO SECTION */
  .hero {
    padding: 30px 20px;
    flex-direction: column;
  }

  .hero-left {
    width: 100%;
    margin-bottom: 30px;
  }

  .hero-left h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  .hero-left p {
    font-size: 14px;
  }

  .hero-right {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .primary,
  .secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  /* STATS BAR */
  .stats-bar {
    padding: 25px 15px;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .stat {
    padding: 18px 16px;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .stat h3 {
    font-size: 28px;
  }

  .stat p {
    font-size: 12px;
  }

  /* PROGRAMS GRID */
  .programs {
    padding: 40px 20px;
  }

  .programs h2 {
    font-size: 28px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-card {
    padding: 20px;
  }

  /* VIDEOS */
  .youtube-section {
    padding: 40px 20px;
  }

  .youtube-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  /* FEATURES */
  .features {
    padding: 40px 20px;
  }

  .features h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  /* CAMPUS */
  .campus {
    padding: 36px 20px 40px;
    margin-bottom: 36px;
  }

  .campus h2 {
    font-size: 28px;
  }

  .campus-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
    min-height: 0;
  }

  .campus-photo-frame {
    border-radius: 14px;
  }

  .campus-left.campus-photo-frame {
    max-height: 220px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .campus-left.campus-photo-frame img {
    height: 100%;
  }

  .campus-right .campus-photo-frame {
    aspect-ratio: 16 / 10;
    flex: none;
    max-height: 176px;
  }

  .campus-right .campus-photo-frame img {
    min-height: 0;
    height: 100%;
  }

  .campus-right {
    gap: 12px;
  }

  /* REVIEWS */
  .reviews {
    padding: 48px 20px 56px;
  }

  .reviews h2 {
    font-size: 28px;
  }

  .reviews-carousel {
    gap: 10px;
  }

  .review-nav {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .review-card {
    min-width: min(88vw, 300px);
    padding: 20px;
  }

  /* COUNSELLING */
  .counselling {
    padding: 50px 20px;
  }

  .counselling h2 {
    font-size: 28px;
  }

  form {
    width: 100%;
    padding: 25px 15px;
  }

  form input,
  form select {
    padding: 12px;
    font-size: 16px;
    min-height: 44px;
  }

  form button {
    min-height: 44px;
  }

  /* FOOTER */
  .footer {
    padding: 40px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-policy {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* SIDE SOCIAL BAR */
  .side-social {
    position: fixed;
    right: 0;
    bottom: 20px;
    top: auto;
    transform: none;
    flex-direction: row;
    gap: 5px;
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    border-radius: 0;
  }

  .social-btn:hover {
    transform: none;
  }
}

/* SMALL PHONES (480px and below) */
@media (max-width: 480px) {
  header {
    padding: 10px 12px;
  }

  .navbar {
    padding: 10px 12px;
  }

  .logo-box {
    gap: 8px;
  }

  .logo-text h2 {
    font-size: 17px;
  }

  .logo-text span {
    font-size: 8px;
  }

  .logo-img {
    width: 36px;
    height: 71px;
    animation: logo-spin-sm 4s linear infinite;
  }

  #nav-menu a {
    padding: 12px 15px;
    font-size: 13px;
  }

  /* HERO */
  .hero {
    padding: 20px 15px;
  }

  .hero-left h1 {
    font-size: 28px;
  }

  .hero-left p {
    font-size: 13px;
    margin: 15px 0;
  }

  .badge {
    padding: 8px 14px;
    font-size: 12px;
  }

  .primary,
  .secondary {
    padding: 11px 18px;
    font-size: 13px;
  }

  .background-slider {
    bottom: -20px;
    width: 280px;
    height: 120px;
  }

  /* STATS */
  .stats-bar {
    padding: 20px 12px;
    gap: 15px;
  }

  .stat h3 {
    font-size: 24px;
  }

  .stat p {
    font-size: 11px;
  }

  /* SECTIONS */
  .programs,
  .youtube-section,
  .features,
  .campus,
  .counselling,
  .footer {
    padding: 30px 15px;
  }

  .programs h2,
  .youtube-section h2,
  .features h2,
  .campus h2,
  .counselling h2 {
    font-size: 22px;
  }

  .program-card,
  .feature-card {
    padding: 15px;
  }

  .program-card h3,
  .feature-card h3 {
    font-size: 16px;
  }

  .program-card p,
  .feature-card p {
    font-size: 13px;
  }

  /* FORMS */
  form {
    padding: 20px 12px;
  }

  form label {
    font-size: 13px;
  }

  form input,
  form select,
  form button {
    padding: 11px;
    font-size: 14px;
  }

  /* SIDE SOCIAL BAR */
  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* EXTRA SMALL PHONES (360px and below) */
@media (max-width: 360px) {
  .hero-left h1 {
    font-size: 24px;
  }

  .programs h2,
  .youtube-section h2,
  .features h2,
  .campus h2,
  .counselling h2 {
    font-size: 20px;
  }

  .buttons {
    gap: 8px;
  }

  .primary,
  .secondary {
    padding: 10px 15px;
    font-size: 12px;
  }

  .background-slider {
    bottom: -15px;
    width: 240px;
    height: 100px;
  }

  .stat h3 {
    font-size: 20px;
  }
}

/* LOGO ANIMATION (scale + 3D spin; scale does not affect flex layout size) */
@keyframes logo-spin {
  0% {
    transform: rotateY(0deg) scale(1.42);
  }
  100% {
    transform: rotateY(360deg) scale(1.42);
  }
}

@keyframes logo-spin-sm {
  0% {
    transform: rotateY(0deg) scale(1.28);
  }
  100% {
    transform: rotateY(360deg) scale(1.28);
  }
}
