/* css/blog.css */

/* --- Hero Section --- */
.page-hero-wrapper {
    position: relative; width: 100%; height: 400px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #fff; background-color: #222; border-bottom: 5px solid var(--brand-orange);
}
.hero-img-real { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 0; filter: brightness(0.5); 
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-content h1 { 
    font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; margin: 0; color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-content p { 
    font-size: 1.1rem; margin-top: 15px; color: #fff; font-weight: 700; 
    background: var(--brand-orange); display: inline-block; padding: 8px 25px; border-radius: 50px; 
}

/* --- Blog Grid --- */
.section-padding { padding: 70px 0; background: var(--bg-secondary); /* متغير */ }

.blog-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; 
}

.blog-card { 
    background: var(--bg-card); /* متغير */
    border-radius: 20px; overflow: hidden; 
    border: 1px solid var(--border-color); /* متغير */
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; flex-direction: column; 
    box-shadow: 0 5px 15px var(--shadow-color);
}
.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px var(--shadow-color); 
    border-color: var(--brand-orange);
}

.blog-card img { 
    width: 100%; height: 230px; object-fit: cover; 
    border-bottom: 1px solid var(--border-color);
}

.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.post-meta { 
    color: var(--brand-orange); font-weight: 900; font-size: 14px; 
    margin-bottom: 10px; display: block; 
}

.blog-card h2 { 
    font-size: 1.3rem; font-weight: 900; margin: 0 0 15px; 
    line-height: 1.4; color: var(--text-primary); /* متغير */
}

.blog-card p { 
    font-size: 0.95rem; color: var(--text-secondary); /* متغير */
    margin-bottom: 20px; flex-grow: 1; line-height: 1.6;
}

.read-more { 
    color: var(--brand-orange); font-weight: 900; text-decoration: none; 
    font-size: 14px; align-self: flex-start; border-bottom: 2px solid transparent; 
    transition: 0.3s;
}
.read-more:hover { border-bottom-color: var(--brand-orange); padding-bottom: 2px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .page-hero-wrapper { height: 250px; }
}