body{
    background-color: #F5F5DC;
    color: black;
    padding: 0px;
    margin: 0px;
}
body::-webkit-scrollbar{
    display: none;
}
body:hover{
    cursor: default;
}
p{
    margin: 0px;
    font-size: 18px;
}
header{
    background-color: #7C2D12;
    color: white;
}
a{
    color: white;
}
.top{
    display: flex;
    width: 100%;
    padding: 10px;
    justify-content: center;
}
.top a{
    display: block;
    margin: auto 20px;
    color: white; 
    text-decoration: none;
}
.mobileview {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 10px;
    width: 100%; 
    background-color: #F5F5DC;
    box-sizing: border-box; 
}
.logo {
    height: 50px; 
    max-width: 100%;
    height: 100%;
}
.menu {
    height: 40px; 
    max-width: 100%;
    padding: 5px;
    cursor: pointer; 
}
.header_grid{
    display: grid;
    grid-template-columns: 10% 90%;
}
.header_grid1{
    display: flex;
    background-color: #F5F5DC;
    padding: 10px;
    justify-content: space-around;
}.header_grid1 a{
    color: black;
    text-decoration: none;
}
.header_grid2{
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-bottom: 20px;
}
.home_background{
    width: 100%;
    aspect-ratio: 16/9;
}
.center_font{
    text-align: center;
}
.type_grid {
    display: grid;
    grid-template-columns: 100%;
    margin: 40px 0px;
    justify-content: center;
}
.type_img {
    width: 80%;
    height: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px;
    position: relative; 
}
.typebtn {
    color: white;
    display: block;
    z-index: 1000;
    background-color: #7C2D12;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 60%;
    cursor: pointer;
    position: absolute; 
    bottom: 70px; 
    left: 50%; 
    transform: translateX(-50%); 
}
.typebtn:hover{
    background-color: #7C2D12;
    color: white;
    opacity: 0.9;
}
.type_each_grid {
    padding: 10px;
    position: relative; 
}
.btn:hover{
    background-color: #7C2D12;
    color: white;
    opacity: 0.9;
}
.grade_grid{
    display: grid;
    grid-template-columns: 100%;
    background-color: #ce4517;
    color: white;
}
.grade_grid h6{
  margin: 0px;
}
.grade_inline_grid{
    display: grid;
    grid-template-columns: 30% 50%;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    justify-content: center;
}
.grade_inline_grid:hover{
  background-color: #90460a;
}
.grade_icon_img{
    width: 85%;
    display: block;
    margin: auto;
    padding: 10px;
}
.grade_icon_img:hover{
    width: 90%;
}
/* Main container */
.testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}
.testimonial {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px;
}
.testimonial p {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.testimonial p:last-child {
    font-size: 1rem;
    color: #777;
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #777;
    cursor: pointer;
    z-index: 10;
}
.arrow:hover {
    color: #333;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: #333;
}
/* Footer Design */
footer{
    background-color: black;
    color: white;
    padding: 20px 0px;
}
.footer_grid{
    display: grid;
    grid-template-columns: 100%;
    row-gap: 20px;
}
.contact_img_container{
    display: flex;
    width: 50%;
    justify-content: space-around;
    margin: 20px 0px;
}
.links a{
    padding: 0px 0px;
    text-decoration: none;
}
.links li{
    list-style-type: none;
    padding: 10px 0px;
}
footer p{
    margin: 10px 20px;
    text-align: center;
}
/* copy rights claim */
.copy{
    text-align: center;
    padding: 20px;
    margin: 0px;
    color: white;
    background-color: black;
}
/* Side Navigation Menu */
.sidenav {
    height: 100%;
    width: 0; /* Hidden by default */
    position: fixed;
    top: 0;
    z-index: 10000;
    right: 0; /* Position it on the right */
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s; /* Smooth opening effect */
    padding-top: 60px;
}
.sidenav a {
    padding: 8px 16px;
    text-decoration: none;
    font-size: 20px;
    color: black;
    display: block;
    transition: 0.3s;
}
.sidenav a:hover {
    color: #f4a261;
}
.closebtn {
    position: absolute;
    top: 10px;
    right: 20px; /* Move close button to the right side */
    font-size: 36px;
    cursor: pointer;
    color: #f1f1f1;
}
.contactnavbtn{
    color: black;
    background-color: #F5F5DC;
    margin: 10px;
    padding: 10px 20px;
}
.supportnavbtn{
    color: white;
    background-color: #7C2D12;
    padding: 10px;
    margin: 10px;
}
.headerbtn{
    margin-top: 0px;
    border: none;
    background-color: #7C2D12;
    color: white;
    width: 100%;
    opacity: 1;
}
.btn-group:hover .dropdown-menu {
    display: block;
    margin-top: 30px;
  }
  /* Ensure the dropdown doesn't disappear when hovering over items */
  .dropdown-menu {
    margin-top: 0; /* Align with the button */
  }
   /* About Page Style */
   .about_content{
    display: flex;
    flex-direction: column;
  }
  .about_content_text{
    text-align: justify;
    margin: auto;
    padding: 20px;
  }
  .about_img{
    width: 100%;
    order: -1;
  }
  .fixed_content_grid{
    display: grid;
    grid-template-columns: 70% 30%;
  }
  .scrollable_part{
    padding: 20px;
    height: 100vh;
    margin: 20px;
    overflow-y: auto;
  }
  .scrollable_part::-webkit-scrollbar{
    display: none;
  }
  .fixed_part{
    display: block;
    margin: 0px auto;
    width: 80%;
    padding-top: 20px;
    margin-top: 20px;
    height: max-content;
  }
 .fixed_part a{
    display: block;
    padding: 10px 30px;
    color: black;
    background-color: #f1f1f1;
 }
 .fixed_part h3{
    padding: 10px 30px;
    margin-bottom: 0px;
    background-color: #aeb4bf;
 }
 a{
    text-decoration: none;
 }
 .contact_scrollable_part{
    height: 100vh;
    overflow-y: auto;
    margin: 10px;
  }
  .contact_scrollable_part::-webkit-scrollbar{
    display: none;
  }
 .contact_scrollable_part table{
    width: 100%;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px;
 }
 .contact_scrollable_part tr{
    display: grid;
    grid-template-columns: 60% 40%;
 }
 .contact_scrollable_part th{
    background-color: #aeb4bf;
    padding: 10px;
 }
  .contact_scrollable_part td{
    padding: 15px 10px;
  }
  .contact_scrollable_part li{
    list-style-type: none;
    margin-top: 10px;
  }
  .phone{
    color: green;
  }
  .email{
    word-break: break-word; 
    color: #7C2D12;
  }
  .school_content_part p,h2,h6{
    margin: 20px;
  }
  .school_content_part li{
    margin-left: 40px;
    font-size: 15px;
  }
  .duo_grid {
    display: grid;
    grid-template-columns: 100%; /* Default single-column layout for small screens */
    margin: 20px 0px;
  }
  .duo_grid_img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10PX;
    margin: auto;
  }
  .duo_grid_content p{
    margin: 20px 0px;
    text-align: justify;
  }
  .duo_grid_content h2{
    margin: 0px;
  }
  .duo_grid_content_img{
    display: block;
    margin: auto;
  }
  .schedulebtn{
    width: 80%;
    background-color: #7C2D12;
    color: white;
    padding: 10px;
    display: block;
    margin: auto;
  }
  .duo_grid_content {
    padding: 20px;
    display: block;
    margin: auto;
  }
  /* Elementary */
  .applybtn{
    width: 100%;
    background-color: #7C2D12;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
  }
  /* junior High Page */
  .subjectdescription{
    display: grid;
    grid-template-columns: 100%;
    margin: 20px 0px;
  }
  .subjectdescription p{
    padding: 20px;
    text-align: justify;
  }
  .highschool_content_text{
    text-align: justify;
    margin: auto;
    padding: 20px;
  }
  .highschool_content{
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  }
  .highschool_img{
    width: 100%;
    order: -1;
  }
  .highschool_content_text h2{
    margin: 0px;
    margin-bottom: 10px;
  }
  .hightschoolCurriculum{
    width: 70%;
    text-align: center;
    display: block;
    margin: auto;
    margin-top: 30px;
    padding: 10px;
  }
  .hightschoolCurriculum h2{
    margin: 0px;
    margin-bottom: 10px;
  }
  .advanced li{
    margin-left: 40px;
    font-size: 18px;
    margin-top: 15px;
  }
  /* Popup Container */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
/* Popup Content */
.popup-content {
  background: #fff;
  text-align: center;
  /* border-radius: 10px; */
  width: 50%;
}
/* Close Button */
.close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 20px;
  font-size: 24px;
  cursor: pointer;
}
/* Button */
.offerbtn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #7C2D12;
  color: white;
  width: 90%;
  margin-bottom: 10px;
  text-decoration: none;
  border-radius: 5px;
}
.adverthisment_grid{
  display: grid;
  grid-template-columns: 70% 30%;
  background-color: #ae8686;
}
.adverthisment_grid h2{
  text-align: left;
  font-size: 60px;
  word-break: keep-all;
}
.adverthisment_grid p{
  text-align: left;
  margin: 20px;
}
.ads_img{
  width: 100%;
}
/* for footer map */
.ratio{
  width: 100%;
}
@media (min-width: 320px) and (max-width: 375px) {
    .logo {
        max-width: 20%;
        height: 100%;
    }
    .header_grid{
        display: none;
    }
    .top a{
        margin: auto;
    }
    .type_img {
        width: 95%;
        height: 95%;
    }
    .typebtn {
        bottom: 70px; 
    }
    .fixed_content_grid{
        grid-template-columns: 100%;
    }
    .scrollable_part{
        height: 100%;
      }
    .fixed_part{
        height: 100%;
        text-align: center;
        }
    .contact_scrollable_part{
        height: 100%;
      }
      .duo_grid {
        grid-template-rows: auto auto; /* Two rows: one for image, one for content */
      }
      .duo_grid_content {
        grid-row: 2;
      }
      .duo_grid_img {
        width: 90%;
      }
      .top_img {
        grid-row: 1; /* Place the image in the first row */
      }
      .hightschoolCurriculum{
        width: 100%;
        text-align: justify;
      }
/* Popup Content */
.popup-content {
  width: 90%;
}
.adverthisment_grid h2{
  font-size: 35px;
}
/* for footer map */
.ratio{
  width: 90%;
}
}
@media (min-width: 375px) and (max-width: 425px) {
    .logo {
        max-width: 20%;
    }
    .header_grid{
        display: none;
    }
    .type_img {
        width: 95%;
        height: 95%;
    }
    .typebtn {
        bottom: 70px; 
    }
    .fixed_content_grid{
        grid-template-columns: 100%;
    }
    .scrollable_part{
        height: 100%;
      }
  .fixed_part{
    height: 100%;
    text-align: center;
    }
    .duo_grid {
        grid-template-rows: auto auto; /* Two rows: one for image, one for content */
      }
      .duo_grid_content {
        grid-row: 2; /* Place content in the second row */
      }
      .top_img {
        grid-row: 1; /* Place the image in the first row */
      }
      .duo_grid_img {
        width: 90%;
      }
      .hightschoolCurriculum{
        width: 90%;
        text-align: justify;
      }
    /* Popup Content */
.popup-content {
  width: 90%;
}
/* Close Button */
.adverthisment_grid h2{
  font-size: 40px;
}
/* for footer map */
.ratio{
  width: 80%;
}
}
@media (min-width: 425px) and (max-width: 480px) {
    .logo {
        max-width: 20%;
    }
    .header_grid{
        display: none;
    }
    .type_img {
        width: 90%;
        height: 90%;
    }
    .typebtn {
        bottom: 80px; 
    }
    .fixed_content_grid{
        grid-template-columns: 100%;
    }
    .scrollable_part{
        height: 100%;
      }
  .fixed_part{
    height: 100%;
    text-align: center;
    }
    .duo_grid {
        grid-template-rows: auto auto; /* Two rows: one for image, one for content */
      }
      .duo_grid_content {
        grid-row: 2; /* Place content in the second row */
      }
      .top_img {
        grid-row: 1; /* Place the image in the first row */
      }
      .duo_grid_img {
        width: 90%;
      }
      .hightschoolCurriculum{
        width: 90%;
        text-align: justify;
      }
      /* Popup Content */
.popup-content {
  width: 90%;
}
.adverthisment_grid h2{
  font-size: 40px;
}
.ratio{
  width: 80%;
}
}
@media (min-width: 480px) and (max-width: 600px) {
    .logo {
        max-width: 20%;
    }
    .header_grid{
        display: none;
    }
    .logo {
        max-width: 20%;
    }
    /* School category */
    .type_img {
        width: 90%;
        height: 90%;
    }
    .typebtn {
        bottom: 90px; 
    }
    .fixed_content_grid{
        grid-template-columns: 100%;
    }
    .scrollable_part{
        height: 100%;
      }
  .fixed_part{
    height: 100%;
    text-align: center;
    }
    .duo_grid {
        grid-template-rows: auto auto; /* Two rows: one for image, one for content */
      }
      .duo_grid_content {
        grid-row: 2; /* Place content in the second row */
      }
      .top_img {
        grid-row: 1; /* Place the image in the first row */
      }
      ._img {
        width: 90%;
      }
      .hightschoolCurriculum{
        width: 90%;
      }
      /* Popup Content */
.popup-content {
  width: 90%;
}
.adverthisment_grid h2{
  font-size: 45px;
}
.ratio{
  width: 60%;
}
}
@media (min-width: 600px) and (max-width: 767px) {
    .logo {
        max-width: 15%;
    }
    .header_grid{
        display: none;
    }
    .type_grid{
        grid-template-columns: 50% 50%;
    }
    .type_img {
        width: 90%;
        height: 90%;
    }
    .typebtn {
        bottom: 60px; 
    }
    /* school grade */
    .grade_grid{
        grid-template-columns: 50% 50%;
    }
    .grade_inline_grid {
        grid-template-columns: 30% 70%;
        border-right: 1px solid #ccc;
    }
    .grade_inline_grid:last-child {
        border-right: none;
    }
    .grade_grid > :nth-last-child(-n+2) {
        border-bottom: none;
    }
    .grade_grid > :nth-child(2) {
        border-right: none;
    }
    /* footer Design */
    .footer_grid{
        display: grid;
        grid-template-columns: 33% 33% 33%;
    }
    .fixed_content_grid{
        grid-template-columns: 60% 40%;
      }
      .duo_grid {
        grid-template-rows: auto auto; /* Two rows: one for image, one for content */
      }
      .duo_grid_content {
        grid-row: 2; /* Place content in the second row */
      }
      .top_img {
        grid-row: 1; /* Place the image in the first row */
      }
      .duo_grid_img {
        width: 90%;
      }
      .hightschoolCurriculum{
        width: 90%;
      }
      /* Popup Content */
.popup-content {
  width: 80%;
}
.adverthisment_grid h2{
  font-size: 55px;
}
.ratio{
  width: 100%;
}
}
@media (min-width: 767px) and (max-width: 1023px) {
    .logo {
        max-width: 15%;
    }
    .header_grid{
        display: none;
    }
    .type_grid{
        grid-template-columns: 50% 50%;
    }
    .type_img {
        width: 90%;
        height: 90%;
    }
    .typebtn {
        bottom: 70px; 
    }
    /* school grade */
    .grade_grid{
        grid-template-columns: 50% 50%;
    }
    .grade_inline_grid {
        grid-template-columns: 30% 70%;
        border-right: 1px solid #ccc;
    }
    .grade_inline_grid:last-child {
        border-right: none;
    }
    .grade_grid > :nth-last-child(-n+2) {
        border-bottom: none;
    }
    .grade_grid > :nth-child(2) {
        border-right: none;
    }
    /* feedback Slider */
    .testimonial-container {
        width: 100%;
        min-width: 750px;
    }
    .testimonial-slider {
        justify-content: left;
        flex-wrap: nowrap;
    }
    .testimonial {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* footer Design */
    .footer_grid{
        display: grid;
        grid-template-columns: 33% 33% 33%;
    }
    .fixed_content_grid{
        grid-template-columns: 65% 35%;
      }
      .duo_grid{
        grid-template-columns: 50% 50%;
      }
      .duo_grid_img{
        width: 100%;
      }
      .subjectdescription{
        grid-template-columns: 50% 50%;
      }
      .popup-content {
        width: 70%;
      }
.adverthisment_grid h2{
  font-size: 60px;
}
}
@media (min-width: 1023px) and (max-width: 1200px) {
    .mobileview{
        display: none;
    }
    .type_grid{
        grid-template-columns: 25% 25% 25% 25%;
        justify-content: space-around;
    }
    .type_img {
        width: 100%;
        height: 100%;
    }
    .typebtn {
        bottom: 40px; 
    }
    .grade_grid{
        grid-template-columns: 25% 25% 25% 25%;
    }
    .grade_inline_grid {
        grid-template-columns: 30% 70%;
        border-right: 1px solid #ccc;
        column-gap: 10px;
    }
    .grade_inline_grid:nth-child(4n) {
        border-right: none; /* Removes the line after the last column */
    }
    .testimonial-container {
        width: 100%;
        min-width: 1023px;
    }
    .testimonial-slider {
        justify-content: left;
        flex-wrap: nowrap;
    }
    .testimonial {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* footer Design */
    .footer_grid{
        display: grid;
        grid-template-columns: 33% 33% 33%;
    }
     /* About Page Style */
  .about_content{
    display: grid;
    grid-template-columns: 40% 60%;
  }
  .about_img{
    padding: 10px;
    order: 1;
  }
  /* contact page */
  .contact_scrollable_part{
    margin: 30px;
  }
  .duo_grid{
    grid-template-columns: 50% 50%;
  }
  .duo_grid_img{
    width: 100%;
  }
  .subjectdescription{
    grid-template-columns: 50% 50%;
  }
   /* hight school page */
  .highschool_content{
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .highschool_img{
    order: 1;
  }
  .ratio{
    width: 70%;
  }
}
@media (min-width: 1200px) {
    .mobileview{
        display: none;
    }
    .type_grid{
        padding: 10px;
        grid-template-columns: 25% 25% 25% 25%;
        justify-content: space-around;
    }
    .type_img {
        width: 100%;
        height: 100%;
    }
    .typebtn {
        bottom: 50px; 
    }
    .grade_grid{
        grid-template-columns: 25% 25% 25% 25%;
    }
    .grade_inline_grid {
        grid-template-columns: 30% 70%;
        border-right: 1px solid #ccc;
        column-gap: 10px;
    }
    .grade_inline_grid:nth-child(4n) {
        border-right: none; /* Removes the line after the last column */
    }
    .testimonial-container {
        width: 100%;
        min-width: 1200px;
    }
    .testimonial-slider {
        justify-content: left;
        flex-wrap: nowrap;
    }
    .testimonial {
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* footer Design */
    .footer_grid{
        display: grid;
        grid-template-columns: 33% 33% 33%;
    }
     /* About Page Style */
  .about_content{
    display: grid;
    grid-template-columns: 40% 60%;
  }
  .about_img{
    padding: 10px;
    order: 1;
  }
  /* contact page */
  .contact_scrollable_part{
    margin: 30px;
  }
  .duo_grid{
    grid-template-columns: 50% 50%;
  }
  .duo_grid_img{
    width: 100%;
  }
  .subjectdescription{
    grid-template-columns: 50% 50%;
  }
  /* hight school page */
  .highschool_content{
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .highschool_img{
    order: 1;
  }
  .adverthisment_grid h2{
    font-size: 80px;
  }
  .adverthisment_grid p{
    font-size: 20px;
  }
  .ratio{
    width: 70%;
  }
}