
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* width: 100%; */
  /* overflow-x: hidden; */
}
html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
}
/* --------------------------------------------------------------banner---------------------- */
#floatingPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  /* adjust width */
  max-height: 480vh;
  /* adjust height */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

#floatingPopup img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

#floatingClose {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  background: #fff;
  border-radius: 50%;
  padding: 2px 6px;
}
/* ----------------------------------------------------navigtion bar------------------------------ */
.menu-icons {
  display: none;
}


nav {
  position: relative;
  z-index: 1000;
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(255, 255, 255);
  padding: 12px 85px;
  color: rgb(49, 38, 38);
  height: 15vh;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 80px;
  height: 80px;
}

.name img {
  width: 55vh;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  /* padding-right: 40px; */
  margin-left: 55vh;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  font-size: large;
  font-weight: 400;
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  transition: color 0.3s ease;
}

/* Underline animation */
/* .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: white;
  transition: width 0.3s ease;
} */

/* .nav-links a:hover::after {
  width: 100%;
} */

/* .nav-links .mobile-only {
  display: none;
} */

/* Used for toggling the menu open */
/* .nav-links.show {
  display: flex !important;
  flex-direction: column;
} */



/* .hamburger,
.close-icon {
  display: none;
} */

/*--------------------------------------------------------- Slider container homepage---------------------- */
.slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  /* Adjust based on navbar height */
  overflow: hidden;
  z-index: 1;
}

/* Each slide */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;

}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* black shade */
  z-index: 1;
}



.slide.active {
  opacity: 1;
  z-index: 1;
}


.slide-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  z-index: 2;
}


.slide-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.slide-text p {
  font-size: 1.2rem;
}

/* -----------------------------------------------------------------------About NIS section----------------- */
.about-section {
  padding: 60px 20px;
  background-color: #f5faff;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  max-width: 1400px;
  /* margin: auto; */
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  margin-left: 80px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #1a5e3a;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.6;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
   margin-left: 60px;
}

.about-image img {
  max-width: 100%;
  height: 65vh;
  object-fit: fill;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
 
}

.courses-section {
  background-color: #f9fcff;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #1a5e3a;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.course-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.course-card img {
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
}

.course-card h3 {
  color: #1a5e3a;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.course-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

.course-card button {
  padding: 10px 20px;
  background-color: #1a5e3a;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.course-card button:hover {
  background-color: #1a5e3a;
}

/* ----------------------------------------------gallery section---------------------------------- */
.gallery-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.gallery-filters {
  margin: 30px 0;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  background-color: #eee;
  margin: 5px;
  cursor: pointer;
  border-radius: 20px;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #1a5e3a;
  color: white;
}

/* .gallery-item {
  width: 30%;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: none; /* Hide by default */


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* When active, show item */
/* .gallery-item.show {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
} */

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.gallery-item {
  flex: 1 1 calc(30% - 20px);
  max-width: calc(30% - 20px);
  border-radius: 12px;
  overflow: hidden;
  display: none;
}

.gallery-item.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.gallery-image-wrapper {
  position: relative;
  height: 250px;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 100%;
  padding: 15px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}


.gallery-image-wrapper:hover .overlay {
  transform: translateY(0);
  opacity: 1;
  /* display: block; */
}

.overlay h3 {
  margin: 0 0 5px;
  font-size: 18px;
  color: white;
}

.overlay .date {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 5px;
}

.overlay .desc {
  font-size: 13px;
  line-height: 1.4;
}

.video-box {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.video-link {
  display: block;
  height: 100%;
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 70px;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}


.video-box:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}



.principal-section {
  width: 100%;
  background-color: #f4f4f4;
  padding: 60px 20px;
}
/* --------------------------------------------------------principal section-------------------------- */
.principal-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.principal-photo img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.principal-info {
  flex: 1;
}

.principal-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.principal-info h4 {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.principal-info p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* === Principal Section === */
.principal-section {
  width: 100%;
  background-color: #f4f4f4;
  padding: 60px 20px;
}

.principal-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
  letter-spacing: 1px;
}

.principal-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  justify-content: center;
}

.principal-photo img {
  width: 405px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.principal-info {
  flex: 1;
  /* min-width: 300px; */
}

.principal-info h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.principal-info h4 {
  font-size: 20px;
  color: #555;
  margin-bottom: 20px;
}

.principal-info p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

/* === Faculty Section === */
.faculty-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.faculty-section h2 {
  text-align: center;
}

.faculty-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
  letter-spacing: 1px;
}

.faculty-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
}

.faculty-card {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

.faculty-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.faculty-card h4 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.faculty-card p {
  font-size: 14px;
  color: #555;
}
/* ----------------------------------------------------contact section------------------------------ */
.contact-section {
  background: #f4f6f9;
  padding: 60px 20px;
}

.contact-heading {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
}

.contact-container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #1a5e3a;
  outline: none;
}

.submit-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  color: white;
  background-color: #1a5e3a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #005f9a;
}

/* Admission Banner */
.admission-banner {
  background-color: #d32f2f;
  color: white;
  text-align: center;
  padding: 10px 0;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
}

.admission-banner h2 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 2px;
}



.school-details,
.offerings {
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  color: #1a3a5f;
  font-size: 1.5rem;
}

ul {
  list-style: none;
  padding: 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #1a3a5f;
}

.course-list p {
  font-weight: bold;
  font-size: 1.3rem;
  color: #1a3a5f;
  margin: 5px 0;
}

.enroll-btn {
  display: inline-block;
  background-color: #ffc107;
  color: black;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
}

/* Note Section */
.note {
  background-color: #676767c2;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
}

.school-footer {
  background: linear-gradient(135deg, #3fa9a4 0%, #4a90e2 100%);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px 20px 0;
}
/* ---------------------------------------------------------footer------------------------------------------ */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  flex: 1 1 300px;
}

.footer-left h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-left p {
  font-size: 16px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 3;
}

.footer-left img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.footer-right {
  flex: 1 1 400px;
}

.footer-right iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding: 15px 0;
  background: linear-gradient(135deg, #3fa9a4 0%, #4a90e2 100%);
  font-size: 15px;
  border-top: 1px solid #333;
}


/* ------------------------------------------------social  media section------------------------------------- */
.social-buttons {
  position: fixed;
  left: 20px;
  top: 70%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10000;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn img {
  width: 28px;
  height: 28px;
}

.social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}


.social-btn.whatsapp {
  background: #25D366;
}

.social-btn.youtube {
  background: #f3f3f3;
}

.social-btn.facebook {
  background: #1877F2;
}

.social-btn.call {
  background: #25d366;
  /* call/phone green */
}

.social-btn.call img {
  border-radius: 16px;
}



.offerings img {
  height: 100px;
  width: 100px;
}

/* ------------------------------------------------------------------------------chatbot-------------------- */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a73e8;
  color: #fff;
  font-size: 22px;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

#chatbot {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.chat-header {
  background: #1a73e8;
  color: #fff;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.chat-body {
  padding: 10px;
  height: 260px;
  overflow-y: auto;
}

.bot-msg,
.user-msg {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.bot-msg {
  background: #f1f1f1;
}

.user-msg {
  background: #1a73e8;
  color: #fff;
  text-align: right;
}

.chat-options {
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-options button {
  width: 100%;
  margin-bottom: 6px;
  padding: 8px;
  border: none;
  background: #e8f0fe;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}

.enroll-section {
    gap: 20px;
}



.enroll-btn:hover {
    background: #094062;
    color: white;
}

/* Overlay */
.overlayform {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 99;
}

/* Popup Form */
.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 2px -2px 12px rgb(94, 94, 94);
    background: #fff;
    width: 360px;
    padding: 25px;
    border-radius: 10px;
    display: none;
    z-index: 100;
}

.popup-form h2 {
    margin-bottom: 15px;
    color: #0b3c5d;
}

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.popup-form button {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: #fff;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}
