* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Section layout */
#first_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px;    /* tighter padding */
  background-color: #fff;
  min-height: 90px;
  margin-top: 0;
}

/* Heading styling */
#first_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin-top: 0;            /* remove default margin */
}

/* Paragraph styling */
#first_section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 45%;
  margin-top: 0;
  line-height: 1.4;
  text-align: justify;
  font-family: 'Times New Roman', Times, serif;
}

/* ----- Overall Section ----- */
#second_section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* left | middle | right */
  gap: 15px;
  padding: 15px;
  margin: auto;
}

/* ----- Left Div Layout ----- */
#left_img_col {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two vertical columns */
  gap: 10px;
}

/* First column = single tall image */
#left_col1 {
  display: flex;
  flex-direction: column;
}

/* Second column = two stacked images */
#left_col2 {
  display: grid;
  grid-template-rows: 1fr 1fr; /* two equal rows by default */
  gap: 10px;
}

#middle_div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* or just remove if you add align-items:start to the grid */
  padding: 5px;
}

#middle_div h2,
#middle_div p {
  margin-top: 0;
  margin-bottom: 0; /* adjust if you want small gap, e.g., 10px */
}

#middle_content {
  text-align: justify;
  line-height: 1.6;      /* better readability */
  max-width: 600px;      /* optional, keeps lines from being too wide */
  margin: 0 auto;        /* centers the block if you set a max-width */
}

/* ----- Right Div Layout ----- */
#right_img_col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ----- Image Basics ----- */
#img1, #img2, #img3, #img4, #img5 {
  border-radius: 10px;
}


/* Fading animation */
@keyframes fadeInOut {
  0%   { opacity: 0; }
  50%  { opacity: 1; }  /* fully visible */
  100% { opacity: 0; }
}

/* Optional: different speeds for each image */
#img1 { animation-duration: 3s; }
#img2 { animation-duration: 3.5s; }
#img3 { animation-duration: 4s; }
#img4 { animation-duration: 3.2s; }
#img5 { animation-duration: 3.8s; }

/* Hover effect (optional: slight glow) */
#img1:hover, #img2:hover, #img3:hover, #img4:hover, #img5:hover {
  opacity: 1; /* ensure fully visible on hover */
  filter: drop-shadow(0 0 15px #FFD700); /* soft yellow glow */
}

/* ----- Example Custom Heights (edit as you wish) ----- */
/* Make img1 tall */
#img1 { height: 600px; width: 300px; }

/* Two right-column images together match img1 height */
#img2 { height: 350px; width: 150px; }
#img3 { height: 350px; width: 150px; }

/* Right side images (sample) */
#img4 { height: 300px; width: 150px; }
#img5 { height: 400px; width: 250px; }


#third_section {
  padding: 40px;
  background: #f8f8f8;
  font-family: 'Times New Roman', serif;
  margin-top: 40px;
  margin-bottom: 0;
}

#AIT_YOGA { 
  height: 300px; 
  width: 450px; 
  border-radius: 40px; 
  margin-left: 50px; 
 }

 /* First Row Layout */
.first-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.video-box {
  flex: 1;
  min-width: 300px;
}

.video-box video {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-left: 10px;
  cursor: pointer;
}

.content-box {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  padding-top: 70px;
}

.content-box h2 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #03368e;
}

.content-box p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

/* Second Row Grid Layout */
.second-row {
  margin-top: 30px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}

/* Section styling */
#fourth_section {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
  margin-top: 0;
}

#fourth_section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

/* Container for values */
.values-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Each value box */
.value-box {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.value-box:hover {
  transform: translateY(-8px);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.value-box h3 {
  font-size: 1.4rem;
  margin: 10px 0;
  color: #0073e6;
}

.value-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

#third_section h2,
#third_section h3,
#third_section p,
#fourth_section h2,
#fourth_section h3,
#fourth_section p {
  margin-top: 0;
  margin-bottom: 10px; /* adjust this for spacing you want */
  padding: 0;
}

/* Value Icons Glow + Float + Yellow Blink */
.value-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  /* Initial glow */
  filter: drop-shadow(0 0 5px #FFD700)
          drop-shadow(0 0 10px #FFD700)
          drop-shadow(0 0 15px #FFD700);
  animation: float 3s ease-in-out infinite, yellowBlink 1.5s infinite alternate;
}

/* Floating up and down */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Yellow blink animation (like a glowing bulb) */
@keyframes yellowBlink {
  0%   { filter: drop-shadow(0 0 5px #FFD700)
                drop-shadow(0 0 10px #FFD700)
                drop-shadow(0 0 15px #FFD700); }
  50%  { filter: drop-shadow(0 0 10px #FFD700)
                drop-shadow(0 0 20px #FFD700)
                drop-shadow(0 0 25px #FFD700); }
  100% { filter: drop-shadow(0 0 5px #FFD700)
                drop-shadow(0 0 10px #FFD700)
                drop-shadow(0 0 15px #FFD700); }
}

.value-box:nth-child(1) .value-icon {
  animation: float 3s ease-in-out infinite, yellowBlink 1.5s infinite alternate;
}

.value-box:nth-child(2) .value-icon {
  animation: float 2.5s ease-in-out infinite, yellowBlink 1.3s infinite alternate;
}

.value-box:nth-child(3) .value-icon {
  animation: float 3.2s ease-in-out infinite, yellowBlink 1.7s infinite alternate;
}

.value-box {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 25px rgba(255, 215, 0, 0.4);
}

.value-box:hover .value-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px #FFD700) drop-shadow(0 0 30px #FFD700);
}

#fourth_section h2{
  color: #03368e;
  margin-bottom: 20px;
}

#fifth_section {
  padding: 50px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

#fifth_section .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #03368e;
  font-weight: bold;
}

.speciality-container {
  display: flex;
  justify-content: center; /* centers the row */
  gap: 30px;               /* space between boxes */
  flex-wrap: nowrap;       /* keep all 4 in a single row */
}

.speciality-box {
  flex: 1 1 220px;         /* flex-grow, flex-shrink, base width */
  max-width: 250px;        /* optional max width */
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speciality-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4); /* yellow glow */
}

.speciality-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  cursor: pointer;
  
  /* Animation properties */
  animation: floatGlowBlink 3s ease-in-out infinite alternate;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Floating up and down + glow + blink */
@keyframes floatGlowBlink {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 5px #FFD700);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px #FFD700);
    opacity: 1;
  }
  50% {
    transform: translateY(0);
    filter: drop-shadow(0 0 15px #FFD700);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 12px #FFD700);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 5px #FFD700);
    opacity: 0.7;
  }
}

/* Optional Hover effect: intensify glow */
.speciality-icon:hover {
  filter: drop-shadow(0 0 25px #FFD700)
          drop-shadow(0 0 35px #FFD700);
  transform: translateY(-5px) scale(1.1);
}

.speciality-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #0073e6;
}

.speciality-box p {
  font-size: 0.95rem;
  color: black;
  line-height: 1.5;
}


#sixth_section {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #03368e;
}

.review-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

.student-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  transition: all 0.5s ease;
  position: relative;
  cursor: pointer;
  border-radius: 12px; /* keeps it smooth edges */
  overflow: hidden;
}

/* Subtle floating animation */
@keyframes smoothFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.student-logo {
  animation: smoothFloat 4s ease-in-out infinite;
}

/* Gradient Shine effect */
.student-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: 0.6s;
}

/* On hover: shine moves + scale effect */
.student-logo:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.student-logo:hover::after {
  left: 100%;
}

/* Click effect */
.student-logo:active {
  transform: scale(0.95);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.7);
}


.student-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #007BFF;
}

.student-review {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Navigation arrows */
.prev, .next {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background: hsla(236, 97%, 35%, 0.575);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
}

.dot.active {
  background-color: #007BFF;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out; /* smooth slide effect */
}

/* ===== Footer ===== */
#site_footer {
  background-color: #012f7e;   /* deep navy to match headings */
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  margin-top: 40px;  /* space above footer */
  height: 70px;
  padding-top: 30px;
}

#site_footer p {
  margin: 0;
}

/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  background: linear-gradient(135deg, #5e0eea, #2600ff);
  color: #fff;
  border-radius: 30px;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  transition: all 0.4s ease;
}

/* Hover Effect */
#scrollTopBtn:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 150, 255, 0.7);
}


/* Two-column sections stack vertically */
@media (max-width: 1024px) {
  #first_section, #third_section, .first-row {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  #first_section p, #first_section h1 {
    max-width: 90%;
    text-align: center;
  }

  #middle_div, #left_div, #right_div {
    grid-column: 1 / -1;
    margin: 10px 0;
  }

  #second_section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #left_img_col, #right_img_col {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 15px;
  }
}

/* Slider responsiveness */
@media (max-width: 768px) {
  .review-slider {
    max-width: 100%;
    padding: 0 10px;
  }

  .slide {
    padding: 15px;
  }

  .prev, .next {
    font-size: 1.2rem;
    padding: 8px 12px;
  }
}

/* Values and speciality container stack on mobile */
@media (max-width: 768px) {
  .values-container, .speciality-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-right: 30px;
}

@media (max-width: 768px) {
  .nav-links, .social-icons, .join-btn {
    display: none;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }


/* Footer adjustments */
@media (max-width: 768px) {
  #site_footer {
    font-size: 0.9rem;
    height: auto;
    padding: 20px 10px;
  }
}

  .hamburger-menu {
    display: block;
  }

  .navbar.active .nav-links,
  .navbar.active .social-icons,
  .navbar.active .join-btn {
    display: block;
  }

  .nav-links a {
    display: block;
    margin: 10px 0;
  }

  .social-icons {
    justify-content: center;
    margin: 10px 0;
  }

  .join-btn {
    margin: 15px 0;
  }
}
