/* hero section */
.section-hero {
  background: linear-gradient(to bottom, #ffffff, #f7ffff, #e6ffff);
}

.hero-heading {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: sans-serif;
}

.hero-para {
  font-size: 1.2rem;
}
.btn-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  background: transparent;
  border: 1.5px solid;
  color: inherit;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-icon {
  height: 30px;
  margin-right: 6px;
}
/* Normal states */
.btn-student {
  border-color: #004aad;
  color: #004aad;
}
.btn-kids {
  border-color: #ff6505;
  color: #ff6505;
}
.btn-educators {
  border-color: #59265d;
  color: #59265d;
}
.btn-business {
  border-color: #3f06a3;
  color: #3f06a3;
}

/* Default active for "For Students" */
.btn-student {
  background: #004aad;
  color: #fff !important;
}
.btn-student .btn-icon {
  filter: brightness(0) invert(1);
}

.btn-student.active {
  background: rgb(7, 59, 192);
}

/* Hover states (dark background, no underline) */
.btn-custom:hover {
  text-decoration: none;
  color: #fff !important;
}
.btn-student:hover {
  background: #004aad;
}
.btn-kids:hover {
  background: #ff6505;
}
.btn-educators:hover {
  background: #59265d;
}
.btn-business:hover {
  background: #3f06a3;
}

/* Icons turn white on hover */
.btn-custom:hover .btn-icon {
  filter: brightness(0) invert(1);
}

/* =========================
   Base (Default styles)
========================= */
.hero-img {
  height: 28rem;
  display: block;
  margin: 0 auto;
}

.hero-btn:hover {
  background: black;
  color: white;
  transition: 0.3s;
}

/* =========================
   Extra Small (max 576px)
========================= */
@media (max-width: 576px) {
  .btn-custom {
    font-size: 0.9rem;
    height: 42px;
    width: 145px;
  }
  .hero-heading {
    font-size: 1.2rem;
    margin-top: 30px;
    text-align: center;
  }
  .hero-para {
    font-size: 0.9rem;
    text-align: center;
  }
  .hero-img {
    max-height: 16rem;
  }
  .arrow-img {
    height: 4rem;
    margin-top: 1rem;
  }
    .header-btns {
    padding: 0 0.8rem;
  }
.header-btns .btn-custom {
  display: flex;
  align-items: center;   
  justify-content: center; 
  margin: 0 auto;       
  width: 150px;            
  height: 40px;         
  text-align: center;
}

.header-btns .btn-custom .btn-icon {
  height: 24px;   
  width: auto;
  display: block;
}}

/* =========================
   Small Devices (576px - 768px)
========================= */
@media (min-width: 576px) and (max-width: 768px) {
  button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  .btn-icon {
    height: 24px;
  }
  .hero-heading {
    font-size: 1.6rem;
    text-align: center;
  }
  .hero-para {
    font-size: 1rem;
    text-align: center;
  }
  .hero-img {
    max-height: 14rem;
  }
    .header-section {
    padding: 0 4rem;
  }
  .header-btns {
    padding: 0 3rem;
  }
}

/* =========================
   Medium Devices (768px - 992px)
========================= */
@media (min-width: 768px) and (max-width: 992px) {
  .hero-heading {
    font-size: 1.8rem;
    text-align: center;
    padding-top: 2rem;
  }
  .hero-para {
    font-size: 1.2rem;
    text-align: center;
  }
  .hero-img {
    max-height: 20rem;
  }
  .arrow-img {
    position: relative;
    top: 0;
    left: 0;
    height: 5rem;
    margin-top: 1rem;
  }
  .header-section {
    padding: 0 6rem;
  }
  .header-btns {
    padding: 0 6rem;
  }
}

/* =========================
   Large Devices (992px+)
========================= */
@media (min-width: 992px) {
  .hero-img {
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
  }
  /* .img-wrapper {
    text-align: right; 
  } */
}


.arrow-img {
  position: absolute;
  top: -8%;
  left: 8rem;
  height: 7rem;
}
/* 
.row {
  margin-right: 0px !important;
  margin-left: 0px !important;
} */

/* offerings */
.row.g-3 {
  display: flex;
  flex-wrap: wrap;
}

.offerings-cards {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  padding: 1.5rem; 
}

.offering-box {
  height: 180px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.offering-box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.offerings-cards h4 {
  margin-top: 15px;
  font-size: 1.25rem;
  font-weight: 600;
}

.offerings-cards p {
  font-size: 1rem;
  line-height: 1.6rem;
  color: #727171;
  flex-grow: 1; 
}

.offerings-cards .btn-custom {
  margin-top: auto;
  padding: 10px 20px;
  width: 100%;
  border: none;
  border-radius: 10px;
  text-align: center;
}

/* Responsive fixes */
@media (max-width: 992px) {
  .heading {
    font-size: 1.8rem;
    text-align: center;
  }

  .offerings-cards p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .heading {
    font-size: 1.6rem;
  }

  .offerings-cards {
    padding: 2rem 1rem;
  }

  .offerings-cards p {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }

  .offerings-cards .btn-custom {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .heading {
    font-size: 1.4rem;
    text-align: center;
  }

  .offerings {
    padding: 0 1.8rem;
  }

  .offerings-cards {
    padding: 1.5rem 1rem;
  }

  .offerings-cards h4 {
    font-size: 1.2rem;
    text-align: center;
  }

  .offerings-cards p {
    font-size: 0.85rem;
    line-height: 1.3rem;
    text-align: center;
  }

  .offerings-cards .btn-custom {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .offering-box {
    height: 150px;
  }
}

/* why choose us */
.section-why {
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background-color: #f9f9f9;
}

.heading {
  font-size: 2rem;
  font-weight: 700;
  font-family: sans-serif;
}

.highlight {
  color: #0e3384;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  background: rgb(8, 14, 189);
  color: white;
  border-radius: 50%;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  height: 28px;
}

.sub-heading {
  font-size: 1rem;
  font-family: sans-serif;
}

.points {
  font-size: 0.9rem;
  padding-right: 3.5rem;
}

/* Tablets (≥576px and <992px) */
@media (max-width: 991px) {
  .section-why {
    flex-direction: column;
    padding: 3rem 1rem;
    text-align: center;
  }

  .section-why .row {
    flex-direction: column-reverse;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .benefit {
    justify-content: center;
  }

  .heading {
    font-size: 1.8rem;
  }

  .section-why img.why-img {
    max-width: 80%;
    height: auto;
    margin: 2rem auto;
  }
}

/* Mobile (<576px) */
@media (max-width: 575px) {
  .heading {
    font-size: 1.4rem;
    text-align: center;
  }

  .section-why {
    padding: 2rem 1rem;
  }

  .section-why p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Keep benefits in 2 columns on mobile */
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .benefit-icon {
    padding: 0.6rem;
  }

  .sub-heading {
    font-size: 0.95rem;
  }

  .points {
    padding-right: 0rem;
  }
  /* Hide descriptions only on mobile */
  .points .description {
    display: none;
  }

  .section-why img.why-img {
    width: 60%;
    max-width: 60%;
    height: auto;
    margin: 1.5rem auto;
  }
}

.btn-cards {
  display: inline-block;
  text-align: center;
  background-color: white;
  border: 1.5px solid white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

/* Impact number */
.numbers-card {
  padding: 2rem;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
}

.numbers-card h1 {
  font-weight: 700;
  margin: 0;
  font-size: 2.5rem;
}

.numbers-card p {
  margin: 0;
  font-size: 1rem;
}

/* Tablets and Small Laptops (≤991px) */
@media (max-width: 991px) {
  .numbers-card {
    padding: 1.8rem;
    height: auto;
  }

  .numbers-card h1 {
    font-size: 2.2rem;
  }

  .numbers-card p {
    font-size: 0.95rem;
  }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
  .numbers-card {
    padding: 1.5rem;
  }

  .numbers-card h1 {
    font-size: 2rem;
  }

  .numbers-card p {
    font-size: 0.9rem;
  }
}

/* Mobile Phones (≤575px) */
@media (max-width: 575px) {
  .numbers-section > div {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    padding-top: 20px;
  }

  .numbers-card {
    padding: 1rem;
    min-height: 150px;
    margin-bottom: 20px;
  }

  .numbers-card h1 {
    font-size: 1.8rem;
  }

  .numbers-card p {
    font-size: 0.85rem;
  }
}

/* working with */
.academy-name img {
  height: 50px;
  max-height: 70px;
  transition: transform 0.3s ease;
}

.academy-name img:hover {
  transform: scale(1.05);
}

/* Responsive Image Sizes */
@media (max-width: 991px) {
  .academy-name img {
    height: 55px;
  }
}
@media (max-width: 768px) {
  .academy-name img {
    height: 50px;
  }
}
@media (max-width: 575px) {
  .academy-name img {
    height: 45px;
  }
}

/* Logos Container */
.academy-logos-container {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.academy-logos-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Logo List */
.academy-logos {
  display: flex;
  justify-content: space-around; /* Desktop: equal gap */
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Logo Item */
.academy-name {
  flex: 0 0 auto;
  text-align: center;
}

/* Mobile: horizontal scroll */
@media (max-width: 991px) {
  .academy-logos {
    flex-wrap: nowrap; /* prevent wrapping */
    justify-content: flex-start;
    gap: 1.5rem;
  }
}

/* journey banner */
.hero-section {
  position: relative;
  background: url("/web/images/main/rectangle-img.png") no-repeat center center;
  background-size: cover;
  border-radius: 1.25rem;
  height: 25rem;
  max-width: 81rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: bold;
}

.image-overlay-section {
  padding: 2rem;
}

.image-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 1.25rem;
  height: 25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.hero-content p {
  max-width: 100%;
  margin: 1rem auto;
}

/* Tablets (≤991px) */
@media (max-width: 991px) {
  .hero-section {
    height: auto;
    padding: 4rem 4rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .image-overlay {
    height: auto;
    padding: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* Tablets & Small Devices (≤768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }
      .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .image-overlay {
    height: auto;
    padding: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

/* Mobile Phones (≤575px) */
@media (max-width: 575px) {
  .image-overlay-section {
    padding: 0.3rem;
  }
  .hero-section {
    padding: 2rem 1rem;
    margin: 3rem 1rem;
  }


  .hero-section .hero-content {
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .image-overlay {
    height: auto;
    padding: 2rem 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-cards {
    width: 60%;
    font-size: 0.9rem;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .my-button {
    justify-content: center !important;
  }
}

/* What our student says */
.student-card {
  background: linear-gradient(to right, #f9fbff 0%, #eef4ff 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Position the image in top-right corner */
.student-card img {
  position: absolute;
  top: 10px;
  right: 25px;
  height: 25px; /* adjust as needed */
  width: auto;
  opacity: 0.8; /* optional: softer look */
}

.student-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 18px;
}

.stars {
  color: #f5b50a;
  font-size: 1.1rem;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
}

/* line under stars */
.stars::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(8, 14, 189);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* our happy clients */
.happy-clients {
  background: #f8f9fa;
}

.testimonials-wrapper {
  max-width: 100%;
  margin-left: auto;
}

.testimonial-card {
  background: #fff;
  border-radius: 8px;
  position: relative;
}

.comma-img {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 20px;
  height: auto;
}

.testimonial-card.active {
  border-left: 5px solid rgb(8, 14, 189);
}

.testimonial-card img {
  object-fit: cover;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.blue-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: rgb(8, 14, 189);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.testimonial-card:nth-child(1) {
  transform: translateX(20px);
}

.testimonial-card:nth-child(2) {
  transform: translateX(-30px);
}

.testimonial-card:nth-child(3) {
  transform: translateX(20px);
}

/* Responsive adjustments */

/* Tablets (<992px) */
@media (max-width: 991px) {
  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) {
    transform: none;
  }

  .testimonials-wrapper {
    max-width: 100%;
  }
}

/* Mobile (<576px) */
@media (max-width: 575px) {
  .clients h5 {
    text-align: center;
  }
  .clients p {
    text-align: center;
  }
  .student-text {
    font-size: 0.9rem;
  }

  .testimonial-card {
    margin: 0 auto 1rem auto;
    max-width: 100%;
  }

  .testimonial-card:nth-child(1),
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) {
    transform: none;
  }

  .testimonials-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-card p {
    font-size: 11px;
  }
}
