@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);
}
.Blog {
    width: auto;
    height: auto;
}
.Top-Blog {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 98%;
}
.Top-Blog-Right {
    margin-top: 244px;
    margin-right: 80px;
    height: auto;
    /* width: 798px; */
}
.Top-Blog-Right h1 {
    font-weight: 500;
    font-size: 4.8rem;
}
.Top-Blog-Right p {
    font-weight: 400;
    font-size: 2rem;
    color: var(--color-text);
    line-height: 30px;
}
.Top-Blog-Left img {
    margin-top: 122px;
    width: 500px;
    height: 500px;
}
.Top-Mid-Blog {
    display: flex;
    gap: 12px;
}
/* .Top-Mid-Blog a{
padding-right: 12px;
padding-bottom: 8px;
padding-top: 8px;
padding-left: 12px;
background-color: var(--color-background-ankor);
color: black;
border-radius: 40px;
margin-right: 80px;
}
.Top-Mid-Blog a.active{
    background-color: var(--color-primary);
    color: white;
} */

/* أزرار التصنيفات */
.categories {
    margin-right: 80px;
    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(3, 1fr); /* 3 كروت على الشاشات الكبيرة */
    gap: 20px;
    padding-top: 20px;
    margin: auto;
    margin-right: 80px;
    margin-left: 80px;
}

.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);
}
.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;
}
.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: 450px; /* You can adjust this height as needed */
    object-fit: fill; /* Ensures the image fills the area without stretching */
    border-radius: 10px;
}

.category-tag {
    box-shadow: 0px 6px 6px 0px #67abc2;
    color: #56ccf2;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag2 {
    box-shadow: 0px 6px 6px 0px #67abc2;
    color: #003cff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag3 {
    box-shadow: 0px 6px 6px 0px #67abc2;
    color: #ff7800;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.category-tag4 {
    box-shadow: 0px 6px 6px 0px #67abc2;
    color: yellowgreen;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}
.bottm-card-artical {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.bottm-card-artical img {
    display: none;
    width: 20px;
    height: 15px;
    margin-left: 10px;
}
.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: 20px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.6rem;
    transition: background 0.3s ease, transform 0.2s ease;
}
#load-more:hover {
    background: #125ec0;
    transform: translateY(-2px);
}


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

@media (max-width: 835px) and (min-width: 500px) {
    .Top-Blog {
        display: flex;
        flex-direction: column-reverse;
        width: 98%;
        text-align: center;
    }

    .Top-Blog-Right {
        margin-top: 44px;
        margin-right: 30px;
        margin-left: 30px;
        height: auto;
        text-align: center;
        /* width: 798px; */
    }

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

    .article-card-con h3 {
        font-weight: 700;
        font-size: 1.5rem;
    }
    .article-card-con p {
        font-weight: 300;
        font-size: 1.1rem;
    }
}

@media (max-width: 499px) {
    .Top-Blog {
        display: flex;
        flex-direction: column-reverse;
        width: 98%;
        text-align: center;
    }

    .Top-Blog-Right {
        margin-top: 24px;
        margin-right: 30px;
        margin-left: 30px;
        height: auto;
        text-align: center;
        /* width: 798px; */
    }
    .Top-Blog-Right h1 {
        font-size: 2.4rem;
        font-weight: 500;
        line-height: 120%;
    }
    .Top-Blog-Right p {
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 120%;
    }
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-template-columns: repeat(1, 1fr); /* 3 كروت على الشاشات الكبيرة */
        gap: 20px;
        padding-top: 20px;
        margin: auto;
        margin-right: 30px;
        margin-left: 30px;
        margin-bottom: 70px;
    }
    .Top-Blog-Left img {
        margin-top: 122px;
        padding-right: 75px;
        width: 300px;
        height: 300px;
    }
    .categories {
        margin-right: 40px;
        margin-top: 80px;
    }
    .filter-btn {
        background: var(--color-background-ankor);
        border: none;
        padding-right: 8px;
        padding-bottom: 6px;
        padding-top: 6px;
        padding-left: 8px;
        border-radius: 40px;
        cursor: pointer;
        transition: 0.3s;
        margin-left: 2px;
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 12px;
    }

    .article-card-con h3 {
        font-weight: 700;
        font-size: 1.5rem;
    }
    .article-card-con p {
        font-weight: 300;
        font-size: 1.1rem;
    }
}
.hokok{
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
}
@media (max-width: 576px) {

    .article-card img {
        padding: 0;
        height: 325px;
        object-fit: contain;
        margin-bottom: 20px;
    }
}
