/* ========================
   BLOG LISTING PAGE STYLES
   ======================== */

/* 1. Blog Hero Section */
.blog-hero {
    /* Update path if your image is in a different folder */
    background: linear-gradient(rgba(3, 79, 61, 0.9), rgba(2, 54, 41, 0.9)), url('../images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 140px 20px 80px;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Filter Buttons */
.blog-filters {
    text-align: center;
    margin: 50px 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    margin: 0 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(3, 79, 61, 0.2);
}

/* 3. Grid System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

/* 4. Card Design */
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content .date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-content .date i {
    color: var(--gold);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more-btn {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    color: var(--gold);
    gap: 12px;
}
/* ... Keep your existing Hero styles ... */

/* SEARCH BAR STYLES */
.search-wrapper {
    max-width: 500px;
    margin: -30px auto 40px; /* Pulls it up slightly into the hero area */
    position: relative;
    z-index: 10;
}

.search-wrapper input {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Space for icon */
    border-radius: 50px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(3, 79, 61, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.1rem;
}

/* ... Keep your Grid and Card styles ... */