/* ================= BLOG DETAIL SECTION ================= */
.blog-section {
    background: #fff;
    padding: 60px 0 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blog-wrapper .container {
    width: 90%;
    max-width: 760px;
    margin: 0 auto;
}

.blog-content {
    width: 100%;
}

/* ---- Header ---- */
.blog-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eef0f4;
}

.blog-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1c2340;
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
}

.blog-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #7c8194;
    line-height: 1.6;
    margin: 0 0 26px;
}

/* ---- Byline ---- */
.blog-byline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.blog-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2F3B78;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
}
.blog-byline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.blog-author {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1c2340;
}
.blog-date {
    font-size: 0.82rem;
    color: #a3a7b8;
}

/* ---- Body content ---- */
.blog-body p {
    font-size: 1.08rem;
    color: #3b3f52;
    line-height: 1.9;
    margin: 0 0 28px;
}
.blog-body p:first-of-type::first-letter {
    font-size: 3.2rem;
    font-weight: 800;
    color: #2F3B78;
    float: left;
    line-height: 0.85;
    margin: 6px 8px 0 0;
}

/* ---- Image rows ---- */
.blog-image-row {
    display: grid;
    gap: 16px;
    margin: 12px 0 32px;
}
.blog-image-row.count-1 {
    grid-template-columns: 1fr;
}
.blog-image-row.count-2 {
    grid-template-columns: repeat(2, 1fr);
}
.blog-image-row.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-image-col {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f3f7;
    box-shadow: 0 6px 20px rgba(20, 25, 50, 0.08);
}
.blog-image {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}
.blog-image-row.count-1 .blog-image {
    max-height: 520px;
}

/* ---- Not found state ---- */
.blog-not-found {
    text-align: center;
    padding: 80px 0;
}
.blog-not-found h2 {
    color: #999;
    font-size: 1.4rem;
    font-weight: 600;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .blog-section {
        padding: 40px 0 60px;
    }
    .blog-title {
        font-size: 1.7rem;
    }
    .blog-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .blog-header {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }
    .blog-body p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 22px;
    }
    .blog-body p:first-of-type::first-letter {
        font-size: 2.4rem;
        margin: 4px 6px 0 0;
    }
    .blog-image-row.count-2,
    .blog-image-row.count-3 {
        grid-template-columns: 1fr;
    }
    .blog-image {
        max-height: 300px;
    }
    .blog-image-row.count-1 .blog-image {
        max-height: 340px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.45rem;
    }
    .blog-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }
}

/* ================= FEATURED SECTION ================= */
#featured-wrapper {
    background: #f5f6fa;
    padding: 60px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#featured-wrapper .container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: flex-start;
}

.col-4 {
    flex: 1 1 calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
    box-sizing: border-box;
}

/* ---- Card ---- */
.post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #edeef3;
    box-shadow: 0 3px 12px rgba(20, 25, 50, 0.05);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 18px 38px rgba(20, 25, 50, 0.12);
    transform: translateY(-5px);
}

/* ---- Image ---- */
.post-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 190px;
    background: #eee;
}
.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.post-card__image-link:hover .post-card__image {
    transform: scale(1.08);
}
.post-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #F4B234;
    color: #22253E;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ---- Content ---- */
.post-card__content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card__title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1c2340;
    line-height: 1.35;
    letter-spacing: -0.2px;
}
.post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.post-card__title a:hover {
    color: #2F3B78;
}
.post-card__excerpt {
    font-size: 0.9rem;
    color: #6b7086;
    line-height: 1.7;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    color: #2F3B78;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.post-card__link span {
    transition: transform 0.25s ease;
}
.post-card__link:hover {
    color: #F4B234;
    border-color: #F4B234;
}
.post-card__link:hover span {
    transform: translateX(4px);
}

/* ---- No posts ---- */
.no-posts {
    text-align: center;
    font-size: 1.05rem;
    color: #999;
    width: 100%;
    padding: 60px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .col-4 {
        flex: 1 1 calc(50% - 13px);
        max-width: calc(50% - 13px);
    }
}
@media (max-width: 768px) {
    #featured-wrapper {
        padding: 40px 0;
    }
    .col-4.col-12-medium {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .post-card__image-link {
        height: 210px;
    }
    .post-card__content {
        padding: 20px 22px 22px;
    }
}