﻿
:root {
    --main-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #4a4a4a;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
}

.section-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 4rem;
}

    .section-header img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.7);
    }

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.search-box {
    position: absolute;
    left: 2rem;
    top: 2rem;
    width: 350px;
}

.search-input {
    border-radius: 30px;
    padding: 15px 45px 15px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

    .search-input:focus {
        background: rgba(255,255,255,0.2);
        box-shadow: none;
        border-color: white;
    }

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

.divider {
    border-top: 2px solid rgba(0,0,0,0.1);
    margin: 4rem auto;
    width: 80%;
    position: relative;
}

    .divider:after {
        content: "✻";
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 0 10px;
        color: var(--accent-color);
        font-size: 1.5rem;
    }

.article-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 2rem;
}

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

.card-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-date {
    color: var(--accent-color);
    font-size: 0.9rem;
}

    .card-date i {
        margin-left: 5px;
    }

.read-btn {
    background: var(--accent-color);
    color: white;
    border-radius: 25px;
    padding: 8px 25px;
    transition: all 0.3s ease;
    border: none;
}

    .read-btn:hover {
        background: var(--main-color);
        transform: translateX(5px);
    }

@media (max-width: 568px) {
   
    .search-box {
      
        width:90%;
        margin:0 auto;
        display:block;
        text-align:center;
        padding:10px;
    }
    .section-header{
        width:100%;
        display:flex;
        justify-content:center;
        align-items:center;
        flex-direction:column;
    }
        /*    .search-box {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }*/
    }
.d-body{
    direction:rtl;
}


