/*=============== FONT ===============*/
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Light.woff2') format('woff2');
    font-weight: 300;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.woff2') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Medium.woff2') format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Black.woff2') format('woff2');
    font-weight: 900;
}


/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --yellow-light: #fdf7e9;
    --yellow-light-hover: #fcf3de;
    --yellow-light-active: #f9e7ba;
    --yellow-normal: #ebb220;
    --yellow-normal-hover: #d4a01d;

    --green-normal: #164670;
    --green-normal-hover: #143f65;

    --blue-light: #eaf1f7;
    --blue-light-hover: #dfebf4;
    --blue-light-active: #bdd5e7;
    --blue-normal: #2a77b3;
    --blue-normal-hover: #266ba1;

    --light-blue-light: #edf6fa;
    --light-blue-light-active: #c6e2f1;
    --light-blue-normal: #47a3d1;
    --light-blue-normal-hover: #4093bc;



    /*========== Font and typography ==========*/
    --body-font: 'Tajawal', sans-serif;
    --h1-font-size: 64px;
    --h2-font-size: 48px;
    --h3-font-size: 36px;
    --title-size: 32px;
    --paragraph-size: 20px;
    --note-size: 16px;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}


/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: var(--body-font);
}

html {
    scroll-behavior: smooth;
}

input,
button {
    outline: none;
    border: none;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    position: relative;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: 0.6rem;
    background-color: hsl(24, 32%, 95%);
    border-radius: 0.2rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--blue-normal);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--blue-normal-hover);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1320px;
    margin: 0 auto;
}

.section {
    padding-block: 5rem 3rem;
    padding-inline: 3rem;
}

/*=============== HEADER ===============*/
header {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 40px;
    z-index: var(--z-fixed);

    .nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;

        .nav__logo {
            width: 141px;
            height: 160px;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .nav__menu {

            .nav__list {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 40px;

                .nav__item {

                    .nav__link {
                        position: relative;
                        font-size: 18px;
                        color: rgba(181, 181, 181, 0.32);
                        font-weight: var(--font-mediumsemi-bold);
                        transition: color 0.3s ease;

                        &::after {
                            content: '';
                            position: absolute;
                            bottom: -5px;
                            left: 0;
                            width: 100%;
                            height: 2px;
                            background-color: var(--light-blue-normal);
                            border-radius: 10px;

                            /* البداية مخفي */
                            transform: scaleX(0);
                            transform-origin: left;
                            /* يبدأ من اليمين */
                            transition: transform 0.3s ease;
                        }

                        &:hover {
                            color: var(--light-blue-light);

                            &::after {
                                transform: scaleX(1);
                                /* يتمدد */
                                transform-origin: right;
                                /* يكمل لحد الشمال */
                            }
                        }

                        &.active-link {
                            color: var(--light-blue-light);

                            &::after {
                                transform: scaleX(1);
                                transform-origin: left;
                            }
                        }
                    }
                }
            }
        }

        .nav_btn {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 278px;
            height: 48px;
            background-color: var(--yellow-normal);
            color: #fff;
            border-radius: 100px;
            padding: 4px;
            font-size: var(--note-size);
            font-weight: var(--font-bold);
            transition: background-color 0.3s ease;

            .arrow {
                position: absolute;
                display: flex;
                justify-content: center;
                align-items: center;
                right: 4px;
                width: 40px;
                height: 40px;
                background-color: rgba(252, 243, 222, 1);
                transform: rotate(-45deg);
                border-radius: 50%;

                i {
                    color: var(--yellow-normal);

                }
            }

            &:hover {
                background-color: var(--yellow-normal-hover);
            }
        }



        .btns {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 18px;
        }

        .nav__toggle {
            display: none;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
            width: 28px;
            height: 28px;

            span {
                width: 12px;
                height: 12px;
                background-color: white;
                border-radius: 1px;
            }
        }
    }
}

/*==================== HERO BLOGS ====================*/
.hero__blogs {
    position: relative;
    background-color: var(--green-normal);
    padding-block: 240px 60px;

    .hero__blogs__container {

        .hero__blogs__content {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .hero__text {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 24px;
                max-width: 570px;
                width: 100%;

                span {
                    font-size: var(--note-size);
                    font-weight: var(--font-medium);
                    color: var(--blue-normal);
                    background-color: var(--blue-light);
                    padding: 8.5px 16.5px;
                    border-radius: 999px;
                }

                h1 {
                    font-size: var(--h2-font-size);
                    font-weight: var(--font-bold);
                    color: white;
                }

                p {
                    font-size: var(--paragraph-size);
                    font-weight: var(--font-regular);
                    color: white;
                }

                a {
                    max-width: 353px;
                    width: 100%;
                    height: 47px;
                    font-size: 22px;
                    font-weight: var(--font-bold);
                    color: white;
                    background-color: var(--light-blue-normal);
                    border-radius: 4px;
                    transition: background-color 0.3s ease-in-out;

                    &:hover {
                        background-color: var(--light-blue-normal-hover);
                    }
                }
            }

            .img {
                max-width: 592px;
                width: 100%;
                height: 444px;
                border-radius: 24px;
                transform: rotate(2deg);
                box-shadow: 0px 25px 50px -12px #00000040;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 24px;
                }
            }
        }
    }

    &::before {
        position: absolute;
        content: "";
        width: 330px;
        height: 260px;
        top: -5px;
        right: 0px;
        border-bottom-left-radius: 100%;
        background: linear-gradient(180deg, #F7FAFC 0%, rgba(237, 242, 247, 0.9) 100%);
    }
}

/*==================== BLOGS ====================*/
.blogs {
    padding-block: 0 100px;
    background-color: var(--green-normal);

    .blogs__container {

        .blogs__content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 60px;

            .buttons__filter {
                display: flex;
                justify-content: start;
                align-items: center;
                gap: 24px;
                padding: 18px 28.5px;
                overflow-x: auto;
                width: 100%;
                border-top: 1px solid #EEEEEF33;
                border-bottom: 1px solid #EEEEEF33;
                scrollbar-width: none;
                scrollbar-color: transparent transparent;
                transition: all 0.3s ease-in-out;

                .btn {
                    background-color: #F9FAF2;
                    color: #414844;
                    font-size: 14px;
                    font-weight: var(--font-medium);
                    border-radius: 999px;
                    padding: 8px 24px;
                    border: 1px solid #C1C8C2;
                    white-space: nowrap;
                    transition: all 0.3s ease;
                    cursor: pointer;

                    &:hover {
                        border: 1px solid white;
                        background-color: var(--yellow-normal);
                        color: white;
                    }

                    &.active {
                        border: 1px solid white;
                        background-color: var(--yellow-normal);
                        color: white;
                        font-weight: var(--font-bold);
                    }
                }

                &:hover {
                    scrollbar-width: thin;
                    scrollbar-color: #c1c1c1 transparent;
                }
            }

            .blogs_cards {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 60px;
                width: 100%;

                h2 {
                    font-size: var(--title-size);
                    font-weight: var(--font-bold);
                    color: white;
                }

                .cards {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    column-gap: 24px;
                    row-gap: 55px;
                    width: 100%;

                    .card {
                        display: flex;
                        justify-content: center;
                        align-items: start;
                        flex-direction: column;
                        width: 388px;
                        background-color: white;
                        border-radius: 12px;

                        .card__img {
                            width: 100%;
                            height: 192px;
                            overflow: hidden;
                            border-top-left-radius: 12px;
                            border-top-right-radius: 12px;

                            img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                border-top-left-radius: 12px;
                                border-top-right-radius: 12px;
                            }
                        }

                        .card__content {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;
                            gap: 8px;
                            padding: 24px;

                            span {
                                font-size: 13px;
                                font-weight: var(--font-medium);
                                color: var(--blue-normal);
                                margin-bottom: 9px;
                            }

                            h3 {
                                display: -webkit-box;
                                -webkit-line-clamp: 2;
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                font-size: var(--paragraph-size);
                                font-weight: var(--font-bold);
                                color: #1E1E1E;
                            }

                            p {
                                display: -webkit-box;
                                -webkit-line-clamp: 2;
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                font-size: var(--note-size);
                                font-weight: var(--font-regular);
                                color: #6B6B6B;
                            }

                            .link {
                                margin-top: 15.5px;
                                gap: 5px;
                                font-size: var(--note-size);
                                font-weight: var(--font-medium);
                                color: var(--yellow-normal);
                            }
                        }
                    }
                }
            }

            .pagination {
                display: flex;
                align-items: center;
                justify-content: center;
                margin-top: 30px;
                height: 47px;
                background-color: white;
                border-radius: 999px;
            }

            .pagination button {
                padding: 10px 14px;
                background: #fff;
                cursor: pointer;
                border-radius: 999px;
                gap: 5px;
                color: #444444;
                transition: 0.2s;
                font-size: 19px;
                height: 47px;
                font-weight: var(--font-regular);
                transition: all 0.3s ease-in-out;

                i {
                    margin-top: 5px;
                    font-size: 14px;
                    transition: all 0.3s ease-in-out;
                }
            }

            #next {
                &:hover i {
                    transform: translateX(3px);
                }
            }

            #prev {
                &:hover i {
                    transform: translateX(-3px);
                }
            }

            #pages {
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: row-reverse;
                height: 100%;
            }

            .pagination .page {
                width: 47px;
                height: 47px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid #E8E8E8;
                cursor: pointer;
                background-color: white;
                font-size: 17px;
                font-weight: var(--font-medium);
                transition: all 0.3s ease-in-out;

                &:hover {
                    background-color: var(--yellow-normal-hover);
                    color: white;
                    border-color: var(--yellow-normal-hover);
                }
            }

            .pagination .active {
                background: #f0b429;
                color: #fff;
                border-color: #f0b429;
            }
        }
    }
}

/*==================== FOOTER ====================*/
.footer {
    background-color: #F8FAFC;
    padding-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 66px;

    .footer__container {
        width: 100%;

        .footer__content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 100px;
            width: 100%;

            .bannar {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 80px 20px 40px 20px;
                background-color: var(--blue-normal);
                width: 90%;
                border-radius: 20px;
                overflow: hidden;
                margin-bottom: 15px;

                .bannat__content {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                    text-align: center;
                    gap: 35px;

                    h2 {
                        font-size: var(--h2-font-size);
                        font-weight: var(--font-bold);
                        color: white;
                        width: 90%;
                    }

                    a {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 420px;
                        height: 52px;
                        background-color: var(--yellow-normal);
                        border-radius: 8px;
                        color: white;
                        font-size: 24px;
                        font-weight: var(--font-medium);
                        transition: background-color 0.3s ease;

                        &:hover {
                            background-color: var(--yellow-normal-hover);
                        }
                    }

                }

                &::before {
                    position: absolute;
                    content: '';
                    width: 245.59387484535858px;
                    height: 245.59387484535858px;
                    background-color: transparent;
                    border: 7px solid #F1F5F9;
                    border-radius: 50%;
                    top: -45%;
                    left: -10%;
                    opacity: 0.2;
                    z-index: 0;
                }

                &::after {
                    position: absolute;
                    content: '';
                    width: 245.59387484535858px;
                    height: 245.59387484535858px;
                    background-color: transparent;
                    border: 7px solid white;
                    border-radius: 50%;
                    bottom: -45%;
                    right: -10%;
                    z-index: 0;
                }
            }

            .footer__links {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 47px;

                a {
                    font-size: 21px;
                    font-weight: var(--font-medium);
                    color: #696984;
                    transition: color 0.3s ease;

                    &:hover {
                        color: var(--blue-normal);
                    }

                }
            }

            .footer__media {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;

                .mail__num {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 13px;

                    .item {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        gap: 13px;

                        .icon {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            width: 41px;
                            height: 41px;
                            border: 1px solid #FCF3DE;
                            background-color: var(--yellow-normal);
                            border-radius: 50%;
                            color: white;
                            font-size: 22px;
                        }

                        a {
                            font-size: var(--paragraph-size);
                            font-weight: var(--font-medium);
                            color: #696984;
                            transition: color 0.3s ease;

                            &:hover {
                                color: var(--blue-normal);
                            }
                        }
                    }
                }

                .social {
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    a {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 57.653629302978516px;
                        height: 57.653629302978516px;
                        border: 4px solid #FBFBFB;
                        background-color: var(--yellow-normal);
                        border-radius: 50%;
                        color: white;
                        font-size: var(--title-size);
                        transition: background-color 0.3s ease;

                        &:nth-child(1) {
                            background-color: var(--light-blue-normal);
                            margin-left: -12px;

                            &:hover {
                                background-color: var(--light-blue-normal-hover);
                            }
                        }

                        &:nth-child(2) {
                            background-color: var(--blue-normal);
                            margin-left: -12px;

                            &:hover {
                                background-color: var(--blue-normal-hover);
                            }
                        }

                        &:nth-child(3) {
                            background-color: var(--light-blue-normal-hover);

                            &:hover {
                                background-color: var(--light-blue-normal);
                            }
                        }
                    }
                }
            }
        }
    }

    .footer__copyright {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 7px;
        padding-block: 18px 9px;
        background: linear-gradient(90deg, #2B669A 0%, #4093BC 100%);

        a {
            width: 147.8184px;
            height: 18.1514px;

            img {
                width: 100%;
                height: 100%;
            }
        }

        p {
            font-size: var(--note-size);
            font-weight: var(--font-medium);
            color: white;
        }
    }
}


/*=============== RESPONSIVE ===============*/
@media (max-width: 1200px) {

    /*===============HEADER===============*/
    header {
        padding-inline: 24px;

        .nav {
            .nav__logo {
                width: 120px;
                height: 135px;
            }

            .nav__menu {
                .nav__list {
                    gap: 28px;

                    .nav__item {
                        .nav__link {
                            font-size: 16px;
                        }
                    }
                }
            }

            .nav_btn {
                width: 240px;
                height: 46px;
                padding: 0 30px 0 0;
            }

            .btns {
                gap: 14px;
            }
        }
    }

    /*=============== HERO BLOGS ===============*/
    .hero__blogs {

        .hero__blogs__container {
            .hero__blogs__content {
                gap: 40px;

                .hero__text {
                    max-width: 520px;

                    a {
                        max-width: 320px;
                    }
                }

                .img {
                    max-width: 500px;
                    height: 390px;
                }
            }
        }

        &::before {
            width: 225px;
            height: 210px;
        }
    }

    /*=============== BLOGS ===============*/
    .blogs {
        padding-block: 0 85px;

        .blogs__container {
            .blogs__content {
                gap: 50px;

                .blogs_cards {
                    gap: 50px;

                    .cards {
                        gap: 24px;

                        .card {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    /*==================== FOOTER ====================*/
    .footer {
        padding-top: 90px;
        gap: 55px;

        .footer__container {
            padding-inline: 2rem;

            .footer__content {
                gap: 80px;

                .bannar {
                    padding: 70px 20px 35px;

                    .bannat__content {
                        gap: 28px;

                        h2 {
                            width: 100%;
                            font-size: calc(var(--h2-font-size) * 0.95);
                        }

                        a {
                            width: 360px;
                            height: 50px;
                            font-size: 20px;
                        }
                    }
                }

                .footer__links {
                    gap: 35px;

                    a {
                        font-size: 19px;
                    }
                }

                .footer__media {
                    .social {
                        a {
                            width: 52px;
                            height: 52px;
                        }
                    }
                }
            }
        }
    }
}

/*=============== PAGINATION ===============*/
nav .pagination,
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 8px;
    direction: ltr; /* Keeps prev/next arrows logical */
}

nav .pagination .page-item,
.pagination .page-item {
    display: inline-block;
}

nav .pagination .page-link,
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

nav .pagination .page-item.active .page-link, 
nav .pagination .page-item.active span,
.pagination .page-item.active .page-link,
.pagination .page-item.active span {
    background-color: var(--blue-normal);
    color: #fff;
    border-color: var(--blue-normal);
}

nav .pagination .page-link:hover,
.pagination .page-link:hover {
    background-color: #f1f5f9;
    color: var(--blue-normal);
    border-color: #cbd5e1;
}

nav .pagination .page-item.disabled .page-link,
nav .pagination .page-item.disabled span,
.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}


@media (max-width: 991px) {

    /*===============HEADER===============*/
    header {
        top: 12px;
        padding-inline: 30px;

        .nav {
            .nav__logo {
                width: 128px;
                height: 145.25283813476562px;
            }

            .nav__menu {
                position: absolute;
                top: 85%;
                left: 0;
                width: 209px;
                background: white;
                border: 1px solid #EEEEEE;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
                overflow: hidden;
                opacity: 0;
                visibility: hidden;
                transform: translateY(15px);
                transition: all 0.3s ease-in-out;
                z-index: 20;

                .nav__list {
                    display: flex;
                    justify-content: start;
                    align-items: start;
                    flex-direction: column;
                    gap: 0;
                    width: 100%;

                    .nav__item {
                        width: 100%;

                        .nav__link {
                            display: flex;
                            justify-content: start;
                            align-items: center;
                            width: 100%;
                            padding: 10px 10px 10px 18px;
                            font-size: var(--note-size);
                            color: #1E1E1E;
                            font-weight: var(--font-regular);
                            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
                            background-color: white;
                            transition: 0.3s ease;

                            &::after {
                                display: none;
                            }

                            &:hover {
                                background-color: var(--blue-normal);
                                color: white;
                            }

                            &.active-link {
                                background-color: var(--blue-normal);
                                color: white;
                                font-weight: var(--font-bold);
                            }
                        }
                    }
                }
            }

            .nav__menu.show-menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .btns {
                gap: 12px;
            }

            .nav_btn {
                height: 48px;
                font-size: 18px;
            }

            .nav__toggle {
                display: grid;
                cursor: pointer;
            }
        }
    }

    /*=============== HERO BLOGS ===============*/
    .hero__blogs {
        padding-block: 215px 70px;

        .hero__blogs__container {
            .hero__blogs__content {

                .hero__text {
                    max-width: 420px;

                    h1 {
                        font-size: 32px;
                    }

                    p {
                        font-size: 16px;
                    }
                }

                .img {
                    max-width: 445px;
                    height: 333px;
                }
            }
        }

        &::before {
            width: 215px;
            height: 230px;
        }
    }

    /*=============== BLOGS ===============*/
    .blogs {
        padding-block: 0 70px;

        .blogs__container {
            .blogs__content {
                gap: 66px;

                .buttons__filter {
                    gap: 16px;

                    .btn {
                        padding: 11.5px 24px;
                    }
                }

                .blogs_cards {
                    gap: 39px;

                    h2 {
                        font-size: 30px;
                    }

                    .cards {
                        grid-template-columns: repeat(2, 1fr);
                        row-gap: 35px;

                        .card {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    /*==================== FOOTER ====================*/
    .footer {
        padding-top: 80px;
        gap: 45px;

        .footer__container {
            .footer__content {
                gap: 73px;

                .bannar {
                    width: 100%;
                    padding: 60px 18px 30px;
                    margin-bottom: 12px;

                    .bannat__content {
                        h2 {
                            font-size: 24px;
                        }

                        a {
                            width: 270px;
                            height: 39px;
                            font-size: var(--note-size);
                        }
                    }

                    &::before,
                    &::after {
                        width: 168.3267629201328px;
                        height: 168.3267629201328px;
                    }
                }

                .footer__links {
                    flex-wrap: wrap;
                    gap: 35px;

                    a {
                        font-size: var(--note-size);
                    }
                }

                .footer__media {
                    gap: 25px;

                    .social {
                        a {
                            width: 40px;
                            height: 40px;
                            font-size: 18px;
                            border: 3px solid #FBFBFB;
                        }
                    }

                    .mail__num {
                        gap: 10px;

                        .item {

                            a {
                                font-size: 15px;
                            }

                            .icon {
                                width: 31px;
                                height: 31px;
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
    }

    .section {
        padding-inline: 2rem;
    }
}


@media (max-width: 768px) {

    /*===============HEADER===============*/
    header {
        top: 10px;
        padding-inline: 20px;

        .nav {
            .nav__logo {
                width: 95.74427795410156px;
                height: 108.6494369506836px;
            }

            .nav__menu {
                width: 240px;
                top: 95%;

                .nav__list {
                    .nav__item {
                        .nav__link {
                            padding: 14px 16px;
                            font-size: 16px;
                        }
                    }
                }
            }

            .btns {
                gap: 18px;

                .nav_btn {
                    height: 35px;
                    font-size: 14px;
                    width: 181px;

                    .arrow {
                        width: 30px;
                        height: 30px;
                        right: 3px;

                        i {
                            font-size: 12px;
                        }
                    }
                }
            }
        }
    }

    /*=============== HERO BLOGS ===============*/
    .hero__blogs {
        padding-block: 165px 45px;

        .hero__blogs__container {
            .hero__blogs__content {
                flex-direction: column-reverse;
                gap: 18px;

                .hero__text {
                    gap: 10px;
                    align-items: center;
                    text-align: center;
                    max-width: 568px;


                    span {
                        padding: 8.5px 16px;
                    }

                    h1 {
                        font-size: 28px;
                    }

                    p {
                        font-size: 16px;
                    }

                    a {
                        max-width: 350px;
                        height: 47px;
                        font-size: 22px;
                    }
                }

                .img {
                    height: 265px;
                    max-width: 100%;
                    border-radius: 14px;

                    img {
                        border-radius: 14px;
                    }
                }
            }
        }

        &::before {
            width: 180px;
            height: 165px;
        }

        .section {
            padding-inline: 3rem;
        }
    }

    /*=============== BLOGS ===============*/
    .blogs {
        padding-block: 0 55px;

        .blogs__container {
            .blogs__content {
                gap: 38px;

                .buttons__filter {
                    gap: 14px;
                    padding: 14px 18px;

                    .btn {
                        font-size: 14px;
                        padding: 11.5px 24px;
                    }
                }

                .blogs_cards {
                    gap: 39px;

                    h2 {
                        font-size: 23px;
                    }

                    .cards {
                        column-gap: 18px;
                        row-gap: 28px;

                        .card {
                            .card__img {
                                height: 170px;
                            }

                            .card__content {
                                padding: 20px;

                                span {
                                    font-size: 10px;
                                }

                                h3 {
                                    font-size: 15px;
                                }

                                p {
                                    font-size: 12px;
                                }

                                .link {
                                    font-size: 12px;
                                }
                            }
                        }
                    }
                }

                .pagination {
                    height: 42px;
                }

                .pagination button {
                    height: 42px;
                    font-size: 16px;
                    padding: 9px 12px;
                }

                .pagination .page {
                    width: 42px;
                    height: 42px;
                    font-size: 15px;
                }
            }
        }
    }

    /*==================== FOOTER ====================*/
    .footer {
        padding-top: 65px;
        gap: 35px;

        .footer__container {
            .footer__content {
                gap: 65px;

                .bannar {
                    padding: 50px 15px 25px;

                    .bannat__content {
                        gap: 23px;

                        h2 {
                            font-size: var(--paragraph-size);
                            line-height: 1.6;
                        }

                        a {
                            width: 100%;
                            max-width: 225px;
                            height: 39px;
                            font-size: 14px;
                        }
                    }

                    &::before,
                    &::after {
                        width: 104.89582824707031px;
                        height: 104.89582824707031px;
                    }
                }

                .footer__links {
                    gap: 35px;

                    a {
                        font-size: 14px;
                    }
                }

                .footer__media {

                    .mail__num {
                        gap: 15px;

                        .item {
                            gap: 9px;

                            .icon {
                                width: 28px;
                                height: 28px;
                                font-size: 15px;
                            }

                            a {
                                font-size: 14px;
                            }
                        }
                    }

                    .social {
                        a {
                            width: 35px;
                            height: 35px;
                            font-size: 18px;
                        }
                    }
                }
            }
        }

        .footer__copyright {
            padding: 13px 15px;

            a {
                width: 110px;
                height: 14px;
            }

            p {
                font-size: 12px;
            }
        }
    }
}


@media (max-width: 576px) {

    /*===============HEADER===============*/
    header {
        top: 8px;
        padding-inline: 15px;

        .nav {
            .nav__logo {
                width: 63.53670120239258px;
                height: 72.10066986083984px;
            }

            .nav__menu {
                width: 230px;

                .nav__list {
                    .nav__item {
                        .nav__link {
                            padding: 13px 14px;
                            font-size: 15px;
                        }
                    }
                }
            }

            .btns {
                gap: 14px;

                .nav_btn {
                    width: fit-content;
                    height: 33px;
                    font-size: 12px;
                    padding: 0px 3px 0 10px;
                    gap: 7px;
                    flex-direction: row-reverse;

                    .arrow {
                        position: static;
                    }
                }
            }

        }
    }

    /*=============== HERO BLOGS ===============*/
    .hero__blogs {
        padding-block: 115px 40px;

        .hero__blogs__container {
            .hero__blogs__content {
                gap: 28px;

                .hero__text {
                    gap: 15px;

                    span {
                        font-size: 12px;
                        padding: 6px 12px;
                    }

                    h1 {
                        font-size: 26px;
                    }

                    p {
                        font-size: 14px;
                    }

                    a {
                        max-width: 100%;
                        font-size: 16px;
                    }
                }

                .img {
                    height: 240px;
                    border-radius: 12px;

                    img {
                        border-radius: 12px;
                    }
                }
            }
        }

        &::before {
            width: 130px;
            height: 105px;
        }
    }

    /*=============== BLOGS ===============*/
    .blogs {
        padding-block: 0 45px;

        .blogs__container {
            .blogs__content {
                gap: 30px;

                .buttons__filter {
                    gap: 10px;
                    padding: 12px 14px;

                    .btn {
                        font-size: 12px;
                        padding: 7px 16px;
                    }
                }

                .blogs_cards {
                    gap: 28px;

                    h2 {
                        font-size: 22px;
                    }

                    .cards {
                        grid-template-columns: 1fr;
                        row-gap: 24px;

                        .card {
                            width: 100%;

                            .card__img {
                                height: 190px;
                            }

                            .card__content {
                                padding: 18px;

                                span {
                                    font-size: 11px;
                                }

                                h3 {
                                    font-size: 16px;
                                }

                                p {
                                    font-size: 12px;
                                }

                                .link {
                                    font-size: 12px;
                                }
                            }
                        }
                    }
                }

                .pagination {
                    height: 38px;
                    margin-top: 20px;
                }

                .pagination button {
                    height: 38px;
                    font-size: 14px;
                    padding: 8px 10px;

                    i {
                        font-size: 12px;
                    }
                }

                .pagination .page {
                    width: 38px;
                    height: 38px;
                    font-size: 14px;
                }
            }
        }
    }

    /*==================== FOOTER ====================*/
    .footer {
        padding-top: 55px;
        gap: 28px;

        .footer__container {
            .footer__content {
                gap: 45px;

                .bannar {
                    padding: 40px 12px 20px;

                    .bannat__content {
                        gap: 23px;
                        z-index: 1;

                        h2 {
                            font-size: 20px;
                        }

                        a {
                            max-width: 80%;
                            height: 32px;
                            font-size: 14px;
                        }
                    }

                    &::before,
                    &::after {
                        width: 90px;
                        height: 90px;
                    }

                    &::before {
                        top: -40%;
                        left: -19%;
                    }

                    &::after {
                        bottom: -40%;
                        right: -19%;
                    }
                }

                .footer__links {
                    row-gap: 22px;
                    column-gap: 35px;

                    a {
                        font-size: 12px;
                    }
                }

                .footer__media {
                    flex-direction: column-reverse;

                    .mail__num {
                        gap: 17px;

                        .item {
                            gap: 9px;

                            .icon {
                                width: 28px;
                                height: 28px;
                                font-size: 15px;
                            }

                            a {
                                font-size: 12px;
                            }
                        }
                    }

                    .social {
                        a {
                            width: 32px;
                            height: 32px;
                            font-size: 14px;

                            &:nth-child(2) {
                                margin-left: -7px;
                            }

                            &:nth-child(3) {
                                margin-left: -7px;
                            }

                        }
                    }
                }
            }
        }

        .footer__copyright {
            padding-block: 13px 8px 7px 8px;

            p {
                font-size: 12px;
            }
        }
    }
}. n a v _ l o g i n _ b t n   {   f o n t - s i z e :   1 6 p x ;   f o n t - w e i g h t :   7 0 0 ;   c o l o r :   # f f f ;   t r a n s i t i o n :   0 . 3 s ;   b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ;   p a d d i n g :   8 p x   2 5 p x ;   b o r d e r - r a d i u s :   1 0 0 p x ;   b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ;   b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ;   w h i t e - s p a c e :   n o w r a p ;   }   . n a v _ l o g i n _ b t n : h o v e r   {   b a c k g r o u n d :   # 4 7 a 3 d 1 ;   }   . n a v _ _ i t e m - m o b i l e   {   d i s p l a y :   n o n e ;   }   @ m e d i a   s c r e e n   a n d   ( m a x - w i d t h :   7 6 8 p x )   {   . n a v _ l o g i n _ b t n   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   }   . n a v _ _ i t e m - m o b i l e   {   d i s p l a y :   b l o c k   ! i m p o r t a n t ;   }   }  
 