@font-face {
    font-family: "bold";
    src: url("/static/font/bold.ttf");
}

@font-face {
    font-family: "extra_bold";
    src: url("/static/font/extra_bold.ttf");
}

@font-face {
    font-family: "semibold";
    src: url("/static/font/semibold.ttf");
}

@font-face {
    font-family: "medium";
    src: url("/static/font/medium.ttf");
}

@font-face {
    font-family: "regular";
    src: url("/static/font/regular.ttf");
}

@font-face {
    font-family: "light";
    src: url("/static/font/light.ttf");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "regular";
    font-size: 14px;
}

a {
    text-decoration: none;
}

body {
    background-color: #F5F5F5;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* استایل‌های منو برای دسکتاپ */
.menu {
    width: 280px;
    background: #FFFFFF;
    color: #454545;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

.top-menu {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px auto;
}

.top-menu img {
    width: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.top-menu h3 {
    font-size: 18px;
    font-family: "bold";
}

.item-menu {
    padding: 0 0 20px 0;
}

.item-menu ul {
    list-style: none;
}

.item-menu li {
    margin: 5px 0;
}

.item-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #7A7A7A;
    text-decoration: none;
    transition: all 0.3s ease;
}

.item-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #2D2D2D
}

.item-menu li.active a {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-right: 3px solid #3498db;
}

.item-menu li a img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.item-menu hr {
    border: none;
    height: 1px;
    background-color: #454545;
    opacity: 0.1;
    margin: 15px 20px;
}

/* استایل‌های محتوا */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.hamburger-menu {
    display: none;
    top: 20px;
    right: 20px;
    z-index: 1100;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 5px;
    /* یا 6px */
    background-color: #4A6Bc9;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* استایل‌های واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .dashboard {
        position: relative;
    }

    .menu {
        position: fixed;
        right: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        transition: right 0.3s ease;
    }

    .menu.active {
        right: 0;
    }

    .hamburger-menu {
        display: flex;
        margin-top: -15px;
    }

    /* انیمیشن دکمه همبرگری هنگام فعال شدن */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .content {
        width: 100%;
        padding-top: 30px;
        /* فضا برای دکمه همبرگری */
    }

    /* لایه تاریک پس‌زمینه هنگام باز بودن منو */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    .overlay.active {
        display: block;
    }
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info>:last-child {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
}

.user-info>div>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 10px;
}

.user-info>div>:last-child img {
    width: 40px;
    border-radius: 50%;
}

.user-info h4 {
    color: #2D2D2D;
    font-family: "medium";
    font-size: 12px;
}

.user-info span {
    font-size: 12px;
    color: #7A7A7A;
    font-family: "regular";
}

.user-info a>:last-child {
    width: 18px;
}

.cart {
    position: relative;

}


.cart span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #FFD301;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    opacity: 1;
    margin: 10px;
    position: absolute;
    top: -18px;
    right: -18px;
    font-family: "bold";
}

.cart img {
    width: 25px;
}

.header-dashboard {
    background-color: #FFFFFF;
    padding: 10px 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    margin-top: 20px;
}

.header-dashboard h1 {
    font-family: "extra_bold";
    font-size: 20px;
    color: #2D2D2D;
    margin: 0;
}

.header-dashboard>:first-child p {
    font-family: "medium";
    font-size: 16px;
    color: #7A7A7A;
}

.my-bugh {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
}

.my-bugh img {
    width: 40px;
}

.my-bugh>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.my-bugh>div>span>span {
    display: block;
}

.my-bugh>div>span>:first-child {
    font-family: "bold";
    font-size: 14px;
    color: #454545;
}

.my-bugh>div>span>:last-child {
    color: #7A7A7A;
    font-family: "regular";
    font-size: 12px;
}

@media screen and (max-width:768px) {
    .header-dashboard {
        flex-wrap: wrap;
    }

    .header-dashboard>div {
        width: 100%;
    }

    .header-dashboard>:last-child {
        margin-top: 20px;
    }
}


.seminar-item {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.seminar-item>div {
    width: 350px;
    height: 250px;
    /* filter: brightness(50%); */
    border-radius: 20px;
    position: relative;

}

.seminar-item>div>a {
    /* Rectangle 50 */
    border-radius: 20px;

    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;

    background: linear-gradient(360deg, #2D2D2D 0%, rgba(45, 45, 45, 0) 100%);

    /* Inside auto layout */
    flex: 0 1 auto;
    /* This combines grow, shrink, and basis */
    justify-content: space-evenly;
    order: 1;
    z-index: 1;

}

.detail-course {
    display: flex;
    justify-content: space-evenly;
    justify-content: space-between;
}

.detail-course div {
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    margin: 10px 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
}

.detail-course>div>span {
    font-size: 11px;
    font-family: "medium";
}

.detail-course>div>img {
    width: 16px;
}

.title-course {
    bottom: 0;
    position: absolute;
    padding: 5px 20px;
}

.title-course h3 {
    color: #FFFFFF;
    font-family: "bold";
    font-size: 15px;
}

.title-course p {
    font-family: "regular";
    font-size: 11px;
    text-align: right;
    color: #FFFFFF;
}


@media screen and (max-width:1250px) {
    .seminar-item>div {
        width: 245px;
        height: 175px;
    }

    .title-course h3 {
        font-size: 10px;
    }

    .title-course p {
        font-size: 8px;
    }
}

@media screen and (max-width:950px) {
    .seminar-item {
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    .seminar-item>div {
        width: 95%;
        margin-top: 30px;
    }

    .title-course h3 {
        font-size: 12px;
    }

    .title-course {
        width: 100%;
        bottom: 15px;
    }

    .title-course p {
        font-size: 11px;
        display: none;
    }

    .seminar h2 {
        font-size: 5vw;
    }

    .seminar p {
        font-size: 3.5vw;
    }
}

.my-course {
    padding: 20px;
    margin-top: 20px;
}

.my-course h3 {
    color: #2D2D2D;
    font-family: "bold";
    font-size: 18px;
}