/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
/* ===== NAVBAR ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 70px;
  background: #ffffff
;
  backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

.logo img {
  height: 40px;   /* adjust if needed */
  width: auto;
}


.navbar nav a {
  color: #000000
;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* Hover underline effect */
.navbar nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #1e90ff;
  left: 0;
  bottom: -6px;
  transition: 0.3s;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #ffffff
;
  color: #ffffff;
}

.navbar a {
  color: #69f3ae
;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  color: #e369f3

}
/* ===== HERO SECTION ===== */

.hero {
  height: 90vh;
  background: url("../assets/images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(5, 15, 30, 0.75),
    rgba(5, 15, 30, 0.6)
  );
}

.hero-content {
  position: relative;
  color: white;
  max-width: 650px;
  padding-left: 80px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-content p {
  margin: 20px 0;
  font-size: 18px;
  opacity: 0.9;
}

.hero-content button {
  padding: 14px 28px;
  font-size: 16px;
  border: none;
  background: #1e90ff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.hero-content button:hover {
  background: #1677d4;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  background: url("../assets/images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  animation: fadeUp 1s ease forwards;
}

.hero-content p {
  font-size: 19px;
  opacity: 0.9;
  animation: fadeUp 1.3s ease forwards;
}

.hero-content button {
  margin-top: 10px;
  animation: fadeUp 1.6s ease forwards;
}



.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-content button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  background: #1e90ff;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.hero-content button:hover {
  background: #0f6cd1;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-section {
  padding: 80px 20px;
  background: #f8f9fc;
}

.about-section .container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.about-section p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}
.why-us {
  padding: 80px 20px;
  background: #ffffff;
}

.why-us h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  color: #111;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.why-card {
  background: #f5f7fb;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #222;
}

.why-card p {
  font-size: 16px;
  color: #555;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.academics {
  padding: 80px 20px;
  background: #f9fafc;
}

.academics h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 50px;
  color: #111;
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.academic-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.academic-card:hover {
  transform: translateY(-6px);
}

.academic-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.academic-card p {
  font-size: 16px;
  color: #555;
}
.admissions {
  padding: 80px 20px;
  background: #ffffff;
}

.admissions h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
}

.admissions-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 17px;
}

.admissions-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.step-card {
  background: #f9fafc;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.step-card span {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: #00bcd4;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: #555;
}
.home-cta {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  text-align: center;
  padding: 80px 10%;
}

.home-cta h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.home-cta p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  background: #00bcd4;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s ease;
}

.cta-btn:hover {
  background: #00a4ba;
}
.footer {
  background: #111;
  color: #ccc;
  padding: 60px 10% 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-box h3,
.footer-box h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-box p,
.footer-box li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-box ul li a:hover {
  color: #00bcd4;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 13px;
}
/* ===== Admission Popup ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  position: relative;
  max-width: 520px;
  width: 90%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  animation: popupFade 0.4s ease;
}

.popup-box img {
  width: 100%;
  display: block;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

/* Animation */
@keyframes popupFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ===== Premium Navbar Upgrade ===== */
.navbar {
  padding: 18px 40px;        /* height increase */
  min-height: 80px;          /* premium feel */
}

.logo img {
  height: 60px;              /* bigger logo */
}

.logo span {
  font-size: 24px;           /* school name size */
  font-weight: 600;
}

/* Navigation menu items */
.navbar ul li a {
  font-size: 17px;           /* menu text size */
  padding: 10px 14px;
}

/* Align everything vertically */
.navbar,
.navbar * {
  box-sizing: border-box;
}
/* ===== Logo Text Styling ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.school-name {
  font-size: 24px;
  font-weight: 600;
  color:#08306b
  /* keep your orange */
}

.school-affiliation {
  font-size: 11px;          /* very small text */
  color: #000000;           /* black */
  font-weight: 400;
}
/* ===== Excellence Image Section ===== */
.excellence-section {
  padding: 60px 40px;
  background: #fffaf0;
}

.excellence-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.excellence-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.excellence-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Overlay */
.excellence-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  
  background: linear-gradient(
  to top,
  rgba(3, 157, 184, 0.863),
  rgba(3, 127, 184, 0.863)
);

  color: #ffffff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

/* Text styling */
.excellence-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f3f3f3;
}

.excellence-overlay p {
  font-size: 14px;
  line-height: 1.5;
}

/* Hover Effects */
.excellence-card:hover img {
  transform: scale(1.08);
}

.excellence-card:hover .excellence-overlay {
  transform: translateY(0);
}
/* ===== Navbar Link Highlight (Orange Box) ===== */
.navbar nav a {
  text-decoration: none;
  color: #000000;          /* BLACK text by default */
  padding: 10px 18px;
  margin: 0 6px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}


/* Hover effect */
.navbar nav a:hover {
  background-color: #0d47a1;   /* ORANGE */
  box-shadow: 0 4px 10px rgba(255, 182, 26, 0.35);
  color: #ffffff;
}

/* Active (selected page) */
.navbar nav a.active {
  background-color: #0d47a1;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.35);
  color: #ffffff;
}
/* ===== Legacy of Excellence Section ===== */
.legacy-section {
  background: linear-gradient(135deg, #0d47a1, #08306b);
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.legacy-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
}

.legacy-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.95;
}
/* ================= MOBILE HORIZONTAL SCROLL (INSTAGRAM STYLE) ================= */
@media (max-width: 768px) {

  .excellence-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
  }

  .excellence-card {
    min-width: 85%;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  /* hide scrollbar */
  .excellence-container::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 768px) {

  .excellence-card img {
    width: 100%;
    height: auto;          /* KEY FIX */
    object-fit: contain;  /* NO CROP */
    border-radius: 12px;
  }

}
@media (max-width: 768px) {

  .excellence-card {
    height: auto;        /* REMOVE FIXED HEIGHT */
  }

}
@media (max-width: 768px) {

  .excellence-card {
    height: auto;        /* REMOVE FIXED HEIGHT */
  }

}
/* ================= MOBILE NAVBAR ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

@media (max-width: 768px) {

  .navbar {
    padding: 14px 20px;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fffaf0;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
  }

  .navbar nav.open {
    display: flex;
  }

  .navbar nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }
}
/* ================= MOBILE EXCELLENCE FIX ================= */
@media (max-width: 768px) {

  .excellence-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 10px 20px;
    scroll-snap-type: x mandatory;
  }

  .excellence-card {
    min-width: 85%;
    scroll-snap-align: center;
    border-radius: 16px;
  }

  .excellence-card img {
    width: 100%;
    height: auto;          /* KEY */
    object-fit: contain;  /* KEY */
    border-radius: 16px;
  }

  /* remove overlay on phone for now */
  .excellence-overlay {
    display: none;
  }

  /* hide scrollbar */
  .excellence-container::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}
/* ================= FIX EXCELLENCE IMAGES (MOBILE ONLY) ================= */
@media (max-width: 768px) {

  /* Container becomes horizontal scroll */
  .excellence-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px;
    padding: 10px 16px 20px;
    scroll-snap-type: x mandatory;
  }

  /* Each card takes almost full screen */
  .excellence-card {
    flex: 0 0 90% !important;
    scroll-snap-align: center;
    border-radius: 16px;
  }

  /* IMAGE FIX — THIS IS THE KEY */
  .excellence-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    border-radius: 16px;
  }

  /* Disable overlay on phone (for now) */
  .excellence-overlay {
    display: none !important;
  }

  /* Hide scrollbar */
  .excellence-container::-webkit-scrollbar {
    display: none;
  }
}
/* ===== MOBILE EXCELLENCE FIX ===== */
@media (max-width: 768px) {

  .excellence-card {
    position: relative;
    flex: 0 0 85%;
    height: 420px;              /* SAME HEIGHT FOR ALL */
    border-radius: 18px;
    overflow: hidden;
  }

  .excellence-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* fills card nicely */
    display: block;
  }
}
@media (max-width: 768px) {

  .excellence-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(3, 184, 160, 0.9),
      rgba(3, 157, 184, 0.6)
    );
    color: #fff;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* TAP to show overlay */
  .excellence-card:active .excellence-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
.top-header{ 
  background-color: #08306b;
}
/* ===== NAVBAR DROPDOWN ===== */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

/* Dropdown box */
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 999;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #0d47a1;
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.page-hero {
  background: linear-gradient(135deg, #0d47a1, #08306b);
  color: white;
  padding: 80px 10%;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.95;
}
.about-intro {
  display: flex;
  gap: 40px;
  padding: 80px 10%;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 60px 10%;
  background: #f9fafc;
}

.about-card {
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
}

.about-card h3 {
  margin-bottom: 12px;
  color: #0d47a1;
}
.about-highlights {
  padding: 70px 10%;
  text-align: center;
}

.about-highlights h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.about-highlights ul {
  list-style: none;
  max-width: 600px;
  margin: auto;
}

.about-highlights li {
  font-size: 17px;
  margin-bottom: 12px;
}
/* ===== ABOUT PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0d47a1, #08306b);
  padding: 90px 10%;
  text-align: center;
  color: #ffffff;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.page-hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}
/* ===== ABOUT INTRO ===== */
.about-intro {
  display: flex;
  gap: 50px;
  padding: 90px 10%;
  align-items: center;
  background: #ffffff;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 16px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
/* ===== ABOUT CARDS ===== */
.about-cards {
  background: #f9fafc;
  padding: 80px 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.about-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.12);
}

.about-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}
/* ===== ABOUT HIGHLIGHTS ===== */
.about-highlights {
  padding: 80px 10%;
  background: #ffffff;
  text-align: center;
}

.about-highlights h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 35px;
  color: #111;
}

.about-highlights ul {
  list-style: none;
  max-width: 650px;
  margin: auto;
  padding: 0;
}

.about-highlights li {
  font-size: 17px;
  color: #444;
  margin-bottom: 14px;
  padding-left: 10px;
}
/* ===== ABOUT CTA ===== */
.about-cta {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 90px 10%;
  text-align: center;
  color: #ffffff;
}

.about-cta h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-cta p {
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .about-intro {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    font-size: 30px;
  }
}
/* ================= CONTACT FORM UI FIX ================= */

.contact-form-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.contact-form-card h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.contact-form-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-group textarea {
  resize: none;
}

/* Focus effect */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(255,140,26,0.15);
}

/* WhatsApp Button */
.whatsapp-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
}

/* ================= MOBILE IMPROVEMENT ================= */
@media (max-width: 768px) {
  .contact-form-card {
    padding: 25px;
  }

  .contact-form-card h2 {
    font-size: 22px;
  }
}
/* ================= TOP INFO BAR ================= */

.top-header {
  background: #08306b; /* ORANGE */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 5%;
  font-size: 13px;
  overflow: hidden;
}

.top-left,
.top-right {
  white-space: nowrap;
  font-weight: 500;
}

/* Marquee container */
.top-marquee {
  flex: 1;
  overflow: hidden;
  margin: 0 20px;
  position: relative;
}

/* Moving text */
.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeMove 18s linear infinite;
  font-weight: 500;
}

/* Animation */
@keyframes marqueeMove {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 12px;
  }

  .top-marquee {
    width: 100%;
    margin: 0;
  }
}/* ================= ADMIN LOGIN UI ================= */

#adminBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: #08306b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 9999;
}

#adminModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.admin-box {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  width: 280px;
  text-align: center;
}

.admin-box h3 {
  margin-bottom: 15px;
}

.admin-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.admin-box button {
  width: 100%;
  padding: 10px;
  background: #08306b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Floating Admin Button */
.admin-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  background: #0d47a1;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Overlay (dark background) */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none; /* HIDDEN BY DEFAULT */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Box */
.admin-modal {
  background: #fff;
  padding: 30px 26px;
  width: 320px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  animation: popupScale 0.25s ease;
}

/* Close Button */
.admin-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

/* Inputs */
.admin-modal input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Login Button */
.admin-modal button {
  width: 100%;
  padding: 10px;
  background: #0d47a1;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Error text */
#adminError {
  color: rgb(255, 0, 0);
  font-size: 14px;
  margin-top: 8px;
}

/* Animation */
@keyframes popupScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  bottom: 86px;              /* ABOVE admin button */
  right: 22px;
  width: 52px;
  height: 52px;
  background: #25D366;       /* WhatsApp green */
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}
/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

/* Dark overlay */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );
}

/* Text content */
.slide-overlay {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 500px;
  z-index: 2;
}

.slide-overlay h1 {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 800;
}

.slide-overlay h1 span {
  color: #03b8ff;
}

.slide-overlay p {
  font-size: 22px;
  margin: 15px 0 25px;
}

.hero-btn {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.hero-btn:hover {
  background: #08306b;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow:hover {
  background: #0d47a1;
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-slider {
    height: 65vh;
  }

  .slide-overlay h1 {
    font-size: 34px;
  }

  .slide-overlay p {
    font-size: 16px;
  }
}
/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* LEFT GRADIENT SHADE */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    oklch(39.62% 0.25891 268.157 / 0.993),
    rgba(5, 49, 192, 0.705),
    rgba(0, 11, 112, 0.13),
    rgba(0, 9, 37, 0)
  );
}

/* CONTENT */
.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 25px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #0d47a1;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #08306b;
}

/* ARROWS */
.hero-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 28px;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.hero-slider .prev { left: 20px; }
.hero-slider .next { right: 20px; }

/* MOBILE */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 18px; }
  .hero-slider { height: 75vh; }
}
/* ==============================
   MOBILE RESPONSIVE FIX ONLY
   DO NOT TOUCH DESKTOP UI
   ============================== */

@media (max-width: 768px) {

  /* GLOBAL */
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 15px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  p  { font-size: 14px; line-height: 1.6; }

  /* TOP HEADER */
  .top-header {
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    gap: 6px;
  }

  .top-marquee {
    width: 100%;
  }

  /* NAVBAR */
  .navbar {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    width: 45px;
    height: auto;
  }

  .school-name {
    font-size: 14px;
  }

  .school-affiliation {
    font-size: 11px;
  }

  /* HAMBURGER */
  .hamburger {
    display: block;
  }

  /* MOBILE NAV MENU */
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
  }

  .navbar nav.open {
    display: flex;
  }

  .navbar nav a {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
  }

  /* HERO SLIDER */
  .hero-slider {
    height: auto;
  }

  .slide {
    min-height: 70vh;
  }

  .hero-content {
    padding: 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* EXCELLENCE SECTION */
  .excellence-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .excellence-overlay {
    padding: 15px;
  }

  /* WHY US */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .why-card {
    padding: 15px;
  }

  /* LEGACY SECTION */
  .legacy-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-text {
    font-size: 12px;
  }

  /* ACADEMICS */
  .academics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .academic-card {
    padding: 15px;
  }

  /* ADMISSIONS */
  .admissions-steps {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .step-card span {
    font-size: 20px;
  }

  /* CTA */
  .home-cta {
    padding: 30px 15px;
    text-align: center;
  }

  .home-cta h2 {
    font-size: 20px;
  }

  .cta-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* FOOTER */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 20px 15px;
  }

  .footer-box ul {
    padding: 0;
  }

  /* POPUP */
  .popup-box img {
    width: 90%;
    max-width: 350px;
  }

  /* FLOATING BUTTONS */
  .admin-fab,
  .whatsapp-fab {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  p  { font-size: 13px; }

  .legacy-stats {
    grid-template-columns: 1fr;
  }
}
/* =====================================
   MOBILE FIX PATCH (NO DESKTOP CHANGE)
   ===================================== */

@media (max-width: 768px) {

  /* -------- GLOBAL SAFETY -------- */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* -------- FORCE HAMBURGER -------- */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 2001;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: #000;
    display: block;
  }

  /* -------- NAVBAR FIX -------- */
  .navbar {
    position: relative;
    z-index: 2000;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    z-index: 1999;
  }

  .navbar nav.open {
    display: flex;
  }

  .navbar nav a {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  /* -------- HERO SLIDER FIX -------- */
  .hero-slider {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: block;
    z-index: 1;
  }

  .slides {
    position: relative;
    height: 70vh;
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }

  .slide.active {
    display: flex;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: #fff;
  }

  .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
  }

  /* -------- PREVENT HERO FROM HIDING -------- */
  header,
  section {
    overflow: visible;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .slides,
  .hero-slider {
    height: 65vh;
  }

  .hero-content h1 {
    font-size: 20px;
  }
}
/* =========================================
   FINAL MOBILE NAV + HERO FIX (LOCKED)
   DESKTOP UI NOT TOUCHED
   ========================================= */

@media (max-width: 768px) {

  /* ---------- GLOBAL ---------- */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ---------- HAMBURGER ---------- */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 5000;
  }

  .hamburger span {
    width: 26px;
    height: 3px;
    background: #000;
    display: block;
  }

  /* ---------- NAVBAR ---------- */
  .navbar {
    position: relative;
    z-index: 4000;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .navbar nav.open {
    display: flex;
  }

  /* ---------- MAIN NAV ITEMS ---------- */
  .navbar nav > a,
  .navbar nav > .nav-dropdown > a {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  /* ---------- DROPDOWN BEHAVIOR ---------- */
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  /* hide dropdowns by default */
  .nav-dropdown .dropdown-menu {
    display: none;
    position: static;
    width: 100%;
    background: #f8f8f8;
    box-shadow: none;
  }

  /* show dropdown ONLY when tapped */
  .nav-dropdown:focus-within .dropdown-menu {
    display: block;
  }

  /* ---------- DROPDOWN LINKS ---------- */
  .nav-dropdown .dropdown-menu a {
    font-size: 14px;
    font-weight: 400;
    padding: 10px 0;
    display: block;
    text-align: center;
    border-bottom: 1px dashed #ddd;
  }

  /* ---------- HERO SLIDER ---------- */
  .hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
  }

  .slides {
    position: relative;
    height: 100%;
  }

  .slide {
    position: absolute;
    inset: 0;
    display: none;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
  }

  .slide.active {
    display: flex;
  }

  /* ---------- HERO CONTENT CENTER FIX ---------- */
  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .hero-content h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .hero-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .hero-slider {
    height: 65vh;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .navbar nav > a,
  .navbar nav > .nav-dropdown > a {
    font-size: 15px;
  }

  .nav-dropdown .dropdown-menu a {
    font-size: 13px;
  }
}
/* =========================================
   FINAL MOBILE NAV FIX — LOCKED
   ========================================= */

@media (max-width: 768px) {

  /* RESET */
  nav, nav * {
    box-sizing: border-box;
  }

  /* HAMBURGER */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    z-index: 5000;
  }

  .hamburger span {
    width: 26px;
    height: 3px;
    background: #000;
  }

  /* NAV CONTAINER */
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .navbar nav.open {
    display: flex;
  }

  /* MAIN ITEMS (LINE-WISE) */
  .navbar nav > a,
  .navbar nav > .nav-dropdown > a {
    display: block;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
  }

  /* DROPDOWN */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown .dropdown-menu {
    display: none;
    background: #f7f7f7;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  /* DROPDOWN ITEMS (SMALLER) */
  .nav-dropdown .dropdown-menu a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
    text-align: center;
  }

  /* HERO CENTER FIX */
  .hero-slider {
    height: 70vh;
  }

  .slide {
    display: none;
    align-items: center;
    justify-content: center;
  }

  .slide.active {
    display: flex;
  }

  .hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }
}
/* =====================================
   HERO TEXT PERFECT CENTER (MOBILE)
   ===================================== */

@media (max-width: 768px) {

  .slide {
    position: relative;
  }

  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 90%;
    max-width: 360px;

    text-align: center;
    z-index: 3;
  }

  .hero-content h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .hero-btn {
    margin: 0 auto;
    display: inline-block;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 20px;
  }
}
/* =====================================
   MOVE HAMBURGER TO RIGHT (MOBILE)
   ===================================== */

@media (max-width: 768px) {

  .navbar {
    position: relative;
  }

  .hamburger {
    position: absolute;
    right: 15px;   /* adjust if needed */
    top: 50%;
    transform: translateY(-50%);
  }
}
/* =====================================
   EXCELLENCE CARD TAP OVERLAY (MOBILE)
   ===================================== */

@media (max-width: 768px) {

  .excellence-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  /* hide overlay by default */
  .excellence-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(255, 140, 0, 0.95),
      rgba(255, 140, 0, 0.6),
      rgba(255, 140, 0, 0)
    );

    color: #fff;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transform: translateY(100%);
    transition: transform 0.4s ease;
  }

  /* show overlay on tap */
  .excellence-card.active .excellence-overlay {
    transform: translateY(0);
  }

  .excellence-overlay h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .excellence-overlay p {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* =========================================
   EXCELLENCE CARD MOBILE OVERLAY — FINAL
   ========================================= */

@media (max-width: 768px) {

  .excellence-card {
    position: relative;
    overflow: hidden;
  }

  /* OVERRIDE DESKTOP HOVER COMPLETELY */
  .excellence-card:hover .excellence-overlay {
    opacity: 0 !important;
    transform: translateY(100%) !important;
  }

  .excellence-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
      to top,
      rgba(0, 26, 255, 0.95),
      rgba(0, 68, 255, 0.7),
      rgba(255, 140, 0, 0)
    );

    color: #fff;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;

    pointer-events: none; /* important */
  }

  /* SHOW OVERLAY ON TAP */
  .excellence-card.active .excellence-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .excellence-overlay h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .excellence-overlay p {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* =========================================
   EXCELLENCE CARD MOBILE — NUCLEAR FIX
   ========================================= */

@media (max-width: 768px) {

  .excellence-card {
    position: relative !important;
    overflow: hidden !important;
  }

  /* KILL DESKTOP HOVER COMPLETELY */
  .excellence-card:hover .excellence-overlay {
    display: none !important;
  }

  /* BASE OVERLAY STATE */
  .excellence-overlay {
    position: absolute !important;
    inset: 0 !important;

    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(
      to top,
      rgba(55, 0, 255, 0.95),
      rgba(0, 4, 255, 0.7),
      rgba(255,140,0,0)
    );

    color: #fff;
    padding: 20px;

    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;

    transition: all 0.4s ease !important;
    z-index: 5 !important;
  }

  /* SHOW OVERLAY ON TAP */
  .excellence-card.active .excellence-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
  }
}
/* =========================================
   EXCELLENCE OVERLAY — SLIDE UP FROM BOTTOM
   ========================================= */

@media (max-width: 768px) {

  .excellence-card {
    position: relative !important;
    overflow: hidden !important;
  }

  /* BASE STATE — HIDDEN AT BOTTOM */
  .excellence-overlay {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;

    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;

    /* 🔥 CORRECT GRADIENT (DARK → LIGHT → TRANSPARENT UPWARDS) */
    background: linear-gradient(
      to top,
      rgb(0, 38, 255) 0%,
      rgba(0, 47, 255, 0.671) 35%,
      rgba(0, 60, 255, 0.377) 65%,
      rgba(255, 140, 0, 0) 100%
    );

    color: #fff;
    padding: 22px;

    /* 🔥 START FROM BOTTOM */
    transform: translateY(100%);
    opacity: 1;
    visibility: visible;

    transition: transform 0.45s ease;
    z-index: 5;
  }

  /* ACTIVE — SLIDE UP */
  .excellence-card.active .excellence-overlay {
    transform: translateY(0);
  }

  .excellence-overlay h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .excellence-overlay p {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* =====================================
   FORCE HAMBURGER VISIBILITY (ALL PAGES)
   ===================================== */

@media (max-width: 768px) {

  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: absolute !important;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 9999 !important;
  }
}
/* =====================================
   HAMBURGER ALIGNMENT FIX (ALL PAGES)
   ===================================== */

@media (max-width: 768px) {

  .navbar {
    position: relative !important;
  }

  .hamburger {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;

    display: flex !important;
    flex-direction: column;
    gap: 4px;

    z-index: 5000 !important;
  }

}
/* =====================================
   CONTACT PAGE MOBILE FIX (ONLY)
   DESKTOP NOT AFFECTED
   ===================================== */

@media (max-width: 768px) {

  /* ---------- PAGE HERO ---------- */
  .page-hero {
    padding: 50px 15px;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 14px;
  }

  /* ---------- CONTACT MAIN SECTION ---------- */
  .contact-section,
  .contact-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 20px 15px !important;
    gap: 25px;
  }

  /* ---------- LEFT INFO & RIGHT FORM ---------- */
  .contact-info,
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ---------- FORM CARD ---------- */
  .contact-form {
    padding: 20px !important;
    border-radius: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
  }

  /* ---------- WHATSAPP BUTTON ---------- */
  .contact-form button,
  .cta-btn {
    width: 100%;
  }

  /* ---------- MAP SECTION ---------- */
  iframe {
    width: 100% !important;
    height: 320px !important;
    border-radius: 12px;
  }

  /* ---------- PREVENT SIDE CUT ---------- */
  body {
    overflow-x: hidden;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 22px;
  }

  .page-hero p {
    font-size: 13px;
  }
}
/* =====================================
   CONTACT FORM CARD MOBILE FIX (FINAL)
   ===================================== */

@media (max-width: 768px) {

  /* Parent container must stack */
  .contact-section,
  .contact-wrapper,
  .contact-container {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* FIX SEND MESSAGE CARD */
  .contact-form,
  .send-message,
  .contact-form-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 auto !important;
    padding: 20px !important;

    box-sizing: border-box !important;
  }

  /* FIX INPUTS CUTTING */
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* REMOVE SIDE PUSH */
  .contact-form * {
    box-sizing: border-box;
  }
}
/* =====================================
   HIDE CONTACT FORM ON MOBILE ONLY
   ===================================== */

@media (max-width: 768px) {
  .contact-form,
  .send-message,
  .contact-form-card {
    display: none !important;
  }
}
/* =====================================
   MOBILE WHATSAPP BUTTON (CONTACT PAGE)
   ===================================== */

.mobile-whatsapp-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-whatsapp-cta {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
  }

  .mobile-whatsapp-cta button {
    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  }
}
/* ===== GALLERY PAGE ===== */
.gallery-section {
  padding: 80px 10%;
  background: #ffffff;
}

.gallery-section h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
  color: #111;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover effect */
.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-grid img {
    height: 180px;
  }
}
.photo-box {
  width: 130px;
  height: 150px;
  border: 1px solid #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.photo-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-label {
  padding: 6px 12px;
  background: #0d47a1;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
}

.upload-label input {
  display: none;
}
.photo-box {
  width: 140px;
  height: 180px;
  border: 2px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-label {
  position: absolute;
  padding: 6px 12px;
  background: #0d47a1;
  color: white;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}

.upload-label input {
  display: none;
}
/* About section styling */
.about-section {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
}

/* Heading */
.about-section h2 {
  font-size: 42px;
  font-weight: 900;
  color: #000;
  margin-bottom: 20px;
}

/* Paragraph */
.about-section p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #666;
}
/* ================= MOBILE FIXES ONLY ================= */
@media (max-width: 768px) {

  /* Form container padding */
  .form-container {
    padding: 15px;
    border: none;
  }

  /* Make table stack vertically */
  table, tr, td {
    display: block;
    width: 100%;
  }

  td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 5px;
  }

  /* Inputs full width */
  input, select, textarea {
    width: 100%;
    font-size: 15px;
    padding: 8px;
  }

  /* Labels look better */
  td:first-child {
    font-weight: bold;
    margin-top: 10px;
  }

  /* Photo upload box center */
  .photo-box {
    margin: 15px auto;
    width: 160px;
    height: 180px;
    padding-top: 50px;
  }

  /* Submit button bigger */
  .cta-btn {
    width: 100%;
    font-size: 18px;
    padding: 14px;
  }

  /* Page hero text smaller */
  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 14px;
  }

  /* Navbar spacing */
  .navbar nav a {
    padding: 12px 0;
    font-size: 16px;
  }
}
.chairman-desk-section {
  padding: 80px 10%;
  background: #f9fafc;
  text-align: center;
}

.chairman-desk-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #0d47a1;
}

.chairman-card {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.chairman-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .chairman-desk-section {
    padding: 50px 5%;
  }

  .chairman-desk-section h2 {
    font-size: 24px;
  }
}
.news-section {
  padding: 80px 10%;
  background: #f9fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.news-card h3 {
  padding: 15px 15px 5px;
  color: #0d47a1;
}

.news-card p {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #555;
}
.news-section {
  padding: 40px 10%;
  background: #f9fafc;
}

.news-title {
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #08306b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 20px;
  margin: 15px;
  color: #333;
}

.news-card p {
  margin: 0 15px 20px;
  color: #666;
  font-size: 14px;
}
.news-section {
  padding: 70px 10%;
  background: #f9fafc;
}

.news-title {
  font-size: 36px;
  text-align: center;
  color: #0d47a1;
  margin-bottom: 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  text-decoration: none;
  color: black;
  padding-bottom: 15px;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card h3 {
  margin: 15px;
}

.news-card p {
  margin: 0 15px;
  color: #555;
}
/* Important News */
.important-news {
  padding: 40px 10%;
  background: #fff3e6;
}

.important-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0d47a1;
  color: white;
  padding: 20px 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge {
  background: #b30000;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.important-text {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.important-btn {
  background: white;
  color: #0d47a1;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.important-btn:hover {
  background: #ffe0c2;
}

/* Mobile */
@media (max-width: 768px) {
  .important-box {
    flex-direction: column;
    text-align: center;
  }

  .important-text {
    font-size: 16px;
  }
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  transition: 0.2s;
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20
}
.navbar {
  position: relative;
  z-index: 1000;
}
.navbar {
  position: relative;
  z-index: 1000;
}
.hero {
  width: 100%;
  position: relative;
}
.hero {
  width: 100%;
  position: relative;
}
.made-by a {
  color: #0d47a1;
  text-decoration: none;
  font-weight: 600;
}

.made-by a:hover {
  text-decoration: underline;
}
.news-img {
  width: 100%;
  max-height: 700px;   /* change if you want bigger/smaller */
  object-fit: cover;   /* crops nicely */
  border-radius: 12px;
}
.about-card:nth-child(1) h3 {
  color: #2563eb; /* blue */
}

.about-card:nth-child(2) h3 {
  color: #16a34a; /* green */
}

.about-card:nth-child(3) h3 {
  color: #f97316; /* orange */
}

.about-card:nth-child(4) h3 {
  color: #9333ea; /* purple */
}

.about-card:nth-child(5) h3 {
  color: #e11d48; /* pink/red */
}

.about-card:nth-child(6) h3 {
  color: #0d9488; /* teal */
}
/* Card 1 */
.about-card:nth-child(1) {
  background: #dbeafe;   /* light blue */
  border-left: 6px solid #2563eb;
}

/* Card 2 */
.about-card:nth-child(2) {
  background: #dcfce7;   /* light green */
  border-left: 6px solid #16a34a;
}

/* Card 3 */
.about-card:nth-child(3) {
  background: #ffedd5;   /* light orange */
  border-left: 6px solid #f97316;
}

/* Card 4 */
.about-card:nth-child(4) {
  background: #f3e8ff;   /* light purple */
  border-left: 6px solid #9333ea;
}

/* Card 5 */
.about-card:nth-child(5) {
  background: #ffe4e6;   /* light pink */
  border-left: 6px solid #e11d48;
}

/* Card 6 */
.about-card:nth-child(6) {
  background: #ccfbf1;   /* light teal */
  border-left: 6px solid #0d9488;
}
.about-card {
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover effect */
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.rb-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}
/* Mobile Fix */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    text-align: center;
  }
}/* ===== MOBILE BUTTON FIX – NUCLEAR VERSION ===== */
@media (max-width: 768px) {

  /* catch most button styles */
  .primary-btn,
  .secondary-btn,
  .cta-btn,
  .btn,
  .hero a {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 !important;
    text-align: center !important;
  }

}/* ===== ROSENBRIDGE MOBILE FIX ===== */
@media (max-width: 768px) {

  .hero-buttons{
    display: flex;
    flex-direction: column;   /* stack them */
    gap: 12px;                /* space between */
    width: 100%;
  }

  .hero-buttons a{
    width: 100%;
    text-align: center;
  }

}
/* ================= MOBILE ================= */
@media(max-width:768px){

  .hero{
    padding:60px 6% 80px;
  }

  .hero h1{
    font-size:28px;
  }

  /* FIX BUTTON CHAOS */
  .hero-buttons{
    display:flex;
    flex-direction:column;
    gap:20px;
    align-items:flex-start;
  }

  .hero-buttons .btn{
    width:100%;
    text-align:center;
  }

}
@media(max-width:768px){

  .hero{
    padding:60px 6% 80px;
  }

  .hero h1{
    font-size:28px;
  }

  /* Button layout */
  .hero-buttons{
    display:flex;
    flex-direction:column;
    gap:16px;              /* ⭐ THIS creates breathing room */
    margin-top:0px;
  }

  /* Button size */
  .hero-buttons .btn{
    width:100%;
    text-align:center;
    margin:0;             /* remove old right margin */
  }

}
/* ================= CONTACT PAGE WHATSAPP FIX ================= */
@media (max-width: 768px) {
  body.contact-page .whatsapp-float{
    bottom: 120px !important;  /* move upward */
    right: 20px;
  }
}
