* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #323b90;
  --text-color: #900f1f;
}

body {
  font-family: "Delius", cursive !important;
  scroll-behavior: smooth;
}

.tag {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  font-family: "Butterfly Kids", cursive;
}

.heading {
  color: var(--primary-color);
  font-weight: 700;
}

.text {
  color: var(--primary-color);
  font-weight: bold;
}

.primary-button {
  width: fit-content;
  padding: 10px 12px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.4s ease-out;
}

.primary-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
#header {
  background-color: var(--primary-color, #323b90);
}

/* Navbar */
#logo {
  width: 80px;
}

.nav-link {
  font-size: 1.1rem !important;
  color: var(--primary-color) !important;
  font-weight: bolder !important;
}

.nav-link:hover {
  color: var(--text-color) !important;
}

/* Carousel Styling */
.carousel-inner {
  /* height: 600px !important; */
  display: flex;
  align-items: center; /* Vertically center items */
}

.carousel-item {
  /* height: 600px !important; */
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important; /* Center caption */
  text-align: center !important;
}

/* Navigation buttons centered vertically */
.carousel-control-prev,
.carousel-control-next {
  width: 40px !important;
  height: 40px !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  border-radius: 50% !important;
  opacity: 0.8;
}

/* About Section */
#about {
  background: hsla(39, 80%, 76%, 1);

  background: linear-gradient(
    180deg,
    hsla(39, 80%, 76%, 1) 0%,
    hsla(357, 83%, 95%, 1) 100%
  );

  background: -moz-linear-gradient(
    180deg,
    hsla(39, 80%, 76%, 1) 0%,
    hsla(357, 83%, 95%, 1) 100%
  );

  background: -webkit-linear-gradient(
    180deg,
    hsla(39, 80%, 76%, 1) 0%,
    hsla(357, 83%, 95%, 1) 100%
  );

  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#F3D193", endColorstr="#FDEAEB", GradientType=1 );
}

.number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Activity */
#activity {
  background-color: whitesmoke;
}

.activity-card {
  padding: 15px;
  border-radius: 15px;
  overflow: hidden;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  transition: all 0.4s ease-out;
}

.activity-card .activity-img {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.activity-card .activity-bottom {
  display: flex;
  align-items: self-start;
  gap: 8px;
}

.activity-card:hover {
  transform: translateY(-8px);
}

.activity-card button {
  transition: all 0.4s ease-out;
  border: none;
  outline: none;
  color: var(--primary-color);
  background-color: transparent;
  font-weight: bold;
}

.activity-card .number-outer {
  width: 50px;
  height: 50px;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.activity-card .number-outer .number-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card .number-outer .number-inner span {
  color: white;
}

.activity-card .activity-content h5 {
  font-weight: bold;
  color: var(--primary-color);
}

.form {
  padding: 15px;
  background-color: var(--text-color);
  border-radius: 15px;
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px dashed white;
  border-radius: 15px;
  padding: 15px;
}

/* Core Values Section with Enhanced Floating Icons */
#values {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 60px 0;
}

#values::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: url("asstes/core-values-icons.svg") no-repeat center center;
  background-size: 120%;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  animation: subtleFloat 20s ease-in-out infinite;
}

#values .container {
  position: relative;
  z-index: 2;
}

/* Subtle floating animation for the entire background */
@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(0px) translateX(-5px);
  }
  75% {
    transform: translateY(10px) translateX(0px);
  }
}

/* Enhanced visibility for content over the animated background */

/* Core Values */
.facility-card {
  display: flex;
  align-items: self-start;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.facility-card:hover {
  background-color: rgba(255, 255, 255, 0.98);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.facility-card .number-outer {
  width: 50px;
  height: 50px;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.facility-card .number-outer .number-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-card .number-outer .number-inner span {
  color: white;
}

.facility-card .facility-content h5 {
  font-weight: bold;
  color: var(--primary-color);
}

.facility-img {
  width: 100%;
  /* height: 300px; */
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Contact Section */
#contact {
  background-image: url("asstes/contact-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#contact .contact-wrapper {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.contact-wrapper h4 {
  padding: 12px;
  background-color: var(--primary-color);
}

.contact-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-wrapper form input,
select,
textarea {
  background-color: transparent;
  border: 1px solid var(--text-color) !important;
}

.contact-img {
  width: 100%;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
}

.contact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Our Gallery */

.gallery-card {
  width: 100%;
  height: 300px !important;
  border-radius: 15px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Testimonials Section */
#testimonials {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="60" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>')
    repeat;
  pointer-events: none;
  z-index: 1;
}

#testimonials .container {
  position: relative;
  z-index: 2;
}

.testimonial-carousel {
  padding: 20px 0;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  margin: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--text-color));
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 25px;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
}

.rating {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.rating i {
  color: #ffc107;
  font-size: 1.2rem;
  animation: starTwinkle 2s ease-in-out infinite;
}

.rating i:nth-child(1) {
  animation-delay: 0s;
}
.rating i:nth-child(2) {
  animation-delay: 0.2s;
}
.rating i:nth-child(3) {
  animation-delay: 0.4s;
}
.rating i:nth-child(4) {
  animation-delay: 0.6s;
}
.rating i:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  position: relative;
}

.author-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.author-relation {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 500;
}

/* Owl Carousel Custom Styling */
.testimonial-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonial-carousel .owl-nav button {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-color) !important;
  color: white !important;
  border: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-carousel .owl-nav button:hover {
  background: var(--text-color) !important;
  transform: scale(1.1);
}

.testimonial-carousel .owl-nav .owl-prev {
  left: -25px;
}

.testimonial-carousel .owl-nav .owl-next {
  right: -25px;
}

.testimonial-carousel .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(50, 59, 144, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.testimonial-carousel .owl-dots .owl-dot:hover {
  background: var(--text-color);
  transform: scale(1.2);
}

/* Footer Section */
#footer-section {
  position: relative;
  background-image: url("asstes/footer-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

#footer-section::after {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.8;
  z-index: -1;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  flex-shrink: 0;
  transition: all 0.4s ease-out;
}

.social-icon:hover {
  transform: translateY(-5px);
}

.social-icon i {
  color: white;
}

.footer-bottom {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.footer-bottom a {
  color: white;
}

/* Class Section */
#class {
  background-image: url("asstes/event-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.class-card {
  width: 100%;
  background-color: white;
  border-radius: 15px;
  text-align: center;
  overflow: hidden;
}

.class-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.class-card h4 {
  color: var(--text-color);
}

.class-highlight {
  color: var(--text-color);
  font-weight: bold;
}

/* float icon */

#phone {
  position: fixed;
  top: 50%;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  z-index: 999;
  transition: all 0.4s ease-out;
}

#phone:hover {
  border-radius: 15px;
}

#scroll-top {
  display: none;
  position: fixed;
  bottom: 5%;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  z-index: 999;
  transition: all 0.4s ease-in;
}

#scroll-top:hover {
  transform: rotate(360deg);
  border-radius: 5%;
  cursor: pointer;
}

/* Boarding Card */
#day-boarding {
  background-image: url("asstes/contact-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.day-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    gap: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.day-card i {
    color: var(--primary-color);
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  max-width: 700px; /* Or any fixed size that fits well */
  flex-shrink: 0;   /* Prevent it from shrinking */
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 10s linear infinite;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.2rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #values::before {
    background-size: 150% !important;
    animation: none;
  }

  #values .tag,
  #values .heading {
    background: rgba(255, 255, 255, 0.95);
  }

  .facility-card {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .testimonial-card {
    margin: 10px;
    padding: 20px;
  }

  .testimonial-carousel .owl-nav button {
    display: none;
  }

  .quote-icon {
    font-size: 2rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}
