@import url("/css/animations.css");

:root {
    --yellow: #d6ab32;
    --orange: #ff7800;
    --lightGray: #eeeff0;
    --darkGray: #333533;
    --black: #202020;
    --brown: #372b2b;
    --purple: #754498;
    --darkPurple: #303a5e;
    --pink: #ff66c0;
    --darkBG: #555964;
    --green: #00a3a8;
    --blue: #303a5e;
    --lightBlue: #cfd2da;
    --lightPurple: #f8f6fa;
}

@font-face {
    font-family: Shabnam;
    src:
        url("/fonts/Shabnam-Thin-FD.woff2") format("woff2"),
        url("/fonts/Shabnam-Thin-FD.woff") format("woff");
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: Shabnam;
    src:
        url("/fonts/Shabnam-Light-FD.woff2") format("woff2"),
        url("/fonts/Shabnam-Light-FD.woff") format("woff");
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: Shabnam;
    src:
        url("/fonts/Shabnam-FD.woff2") format("woff2"),
        url("/fonts/Shabnam-FD.woff") format("woff");
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: Shabnam;
    src:
        url("/fonts/Shabnam-Medium-FD.woff2") format("woff2"),
        url("/fonts/Shabnam-Medium-FD.woff") format("woff");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Shabnam;
    src:
        url("/fonts/Shabnam-Bold-FD.woff2") format("woff2"),
        url("/fonts/Shabnam-Bold-FD.woff") format("woff");
    font-weight: bold;
    font-display: swap;
}

/*==============================[SETTINGS]==================================*/

* {
    padding: 0;
    margin: 0;
    border: none;
    text-decoration: none;
    outline: 0;
    box-sizing: border-box;
}

*:focus,
input:focus,
textarea:focus,
.form-control:focus {
    outline: none !important;
}

.form-control:focus {
    outline: 0px !important;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0) !important;
}

textarea:focus,
input:focus {
    outline: none;
}

input,
textarea {
    font-family: Shabnam;
}

input::-moz-focus-inner {
    border: 0;
}

a,
a:link,
a:visited {
    text-decoration: none;
}

ul {
    list-style: none;
}

table {
    border-collapse: collapse;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--darkGray);
}

.container,
.containerLarge {
    display: block;
    margin: 0 auto;
}

.btn,
.btn:link,
.btn:visited {
    padding: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: Shabnam;
    cursor: pointer;
}

.btn1,
.btn1:link,
.btn1:visited {
    color: var(--lightGray);
    border: 2px solid var(--darkGray);
    background-color: var(--darkGray);
    text-shadow: none;
}

.btn1:hover,
.btn1:focus {
    background-color: var(--lightGray);
    border-color: var(--lightGray);
    color: var(--darkGray);
}

.btn2,
.btn2:link,
.btn2:visited {
    color: var(--black);
    border: 2px solid var(--lightGray);
    background-color: var(--lightGray);
    text-shadow: none;
}

.btn2:hover,
.btn2:focus {
    background-color: var(--darkGray);
    border-color: var(--darkGray);
    color: var(--lightGray) !important;
}

.btn3,
.btn3:link,
.btn3:visited {
    color: white;
    border: 2px solid var(--darkPurple);
    background-color: var(--darkPurple);
    text-shadow: none;
}

.btn3:hover,
.btn3:focus {
    background-color: white;
    border-color: var(--darkPurple);
    color: var(--darkPurple) !important;
}

.btn4,
.btn4:link,
.btn4:visited {
    text-shadow: none;
    background-color: rgba(178, 238, 244, 1);
    color: #062a4d;
    border: 2px solid #b2eef4;
}

.btn4:hover,
.btn4:focus {
    color: #d0df56;
    border: 2px solid #b2eef4;
    background-color: rgba(208, 223, 86, 0);
}

.clear {
    clear: both;
}

.shine {
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.shine::before {
    position: absolute;
    top: 0;
    left: -85%;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    /* transition: all .3s; */
    z-index: -1000;
}

.shine:hover:before,
.shine:focus:before {
    -webkit-animation: shine 0.6s;
    animation: shine 0.6s;
    z-index: 999;
}

.pageNotFound {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 20px;
}

.pageNotFound img {
    max-width: 600px;
}

/*==============================[CSS]==================================*/

html {
    margin: 0;
    padding: 0;
    direction: rtl;
}

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-family: Shabnam;
    color: var(--darkGray);
    text-align: justify;
    padding-top: 120px;
}

.mainTop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition:
        background-color 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--darkPurple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(0px);
}

.mainTop.fixed,
.mainTop.hamburger {
    background-color: var(--darkPurple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mainTop.fixed::after,
.mainTop.hamburger::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00e0ff, #ff66c0, #ffd966, transparent);
    opacity: 0.7;
}
.mainTop .container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.mainTop .mainLogo a,
.mainTop .mainLogo a:link,
.mainTop .mainLogo a:visited {
    display: block;
    height: 80px;
    width: 300px;
    background-image: url("/images/mainLogo.png");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
}

.mainNav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainNav li {
    margin: 0;
}

.mainNav a,
.mainNav a:link,
.mainNav a:visited {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.mainNav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--pink);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.mainNav a:hover {
    color: var(--pink);
}

.mainNav a:not(.active):hover::after {
    width: 80%;
}

.mainNav a.active {
    color: var(--pink);
    cursor: default;
}

.mainTop .userPannel {
    background-color: var(--purple);
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    font-size: 80%;
    padding: 4px 6px;
    margin-right: 250px;
}

.mainSearch {
    position: relative;
    display: block;
    width: 60px;
    height: 40px;
}

.mainSearch .search-form {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
}

.mainSearch .search-label {
    display: block;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>')
        no-repeat center center;
    background-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mainSearch .search-label:hover {
    transform: scale(1.05);
}

.mainSearch .search-form .search-input {
    width: 0;
    padding: 0;
    border: none;
    outline: none;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    visibility: hidden;
    background: white;
    border-radius: 8px;
    height: 40px;
    margin-right: 0;
}

.mainSearch.active .search-form .search-input {
    width: 400px;
    padding: 0 15px;
    margin-left: 10px;
    opacity: 1;
    visibility: visible;
    border: 2px solid var(--pink);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.mainSearch .submit-btn {
    display: none;
}

.mainSearch.active .submit-btn {
    display: block;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>')
        no-repeat center center;
    background-size: 40px;
    cursor: pointer;
}

.mainSearch.active .search-label {
    display: none;
}

/* ======================================================================================================== */
footer {
    background: #999b9c;
    color: white;
    font-size: 13px;
}

footer .container {
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1.7fr;
    padding: 36px 0 28px;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.15); */
    padding-bottom: 0;
    margin: 0 auto;
    font-size: 1.4rem;
    font-weight: normal;
}
.footer-address {
    border-right: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    padding-right: 100px;
}

.footer-address > * {
    width: 100%;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.footer-address p {
    line-height: 2;
    color: white;
}

.footer-phone {
    margin-top: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    direction: ltr;
    text-align: right;
    font-weight: normal;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links ul li a:hover {
    color: #111;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
    padding-top: 0;
}

.footer-logos img {
    height: 100px;
    object-fit: contain;
}

.footer-copy {
    font-size: 1.4rem;
    color: #d6d5d5;
    flex: 1;
}

@media only screen and (min-width: 1201px) and (max-width: 1364px) {
    .footer-copy {
        font-size: 1.2rem;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .footer-copy {
        font-size: 0.8rem;
    }
    .footer-top .footer-col,
    .footer-top .footer-col > * {
        font-size: 1rem;
    }
    .footer-col.footer-address {
        padding-right: 25px;
    }
    .mainContacts .container {
        max-width: 40vw !important;
    }
}

@media only screen and (max-width: 768px) {
    .footer-copy {
        font-size: 1.4rem;
        order: 20;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-col.footer-address {
        padding: 36px 0 28px;
        border: none;
        border-top: 2px solid white;
        padding-top: 20px !important;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-address {
        grid-column: 1 / -1;
    }

    .footer-copy {
        text-align: center;
        font-size: 0.9rem;
    }
    .mainContacts .container {
        max-width: 50vw !important;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-copy {
        text-align: right;
    }
}

.mainTop .menu-toggle {
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: absolute;
    display: none;
    background: rgba(255, 255, 255, 0.18);
    position: absolute;
    left: 5px;
    top: 20px;
}

.mainTop .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    box-shadow: 0 18px 32px -10px rgba(0, 0, 0, 0.5);
}

.mainTop .menu-toggle:active {
    transform: scale(0.96);
}

.mainTop .menu-toggle .line {
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #f0f3fa, #c0e0ff);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mainTop .menu-toggle.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 20px;
}

.mainTop .menu-toggle.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.5);
}

.mainTop .menu-toggle.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
}

.mainTop .menu-toggle:focus-visible {
    outline: 2px solid #ffb347;
    outline-offset: 4px;
}

.mainContacts {
    background-color: var(--lightBlue);
    min-height: 20px;
}

.mainContacts > div {
    min-height: 20px;
    display: flex;
    flex-direction: row;
    max-width: 500px;
    justify-content: space-evenly;
    margin: 0 auto;
    gap: 5vw;
    padding: 15px 0;
}
.mainContacts > div > * {
    background-size: 70%;
    aspect-ratio: 4/4;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.mainContacts > div > *:hover {
    transform: scale(1.2);
}
