/* ================ Base Styles ================ */
:root {
  --primary-color: #F15D22;
  --secondary-color: #156866;
  --accent-color: #f9c35c;
  --light-bg: #f8f0d7;
  --white: #fff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* ================ Header - Desktop (unchanged) ================ */
header {
  padding: 10px 0;
  line-height: normal;
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.container-header {
  padding-left: 80px;
  padding-right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

header img {
  width: 240px;
  height: 40px;
}

/* ================ Hero Section - Desktop (unchanged) ================ */
.curved-bg {
  background-color: #f9c35c;
  margin-left: 70px;
  margin-right: 70px;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  margin-top: 30px;
  padding: 60px 20px 115px;
  position: relative;
  overflow: visible;
  text-align: center;
}

.curved-images {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
}

.curved-images img {
  width: 180px;
}

.curved-images img:nth-child(1),
.curved-images img:nth-child(4) {
  margin-top: -80px;
  margin-bottom: 80px;
}

.curved-images img:nth-child(2),
.curved-images img:nth-child(3) {
  margin-top: 30px;
  margin-bottom: -30px;
}

.floating-img {
  animation: float 6s ease-in-out infinite;
}

/* ================ Trust Signals ================ */
.trust-signal {
  display: flex;
  width: 100%; /* Fixed width hata diya */
  max-width: 1300px; /* Max width set kiya for large screens */
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 300px auto 100px;
  flex-wrap: wrap;
  padding: 0 15px; /* Side spacing for small screens */
}

.strips {
  height: 180px;
  width: 280px;
  background-color: rgb(225, 168, 94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.strips i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #fff;
}

.badge {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* ================ Form Section - Desktop (unchanged) ================ */
.form-bg {
  background-color: rgb(248, 240, 240);
  width: 1270px;
  padding-top: 80px;
  padding-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
}

.feature-box {
  background-color: white;
  padding: 28px 20px;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(139, 137, 151, 0.07);
  margin-bottom: 20px;
  height: 100%;
}

.booking-form-section {
  background: #156866;
  border-radius: 18px;
  color: #fff;
  padding: 35px 28px 24px 28px;
  box-shadow: 0 6px 24px rgba(21, 104, 102, 0.11);
  margin-bottom: 32px;
}

.booking-form-section label {
  color: #fff;
  font-weight: 500;
}

.send-otp-btn {
  background: #e1393c;
  border: none;
  padding: 10px 32px;
  border-radius: 24px;
  font-weight: bold;
  margin-top: 8px;
}

.send-otp-btn:hover {
  background: #bc2728;
}

/* ================ Custom Card - Desktop (unchanged) ================ */
.custom-card {
  background-color: #ddd5ee;
  border-radius: 20px;
  padding: 32px;
  max-width: 1300px;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  display: flex;
}

.image-section {
  object-fit: contain;
  width: 800px;
  height: 300px;
}

.text-section {
  object-fit: contain;
}

.main-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.orange-title {
  font-weight: 700;
  color: #ff7443;
  font-size: 1.5rem;
}

.description {
  font-size: 1rem;
  margin-top: 12px;
  width: 50rem;
}

/* ================ Hero Content - Desktop (unchanged) ================ */
.hero-section {
  background-image: url("/landingpage/add3/image/1440%20x%20680%20px%20.jpg");
  background-size: cover;
  background-position: center center; /* Image perfectly center align */
  background-repeat: no-repeat;
  background-color: #c7f1f1;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin: 100px auto 60px;
  border-radius: 20px;
  max-width: 1300px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  color: #000;
}

/* ================ Subjects Section - Desktop (unchanged) ================ */
.container-sub {
  max-width: 1300px;
  margin: 0 auto 50px;
  padding: 32px 16px;
  background: #f8f0d7;
  border-radius: 20px;
}

.heading {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.subheading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 1rem;
  color: #444;
}

.subheading strong {
  font-weight: 600;
}

.content-flex {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.student-img {
  flex: 1 1 250px;
  max-width: 330px;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.student-img img {
  width: 90%;
  max-width: 260px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #e0e0e0;
  background:#f8f0d7;
  padding: 16px 0;
  object-fit: cover;
}

.points-list {
  flex: 2 1 350px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 20px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: #febd55;
  border-radius: 50%;
  display: inline-block;
}

.point-details {
  flex: 1;
}

.point-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: #222;
}

.point-desc {
  color: #555;
  font-size: 0.96rem;
  margin-top: 3px;
}

/* ================ Testimonials - Desktop (unchanged) ================ */
#testimonials .card {
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

#testimonials .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.custom-carousel-btn {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  z-index: 5;
}

.carousel-control-prev.custom-carousel-btn {
  left: -44px;
}

.carousel-control-next.custom-carousel-btn {
  right: -44px;
}

.custom-carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.custom-wide-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ================ Teacher Banner - Desktop (unchanged) ================ */
.teacher-banner {
  background-color: #f3edff;
  background-image: url("/landingpage/add3/image/2881x1401.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  margin: 50px auto 20px;
  border-radius: 20px;
  max-width: 1300px;
}

.teacher-banner h5 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.text-highlight {
  color: #F15D22;
}

/* ================ FAQ Section - Desktop (unchanged) ================ */
.faq-container {
  width: 1270px;
  padding-left: 100px;
  padding-right: 100px;
  background: #f8f0d7;
  padding-top: 50px;
  padding-bottom: 50px;
  margin: 50px auto 30px;
  border-radius: 20px;
}

.accordion-button {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23F15D22' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 8a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 0 1h-12A.5.5 0 0 1 1.5 8z'/%3E%3C/svg%3E");
}

/* ================ Footer (unchanged) ================ */
.footer {
  background: #ea8ea8;
  color: white;
  text-align: center;
  padding: 20px;
  /* position: relative; */
  font-size: 14px;
}

.footer p {
  margin: 4px 0;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(90deg, #e8a843, #d75b7e);
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: none;
}

.scroll-top:hover {
  opacity: 0.85;
}

/* ================ Mobile Styles ================ */
@media (max-width: 991px) {
  /* Header */
  .container-header {
    padding: 0 20px;
  }
  
  header img {
    width: 180px;
    height: auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-content img {
    max-width: 100%;
  }
  
  /* Hero Section */
  .curved-bg {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding: 40px 15px 0px;
  }
  
  .curved-images {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 40px;
  }
  
  .curved-images img {
    width: 140px;
    margin: 0 !important;
  }
  
  /* Trust Signals */
   .trust-signal {
    margin: 60px auto 30px;
    gap: 20px;
    padding: 0 10px;
  }

  .strips {
    /* width: calc(50% - 10px); */
    padding: 12px;
    font-size: 16px;
    height: auto;
  }
  .strips i {
    font-size: 30px;
    margin-bottom: 10px;
  }
  
  /* Form Section */
  .form-bg {
    width: 100%;
    padding: 40px 15px;
    border-radius: 0;
  }
  
  /* Custom Card */
  .custom-card {
    flex-direction: column;
    padding: 25px;
    margin: 30px 15px;
    text-align: center;
  }
  
  .image-section {
    width: 100%;
    height: auto;
  }
  
  .description {
    width: 100%;
  }
  
  /* Hero Content */
  .hero-section {
    min-height: 300px;
    margin: 60px 15px 30px;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background-size: cover;
    background-position: center center; /* Mobile pe bhi center align */
    text-align: center;
  }
  
  /* Subjects Section */
  .container-sub {
    margin: 30px 15px;
    padding: 25px 15px;
  }
  
  .content-flex {
    flex-direction: column;
    align-items: center;
  }
  
  .student-img {
    margin-bottom: 25px;
  }
  
  .points-list {
    margin-top: 0;
  }
  
  /* Testimonials */
  .custom-carousel-btn {
    left: 10px !important;
    right: 10px !important;
  }
  
  /* Teacher Banner */
  .teacher-banner {
    margin: 30px 15px !important;
    padding: 30px 15px !important;
  }
  
  /* FAQ Section */
  .faq-container {
    width: 100% !important;
    margin: 30px 15px !important;
    padding: 25px 15px !important;
  }
}

/* Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Show scroll-to-top button when scrolling */
window.addEventListener('scroll', function() {
  const scrollTop = document.querySelector('.scroll-top');
  if (window.pageYOffset > 300) {
    scrollTop.style.display = 'block';
  } else {
    scrollTop.style.display = 'none';
  }
});