/*
 * blog.css - Styles for the Blog page
 */

/* General container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Hero Section - Consistent with other pages */
.page-hero {
  position: relative;
  background: url('../images/build1.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 150px 20px 80px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.726); /* درجة التعتيم */
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(112, 112, 112, 0.822) 100%);
  z-index: 2;
}


.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
}


/* Blog Section */
.blog-section {
    padding: 80px 80px;
    background-color: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    height: 250px;
    background-color: #e0e0e0; /* Fallback color */
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-card-meta .category {
    background-color: #f4f4f4;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: 600;
    color: #333;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #000;
}

.blog-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.read-more-link {
    color: #ff6a00;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}