/* Gradient button */
.btn-gradient {
  background: linear-gradient(135deg, #f59f00, #d63384);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  padding: 14px 28px;
}

.text-secondary {
  color: #343a40 !important;
}

.btn-outline-danger {
  font-size: 1.1rem;
  padding: 14px 28px;
  border-width: 2px;
}

.btn-gradient:hover {
  opacity: 0.9;
  color: #fff;
}

/* Phone button */
.phone-btn {
  background: linear-gradient(135deg, #f59f00, #d63384);
  padding: 8px 14px;
  border-radius: 25px;
  color: #fff !important;
  text-decoration: none;
}
.phone-btn:hover {
  opacity: 0.9;
}

/* Image background area */
.image-bg {
  background-color: #fef0f5;
  
}

/* Feature pills */
.badge-pill {
  display: inline-block;
  background-color: #fdecee;
  color: #000;
  padding: 8px 14px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
}

.booking-title {
  background: linear-gradient(90deg, #FFD700, #FF69B4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Icon box */
.icon-box {
  background: linear-gradient(135deg, #f59f00, #d63384);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Subject card hover effect */
.subject-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

/* Love learning section */
.love-learning-section {
  background-color: #fffefe;
  overflow-x: hidden; 
  padding: 60px 0;
}

/* Features */
.features-container {
  position: absolute;
  height: 1000px;
  width: 100%;
  overflow-x: hidden;
  left: 0;
  right: 0;
}
.central-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 150px;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.feature-card {
  background-color: rgba(128,128,128,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  width: 260px;
  z-index: 3;
  transition: transform 0.3s ease;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-8px);
}

/* Card positions (desktop only) */
#card-1 { position: absolute; top: 0; left: 104px; }
#card-2 { position: absolute; top: 190px; left: 325px; }
#card-3 { position: absolute; top: 591px; right: 320px; }
#card-4 { position: absolute; bottom: 39px; right: 95px; }

/* Responsive layout */
@media (max-width: 991.98px) {
  .features-container {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .central-image {
    position: static;
    transform: none;
    width: 200px;
    height: 260px;
    margin-bottom: 20px;
  }
  .feature-card {
    position: static;
    width: 100%;
    max-width: 350px;
  }
}

/* Step section */
.step-card { border: none; }
.how-it-works-section {
  margin: 50px auto;
  padding: 20px;
  width: 100%;
  max-width: 1300px;
  border-radius: 20px;
}
.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59f00, #d63384);
  color: white;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.how-works-icon {
  background: rgb(235, 114, 134);
  color: white;
  font-size: 2rem;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Live preview */
.live-preview {
  background: linear-gradient(135deg, #f59f00, #d63384);
  text-align: center;
}

/* Testimonials */
.testimonial-card {
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 8px rgba(0,0,0,0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.testimonials-section { margin-top: 10px; }

/* Teacher section */
.teacher-section .text-gradient {
  background: linear-gradient(90deg, #e83e8c, #6f42c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 auto;
  padding: 0 20px;
}
.teacher-photo-card {
  /* margin-top: 100px; */
  background: #c63467; 
  /* height: 500px; */
}

/* Qualifications */
.qual-item {
  background: linear-gradient(135deg, #f59f00, #d63384);
  color: #2b2b2b;
}
.qual-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e83e8c, #6f42c1);
  color: #fff;
  flex: 0 0 40px;
}

/* Pricing */
.pricing-section { background: #ffffff; margin-top: 70px; }
.pricing-table { border-radius: 16px; overflow: hidden; min-width: 500px; }
.pricing-table thead {
  background: linear-gradient(135deg, #f59f00, #d63384) !important;
}
.pricing-table th {
  padding: 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: transparent !important;
  color: white !important;
}
.pricing-table td { color: #5c5be5; line-height: 50px; }
.pricing-table tbody tr:nth-child(odd) td { background-color: #f9fcff !important; }
.pricing-table tbody tr:nth-child(even) td { background-color: #f4fbf8 !important; }

/* Pricing table wrapper for mobile scroll */
.pricing-table-wrapper {
  width: 100%;
  overflow-x: auto;
}
@media (max-width: 576px) {
  .pricing-table td, .pricing-table th {
    padding: .75rem .65rem;
    font-size: .95rem;
  }
}

/* Demo card */
.demo-card {
  background: #fff5f7;
  border: 1px solid rgba(220,53,69,0.15);
}

/* CTA */
.cta-gradient {
  background: linear-gradient(135deg, #f59f00, #d63384);
  color: #fff;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}
.cta-gradient .btn { color: deeppink; }
.cta-gradient .btn:hover { opacity: 0.95; }

/* FAQ */
.accordion-button {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
}
.accordion-body {
  font-size: 1.05rem;
  line-height: 1.7;
}
.faq-section {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 0;
}
.faq-container {
  width: 100%;
  max-width: 1270px;
  padding: 20px;
  background: #f8f0d7;
  border-radius: 20px;
  margin: 20px auto;
}
.faq-contact-box {
  background: rgb(245, 213, 213);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  padding: 20px;
  max-width: 1250px;   /* or any value you want */
  width: 100%;        /* will shrink on mobile */
  margin: 30px auto;  /* centers it horizontally */
}

.faq-contact-box h5 { margin-bottom: 8px; }
.faq-contact-box p { margin: 6px 0; color: #555; }
.faq-contact-box a {
  color: #e63946;
  text-decoration: none;
}
.faq-contact-box a:hover { text-decoration: underline; }
.faq-contact-box i { margin-right: 6px; }

/* FAQ Contact Section */
.faq-contact-section {
  background: linear-gradient(135deg, #f59f00, #d63384);
  width: 100%;
  max-width: 1300px;
  margin: 20px auto 50px;
  border-radius: 30px;
  padding: 20px;
}
.faq-contact-section .stat-box {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 10px;
}

/* Badges */
.badge {
  font-size: 1.1rem;
  padding: 0.7em 1.4em;
  border: #2b2b2b 1px solid;
  background: linear-gradient(135deg, #f59f00, #d63384);
}
.badge:hover {
  background-color: gold;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Testimonials Carousel Nav */
.testimonials-section .custom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 5;
}
.carousel-control-prev.custom-nav { left: -60px; }
.carousel-control-next.custom-nav { right: -60px; }
.custom-nav:hover {
  background: black;
  color: white;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .carousel-control-prev.custom-nav { left: 10px; }
  .carousel-control-next.custom-nav { right: 10px; }
}

/* Typography scaling */
@media (max-width: 576px) {
  h1, .booking-title { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  p, .accordion-body { font-size: 0.95rem; }
  .btn-gradient, .btn-outline-danger { font-size: 1rem; padding: 10px 20px; }
}
/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
  /* Button adjustments */
  .btn-gradient, .btn-outline-danger {
    padding: 12px 24px;
    font-size: 1rem;
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Feature cards */
  .feature-card {
    width: 90%;
    margin: 0 auto 20px;
  }
  .feature-card .icon-box {
   margin: inherit;
  }
  
  /* Central image */
  .central-image {
    width: 200px;
    height: 260px;
    margin: 0 auto 30px;
  }
  
  /* Teacher section */
  .teacher-photo-card {
    margin-top: 30px;
    height: auto;
    padding: 20px 0;
  }
  
  /* Pricing table */
  .pricing-table {
    min-width: 100%;
  }
  
  .pricing-table td, 
  .pricing-table th {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Testimonial navigation */
  .carousel-control-prev.custom-nav, 
  .carousel-control-next.custom-nav {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .carousel-control-prev.custom-nav { left: 5px; }
  .carousel-control-next.custom-nav { right: 5px; }
  
  /* FAQ section */
  .faq-container {
    padding: 15px;
    border-radius: 15px;
  }
  
  .accordion-button {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .accordion-body {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }
  
  /* General typography */
  h1, .booking-title { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  
  /* Spacing adjustments */
  .love-learning-section,
  .how-it-works-section,
  .testimonials-section,
  .pricing-section,
  .faq-section {
    padding: 30px 15px;
  }
  
  /* Step cards */
  .step-card {
    margin-bottom: 30px;
  }
  
  /* Phone button */
  .phone-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 399.98px) {
  .btn-gradient, .btn-outline-danger {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .booking-title {
    font-size: 1.5rem;
  }
  
  .feature-card {
    width: 100%;
  }
  
  .icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
  /* Hero Section */
  .hero-section1 {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .hero-content {
    padding: 30px 20px !important;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.3;
  }
  
  /* Button Stacking */
  .btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-gradient, 
  .btn-outline-danger {
    width: 100%;
    margin: 5px 0 !important;
  }
  
  /* About Section */
  .about-section {
    padding: 30px 20px !important;
    min-height: auto !important;
  }
  
  /* Subjects Section */
  .subjects-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 30px 20px !important;
  }
  
  /* Features Section */
  .love-learning-section {
    min-height: auto !important;
    padding: 30px 0 !important;
  }
  
  .features-container {
    position: relative !important;
    height: auto !important;
    padding: 20px;
  }
  
  .central-image {
    /* position: relative !important; */
    transform: none !important;
    margin: 0 auto 30px !important;
  }
  
  .feature-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  
  /* How It Works */
  .how-it-works-section {
    padding: 30px 20px !important;
  }
  
  .step-card {
    margin-bottom: 30px;
  }
  
  /* Testimonials */
  .testimonials-section {
    padding: 30px 20px !important;
  }
  
  .testimonial-card {
    margin: 10px 0 !important;
  }
  
  /* Teacher Section */
  .teacher-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 30px 20px !important;
    min-height: auto !important;
  }
  
  .teacher-photo-card {
    margin-top: 0 !important;
    height: auto !important;
    padding: 20px !important;
  }
  
  /* Pricing */
  .pricing-section {
    padding: 30px 20px !important;
  }
  
  .pricing-table {
    min-width: 100% !important;
    font-size: 0.9rem;
  }
  
  /* FAQ */
  .faq-container {
    padding: 20px 15px !important;
    border-radius: 10px !important;
  }
  
  .accordion-button {
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }
  
  /* Footer CTA */
  .faq-contact-section {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 30px 20px !important;
  }
  
  .stat-box {
    margin-bottom: 20px;
  }
  
  /* Location Badges */
  .location-badges {
    justify-content: center;
  }
  
  .badge {
    margin: 5px;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #f59f00, #d63384);
  }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 1.8rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  /* Hero Image */
  .hero-image {
    min-height: 50vh !important;
  }
  
  /* Subject Cards */
  .subject-card {
    margin-bottom: 15px;
    align-items: center;
  }
  
  /* Testimonial Navigation */
  .carousel-control-prev.custom-nav, 
  .carousel-control-next.custom-nav {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
  }
  
  .carousel-control-prev.custom-nav {
    left: 0 !important;
  }
  
  .carousel-control-next.custom-nav {
    right: 0 !important;
  }
  
  /* Booking Form */
  .booking-form {
    padding: 20px 15px !important;
  }
  
  /* Teacher Qualifications */
  .qual-item {
    padding: 15px !important;
  }
}

/* Super Small Screens */
@media (max-width: 375px) {
  .btn-gradient, 
  .btn-outline-danger {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
  }
  
  .feature-card {
    padding: 15px !important;
  }
  
  .icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }
}