/* Blog Page Styles */

/* Header Section */
.blog-header {
    padding: 5.1rem 0 2.55rem;
    text-align: left;
}

.blog-heading-label {
    font-size: 0.765rem;
    color: #96c549;
    font-weight: 600;
    margin-bottom: 0.85rem;
    display: inline-block;
}

.blog-title {
    font-size: 2.975rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
    line-height: 1.1;
}

.blog-subtitle {
    font-size: 0.9775rem;
    color: #4b5563;
    max-width: 510px;
}

/* Category Pills */
.blog-categories {
    display: flex;
    gap: 1.275rem;
    margin-bottom: 2.55rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.85rem;
    overflow-x: auto;
}

.cat-pill {
    text-decoration: none;
    font-size: 0.782rem;
    font-weight: 600;
    color: #374151;
    padding: 0.34rem 0;
    border-bottom: 1.7px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-pill:hover {
    color: #96c549;
}

.cat-pill.active {
    background-color: #96c549;
    color: #fff;
    padding: 0.34rem 0.85rem;
    border-radius: 42.5px;
    border-bottom: none;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.7rem;
    margin-bottom: 3.4rem;
}

.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.featured-card:hover {
    transform: translateY(-3.4px);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f3f4f6;
    border-radius: 10.2px;
    margin-bottom: 1.275rem;
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e7eb;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-meta {
    font-size: 0.7225rem;
    color: #6b7280;
    margin-bottom: 0.425rem;
}

.card-title {
    font-size: 0.9775rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.425rem;
    line-height: 1.3;
}

/* Card Descriptions & Read More */
.card-desc {
    font-size: 0.8075rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-row {
    font-size: 0.765rem;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 0.255rem;
    margin-top: auto;
    /* Push to bottom if flex column */
}

.read-more-row:hover {
    color: #96c549;
}

.rm-arrow {
    font-size: 0.51rem;
    position: relative;
    top: 0.85px;
}

.featured-card:hover .read-more-row {
    color: #96c549;
}

.featured-card:hover .rm-arrow {
    transform: translateX(3px);
}

/* Author / Avatar */
.author-pill {
    display: flex;
    align-items: center;
    gap: 0.425rem;
    margin-top: 0.85rem;
}

.author-img {
    width: 20.4px;
    height: 20.4px;
    border-radius: 50%;
    background: #ddd;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.7rem 0;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.post-item:hover {
    /* Optional hover state if desired */
    /* background-color: #fafafa; */
}

.post-info {
    max-width: 50%;
    /* Reduced to give more space/alignment control */
    flex-grow: 1;
}

.post-item-title {
    font-size: 0.8925rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.post-meta-row {
    display: grid;
    grid-template-columns: 85px 93.5px 34px;
    /* Tag, Date, Avatar */
    align-items: center;
    gap: 1.275rem;
    font-size: 0.765rem;
    color: #6b7280;
}

.post-tag {
    color: #6b7280;
    text-align: right;
}

.post-date {
    text-align: right;
}

.post-item:hover .post-item-title {
    color: #96c549;
}

.post-item:hover .post-tag {
    color: #295950;
}

.author-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.author-stack img {
    border: 1.7px solid #fff;
    margin-left: -6.8px;
}

.author-stack img:first-child {
    margin-left: 0;
}

.author-stack img:hover {
    border-color: #96c549;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Pagination */
.pagination-row {
    display: flex;
    align-items: center;
    gap: 1.275rem;
    margin-top: 2.55rem;
    font-size: 0.765rem;
    font-weight: 500;
    color: #374151;
}

.page-link {
    text-decoration: none;
    color: inherit;
    width: 27.2px;
    height: 27.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: #96c549;
    color: #fff;
}

.page-link.active {
    background-color: #295950;
    color: #fff;
}

.page-separator {
    color: #d1d5db;
    margin: 0 0.425rem;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .post-info {
        max-width: 100%;
    }

    .post-meta-row {
        width: 100%;
        justify-content: space-between;
    }
}