* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#ait_credit
{
  height: 150px;
  width: 1000px;
  margin-left: 75px;
}
/* Section layout */
#first_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 100px;
  background-color: #fff;
  height: 200px;
}

/* --- Base heading layout --- */
#first_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: -30px;
}
#title {
  color: rgb(9, 163, 223);                 /* Navy blue text fill */
  -webkit-text-stroke: 1px #081cce;       /* Bright outline */
  font-weight: 900;
  letter-spacing: 2px;
  display: inline-block;
  font-size: 2.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* smooth zoom */
  cursor: pointer; /* optional for hover pointer */
}

/* Hover effect */
#title:hover {
  transform: scale(1.2); /* smooth zoom in */
}


/* Right heading/paragraph */
#first_section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 45%;                 /* keep it narrower for readability */
  margin: 0;
  line-height: 1.4;
  text-align: justify;             /* straight column like justification */
  font-family: 'Times New Roman', Times, serif
}

#second_img
{
  height: 600px;
  width: 1000px;
  margin-right: 70px;
  margin-top: 20px;
  margin-left: 150px;
  margin-bottom: 0;
  border-radius: 20px;
}

/* Section layout */
#third_section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px 50px 100px; /* top right bottom left */
  background-color: #fff;
  height: 180px;
  margin-bottom: 0;
}

/* Left heading */
#third_section h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.2;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  position: relative;
  left: 60px;  /* moves the heading slightly to the left */
}

/* Right heading/paragraph */
#third_section p {
  font-size: 1.2rem;
  color: #444;
  max-width: 45%;                 /* keep it narrower for readability */
  margin: 0;
  line-height: 1.5;
  text-align: justify;             /* straight column like justification */
  font-family: 'Times New Roman', Times, serif
}

#fourth_section {
  padding: 50px 100px;
  background-color: #f9f9f9;
  margin-top: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 30px; /* spacing between columns and rows */
}

.grid-item {
  padding: 20px;
  text-align: center;
  border-radius: 0 0 50px 0; /* bottom-right curved only */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Hover effect */
.grid-item:hover {
  transform: scale(1.05);                   /* smooth zoom in */
  box-shadow: 0 12px 25px rgba(0,0,0,0.15); /* enhanced soft shadow */
}

/* Grid 1 – Yellow shades */
.grid-item:nth-child(1) { 
  background: linear-gradient(135deg, #fff9c3, #fff5a8, #fff182, #ffed5c, #ffe63a);
}

/* Grid 2 – Green shades */
.grid-item:nth-child(2) { 
  background: linear-gradient(135deg, #d1fae5, #a8f7d1, #7cf3bb, #4ff0a6, #1ceb8f);
}

/* Grid 3 – Blue shades */
.grid-item:nth-child(3) { 
  background: linear-gradient(135deg, #dbeafe, #b8ddff, #94cfff, #71c2ff, #4da4ff);
}

/* Grid 4 – Pink shades */
.grid-item:nth-child(4) { 
  background: linear-gradient(135deg, #fde2e2, #fbbcbc, #f89696, #f67070, #f44a4a);
}

/* Grid 5 – Orange shades */
.grid-item:nth-child(5) { 
  background: linear-gradient(135deg, #fff7ed, #ffe4c7, #ffd2a2, #ffbf7c, #ffaa57);
}

/* Grid 6 – Purple shades */
.grid-item:nth-child(6) { 
  background: linear-gradient(135deg, #ede9fe, #d5cfff, #bdb5ff, #a49bff, #8c81ff);
}

/* Grid 7 – Sky blue shades */
.grid-item:nth-child(7) { 
  background: linear-gradient(135deg, #e0f2fe, #bce6fe, #98d9fe, #74cdfe, #50c0fe);
}

/* Grid 8 – Light green shades */
.grid-item:nth-child(8) { 
  background: linear-gradient(135deg, #f0fdf4, #d1fadf, #b2f5ca, #94f0b5, #75ec9f);
}

/* Grid 9 – Peach shades */
.grid-item:nth-child(9) { 
  background: linear-gradient(135deg, #fef3c7, #fde7a0, #fbdc79, #f9d14f, #f7c726);
}

.grid-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: 'Times New Roman', Times, serif;
  color: #001f54; /* Navy blue heading */
}

.grid-item p {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
  font-family: 'Times New Roman', Times, serif;
}

.pic
{
  height: 100px;
  width: 100px;
}

#fifth_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, 4, 255, 0.7);
}


.student-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2601ac;
}

.student-review {
  font-size: 1rem;
  color: black;
  line-height: 1.5;
}

/* Navigation arrows */
.prev, .next {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background: hsla(236, 98%, 36%, 0.831);
  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: #051199;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out; /* smooth slide effect */
}

/* Responsive 
@media (max-width: 1024px) { .alumni-item { flex: 0 0 calc(33.333% - 20px); } }
@media (max-width: 600px) { .alumni-item { flex: 0 0 calc(50% - 15px); } }

*/

/* ===== 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);
}

/* ========== Responsive Images ========== */
#ait_credit, #second_img, .grid-item .pic {
  max-width: 100%;
  height: auto;
}

/* ========== Two-column sections stack vertically ========== */
@media (max-width: 1024px) {
  #first_section, #third_section {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    height: auto;
  }

  #first_section h1, #third_section h1 {
    text-align: center;
    left: 0; /* reset position */
  }

  #first_section p, #third_section p {
    max-width: 90%;
    text-align: center;
    margin-top: 15px;
  }
}

/* ========== Grid responsiveness ========== */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  #second_img, #ait_credit {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }
}

/* Footer adjustments */
@media (max-width: 768px) {
  #site_footer {
    font-size: 0.9rem;
    height: auto;
    padding: 20px 10px;
  }
}

/* ================= Hamburger Menu ================= */
.hamburger-menu {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-right: 30px;
}

/* Show hamburger on smaller screens */
@media (max-width: 768px) {
  .nav-links, .social-icons, .join-btn {
    display: none; /* hide normal menu */
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .hamburger-menu {
    display: block; /* show hamburger */
  }

  /* Toggle visibility when active */
  .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;
  }
}

/* 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;
  }
}

