@font-face {
    font-family: Cairo;
    src: url(../../fonts/Cairo/Cairo-VariableFont_slnt\,wght.ttf);
}

@font-face {
    font-family: Tajawal;
    src: url(../../fonts/Tajawal/Tajawal-Bold.ttf);
}

body {
    margin: 0;
    font-family: Cairo;
}

h1 {
    font-family: Tajawal;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.btn {
    background-color: #0F62FE;
    color: white;
    transition: all ease 0.3s;
    font-family: Cairo;
    border-radius: 5px;
    border: #0F62FE solid 2px;
    cursor: pointer;
    padding: 5px 10px;
}

.btn:hover {
    transform: scale(1.1);
}

#phone-icon {
    position: fixed;
    bottom: 10%;
    right: 5%;
    z-index: 2000;
}

#whatsapp-icon {
    position: fixed;
    bottom: 10%;
    left: 5%;
    z-index: 2000;
}

#whatsapp-icon svg,
#phone-icon svg {
    display: flex;
    align-self: center;
}

.box {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.box.show {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------------------NavbarStyling------------------------------------------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #062150;
    color: white;
    padding: 0px 4%;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    z-index: 10001;
}

.hamburger {
    display: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    min-height: 25px !important;
    max-height: 25px;
    background: transparent;
    cursor: pointer;
    padding: 1.5%;
}

.hamburger span {
    width: 100%;
    border: #0F62FE solid 1px;
    background-color: #0F62FE;
    border-radius: 2px;
    margin-bottom: 0px;
    display: none;
}

.logo {
    width: 6rem
}

.navbar img {
    width: 100%;
    height: auto;
}

nav button {
    background-color: #0F62FE;
    padding: 8px;
    border-radius: 7px;
    transition: all ease 0.3s;
    font-weight: bold;
    border: none;
    justify-self: end;
    color: white;
    white-space: nowrap;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

li a {
    color: white;
    text-decoration: none;
    transition: all ease 0.3s;
    font-size: 14px;
}

li a:hover {
    color: #0F62FE;
}

ul {
    list-style: none;
}


/* ---------------------Main Styling----------------- */
main {
    display: flex;
    justify-content: center;
    gap: 10%;
    flex-wrap: wrap;
}

main img {
    width: 45%;
    border-radius: 50px;
    margin-top: 1%;
}

main .text-container {
    display: flex;
    flex-direction: column;
    align-self: center;
}

main h1 {
    color: #0348C9;
    margin-top: 5%;
    margin-bottom: 5%;
}

main .text-container p {
    margin-bottom: 5%;
    max-width: 385px;
    text-align: right;
}

/* -------------------- Second Section Styling ---------------------- */

.second-section {
    margin-inline: auto;
    width: 90%;
    padding: 2% 2% 2% 2%;
    display: flex;
    margin-top: 5%;
    gap: 5%;
    justify-content: center;
    background-color: white;
    box-shadow: 0 20px 35px rgba(226, 232, 224, 0.5);
    border-radius: 7%;
    flex-wrap: wrap;
}

.second-section .card {
    flex-direction: column;
    display: flex;
    width: 20%;
    border: none;
    gap: 0%;
}

.second-section .card h5 {
    margin: 5px;
}

.second-section .card p {
    margin: 0px;
}

.second-section .card p {
    color: grey;
    font-size: 13px;
}

.second-section .card::after {
    border: #0348C9 solid 2px;
}

.second-section svg {
    align-self: center;
}

/* ------------------- Third Section Styling ----------------------*/
.third-section {
    margin-top: 5%;
    padding-bottom: 5%;
}

.third-section h3 {
    text-align: center;
    margin-bottom: 5%;
}

.third-section .lower-section {
    display: flex;
    gap: 5%;
    width: 90%;
    margin-inline: auto;
}

.third-section .left-section {
    display: flex;
    flex-wrap: wrap;
    align-self: center;
    margin-inline: auto;
}

.lower-section .card {
    border: none;
    display: flex;
    flex-direction: row;
    height: 8vh;
    margin-bottom: 7%;
    text-align: right;
    width: 30%;
}

.lower-section .card h5 {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 0;
}

.lower-section .card p {
    color: grey;
    font-size: 12px;
    margin-top: 0;
}

.lower-section img {
    width: 40%;
    border-radius: 3%;
}

.lower-section .card svg {
    align-self: center;
    margin-left: 5%;
}

/*-------------------------------------------Footer Styling------------------------------------*/
footer {
    display: flex;
    flex-wrap: wrap;
    background-color: #062150;
    color: white;
    padding: 1rem 2rem;
    gap: 5rem;
    margin-top: 5%;
}

footer p,
footer a,
footer li {
    font-size: 14px;
}

footer a {
    color: white;
    transition: all ease 0.3s;
    text-decoration: none;
}

footer a:hover {
    color: #0F62FE;
}

footer>div {
    flex: 1;
}

.first-group .link {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.first-group svg {
    align-self: center;
}

.second-group .links,
.third-group .links {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    padding-right: 0;
    gap: 2rem;
}

.fourth-group {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.fourth-group img {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-top: 1rem;
}


/*---------------------------Media Quereies---------------------------------- */

@media (max-width: 576px) {

    body {
        font-size: 1rem;
        line-height: 1.5;
    }

    h1,
    .h1 {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    h2,
    .h2 {
        font-size: 1.375rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }

    h3,
    .h3 {
        font-size: 15px !important;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    p,
    li,
    span {
        font-size: 12px;
        margin-bottom: 0.875rem;
    }

    small,
    .caption,
    .text-muted {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    input,
    select,
    textarea,
    button,
    .btn {
        font-size: 10px !important;
        padding: 5px 5px;
    }

    span {
        font-size: 12px !important;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    .hamburger {
        display: flex;
        border: #0F62FE solid 1px;
        margin-left: 10px;
    }

    .hamburger span {
        display: flex;

    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 62%;
        left: 0;
        width: 100%;
        background-color: #0F62FE;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }

    .nav-links li a:hover {
        color: #062150 !important;
    }

    .nav-links li a {
        transition: all ease 0.2s;
    }

    .nav-links.active {
        display: flex;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    footer p,
    footer a,
    footer li {
        font-size: 10px;
    }

    footer .first-group .link {
        white-space: wrap;
    }

    footer .first-group svg {
        width: 20px !important;
        height: 15px !important;
        margin-bottom: 5%;
    }

    .second-group .links,
    .third-group .links {
        flex-direction: row;
    }

    footer .first-group,
    footer .second-group,
    footer .third-group {
        width: 100%;
    }

    footer ul {
        gap: 1rem;
    }

    /*------------------------main----------------------------*/
    main h1 {
        font-size: 22px;
    }

    main .text-container {
        width: 90%;
    }

    main .text-container p {
        font-size: 10px;
    }

    main .btn {
        width: 22% !important;
        font-size: 10px !important;
        white-space: nowrap;
    }

    main img {
        width: 90%;
        border-radius: 8px;
        margin-top: 5%;
    }

    /*----------------------------second section-----------------------*/
    .second-section {
        padding-bottom: 5%;
    }

    .second-section .card {
        width: 47%;
    }

    .second-section svg {
        width: 18px !important;
        height: 18px !important;
        margin-top: 5%;
    }

    .second-section h5 {
        font-size: 15px !important;
    }

    .second-section p {
        font-size: 8px !important;
    }

    /*--------------------------third section---------------------------*/
    .third-section {
        margin-top: 10%;
    }

    .third-section .lower-section {
        width: 90%;
        flex-wrap: wrap;
    }

    .lower-section .card {
        margin-left: 3%;
    }

    .lower-section .card h5 {
        white-space: nowrap;
        font-size: 12px;
    }

    .lower-section .card p {
        font-size: 8px;
    }

    .lower-section img {
        width: 100%;
        border-radius: 3%;
    }

    .lower-section .card svg {
        width: 18px;
        margin-left: 5%;
        height: 20px;
        align-self: normal;
    }

}