* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

@font-face {
    font-family: "vazir";
    src: url("/lib/content/fonts/Vazir-FD.ttf");
}

@font-face {
    font-family: "yekan";
    src: url("/lib/content/fonts/IRANYekanRegular.woff");
}

body {
    direction: rtl;
    font-family: yekan;
    font-size: 12px;
}

.hero {
    background-color: #FFFFFF;
    padding: 4rem 2rem;
    text-align: center;
}

    .hero h1 {
        color: #402E32;
        border-bottom: 4px solid #D4AF37;
        display: inline-block;
        padding-bottom: 0.5rem;
        font-size: 24px;
    }

    .hero p {
        color: #333333;
        max-width: 720px;
        margin: 1rem auto;
        line-height: 2.5;
        font-size: 14px;
        text-align: justify;
        text-align-last: center;
    }

    .hero .cta {
        margin: 3rem;
    }

.btn-primary {
    background-color: #D4AF37;
    color: #402E32;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bolder;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #C89E2B;
    }

.why-us {
    background-color: #402E32;
    color: #FFF8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10rem auto 2rem;
    width: 90%;
    border-radius: 12px;
}

    .why-us p {
        font-size: 18px;
        color: #FFF8F0;
        max-width: 720px;
        margin: 1rem auto;
        line-height: 2.5;
        font-size: 14px;
        text-align: justify;
    }

    .why-us img {
        max-width: 100%;
        height: auto;
    }

.whyus-image {
}

.features-section {
    font-size: 14px;
    width: 90%;
    margin: 0rem auto;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-box {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    margin-bottom: 30px;
    background: #D4AF37;
    padding: 20px;
    border-radius: 8px;
    text-align: justify;
}

    .feature-box > div > img {
        display: block;
        width: 50%;
        text-align: center;
        margin: 0 auto;
    }

    .feature-box > div:nth-child(2) {
        text-align: center;
        margin: 1rem 0;
        font-size: 16px;
    }

    .feature-box.show {
        opacity: 1;
        transform: translateY(0);
    }

@media only screen and (max-width: 768px) {
    .hero {
        margin-top: 0;
        padding-top: 1rem;
    }

    .why-us > div > p.why-us-title {
        text-align: center;
    }

    div.why-us > div > div > p {
        padding: 0 1rem;
        text-align-last: center;
    }

    .feature-box {
        text-align-last: center;
    }
}

@media only screen and (min-width: 768px) {
    .why-us {
        flex-direction: row;
        justify-content: space-between;
        padding-right: 7.3rem;
    }

        .why-us img {
            min-width: 25rem;
            margin-top: -10rem;
        }
}
