/* Mobile-first styles go here */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-weight: normal;
}

/* Navbar  */

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 0.6rem;
}

nav div {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

nav button {
  background-image: linear-gradient(to right, #fa127b, #7110cc);
  padding: 0.3rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  border-radius: 1.5rem;
  border: none;
  color: white;
}

/* nav button:hover {
  background-image: linear-gradient(to right, #e40c6d, #660cba);
  scale: 2rem;
} */

#logo {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

#course {
  background-image: linear-gradient(to right, #fa127b, #7110cc);
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 0.3rem;
  color: #7010cd;
  font-weight: 500;
}

#right-nav-section > span,
button {
  font-weight: 500;
}

/* Hero Section */
#hero-section {
  display: flex;
  flex-direction: row;
  padding-block: 1.5rem;
  background-color: #423374;
  justify-content: space-between;
  position: relative;
}

#main-hero-section {
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
}

#hero-section #main-hero-section div > h3,
#hero-section #main-hero-section div > h3 > span {
  font-family: "Comic Neue", cursive;
  font-weight: 700;
}
#hero-section #main-hero-section div > h3 {
  color: white;
}

#hero-section #main-hero-section div > h3 > span {
  color: #f2fa5c;
}

#boy-img-section img {
  height: 7rem;
}

#girl-img-section {
  display: none;
}

#main-hero-section #secondary {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  padding: 0.5rem;
  padding-right: 0.8rem;
  padding-left: 0.8rem;
  border-radius: 2rem;
  width: 90%;
  gap: 0.4rem;
}

#main-hero-section #secondary input {
  border: none;
  font-size: 0.7rem;
  background-color: #fff;
  padding: 0.4rem;
  width: 100%;
}

#main-hero-section #secondary input:focus {
  background-color: transparent;
  outline: none;
}

#main-hero-section #secondary button {
  padding: 0.3rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  font-size: 0.7rem;
  text-align: center;
  background-image: linear-gradient(to right, #fa127b, #7110cc);
  border-radius: 2rem;
  border: none;
  color: white;
}

/* Age-wise Section */
#age-wise-section {
  padding: 1rem;
}

.section-header {
  text-align: center;
}

.age-wise-container {
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  margin-top: 2rem;
  overflow-x: scroll;
  justify-content: center;
}

.age-wise-container div {
  padding: 0.5rem;
  border-radius: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 0.7rem;
  cursor: pointer;
}

/* New Launches Section */
.new-launches {
  padding: 1rem;
  background-color: #f2f5ff;
}

.new-launches-container {
  padding: 1rem;
  display: flex;
  overflow-x: auto;
  gap: 2rem;
}

.new-launch-card {
  border: 1px solid rgb(197, 197, 197);
  border-radius: 1rem;
  flex: 0 0 350px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.new-launch-card:hover {
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.2); /* blue glow */
  border: 1px solid rgb(0, 123, 255);
  transition: ease-in-out 0.1s;
}

.new-launches-container img {
  width: 100%;
  border-radius: 1.7rem;
  padding: 1rem;
  height: 100%;
}

.img-card {
  width: 100%;
  height: 40%;
  object-fit: cover;
}
.content-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.content-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 550;
}

.tab-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tab-card span {
  border-radius: 1.5rem;
  padding: 0.4rem;
  padding-inline: 0.7rem;
}

.icons-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-inline: 1rem;
  margin-bottom: 1rem;
}

.card-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(203, 203, 203);
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 2rem;
}

.card-subject {
  border: 2px solid #afbffe;
  background-color: #e0e7ff;
}

.card-classes {
  border: 2px solid #e3e020;
  background-color: #fffecb;
}

/* Teacher cards */
.teachers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem;
}

.teacher-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1rem;
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.15);
}

.teacher-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.teacher-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.teacher-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0.2rem 0;
  text-align: center;
}

.subject-tag {
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.8rem;
  display: inline-block;
}

/* Webinar staring within 24 hrs Section */
.vectorHeading {
  text-align: center;
}

/* Popular Categories */

.categories {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block: 2rem;
}

.categories > div {
  flex: 1 1 150px;
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid rgb(218, 218, 218);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.categories img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

/* Active state styles */
.categories > div.active:nth-child(1) {
  background-color: #ff7824;
  box-shadow: 0 0 15px #fea670;
}
.categories > div.active:nth-child(2) {
  background-color: #0faf62;
  box-shadow: 0 0 15px #6fc7a1;
}
.categories > div.active:nth-child(3) {
  background-color: #ffc234;
  box-shadow: 0 0 15px #e8c564;
}
.categories > div.active:nth-child(4) {
  background-color: #2fa4fe;
  box-shadow: 0 0 15px #6eb2ff;
}
.categories > div.active:nth-child(5) {
  background-color: #ff4747;
  box-shadow: 0 0 15px #ff5050;
}

/* Image grows when active */
.categories > div.active img {
  transform: scale(1.5);
}

/* Filter with time */
.filter-time {
  text-align: center;
  padding: 40px 20px;
  background: #f8ffff;
}

.filter-time h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.filter-time p {
  color: #555;
  margin-bottom: 30px;
}

.time-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.time-card {
  flex: 1 1 200px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.time-card span {
  display: block;
  font-size: 2rem;
  margin-top: 10px;
}

.time-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background-color: #f0f8ff;
}

@media (min-width: 1024px) {
  nav {
    justify-content: space-between;
    padding: 1rem 4rem;
  }

  #hero-section {
    flex-direction: row;
    align-items: center;
    padding-block: 3rem;
    font-size: 1.7rem;
  }

  #boy-img-section img {
    height: 14rem;
  }

  #girl-img-section {
    display: block;
  }
  #girl-img-section img {
    height: 14rem;
  }

  #main-hero-section {
    width: 50%;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  #main-hero-section #secondary {
    width: 70%;
  }

  .age-wise-container {
    justify-content: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .age-wise-container div {
    font-size: 1rem;
    padding: 1rem;
  }
}

@media (min-width: 1440px) {
  body {
    max-width: 1440px;
    margin: 0 auto;
  }

  nav {
    padding: 1.5rem 6rem;
  }

  #main-hero-section #secondary {
    width: 60%;
  }
}
