/* Importing custom fonts */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/* Base styles for body */
body {
  font-family: "Quicksand", serif; /* Primary font */
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Universal reset for margin, padding, and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Shared button styles */
.btn {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4rem;
  display: inline-block;
  padding: 10px;
  background: #fea301;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: opacity 0.3s ease;
  border: none;
  font-family: Quicksand;
}

/* Button hover effect */
.btn:hover {
  opacity: 0.8;
}

/* Footer menu and social icon styles */
.footer-menu,
.social-icons {
  list-style: none;
}

/* Section styling with max-width and centered alignment */
.header,
.curriculum,
.stories,
.our-stories,
.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
  padding-bottom: 60px;
}

/* Hamburger menu for mobile */
.hamburger-menu {
  display: none;
  border: none;
  background: transparent;
}

/* Date styling */
.date {
  display: inline-block;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 3rem;
  font-family: Raleway;
  position: relative;
  top: -25px;
}

/* Navbar styling */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #9a9a9a12;
}

/* Logo and menu container */
.logo,
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 35px;
  height: 35px;
}

/* Logo styling */
.logo h3 {
  color: #111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.88rem;
  margin-left: 8px;
}

/* Menu items with color styling */
.menu {
  gap: 2.5rem;
  list-style: none;
  margin-left: 422px;
}

.menu li a {
  font-size: 18px;
  font-weight: 570;
  line-height: 1.5rem;
  text-decoration: none;
}
.home {
  color: #fea301;
}

.about {
  color: #01acfd;
}

.facilities {
  color: #05d4df;
}

.admission {
  color: #5d58ef;
}

/* Contact button */
.contact-btn {
  width: 8rem;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
}

/* Hero content styling */
.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  color: #fea301;
  font-size: 50px;
  font-weight: 700;
  line-height: 65px;
  margin-bottom: 2.5rem;
}

.hero-content .black {
  color: #111;
}

.hero-content .sky-blue {
  color: #01acfd;
}

.hero-content p {
  color: #111;
  font-size: 17px;
  margin-bottom: 2.5rem;
}

/* Hero image styling */
.hero-img {
  max-width: 468.6px;
}

.hero-img img {
  width: 100%;
}

/* Enrollment and view-all buttons */
.enroll-btn,
.view-all-btn {
  font-weight: 700;
  background: #111;
  width: 14rem;
  text-align: center;
  align-content: center;
}

/* Curriculum section */
.curriculum {
  background: url("../assets/bg.png");
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 40px;
}

.curriculum h2 {
  color: #000;
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  line-height: 55.5px;
  margin-bottom: 55px;
}

/* Card container and individual card styling */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.cards-container .card {
  display: flex;
  max-width: 367.805px;
  max-height: 476.784px;
  padding: 52.819px 40.668px 53.762px 40.878px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32.069px;
  border-radius: 18.864px;
}

.cards-container .card h4 {
  color: #202020;
  font-size: 24.523px;
  font-weight: 700;
  line-height: 30.654px;
}

.cards-container .card p {
  color: #808080;
  text-align: center;
  font-family: Raleway;
  font-size: 15.091px;
  font-weight: 500;
  line-height: 28.296px;
}

/* Read more button inside cards */
.card .read-more-btn {
  text-align: center;
  font-family: "Raleway", serif;
  font-size: 15.091px;
  font-weight: 700;
  line-height: 28.296px;
  border: none;
  background-color: transparent;
}

/* Card styles with different color themes */
.card-1 {
  border: 0.943px solid #def5ff;
  background: linear-gradient(180deg, #def5ff 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.card-1 .read-more-btn {
  color: #64c8ff;
}

.card-2 {
  border: 0.943px solid #fff4dc;
  background: linear-gradient(180deg, #fff4dc 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.card-2 .read-more-btn {
  color: #f0aa00;
}

.card-3 {
  border-radius: 18.864px;
  border: 0.943px solid #f2e8ff;
  background: linear-gradient(180deg, #eee1ff 0%, rgba(255, 255, 255, 0) 40%),
    #fff;
  box-shadow: 0px 0px 28.296px 0.943px rgba(0, 0, 0, 0.05) inset;
}

.card-3 .read-more-btn {
  color: #8700ff;
}

/* Arrow button container */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 75rem;
  margin-top: -320px;
  margin-bottom: 200px;
}

.arrow-btn {
  color: #fea301;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  transition: all 0.3s ease;
  background: white;
}

/* Our stories section */
.our-stories {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("../assets/bg.png"),
  linear-gradient(0deg, rgba(254, 163, 1, 0.12), rgba(255, 255, 255, 0.09));
  background-position: top;
  background-size: contain;
}

.our-stories h2 {
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 45px;
  margin-top: 60px;
  margin-bottom: 50px;
  text-align: center;
}

/* Story card container */
.story-cards-container {
  display: grid;
  grid-template-columns: 540px 1fr 1fr;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 80px;
}

.story-big {
  grid-row: span 2;
}

.story-card-img img {
  width: 100%;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* Story card and text styling */
.story-card {
  background: #fff;
  border-radius: 16px;
}

.card-text {
  padding: 0 25px 25px 25px;
}

.card-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 38.347px;
  max-width: 402px;
  margin-bottom: 3.2rem;
}

.first-card-description {
  color: #666;
  font-family: Raleway;
  font-size: 1rem;
  font-weight: 500;
  line-height: 28.761px;
}

/* Button styles within story cards */
.btn-1 {
  background: #3cd8e8;
  padding: 15px 20px;
  margin-bottom: 1rem;
}

.btn-2,
.btn-3,
.btn-5 {
  padding: 10px 20px;
  margin-bottom: 0.5rem;
}

.btn-2 {
  background: #95b226;
}

.btn-3 {
  background: #5d58f0;
}

.btn-5 {
  font-size: 1rem;
}

.simillar-text {
  font-size: 1rem;
  line-height: 1.3rem;
  font-weight: 700;
}

.center-btn {
  text-align: center;
}

/* Footer styles */
.footer {
  background: #0294d9;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  color: #fff;
  flex-wrap: wrap;
}

/* Footer left section */
.footer-logo {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 35px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-logo h2 {
  font-family: Quicksand;
  font-size: 35px;
  font-weight: 700;
  line-height: 39.509px;
}

.footer-row {
  flex: 1;
}

.footer-menu li{
  font-size: 12px;
}

.kids-education p {
  font-size: 17px;
}

/* Footer right section */
.footer-menu li a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.keep-touch,
.about-school {
  display: flex;
  justify-content: center;
}

.about-school h4,
.keep-touch h4 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  column-gap: 0.5rem;
}

.social-icons img {
  width: 40.613px;
}

.subscribe-btn {
  background: #fea301;
  padding: 14px 20px;
  border-radius: 40px;
}

.footer-copy {
  text-align: center;
  font-family: Raleway;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  margin-top: 40px;
}

/* Responsive mobile devices */

@media (max-width: 767px) {
  .header,
  .curriculum,
  .our-stories {
    padding: 0;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.2px solid #FEA301;
  }

  .menu,
  .contact-btn,
  .story-big {
    display: none;
  }

  .logo h3{
    font-size: 26px;
  }

  .hamburger-menu {
    display: block;
    font-size: 30px;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .menu.active {
    display: flex;
  }
  
  .menu li a {
    color: #fea301;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }
  
  .hero {
    flex-direction: column-reverse;
    row-gap: 20px;
    padding: 8px 16px;
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
    padding-left: 20px;
  }

  .our-stories {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../assets/bg.png"),
      linear-gradient(0deg, rgba(254, 163, 1, 0.3), rgba(255, 255, 255, 0.3));
    background-position: top;
    background-size: contain;
  }

  .hero-content h1 {
    font-size: 32px;
    line-height: normal;
    margin-bottom: 18px;
  }

  .hero-content p {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 18px;
  }

  .hero .hero-img {
    padding: 20px 10px 0 10px;
  }

  .enroll-btn,
  .view-all-btn {
    width: auto;
    padding: 6px 24px;
    font-size: 16px;
    border-radius: 12px;
  }

  /* marquee section for mobile */
  .marquee {
    padding: 16px;
  }

  /* curriculum section for mobile */

  .curriculum h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 20px;
  }

  .cards-container {
    padding-bottom: 40px;
    margin-bottom: 0;
  }

  .btn-container {
    display: none;
  }

  .footer-container {
    flex-direction: column;
  }
  .keep-touch,
  .about-school {
    display: flex;
    justify-content: flex-start;
  }

  .center-btn {
    text-align: center;
    padding-bottom: 40px;
  }

  .date,
  .btn-2 {
    font-size: 9px;
    padding: 6px 12px;
    position: static;
    /* top: -16px; */
    text-align: center;
    margin-bottom: 14px;
  }

  .card-text {
    padding: 0 22px 0 22px;
    position: relative;
    top: -20px;
  }

  .story-cards-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .simillar-text {
    font-size: 9.133px;
    font-style: normal;
    font-weight: 700;
    line-height: 17.125px;
  }

  .footer {
    padding: 4rem 1rem;
  }

  .footer-logo {
    margin-bottom: 1.5rem;
  }

  .kids-education p {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .about-school {
    margin-bottom: 31px;
  }

  .about-school h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
  }

  .keep-touch h4 {
    font-size: 22.043px;
    font-weight: 700;
    line-height: 22.043px;
  }

  .footer-menu li {
    margin-bottom: 17px;
  }

  .footer-menu li a {
    font-size: 16.957px;
    font-weight: 500;
  }

  /* our stories section */
  .our-stories h2 {
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 26px;
  }
  .story-cards-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 20px;
  }

  .footer-logo h2 {
    font-size: 35px;
  }
}