@font-face {
    font-family: Vazirmatn;
    src: url(/font/Vazirmatn.ttf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Vazirmatn;
    font-size: 1rem;
    overflow-x: hidden;
    color: #000000;
    background: #FFFFFF;
    direction: rtl;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 2rem;
    background: #FFFFFFDF;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #003F7F;
    gap: 1rem;
}

.logo-icon {
    width: 5rem;
    height: 5rem;
    margin: .5rem 0 .5rem 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.logo-text strong {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.25;
    color: #003F7F;
}

.logo-text small {
    font-size: .8rem;
    line-height: 1.5;
    color: #7F7F7F;
}

header nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

header nav a {
    font-size: 1rem;
    position: relative;
    transition: .25s ease;
    text-decoration: none;
    color: #7F7F7F;
}

header nav a::after {
    position: absolute;
    right: 0;
    bottom: -.5rem;
    width: 0;
    height: 2px;
    content: "";
    transition: .25s ease;
    background: #FFBF00;
}

header nav a:hover,
header nav a.active {
    color: #003F7F;
}

header nav a:hover::after,
header nav a.active::after {
    width: 100%;
}

.header-btn {
    font-size: 1rem;
    font-weight: bold;
    margin: 1rem;
    padding: 1rem;
    transition: .25s ease;
    white-space: nowrap;
    text-decoration: none;
    color: #FFFFFF;
    border-radius: .5rem;
    background: #00BF7F;
}

.header-btn:hover {
    transform: translateY(-1px);
    background: #007F3F;
    color: #000000;
}

.header-btn:focus {
    border: 2px solid #000000;
}

footer {
    padding-top: 4rem;
    color: #FFFFFF;
    background: #001F3FDF;
}

.footer-grid {
    display: grid;
    padding-bottom: 3rem;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-grid * {
    text-align: center;
}

.footer-logo {
    font-size: 2rem !important;
    font-weight: bold !important;
}

.footer-grid p {
    line-height: 2;
    margin: 1rem 0 0 0;
    color: #7F7F7F;
}

.footer-grid h4 {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: #000000;
}

.footer-grid a {
    line-height: 1.5;
    display: block;
    margin-bottom: .5rem;
    transition: .25s;
    text-decoration: none;
    color: #7F7F7F;
}

.footer-grid a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    font-size: 1rem;
    line-height: 2;
    padding: 1rem 2rem;
    text-align: center;
    color: #7F7F7F;
    border-top: 1px solid #000000;
}

@media (max-width: 768px) {
    footer {
        padding-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}