/* -------------------------------------------- */
/*                  Responsive                  */
/* -------------------------------------------- */

@media (max-width: 1199px) {
  .container {
    --bs-gutter-x: 30px;
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 12px 0;
  }

  .header-backdrop,
  .header-close-btn,
  .header-hamburger-btn {
    display: block;
  }

  .header-hamburger-btn {
    height: 34px;
    width: 40px;
    cursor: pointer;
    border: 0;
    background-color: transparent;
  }

  .header-hamburger-btn span {
    display: block;
    height: 2px;
    width: 24px;
    background-color: var(--black-90);
    position: relative;
    margin: auto;
  }

  .header-hamburger-btn span::before,
  .header-hamburger-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-90);
  }

  .header-hamburger-btn span::before {
    top: -7px;
  }

  .header-hamburger-btn span::after {
    top: 7px;
  }

  .header-close-btn {
    height: 40px;
    width: 40px;
    background-color: var(--main);
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--WHITE);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
  }

  .header-menu {
    position: fixed;
    width: 300px;
    height: 100dvh;
    top: 0;
    right: -300px;
    z-index: 1000;
    padding: 70px 0 50px;
    transition: all 0.5s ease-in-out;
    background-color: var(--white);
    box-shadow: var(--shadow);
    overflow-y: auto;
    visibility: hidden;
  }

  .header-menu.open {
    right: 0;
    visibility: visible;
  }

  .header .menu-item {
    display: block;
    margin: 0;
  }

  .header .menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-1);
  }

  .header .menu-item:first-child > a {
    border-top: 1px solid var(--border-1);
  }

  .header .menu-item.active > a i {
    transform: rotate(-180deg);
  }

  .header .sub-menu {
    position: relative;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: auto;
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
  }

  .header .sub-menu-item a {
    padding: 12px 45px;
    border-bottom: 1px solid var(--border-1);
  }

  .header-backdrop {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    background-color: var(--white);
  }

  .header-backdrop.active {
    visibility: visible;
    opacity: 0.8; 
  }

  .circular-img {
    max-width: 280px;
  }
  
  .circular-img img {
    max-width: 240px;
  }

  .circular-img-circle {
    height: 280px;
    width: 280px;
  }

  .banner-text h1 {
    font-size: 35px;
  }

  .section-title .sub-title {
    font-size: 30px;
  }

  .course-sidebar {
    margin-top: 30px;
  }

  .course-instructor .img-box img {
    width: 100px;
  }
  
  .course-instructor .details-wrap {
    margin-bottom: 15px;
  }

}

@media (max-width: 767px) {
  .container {
    --bs-gutter-x: 15px;
  }

  .box {
    padding: 20px 15px; 
  }

  .banner-text h1 {
    font-size: 24px;
  }

  .banner-text,
  .bai-section {
    text-align: center;
  }

  h3,
  .section-title .title,
  .banner-text h2 {
    font-size: 18px;
  }

  .form-title,
  .section-title .sub-title {
    font-size: 22px;
  }

  .course-header h2 {
    font-size: 24px;
  }

  .course-curriculum .accordion-button {
    padding-right: 15px;
  }

  .course-curriculum .accordion-button span {
    position: relative;
    right: auto;
    font-size: 12px;
    width: 100%;
    margin-top: 8px;
  }

  .course-curriculum ul li {
    padding: 0 0 0 20px;
  }

  .course-curriculum ul li span {
    position: relative;
    display: block;
    font-size: 12px;
    margin-top: 5px;
  }

  .rating-summary,
  .rating-box {
    margin-bottom: 15px;
  }

}

@media (max-width: 575px) {
  .circular-img {
    max-width: 230px;
  }
  
  .circular-img img {
    max-width: 200px;
  }

  .circular-img-circle {
    height: 230px;
    width: 230px;
  }

  .footer-item {
    text-align: center;
  }

  .header-logo a {
    font-size: 22px;
  }

  .modal-dialog {
    margin: 8px 15px;
  }
}
