/* =============================
   BLOG PAGE STYLES
   ============================= */
.blog-header-section {
    padding: 80px 0 60px;
    background-color: white;
}

.blog-badge {
    color: var(--color-accent); /* Dark Green */
    background-color: #ff330015; /* Very light green bg */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Search Bar */
.blog-search-wrapper {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.blog-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Left padding for icon */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.blog-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-accent);
}

/* --- BLOG GRID --- */
.blog-grid-section {
    padding: 0 0 100px;
    background-color: white;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    /* Optional: Add a very subtle border */
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Categories Colors */
.blog-category {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.cat-design { color: #6941C6; }
.cat-product { color: #027A48; }
.cat-eng { color: #B42318; }
.cat-mgmt { color: #C11574; }

.blog-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-excerpt {
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes footer down */
}

/* Footer & Button */
.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #101828;
}

.publish-date {
    display: block;
    font-size: 0.8rem;
    color: #667085;
}

/* The New Button */
.btn-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent); /* Dark Green Text */
    border: 1px solid var(--color-accent);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-read-more:hover {
    background-color: var(--color-accent);
    color: white;
}