@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/Pro/Yekan\ Bakh\ Variable/webfonts/YekanBakhFaNum-VF.woff') format('woff-variations');
    font-weight: 100 1000;
    font-display: fallback;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'YekanBakh', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    direction: rtl;
}

.container {
    width: 100%;
    margin: auto;
    padding: 0 1rem;
}

button {
    border: none;
    cursor: pointer;
    background: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F5FCFB;
    background-image: url(../img/Mask\ group-1.svg);
}

body.no-scroll {
    overflow: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3;
    display: none;
}

.overlay.active {
    display: block;
}

a {
    text-decoration: none;
}

/* Header */

.exam {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.enter-before-buy {
    display: none;
}

.exam-sum {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 2rem;
    gap: 0.5rem;
    box-shadow: 0px 0px 8px 0px #0000000D, 0px 2px 2px 0px #0000000D;
}

.exam-sum-contxt {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 1rem;
}

.exam-sum-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #363838;
}

.exam-sum-txt {
    font-size: 0.9rem;
    color: #838383;
}

.placeholdder {
    display: none;
}

.exam-to-buy {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 2rem;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    align-items: center;
    box-shadow: 0px 0px 8px 0px #0000000D, 0px 2px 2px 0px #0000000D;
    transition: all 0.2s ease-in-out;
}

.exam-to-buy.stuck-to-bottom {
    position: fixed;
    bottom: 0;
    right: 50%;
    transform: translateX(+50%);
    width: 100%;
    z-index: 1000;
    margin: 0;
    border: 1px solid #48CFAD33;
    box-shadow: 0 1px 14px 1px #2A33460D;
    border-radius: 2rem 2rem 0 0;
}

.exam-price-tag {
    padding: 0.5rem;
}

.exam-purchase-button {
    padding: 1.1rem 1.5rem;
    background-color: #48CFAD;
    border-radius: 1.2rem;
    font-size: 1rem;
    color: #EDFFFB;
    font-weight: 700;
}

.org-price {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.price {
    color: #838383;
    font-size: 0.75rem;
}

.discount {
    display: flex;
    align-items: center;
    padding: 0.1rem 0.25rem;
    color: #FFFFFF;
    font-size: 0.62rem;
    background-color: #FA3D6D;
    border-radius: 6.25rem;
    font-weight: 700;
}

.discounted-price {
    color: #363838;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main */

.main {
    margin-bottom: 4.1rem;
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.exam-properties {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.exam-properties .property {
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 8px 0px #0000000D, 0px 2px 2px 0px #0000000D;
    border-radius: 1rem;
}

.property-background {
    border-radius: 1rem;
    background: linear-gradient(150deg, #48cfada3 0% 0%, #FFFFFF 20%, #FFFFFF 80%, #FFFFFF 35%, #48cfada3 100%);
    padding: 1px;
}

.property-background:nth-child(2) .property {
    width: 109px;
}


.exam-property-img {
    margin-bottom: 0.75rem;
}

.exam-property-txt {
    color: #555555;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3rem;
}

.exam-property-title {
    color: #838383;
    font-size: 0.75rem;
    line-height: 1rem;
}

.exam-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 8px 0px #0000000D, 0px 2px 2px 0px #0000000D;
    border-radius: 2rem;
}

.bar {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(218, 225, 221, 0.5);
}

.tab-btn {
    padding: 6px 24px 15px;
    position: relative;
    color: #555555;
    font-size: 0.85rem;
    font-weight: 600;
}

.tab-btn:first-child {
    padding: 6px 30px 12px;
}

.tab-btn:nth-child(2) {
    padding: 6px 24px 12px 11px;
}

.tab-btn:nth-child(3) {
    padding: 6px 25px 12px;
}

.section-contxt {
    padding: 0.75rem 0.5rem;
}

.section-contxt>div {
    display: none;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #48CFAD;
    border-radius: 0.75rem;
}

.tab-btn:nth-child(2).active::after {
    left: -6px;
}

.exam-section-active {
    display: unset !important;
}

.exam-description-section .titles {
    font-weight: 700;
    color: #555555;
    line-height: 1.5rem;
}

.exam-description-section .paragraph {
    color: #737373;
    font-size: 0.85rem;
    line-height: 1.5rem;
}

.topics {
    padding: 0 1rem;
}

.topics ul {
    list-style-type: disc;
    padding: 0 1.5rem;
}

.topics ul li::marker {
    color: #555555;
}

.topics ul li {
    color: #737373;
    line-height: 1.5rem;
    font-size: 0.85rem;
}

.comments-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #F7FAF9;
    border-radius: 2rem;
    padding: 0.75rem;
}

.image-stars {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 3rem;
}

.comment .contxt {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.name-date-stars {
    display: flex;
    gap: 0.56rem;
    align-items: center;
}

.name-date-stars .stars {
    display: none;
}

.name {
    font-size: 1rem;
    font-weight: 700;
    color: #474747;
}

.date {
    font-size: 0.68rem;
    color: #999999;
}

.opinion {
    color: #838383;
    font-size: 0.75rem;
    line-height: 1.65rem;
}

.common-q-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}

.common-q-container>[class^="common-q"] {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-radius: 1rem;
    align-items: center;
    background-color: #F7FAF9;
    padding: 1rem;
    flex-wrap: wrap;
    cursor: pointer;
    overflow: hidden;
    max-height: 53px;
    transition: max-height 0.2s ease;
}

.common-q-txt {
    font-size: 1rem;
    color: #4A4D4B;
}

.common-q-button {
    display: flex;
    align-items: center;
    margin-right: auto;
    transition: transform 0.25s ease;
}

.common-q-answer {
    border-radius: 1rem;
    background-color: #FFFFFF;
    color: #838383;
    font-size: 0.85rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0 1rem;
    max-height: none;
}

.common-q-answer.open {
    margin-top: 1.5rem;
    transform: scaleY(1);
    opacity: 1;
    padding: 1rem;
}

/* Footer */

.footer .container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 2rem;
    text-align: center;
    width: 100%;
    box-shadow: 0px 0px 8px 0px #0000000D, 0px 2px 2px 0px #0000000D;
}

.logo-contact {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    width: 100%;
}

.footer-logo {
    cursor: pointer;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials>button {
    display: flex;
    align-items: center;
}

.border {
    width: 85%;
    border-bottom: 1px solid #DAE1DD;
    opacity: 0.5;
}

.copyright {
    margin: 1rem;
    color: #5BA794;
    font-size: 0.75rem;
    opacity: 0.4;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }

    .exam {
        flex-direction: row;
        justify-content: center;
    }

    .exam-sum {
        width: 20.4rem;
    }

    .exam-sum-txt {
        font-size: 0.85rem;
    }

    .exam-to-buy {
        flex-direction: column;
        height: 12.3rem;
    }

    .exam-property-img {
        width: 1.75rem;
    }

    .exam-properties .property {
        width: 159px;
    }

    .property-background:nth-child(2) .property {
        width: 163px;
    }

    .exam-property-txt {
        font-size: 1.05rem;
    }

    .exam-property-title {
        font-size: 0.85rem;
    }

    .bar {
        justify-content: start;
    }

    .stars {
        flex-direction: row;
    }

    .image-stars .stars {
        display: none;
    }

    .name-date-stars .stars {
        display: flex;
        width: unset;
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .exam-price-tag {
        display: flex;
        gap: 3rem;
    }

    .org-price {
        order: 1;
    }

    .exam-to-buy {
        height: 11rem;
        padding: 0.75rem 0.75rem;
    }

    .exam-purchase-button {
        padding: 1rem;
        width: 100%;
    }

    .exam-properties .property {
        width: 164px;
    }

    .property-background:nth-child(2) .property {
        width: 164px;
    }

    .enter-before-buy {
        display: unset;
        color: #48CFAD;
        margin-top: auto;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .border {
        width: 95%;
    }
}

@media (min-width: 992px) {
    body {
        background-color: #F5FCFB;
        background-image: url(../img/Mask\ group-2.svg);
    }

    .container {
        max-width: 960px;
    }

    .nav .container {
        position: sticky;
        top: 0;
    }

    .nav-button {
        display: none;
    }

    .nav-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style-type: none;
        gap: 0.25rem;
    }

    .nav-options>li {
        padding: 0.75rem;
        border-radius: 1rem;
        cursor: pointer;
    }

    .nav-options>li:first-child a {
        color: #48CFAD;
    }

    .nav-options p {
        font-size: 1rem;
        color: #737373;
    }

    .nav-menu-exams-button {
        height: unset;
    }

    .nav-menu-exams-button p {
        color: #48CFAD !important;
    }

    .dropdown {
        height: 2.8rem;
    }

    .nav-exams-dropdown {
        position: fixed;
        margin-top: 1rem;
        margin-right: unset;
        padding: 0.75rem 1.8rem 0.75rem 1.2rem;
        background-color: #FFFFFF;
        border-radius: 1.5rem;
    }

    .nav-profile-button {
        width: 3rem;
        height: 3rem;
    }

    .profile-img {
        width: 3rem;
    }

    .exam {
        justify-content: start;
    }

    .exam-sum {
        flex-direction: row;
        width: unset;
        height: unset;
        align-items: center;
        width: 685px;
    }

    .exam-thumbnail {
        width: 16.25rem;
        height: 9.75rem;
    }

    .exam-sum-txt {
        font-size: 0.85rem;
        line-height: 1.45rem;
    }

    .exam-to-buy {
        height: 10.5rem;
        position: fixed;
        right: calc(50% + 120px);
        transform: translateX(-50%);
    }

    .exam-purchase-button {
        font-size: 0.9rem;
    }

    .exam-info {
        align-items: start;
    }

    .exam-properties {
        width: 100%;
        justify-content: start;
    }

    .property-background:nth-child(2) .property {
        width: 108px;
    }

    .exam-properties .property {
        padding: 1.2rem 0.9rem;
        width: 108px;
    }

    .exam-menu {
        width: 75%;
    }

    .border {
        width: 90%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .exam-sum {
        padding: 1rem;
        width: 860px;
    }

    .exam-to-buy {
        right: calc(50% + 209px);
    }

    .exam-thumbnail {
        width: 19.6rem;
        height: 11.8rem;
    }

    .exam-sum-txt {
        font-size: 0.9rem;
        line-height: 1.6rem;
    }

    .exam-sum-title {
        font-size: 1.5rem;
    }

    .exam-properties {
        gap: 0.85rem;
    }

    .exam-property-img {
        width: 2rem;
        margin-bottom: 1.1rem;
    }

    .exam-property-txt {
        font-size: 1.15rem;
        line-height: 2rem;
    }

    .exam-property-title {
        font-size: 0.9rem;
    }

    .property,
    .property-background {
        border-radius: 1.3rem !important;
    }

    .exam-properties .property {
        width: 130px;
    }

    .property-background:nth-child(2) .property {
        width: 130px;
    }

    .exam-menu {
        width: 77.5%;
    }

    .tab-btn {
        font-size: 1rem;
    }


    .exam-description-section .paragraph {
        font-size: 0.9rem;
    }

    .topics ul li {
        font-size: 0.9rem;
    }

    .border {
        width: 95%;
    }
}