*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Spinner Animation (optional fade effect) */
#spinner {
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
}

#spinner:not(.show) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.navbar {
  min-height: 60px;
  background-color:#fdf5aa;
  padding: 10px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 2rem;
}

.navbar-nav .nav-link {
  position: relative;
  padding: 10px 15px;
  font-size: 1.3rem;
  color: white;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  border-radius: 5px;
}

/* Underline animation on hover */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 6px;
  width: 80%;
  height: 2px;
  background-color: #f55757;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(170, 170, 170, 0.1);
}


.carousel-item img {
  object-fit: cover;
  height: 590px;
}

:root {
  --primary: #06BBCC;
}

.carousel-caption-custom {
  position: absolute;
  top: 20%;
  left: 5%;
  max-width: 650px;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  padding: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6,187,204,0.9), rgba(0,0,0,0.6));
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

.quote-author {
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  margin-top: 12px;
  color: #e0e0e0;
}

.slide1-animate {
  animation-name: fadeSlideIn;
}
.slide2-animate {
  animation-name: scaleFadeIn;
}
.slide3-animate {
  animation-name: bgSweepIn;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateX(-80px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleFadeIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bgSweepIn {
  0% { background-position: right center; opacity: 0; transform: translateY(40px); }
  100% { background-position: left center; opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .carousel-caption-custom {
    font-size: 1.2rem;
    top: 10%;
    max-width: 90%;
    padding: 20px;
  }

  .carousel-btn {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .quote-author {
    font-size: 0.9rem;
  }
}

.service-item {
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.service-item i {
  font-size: 3rem;
  color: var(--primary);
  transition: color 0.4s ease;
}

.service-item:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.service-item:hover i {
  color: #fff;
}
.service-item:hover h5,
.service-item:hover p {
  color: #fff;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.custom-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #e0e0e0;
}

.custom-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(10px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.animated-heading {
  opacity: 0;
  animation: bounceIn 1s ease-out forwards;
  animation-delay: 0.3s;
  font-size: 1rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease-out;
}

.animate-on-scroll.scrolled {
  animation: fadeInUp 0.7s ease-out forwards;
}

/* Section background and padding */
#boxes {
  padding: 3rem 0;
  background-color: whitesmoke;
}

/* Container inside the section */
.categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Box styling */
/* .category-box {
  background-color: white;
  border-radius: 10px;
  padding: 1px 2px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
} */

/* Hover Zoom Effect */
.category-box:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Text inside the box */
.category-box .text {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* GIF Image styling (base) */
.gif-img {
  height: auto;
  display: block;
  margin: 0 auto;
}

/* YouTube GIF size */
.youtube .gif-img {
  width: 85%;
  border-radius: 10%;
}

/* Books GIF size */
.books .gif-img {
  width: 85%;
   border-radius: 10%;
}

/* Teacher Guide GIF size */
.guide .gif-img {
  width: 65%;
  border-radius: 10%;
}

/* Optional: make it responsive on smaller screens */
@media (max-width: 768px) {
  .gif-img {
    max-width: 100px;
  }

  .category-box .text {
    font-size: 1rem;
  }
}


/* Detail Box Styling */
.detail-box {
  max-width: 900px;
  margin: 50px auto;
  padding: 50px 30px;
  background-color: var(--light);
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.detail-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.detail-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.detail-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.detail-box .btn-box a {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.detail-box .btn-box a:hover {
  background-color: #049bab;
}

/* Book Covers */
.book-cover {
  background-color: #f8f9fa;
  border: 2px solid #e1e1e1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.book-img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-cover:hover .book-img {
  transform: scale(1.05);
}
/* Zoom effect on book cards */
.zoom-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoom-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Footer */
.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer i {
  color: #f8f9fa;
  transition: color 0.3s ease;
}

.footer i:hover {
  color: var(--bs-primary);
}

/* Heading Styling (Why Choose Us) */
.heading_container h2 {
 font-size: 2.5rem;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  font-style: normal;
  color: #2856b8;
}

.choose-box {
  border: 2px solid #ddb579;
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
  background-color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.choose-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Contact Area Section */
.contact-area {
  padding: 60px 0;
  background-color: #f8f9fa;
}

/* Contact Card */
.contact-info {
  background-color: #fdfdfd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Hover effect for each contact box */
.contact-info:hover {
  transform: scale(1.05);
}

/* GIF image styling */
.gif-img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

/* Contact headings */
.contact-info h5 {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #e63946; /* red shade */
}

/* Contact text */
.contact-info p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0;
}

/* Email link styling */
.contact-email {
  color: #06BBCC;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
  color: #049bab;
}

/* Responsive spacing for mobile view */
@media (max-width: 767px) {
  .contact-info {
    margin-bottom: 20px;
  }
}

/* Contact image column (if using any contact image on side) */
.contact-img-col .contact-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Contact form header title */
.contact-form-header .site-title-tagline {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #333;
}

/* Contact form input fields */
.contact-form .form-control {
  border-radius: 6px;
  padding: 12px 15px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* Focus state for inputs */
.contact-form .form-control:focus {
  border-color: #06BBCC;
  box-shadow: 0 0 5px rgba(6, 187, 204, 0.2);
}

/* Submit Button */
.theme-btn {
  background-color: #06BBCC;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.theme-btn:hover {
  background-color: #049bab;
  color: white;
}


/* ✅ UPDATED: About Us Heading Style */
.section-title {
  font-size: 2.5rem;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  font-style: normal;
  color:#2856b8;
}
.service{
  font-size: 2.5rem;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  font-style: normal;
  color:#2856b8;
}
.featured{
  font-size: 2.5rem;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  font-style: normal;
  color:#2856b8;
}
.text-muted{
  font-style: italic;
  font-weight: bold;
  text-decoration:black;
}
h1.site-title-tagline{
  font-size: 2.5rem;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  font-style: normal;
  color:#2856b8 !important;
}
