*{
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  margin: 0;
    padding: 0;
    
}

body {
  background-color: #f9f9f9;  
}





.faq-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.faq-container > img{
  width: 300px;
}

.faq-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.faq-header h1 {
    font-size: 35px;
    color: #333;
}

.faq-search {
    position: relative;
}

.faq-search input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.faq-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #2f8fdd;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 3px;
    cursor: pointer;
}

.heading{
  display: flex;
  background-color: lightgray;
  width: max-content; 
  font-size: 20px;
  color: rgb(0, 0, 0);
  border-radius: 3px;
  cursor: pointer;;
}

.faq-sections {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.faq-sections .sidebar {
    flex: 1;
}

.faq-sections .sidebar ul {
    list-style-type: none;
    padding: 0;
}

.faq-sections .sidebar ul li {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.faq-sections .content {
    flex: 3;
}

.faq-item {
    margin-bottom: 15px;
    
}

.faq-item h3 {
    margin: 0;
    padding: 10px;
    background-color: #f0f0f0;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.faq-item p {
    margin: 0;
    padding: 10px;
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
}
  
.faq-main {
    width: 75%;
    padding: 20px;
  }
  
  .faq-item {
    margin-bottom: 15px;
  }
  
  .faq-item h2 {
    font-size: 18px;
    color: #34495e;
    cursor: pointer;
    padding: 15px;
    background-color: #fff;
   
  }
  
  .faq-item h2:hover {
    background-color: #eef9f9;
  }
  
  .faq-footer {
    margin-top: 30px;
    padding: 20px;
    background-color: #e6f7f9;
    border: 1px solid #d1e7ec;
    text-align: center;
  }
  
  .faq-footer h3 {
    margin-bottom: 10px;
    color: #2c3e50;
  }
  
  .contact-btn {
    background-color: #1abc9c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .contact-btn:hover {
    background-color: #16a085;
  }

  

    
  
@media screen and (min-width:320px) and (max-width:768px) {
  header{
    display: none;
  }
  .faq-sections{
    flex: column;
  }

  .faq-container > img{
    width: 240px;
  }

  .faq-main{
    width: 100%;
  }
  .faq-container{
    flex-direction: column;
    justify-content: center;
  }
  .faq-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .faq-sections{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
 
}



/* child 1 start  */
.child-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
.child-1 p {
  margin-bottom: 0;
}

.sub-child-1 {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.sub-child-1-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #007ab3;
  border-radius: 20px;
  color: white;
  padding-left: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.child-1-sub-heading {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 30px;
}

.all {
  display: flex;
  gap: 30px;
}

.all button {
  border: none;
  /* font-weight: 700; */
  background-color: transparent;
  color: white;
  gap: 20px;
}

#all-course {
    border-bottom: 4px solid #f39c12;
}
#day-care {
    border-bottom: 4px solid #007ab3;
}
#tution {
    border-bottom: 4px solid #007ab3;
}
#skill-course {
    border-bottom: 4px solid #007ab3;
} 
#crash-course {
    border-bottom: 4px solid #007ab3;
}

.all-faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.faq-heading {
  font-size: 24px;
  font-weight: 700;
  color: #007ab3;
  padding-left: 10px;
  border-left: 8px solid #f39c12;
}

.sub-faq {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}

.accordion {
  width: 100%;
}
.accordion-item {
  width: 100%;
}


/* child 1 end */

@media screen and (min-width:320px) and (max-width:768px) 
{
    .parent{
        margin-top: 0;
    }

    
    .child-1 {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .sub-child-1-top {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding-top: 25px;
      padding-left: 0px;
      padding-bottom: 25px;
    }
    .child-1-sub-heading{
        font-size: 20px;
    }
    

  
    .all {
      font-size: 10px;
      display: grid;
      grid-template-columns: auto auto auto;
      justify-content: center;
      padding-top: 20px;
      width: 100%;
    }
    .all button {
      width: fit-content;
    }
    .sub-faq {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .faq-heading {
      font-size: 18px;
    }
    .ending-bar {
      border-bottom: 1px solid rgb(235, 223, 223);
    }
    .accordion {
      width: 100%;
    }
    .accordion-item .accordion-button {
      font-size: 15px;
    }
    .accordion-body {
      font-size: 14px;
    }
}