@media (max-width:1200px) {

    .admin-layout {
        grid-template-columns: 24rem 1fr;
    }

    .item__links {
        font-size: 1.4rem;
    }

    .box__image>img {
        height: 16rem;
    }

    .students__openions {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }

    .students__effects::before,
    .students__effects::after {
        width: 10rem;
    }

    .course-header__title {
        font-size: 2.8rem;
    }

    .course-header__description {
        font-size: 1.5rem;
    }

    .course-header__description--atractive {
        font-size: 2rem;
    }

    .course-header__title-description {
        margin-bottom: 1rem;
    }

    .course-header__bottons {
        flex-direction: column;
    }

    .online-boxes__tops-side {
        flex-direction: column;
    }



    .courses-container {
        flex-direction: column;
    }

    .courses-filter {
        width: 100%;
    }

    .teacher-aside {
        width: 22rem;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:992px) {

    .charts {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 20rem 1fr;
    }

    .sidebar-menu a {
        font-size: 1.2rem;
    }

    * {
        cursor: auto !important;
    }

    .teacher__main-image {
        width: 45%;
    }

    .teacher__info-container {
        gap: 2rem;
    }

    .box__image>img {
        height: 14rem;
    }

    .text__title,
    .course-header__title,
    .article-publisher>h1,
    .courses-top-side__title {
        font-size: 2.8rem;
    }

    .text__littel-info,
    .article-publisher__info>p,
    .courses-top-side__description {
        font-size: 1.5rem;
    }

    .info__title {
        font-size: 1.6rem;
    }

    .info__description {
        font-size: 1.3rem;
    }

    .service {
        padding: 3rem 2.4rem;
    }

    .service__icon {
        width: 6rem;
    }

    .service__title {
        font-size: 1.6rem;
    }

    .service__description {
        font-size: 1.3rem;
    }

    /* menu */

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .menu__mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

    }

    .mobile__dynamic-menu {
        width: 28rem;
        height: 100dvh;
        position: fixed;
        right: -100%;
        top: 0;
        background: var(--box-bg);
        padding: 1.5rem;
        z-index: 1000;
        transition: all .3s ease-in-out;
        box-shadow: var(--shadow);
    }

    .mobile__dynamic-menu--active {
        right: 0;
    }

    .dynamic-menu__logo-handeler {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        border-bottom: .1rem solid #0000004a;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dynamic-menu__logo-handeler>svg {
        cursor: pointer;
    }

    .dynamic-menu__menu {
        border-bottom: .1rem solid #0000004a;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dynamic-menu__menu a {
        display: block;
        width: 100%;
        color: var(--text-color);
        padding: .5rem;
        border-radius: .5rem;
    }

    .mobile_login-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
        transition: background ease-in-out .3s, color ease-in-out .3s;
        border-radius: .5rem;
    }

    .mobile_login-btn:hover {
        background: var(--main-color);
        color: #ffffff;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* رنگ سیاه نیمه شفاف */
        z-index: 998;
        /* یک پله زیر منوی اصلی */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .overlay--active {
        opacity: 1;
        visibility: visible;
    }

    .logo-mobile-size {
        width: 10rem;
    }

    .mobile__3-bars>svg,
    .dynamic-menu__logo-handeler>svg,
    .login-mobile-size {
        width: 3.5rem;
        height: 3.5rem;
        cursor: pointer;
    }

    .cat__image {
        width: 10rem;
        height: 10rem;
    }

    .container-boxes__countainer {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-side-_info {
        font-size: 1.3rem;
    }

    .footer__my-info {
        font-size: 1.5rem;
    }

    .faq__titel {
        font-size: 1.6rem;
    }

    .faq__information {
        font-size: 1.3rem;
    }

    .box__btn-publish {
        flex-direction: column;
        padding: 0;
    }


    .course-header {
        flex-direction: column;
    }

    .course-header__bottons {
        flex-direction: row;
    }

    .course-abilityes__image>img {
        width: 5rem;
    }

    .course-abilityes__title {
        font-size: 1.2rem;
    }

    .course-abilityes__description {
        font-size: 1rem;
    }

    .online-boxes__title {
        font-size: 1.8rem;
    }

    .online-boxes__info {
        font-size: 1.4rem;
    }

    .oncline_boxes__image>img {
        width: 12rem;
    }

    .online-boxes__down-side>p {
        font-size: 1.2rem;
    }

    .hero-card p,
    .section-text p,
    .feature-item>p {
        font-size: 1.5rem;
    }

    .feature-item img {
        width: 9rem;
    }

    .hero-card h3 {
        font-size: 1.6rem;
    }

    .contact-us {
        flex-direction: column-reverse;
    }

    .client {
        flex-direction: column;
        align-items: center;
    }

    .client__image,
    .client__content {
        border-radius: .8rem;
    }

    .client__image {
        margin-right: 0;
    }

    .right-side__title {
        font-size: 1.5rem;
    }

    .right-side__description {
        font-size: 1.3rem;
    }

    .be-teacher__title {
        font-size: 2.8rem;
    }

    .be-teacher__description,
    .be-teacher-box-description {
        font-size: 1.5rem;
    }

    .be-teacher-box__title {
        font-size: 1.6rem;
    }

    .achivement-boxes__text {
        font-size: 1.5rem;
    }

    .container-boxes-2row__countainer {
        grid-template-columns: repeat(1, 1fr);
    }

    .blog-design__right>img {
        width: 45%;
    }

    .blog-design__title {
        font-size: 1.8rem;
    }

    .hero__content>.text__littel-info {
        width: auto;
    }

    .cart__container {
        flex-direction: column;
    }

    /* user panel */


    .user-panel {
        flex-direction: column;
    }

    .user-panel__relative {
        width: 100%;
    }

    .user-panel__links {
        position: static;
        width: 100%;
    }

    .user-panel__info-area {
        width: 100%;
    }

    .info-area__show-total {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* font size */
    .h1-size {
        font-size: 3.2rem;
    }

    .h2-size {
        font-size: 2.4rem;
    }

    .h3-size {
        font-size: 1.5rem;
    }

    .h4-size {
        font-size: 1.1rem;
    }

    .h5-size {
        font-size: .95rem;
    }

    .p-size {
        font-size: 1.4rem;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info {
        width: 100%;
    }

    .ticket-message {
        max-width: 100%;
    }

    .teacher-layout {
        grid-template-columns: 8rem 1fr;
    }

    .teacher-aside {
        width: 8rem;
        padding: 1rem;
    }

    .aside-menu a span {
        display: none;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card {
        flex-direction: column;
    }

}

@media (max-width:768px) {

    * {
        cursor: auto !important;
    }

    .main-table thead {
        display: none;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        right: -110%;
        top: 0;
        height: 100%;
        width: 20rem;
        transition: .3s;
        z-index: 2000;
    }

    .admin-sidebar.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .table-head {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: .8rem;
        border-bottom: 6px solid var(--second-box-bg);
    }

    .latest-list .latest-row {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .table-row p {
        display: flex;
        justify-content: space-between;
        font-size: .9rem;
    }

    .main-table thead {
        display: none;
    }

    .main-table tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--second-box-bg);
        padding: 1rem;
        border-radius: .7rem;
    }

    .main-table td {
        display: grid;
        grid-template-columns: 120px 1fr;
        padding: .6rem 0;
        border: none;
    }

    .main-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--second-text-color);
    }

    .user::before {
        content: "کاربر:";
        font-weight: bold;
    }

    .subject::before {
        content: "موضوع:";
        font-weight: bold;
    }

    .date::before {
        content: "تاریخ:";
        font-weight: bold;
    }

    .actions {
        flex-wrap: wrap;
    }

    .actions .btn {
        flex: 1;
    }

    .main-table tr {
        display: block;
        background: var(--second-box-bg);
        padding: 1rem;
        border-radius: .8rem;
        margin-bottom: 1rem;
    }

    .main-table td {
        display: grid;
        grid-template-columns: 130px 1fr;
        padding: .5rem 0;
        border: none;
    }

    .main-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--second-text-color);
    }

    .students__openions {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }

    .teacher__info-container,
    .teacher-in-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teacher__main-image {
        width: 70%;
    }

    .teacher__list-of-teacher {
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }

    .teacher__teacher {
        min-width: 6rem;
        height: 6rem;
    }

    .teacher__teacher>img {
        width: 6rem;
        height: 6rem;
    }



    .hero-part {
        flex-direction: column;
    }

    .hero-part__text {
        width: 100%;
    }

    .text__title {
        text-align: center;
    }

    .text__littel-info {
        width: 100%;
    }

    .banners {
        flex-direction: column;
    }

    .container-boxes__countainer,
    .container-boxes-2row-at-end__countainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .course-header__action-area {
        flex-direction: column;
    }

    .course-header__bottons {
        margin-bottom: 2rem;
    }


    .description-area h2 {
        font-size: 1.8rem;
    }

    .description-area p {
        font-size: 1.4rem;
    }

    .container-boxes-3row__countainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .resume {
        flex-direction: column;
    }

    .sidebar,
    .content {
        width: auto;
    }

    /* user panel */


    .user-panel__top {
        justify-content: center;
        text-align: center;
    }

    .main-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: .5rem;
    }

    .main-links__link-body {
        width: 45%;
        text-align: center;
        background: var(--second-box-bg);
        border-radius: .8rem;
    }

    .main-links__a-tag {
        justify-content: center;
    }

    .a-tag__detail {
        display: none;
    }

    .info-area__show-total {
        grid-template-columns: 1fr;
    }

    .show-total__boxes {
        justify-content: center;
        text-align: center;
    }

    .boxes__image {
        width: 7rem;
    }

    /* font size */

    .h1-size {
        font-size: 2.6rem;
    }

    .h2-size {
        font-size: 2.1rem;
    }

    .h3-size {
        font-size: 1.4rem;
    }

    .h4-size {
        font-size: 1.05rem;
    }

    .h5-size {
        font-size: .9rem;
    }

    .p-size {
        font-size: 1.3rem;
    }

    /* tickets */

    .tickets-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tickets-filter {
        justify-content: center;
    }

    .ticket-box__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .tickets-table__row--head {
        display: none;
    }

    .tickets-table__row {
        grid-template-columns: 1fr;
        gap: .8rem;
        background: var(--main-bg);
        margin-bottom: 1rem;
        border-radius: 1rem;
        box-shadow: var(--shadow);
    }

    .tickets-table__row>div {
        display: flex;
        justify-content: space-between;
        font-size: 1.3rem;
    }

    .tickets-table__row>div::before {
        content: attr(data-label);
        color: var(--second-text-color);
    }

    /* questions  */

    question-item {
        grid-template-columns: 1fr;
        background: var(--main-bg);
        border-radius: 1rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow);
    }


    .question-item>div {
        display: flex;
        justify-content: space-between;
        padding: .2rem 0;
    }

    .question-item>div::before {
        content: attr(data-label);
        color: var(--second-text-color);
        font-size: 1.2rem;
    }

    .questions-list {
        margin-top: 1.5rem;
    }

    .question-item {
        display: flex;
        flex-direction: column;
        gap: .8rem;
        padding: 1.2rem;
        background: var(--box-bg);
        border-radius: 1rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow);
    }

    .question-item div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.3rem;
    }

    .question-item div::before {
        content: attr(data-label);
        color: var(--second-text-color);
        font-size: 1.2rem;
    }

    .question-title {
        font-weight: bold;
        line-height: 1.8;
    }

    .question-status {
        padding: .3rem .7rem;
        font-size: 1.1rem;
    }

    .teacher-layout {
        grid-template-columns: 1fr;
    }

    .teacher-aside {
        position: fixed;
        top: 0;
        right: -110%;
        height: 100%;
        width: 22rem;
        transition: 0.3s;
        z-index: 2000;
    }

    .teacher-aside.active {
        right: 0;
    }

    /* آیکن منو */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .form-box,
    .form-group {
        gap: 1rem;
    }

    input,
    select,
    textarea {
        font-size: 1.3rem !important;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width:576px) {
    * {
        cursor: auto !important;
    }

    .admin-content {
        padding: 1rem;
    }

    .teacher-search-filter {
        flex-direction: column;
    }

    .students__effects::before,
    .students__effects::after {
        width: 5rem;
    }

    .teacher__main-image {
        width: 90%;
    }

    .teacher__teacher {
        min-width: 5.5rem;
    }

    .teacher__information {
        font-size: 1.3rem;
    }

    .box__image>img {
        height: 12rem;
    }

    .text__title,
    .courses-top-side__title {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    .article-publisher>h1 {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    .text__littel-info,
    .article-publisher__info>p,
    .courses-top-side__description {
        font-size: 1.3rem;
    }

    .abilityes__links {
        font-size: 1.3rem;
    }

    .hero-part__abilityes {
        flex-direction: column;
    }

    .stat__item {
        font-size: 1rem;
    }

    .abilityes__links {
        font-size: 1.3rem;
        padding: 0.9rem 1.4rem;
    }

    .service {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .service__icon {
        width: 5rem;
        margin-bottom: 1.5rem;
    }

    .service__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service__description {
        font-size: 1.3rem;
        line-height: 1.6;
    }

    .box {
        border-radius: 1rem;
    }

    .info__title {
        font-size: 1.5rem;
    }

    .price__main-price {
        font-size: 1rem;
    }


    .price__offer-price {
        font-size: 1rem;
    }


    .right-side__title {
        font-size: 2rem;
    }

    .right-side__description {
        font-size: 1.3rem;
    }

    .product-category-desktop {
        display: none;
    }

    .product-category-mobile {
        display: flex;
    }

    .faq__titel {
        font-size: 1.5rem;
    }

    .faq__information {
        font-size: 1.3rem;
    }

    .top-side-_info {
        font-size: 1.3rem;
    }

    .footer__my-info {
        font-size: 1.4rem;
    }

    .course-header__title {
        font-size: 2.2rem;
    }

    .course-header__description {
        font-size: 1.3rem;
    }

    .offer-course-time {
        flex-direction: column;
    }

    .offer-course-tiem__title {
        margin-bottom: 1rem;
    }

    .container-boxes__countainer {
        grid-template-columns: repeat(1, 1fr);
    }

    .box__image>img {
        height: 19rem;
    }

    .online-boxes {
        flex-direction: column;
    }

    .online-boxes__title {
        text-align: center;
    }

    .public_btn {
        width: 12.6rem;
        height: 3.6rem;
        padding: .4rem .6rem;
    }

    .course-abilityes__boxe {
        flex-direction: column;
        text-align: center;
    }

    .info-parent__title {
        font-size: 1rem;
    }


    .hero-card p,
    .section-text p,
    .feature-item>p {
        font-size: 1.3rem;
    }

    .section-text h2,
    .cta>h2,
    .contact-us__image>div>h2 {
        font-size: 2rem;
    }

    .section {
        flex-direction: column;
    }

    .blog-design__title {
        font-size: 1rem;
    }

    .blog-design__right>img {
        border-radius: .8rem;
    }


    .container-boxes-3row__countainer {
        grid-template-columns: repeat(1, 1fr);
    }

    .discount-code {
        flex-direction: column;
    }

    .course-abilityes__title {
        font-size: 1.5rem;
    }

    /* user panel */


    .user-panel__links {
        padding: 1.5rem;
    }

    .main-links__link-body {
        width: 100%;
    }

    .course-box-user-panel__name {
        font-size: 1.1rem;
    }

    .boxes__image {
        width: 6rem;
    }

    /* font size */
    .h1-size {
        font-size: 2.2rem;
    }

    .h2-size {
        font-size: 1.8rem;
    }

    .h3-size {
        font-size: 1.3rem;
    }

    .h4-size {
        font-size: 1rem;
    }

    .h5-size {
        font-size: .85rem;
    }

    .p-size {
        font-size: 1.2rem;
    }

    /* tickets */

    .filter-btn {
        width: 48%;
        text-align: center;
    }

    .ticket-view {
        font-size: 1.2rem;
    }

    .questions-header {
        flex-direction: column;
    }

    .question-title {
        font-size: 1rem !important;
    }

    .profile-avatar-box img {
        width: 120px;
        height: 120px;
    }

    .profile-card {
        padding: 1.6rem;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .page-subtitle {
        font-size: 1.3rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .modal-box {
        width: 90%;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1.5rem;
        background: var(--box-bg);
        padding: 1rem;
        border-radius: 0.8rem;
        box-shadow: var(--shadow);
    }

    td {
        padding: 0.6rem 0;
        display: flex;
        justify-content: space-between;
        border: none !important;
        font-size: 1.3rem;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--second-text-color);
    }

    .course-card {
        padding: 1.2rem;
    }

    .course-card img {
        height: 14rem;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .form-group label {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1.3rem;
        padding: 0.9rem;
    }

    .modal-box {
        width: 90%;
        padding: 1.6rem;
    }

    .panel {
        flex-direction: column;
        width: 100%;
    }

    .panel-sidebar {
        width: 100%;
    }

    .panel-menu {
        flex-direction: unset;
        flex-wrap: wrap;
    }

    .section-header {
        flex-direction: column;
    }

    .lesson {
        flex-direction: column;
    }

    .page-header {
        flex-direction: column;
        align-items: center;
    }

    .ticket-tools {
        flex-direction: column;
    }

    .ticket-card {
        flex-direction: column;
    }

    .ticket-meta {
        flex-direction: column;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-photo-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .portfolio-header {
        flex-direction: column;
        gap: 2rem;
    }
}

@media(max-width:300px) {

    .sidebar-menu a {
        padding: .8rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .teacher-header {
        padding: 0.5rem;
    }

    input,
    select,
    textarea {
        font-size: 1.1rem;
        padding: 0.7rem;
    }

    .modal-box {
        width: 95%;
        padding: 1rem;
    }

    .course-card {
        padding: 0.8rem;
    }

    .form-group input,
    .form-group select {
        font-size: 1.1rem;
        padding: 0.7rem;
    }

    .modal-box {
        width: 94%;
        padding: 1rem;
    }
}

@media (max-width: 1200px) {
    .students__effects .swiper-slide {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .students__effects .swiper-slide {
        width: 220px;
    }

    .students__boxes {
        height: 340px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .students__effects .swiper-slide {
        width: 200px;
    }

    .students__boxes {
        height: 320px;
    }
}
