/* ---------------- GLOBAL RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Gradient Button */
.gradient-button {
    display: inline-block;
    background: linear-gradient(270deg, brown, white, gray);
    background-size: 500%;
    color: black;
    font-size: large;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    width: 100%;
    max-width: 220px;
    height: 60px;
    animation: gradientAnimation 8s ease infinite;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ---------------- NAV ITEMS ---------------- */
.nav-item, .nav-item1 {
  padding: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: linear-gradient(to bottom, blue, aqua);
  border-radius: 18px;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}

.nav-item1:hover {
  background: linear-gradient(to bottom, gray, black);
  border-radius: 18px;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}



/* ---------------- CAROUSEL ---------------- */
#carouselExample .carousel-item {
  height: 60vh;
  min-height: 280px;
}

#carouselExample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ---------------- SECTIONS ---------------- */
.home-courses-card {
  padding: 60px 20px;
}

.course-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.course-content {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}


/* VIDEO BOX */
.video-div video {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
}


/* ---------------- FOOTER ---------------- */
/* ---------------- FOOTER ---------------- */
footer ul {
  flex-wrap: wrap;
}

footer li {
  margin: 5px 10px;
}



/* ---------------- GRADIENT TEXT ---------------- */
.text1 {
  background: linear-gradient(90deg, #ff0000, #0000ff, #00cc00, #ff9900);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ---------------- MEDIA QUERIES ---------------- */

/* --- Large Tablets and Smaller Laptops --- */
@media (max-width: 1200px) {
  .container-fluid .d-flex img {
    margin-bottom: 10px;
  }
}

/* --- Tablets --- */
@media (max-width: 992px) {
  .home-courses-card {
    padding: 40px 15px;
  }

  #carouselExample .carousel-item {
    height: 45vh;
  }

  .container-fluid > .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .container-fluid img {
    margin: auto;
  }
}

/* --- Mobile Phones --- */
@media (max-width: 768px) {
  .header-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .gradient-button {
    max-width: 100%;
  }

  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  #carouselExample .carousel-item {
    height: 35vh;
  }

  h1, .fs-4, .display-5 {
    font-size: 1.4rem !important;
  }

  .video-div video {
    max-height: 240px;
  }

  /* All columns become full width */
  .col-md-4, .col-md-6, .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- Extra Small Phones --- */
@media (max-width: 480px) {
  #carouselExample .carousel-item {
    height: 30vh;
  }

  .course-name {
    font-size: 1.2rem;
  }

  p, li {
    font-size: 14px;
  }
}

html, body {
  overflow-x: hidden !important;
}

@media (max-width: 992px) {
  .container-fluid .d-flex.flex-wrap img {
    margin: 5px auto; /* center on mobile */
  }
}

/* Mobile Text + Layout Fix */
@media(max-width: 768px) {
  h1, .display-5, .display-4, .fs-4 {
    font-size: 1.5rem !important;
  }

  .container-fluid > .d-flex {
    flex-wrap: wrap;
    text-align: center;
  }

  .container-fluid img {
    margin: auto;
  }

  .nav {
    flex-wrap: wrap;
  }

  .home-courses-card {
    padding: 20px;
  }
}


/* ENG CARD */
.ENG {
  border: 2px solid;
  border-radius: 20px;
  background-image: linear-gradient(to left, aqua, white, blue);
  background-size: 100% 100%;
  animation: gradientAnimation 8s ease infinite;
  transition: 0.3s ease;
}

.ENG:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}

/* POPUP ANIMATION */
.admission-popup {
  animation: popupScale 0.5s ease;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

@keyframes popupScale {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modal background blur */
.modal-backdrop.show {
  backdrop-filter: blur(4px);
}
/* ------ 100% WORKING STICKY NAVBAR FIX ------ */
.sticky-nav {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  width: 100%;
}

/* Remove container-fluid overflow issue */
.container-fluid {
  overflow: visible !important;
}
.sticky-nav {
  padding: 10px 0;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
}
#chatbot-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007bff;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
  z-index: 9999;
}

#chatbot-header {
  background: #007bff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.bot-msg, .user-msg {
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.bot-msg {
  background: #e3f2fd;
}

.user-msg {
  background: #d1ffd1;
  margin-left: auto;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chatbot-input {
  flex: 1;
  border: none;
  padding: 10px;
}

#send-btn {
  width: 60px;
  border: none;
  background: #007bff;
  color: rgb(107, 90, 90,07, 90, 90);
}
