/* =============================================
   Refonte Blog Page CSS
   ============================================= */

/* Hero Section */
.refonte-blog-hero {
    background-color: var(--dark-green);
    padding: 160px 40px 100px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.refonte-blog-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 242, 131, 0.15) 0%, rgba(216, 242, 131, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-content h1 {
    font-family: var(--font-primary);
    font-size: 64px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 24px 0;
    line-height: 1.1;
}

.blog-hero-content p {
    font-family: var(--font-primary);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Main Content Area */
.refonte-blog-main {
    background-color: #F4F7F6;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
}

.blog-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Category Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.blog-filter-btn {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: #475467;
    background-color: transparent;
    border: 1px solid #D0D5DD;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filter-btn:hover {
    background-color: #E2E8E6;
    color: var(--dark-green);
    border-color: #E2E8E6;
}

.blog-filter-btn.active {
    background-color: var(--dark-green);
    color: var(--white);
    border-color: var(--dark-green);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Article Card */
.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E2E8E6;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 51, 41, 0.08);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    background-color: var(--accent-color);
    color: var(--dark-green);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.blog-tag.sector-tag {
    background-color: #F2F4F7;
    color: #475467;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #F0F2F1;
}

.blog-card-footer span {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-green);
    transition: color 0.2s ease;
}

.blog-card-footer img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-footer span {
    color: var(--primary-color);
}

.blog-card:hover .blog-card-footer img {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .refonte-blog-hero {
        padding: 140px 24px 80px;
    }

    .blog-hero-content h1 {
        font-size: 48px;
    }

    .blog-hero-content p {
        font-size: 18px;
    }

    .refonte-blog-main {
        padding: 60px 24px;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .refonte-blog-hero {
        padding: 120px 16px 60px;
    }

    .blog-hero-content h1 {
        font-size: 36px;
    }

    .blog-hero-content p {
        font-size: 16px;
    }

    .refonte-blog-main {
        padding: 40px 16px;
    }

    .blog-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .blog-filter-btn {
        flex-shrink: 0;
    }
}