@font-face {
    font-family: Montserrat-Arabic;
    src: url(../font/alfont_com_Montserrat-Arabic-Regular.ttf);
}
:root {
    --color-primary: #f2994a;
    --color-primary-light: #f1eae5;
    --color-secondary: #2f80ed;
    --color-secondary-light: #56ccf2;
    --color-secondary-very-light: #eef5fe;
    --color-background: #2f80ed14;
    --color-text: #5f5f5f;
    --color-background-ankor: #e8e8e8;
}
* {
    box-sizing: border-box;
}
html {
    font-size: 10px;
    font-family: "Montserrat-Arabic", sans-serif;
}
a {
    text-decoration: none;
}
span {
    color: var(--color-primary);
}
.Project-Page {
    margin-right: 80px;
    margin-left: 80px;
    margin-bottom: 85px;
}
.Project-Page-top {
    margin-top: 120px;
    display: flex;
    align-items: center;
    gap: 50px;
}
.Project-Page-top-right h1 {
    font-weight: 500;
    font-size: 4.8rem;
    line-height: 120%;
}
.Project-Page-top-right p {
    font-weight: 400;
    font-size: 2rem;
    line-height: 150%;
    color: var(--color-text);
}
.Project-Page-top-left img {
    width: 500px;
    height: 500px;
}

/* أزرار التصنيفات */
.categories {
    margin-right: 0px;
    margin-top: 100px;
}

.filter-btn {
    background: var(--color-background-ankor);
    border: none;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-top: 8px;
    padding-left: 12px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 12px;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
}

/* شبكة المقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(2, 1fr); /* 2 كروت على الشاشات الكبيرة */
    gap: 40px;
    padding-top: 20px;
    margin: auto;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 25px;
}

.article-card {
    background: #f5f5f5;
    padding-bottom: 15px;
    /* padding-left: 15px; */
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
}
.article-card-con {
    padding-right: 15px;
    padding-left: 20px;
    padding-top: 15px;
}
.article-card-con h3 {
    font-weight: 700;
    font-size: 1.8rem;
}
.article-card-con p {
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 130%;
}
.article-card-con span {
    font-weight: 500;
    font-size: 1.4rem;
}
.article-card:hover,
.article-card:hover .article-card-con h3,
.article-card:hover .article-card-con p,
.article-card:hover .article-card-con .read-more {
    color: black;
    background-color: white;
    display: block;
}
.article-card:hover .article-card-con .read-more {
    border-bottom: 1px solid black;
}
.article-card:hover .bottm-card-artical img {
    display: block;
    opacity: 1;
}
.article-card-con h3 {
    color: #acacac;
}
.article-card-con p {
    color: #acacac;
}

.article-card img {
    width: 100%;
    height: 400px; /* Set a fixed height for uniformity */
    object-fit: cover;
    border-radius: 10px;
}

.category-tag {
    box-shadow: 0px 6px 6px 0px #3c6d7e;
    color: #56ccf2;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag2 {
    box-shadow: 0px 6px 6px 0px #334b9b;
    color: #003cff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag3 {
    box-shadow: 0px 6px 6px 0px #6e4826;
    color: #ff7800;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag4 {
    box-shadow: 0px 6px 6px 0px rgb(120, 151, 56);
    color: yellowgreen;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.bottm-card-artical .time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90px;
}
.bottm-card-artical .time img {
    width: 20px;
    height: 20px;
    display: block;
}

.bottm-card-artical .time p {
    font-weight: 500;
    font-size: 1.6rem;
    color: #acacac;
}
.bottm-card-artical {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    /* background-color: white; */
    border: none;
    border-bottom: 1px solid #acacac;
    color: #acacac;
    padding: 0px;
    font-size: 1.6rem;
    font-weight: 500;
}

/* زر تحميل المزيد */
#load-more {
    display: block;
    margin: 20px auto;
    background: #2f80ed;

    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.4rem;
}

/* إخفاء المقالات الإضافية */
.hidden {
    display: none;
}

.Advantages-Project {
    margin-top: 80px;
}
.Advantages-Project-top h1 {
    font-weight: 500;
    font-size: 4rem;
}

.Advantages-Project-top p {
    font-weight: 400;
    font-size: 2rem;
    color: var(--color-text);
}
.Advantages-Project-mid-con {
    gap: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    margin-top: 50px;
    margin-bottom: 70px;
}
.Advantages-Project-mid {
    padding: 20px 34px 40px 34px;
    width: 405px;
    box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.2);
}
.Advantages-Project-mid img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
}
.Advantages-Project-mid h2 {
    font-weight: 500;
    font-size: 2rem;
}
.Advantages-Project-mid p {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 130%;
    color: var(--color-text);
}
.Advantages-Project-bottom {
    width: 100%;
    height: 300px;
    margin-top: 100px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #eef5fe80;
}
.Advantages-Project-bottom a {
    padding: 15px 10px;
    border-radius: 8px;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 500;
    font-size: 1.6rem;
}

.Advantages-Project-bottom h1 {
    font-size: 3.2rem;
    font-weight: 500;
}
.Advantages-Project-bottom h5 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text);
}

@media (max-width: 835px) and (min-width: 500px) {
    .Project-Page-top {
        margin-top: 120px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 50px;
    }
    .Project-Page-top-right h1 {
        font-weight: 500;
        font-size: 4.8rem;
        line-height: 120%;
    }
    .Project-Page-top-right p {
        font-weight: 400;
        font-size: 2rem;
        line-height: 150%;
        color: var(--color-text);
    }
    .Project-Page-top-left img {
        width: 99%;
        height: 500px;
    }

    /* شبكة المقالات */
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-template-columns: repeat(1, 1fr); /* 2 كروت على الشاشات الكبيرة */
        gap: 40px;
        padding-top: 20px;
        margin: auto;
        margin-right: 0px;
        margin-left: 0px;
        margin-bottom: 25px;
    }

    .Advantages-Project-mid-con {
        gap: 15px;
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        margin-top: 50px;
        margin-bottom: 70px;
    }
    .Advantages-Project-mid {
        padding: 20px 34px 40px 34px;
        width: 260px;
        box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.2);
    }
}
@media (max-width: 499px) {
    .Project-Page {
        margin-right: 30px;
        margin-left: 30px;
    }
    .Project-Page-top {
        margin-top: 120px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 50px;
    }
    .Project-Page-top-right h1 {
        font-weight: 500;
        font-size: 2.4rem;
        line-height: 120%;
    }
    .Project-Page-top-right p {
        font-weight: 400;
        font-size: 1.4rem;
        line-height: 150%;
        color: var(--color-text);
    }
    .Project-Page-top-left img {
        width: 99%;
        height: 500px;
    }

    /* شبكة المقالات */
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-template-columns: repeat(1, 1fr); /* 2 كروت على الشاشات الكبيرة */
        gap: 40px;
        padding-top: 20px;
        margin: auto;
        margin-right: 0px;
        margin-left: 0px;
        margin-bottom: 25px;
    }

    .Advantages-Project-mid-con {
        gap: 35px;
        display: grid;
        grid-template-columns: repeat(1, minmax(300px, 1fr));
        margin-top: 50px;
        margin-bottom: 70px;
        margin-right: 20px;
    }
    .Advantages-Project-mid {
        padding: 20px 34px 40px 34px;
        width: 300px;
        box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.2);
    }

    .Advantages-Project {
        margin-top: 80px;
    }
    .Advantages-Project-top h1 {
        font-weight: 500;
        font-size: 2.4rem;
    }

    .Advantages-Project-top p {
        font-weight: 400;
        font-size: 1.6rem;
        line-height: 140%;
        color: var(--color-text);
    }
    .categories {
        margin-right: 0px;
        margin-top: 50px !important;
    }

    .filter-btn {
        background: var(--color-background-ankor);
        border: none;
        padding-right: 6px;
        padding-bottom: 5px;
        padding-top: 5px;
        padding-left: 6px;
        border-radius: 40px;
        cursor: pointer;
        transition: 0.3s;
        margin-left: 8px;
        font-size: 1.1rem;
        font-weight: 400;
        margin-bottom: 12px;
    }

    .filter-btn.active {
        background: var(--color-primary);
        color: white;
    }

.Advantages-Project-bottom {
    width: 100%;
    height: auto;
    margin-top: 80px !important;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #eef5fe80;
}
.Advantages-Project-bottom a {
    margin-bottom: 30px;
    padding: 10px 8px;
    border-radius: 8px;
    background-color: var(--color-secondary);
    color: white;
    font-weight: 500;
    font-size: 1.3rem !important;
}

.Advantages-Project-bottom h1 {
    font-size: 2rem !important;
    font-weight: 500;
    margin-top: 30px;
}
.Advantages-Project-bottom h5 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-text);
}

}
.hokok{
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1460px) and (min-width: 768px)  {
    .Project-Page {
        margin-right: 40px;
        margin-left: 40px;
    }

    .Project-Page-top {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        margin-top: 80px;
    }

    .Project-Page-top-left img {
        width: 350px;
        height: 350px;
        object-fit: contain;
    }

    .Project-Page-top-right h1 {
        font-size: 3.2rem;
        line-height: 120%;
    }

    .Project-Page-top-right p {
        font-size: 1.6rem;
        line-height: 140%;
    }
    .Project-Page-top {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .Project-Page-top-left img {
        width: 100%;
        max-width: 450px;
        height: auto;
    }

}

/* Adjustments for smaller tablets (e.g., portrait mode) */
@media (max-width: 835px) {
    .Project-Page-top {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .Project-Page-top-left img {
        width: 100%;
        max-width: 450px;
        height: auto;
    }

    .Project-Page-top-right h1 {
        font-size: 2.8rem;
    }

    .Project-Page-top-right p {
        font-size: 1.5rem;
    }
}
