*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    background: #ffffff;
    overflow-x: hidden;
}

#menuBtn {
    display: none;
    transition: .3s;
}


.site-footer {

    margin-top: 40px;

    background: #23262b;

    text-align: center;

    padding: 30px 15px;

    box-shadow: 0 -2px 15px rgba(20, 90, 190, .2);
}

.footer-trust {

    margin-bottom: 20px;
}

.footer-trust img {

    width: 120px;

    max-width: 100%;

    transition: transform .3s ease, filter .3s ease;
}

.footer-trust img:hover {

    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(20, 90, 190, .45));
}

.footer-links {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-links a {

    text-decoration: none;

    color: #7fb0f0;

    font-weight: bold;

    transition: color .2s ease, text-shadow .2s ease;
}

.footer-links a:hover {

    color: #a7c8f5;

    text-shadow: 0 0 12px rgba(127, 176, 240, .55);
}

.copyright {

    margin-top: 15px;

    color: #eaeaea;
}

.site-main {
    min-height: 70vh;
}


#menuBtn:hover {
    transform: scale(1.05);
}

#menuBtn:active {
    transform: scale(.95);
}


.page {

    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 15px;
}


article {



    margin: 0 auto;

    padding: 20px;


}



form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}



input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #cfd4d9;
    border-radius: 8px;
    background: white;
    font-size: 17px;
    color: #20242a;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1558b0;
}

textarea {
    resize: none;
    min-height: 150px;
}

/* دکمه ها */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1558b0, #1a73e8);
    color: white;
    font-size: 22px;
    background-size: 220% 220%;
    background-position: 0% 50%;

    transition: .2s;
}

button:hover {
    background-position: 100% 50%;
    cursor: pointer;
}


hr {

    border: 1px solid #cfd4d9;
    margin: 15px 0;
}


.logo {
    display: block;
    width: 70%;
    margin: 0 auto -50px auto;
}

.line {
    width: 1px;
    height: 25px;
    background: #cfd4d9;
}

.link {
    text-decoration: none;
    color: #20242a;


    padding: 10px 15px;
    border-radius: 8px;
    transition: .2s;
    cursor: pointer;

}

.link:hover {
    background: #dbe8fb;
    color: #1558b0;
}

.menu-item.active {
    background: linear-gradient(135deg, #1558b0, #1a73e8);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(20, 90, 190, .4);
}


.menu-item.active div {
    transform: scale(1.05);
}

#menu {
    width: 100%;
    background: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 10px rgba(40, 45, 50, .1);
}

.menu-item {
    text-decoration: none;
    color: #3a3f44;
    padding: 10px 15px;
    border-radius: 8px;
    transition: .2s;
    cursor: pointer;
    position: relative;
}

/* طراحی مجدد آیتمی که کاربر روی آن کلیک/انتخاب کرده */
.menu-selector {
    color: #1558b0;
    background: #eaf1fc;
    font-weight: bold;
    border: 1px solid #c7dafa;
    box-shadow: 0 3px 10px rgba(20, 90, 190, .2);
}

.menu-selector::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%) scaleX(1);
    width: 60%;
    height: 3px;
    border-radius: 3px;
    background: #1558b0;
}

.menu-selector:hover {
    background: #dbe8fb;
    color: #0e4690;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 90, 190, .3);
}


.menu-active {
    color: #1558b0;
    font-weight: bold;

}

img {
    max-width: 100%;
    height: auto;
}


table {
    width: 100%;
    border-collapse: collapse;
}


header {
    transition: .35s ease;
}





@media (max-width: 768px) {
    .site-footer {

        padding-bottom: 50px;
    }

    .footer-links {

        flex-direction: column;
    }

    header {
        position: fixed;
        top: 0;
        right: -280px;
        width: 200px;
        height: 100vh;
        z-index: 1500;
        box-shadow: -10px 0 25px rgba(20, 90, 190, .25);
        background: white;
    }

    header.show {
        right: 0;
    }

    #menuBtn {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;

        background: linear-gradient(135deg, #1558b0, #1a73e8);
        color: #fff;

        border: none;
        border-radius: 10px;

        padding: 10px 14px;

        z-index: 2000;
        box-shadow: 0 5px 15px rgba(20, 90, 190, .4);

    }

    .page {
        padding: 10px;

    }

    article {
        max-width: 100%;
        padding: 15px;

    }

    #menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }


    .logo {
        margin-top: -10px;
        width: 300px;
    }


    .line {
        margin: 0 auto;
        width: 100%;
        height: 0px;
        border: 1px solid #cfd4d9;
    }

    input,
    textarea,
    select,
    button {
        min-height: 45px;
        font-size: 16px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #menu-0 {


        margin-top: 60px;


    }

    .logo {
        margin-top: -10px;
        margin-bottom: 20px;
    }
}

/* انیمیشن ظاهر شدن صفحه */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn .4s ease;
}

/* انیمیشن کارت ها */
@keyframes cardShow {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    animation: cardShow .5s ease;
}

/* انیمیشن دکمه */
button {
    transition:
        background-position .35s ease,
        transform .15s,
        box-shadow .2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 90, 190, .45);
}

button:active {
    transform: scale(.98);
    box-shadow: 0 2px 8px rgba(20, 90, 190, .35);
}

/* افکت موج روی کلیک دکمه */
@keyframes ripplePulse {
    from {
        box-shadow: 0 0 0 0 rgba(20, 90, 190, .5);
    }

    to {
        box-shadow: 0 0 0 16px rgba(20, 90, 190, 0);
    }
}

button:focus {
    animation: ripplePulse .6s ease-out;
}

/* انیمیشن ورودی ها */
input,
textarea,
select {
    transition:
        border-color .2s,
        box-shadow .2s;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 10px rgba(20, 90, 190, .3);
}

/* انیمیشن منو */
.menu-item {
    transition:
        background .2s,
        color .2s,
        transform .2s,
        box-shadow .2s;
}

.menu-item:hover {
    transform: translateY(-1px);
}

/* درخشش ملایم روی آیتم فعال منو */
@keyframes activeGlow {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(20, 90, 190, .3);
    }

    50% {
        box-shadow: 0 4px 22px rgba(20, 90, 190, .55);
    }
}

.menu-item.active {
    animation: activeGlow 2.4s ease-in-out infinite;
}

/* انیمیشن انتخاب آیتم منو (وقتی کاربر روی یکی کلیک می‌کند) */
@keyframes selectPop {
    0% {
        transform: scale(.92);
    }

    60% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.menu-selector {
    animation: selectPop .3s ease;
}



/* انیمیشن لوگو */
.logo {
    transition: transform .3s, filter .3s;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(20, 90, 190, .4));
}

/* انیمیشن باز شدن منوی موبایل */
header.show {
    animation: slideInMenu .35s ease;
}

@keyframes slideInMenu {
    from {
        box-shadow: -10px 0 25px rgba(20, 90, 190, 0);
    }

    to {
        box-shadow: -10px 0 25px rgba(20, 90, 190, .35);
    }
}

/* درخشش نرم در پس‌زمینه هدر هنگام هاور */
header:hover {
    box-shadow: 0 2px 14px rgba(20, 90, 190, .12);
}

/* انیمیشن لینک‌های فوتر هنگام بارگذاری */
@keyframes linkRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-links a {
    animation: linkRise .5s ease both;
}

/* انیمیشن خط جداکننده در منو */
@keyframes lineGlow {

    0%,
    100% {
        background: #cfd4d9;
    }

    50% {
        background: #1558b0;
    }
}

.line {
    animation: lineGlow 4s ease-in-out infinite;
}

/* تاکید نرم روی فیلدهای فرم هنگام فوکوس با افکت رشد سایه */
@keyframes focusGrow {
    from {
        box-shadow: 0 0 0 0 rgba(20, 90, 190, .35);
    }

    to {
        box-shadow: 0 0 0 6px rgba(20, 90, 190, 0);
    }
}

input:focus,
textarea:focus,
select:focus {
    animation: focusGrow .5s ease-out;
}