/* =============================================
   BLOG.CSS — Trang Bài Viết
   Theo mockup Figma: 2 cột main + sidebar
============================================= */

/* ---- Shared header/footer classes ---- */
.icon-gold {
    color: #F2B203;
}

.flag-img {
    height: 18px;
    object-fit: cover;
    cursor: pointer;
}

.flag-img-drawer {
    height: 20px;
    object-fit: cover;
    cursor: pointer;
}

.logo-img-lg {
    height: 80px;
    object-fit: contain;
}

.logo-img-sm {
    height: 40px;
    object-fit: contain;
}

.logo-img-drawer {
    height: 36px;
    object-fit: contain;
}

.partner-img {
    height: 20px;
}

.partner-img-sm {
    height: 18px;
}

.partner-img-bg {
    background: #fff;
    padding: 2px 4px;
    border-radius: 4px;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    display: none;
}

.main-nav.header-nav-row {
    flex: 1;
    border-top: none;
    padding: 15px 0;
}

.mobile-drawer-extra {
    display: none;
}

.drawer-divider {
    margin: 24px 20px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.drawer-flags {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.drawer-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    margin: 0 10px;
    border-radius: 8px;
    align-items: center;
}

.fb-page-container {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.fb-iframe {
    border: none;
    overflow: hidden;
    max-width: 340px;
}

.partner-footer {
    height: 25px;
    border-radius: 4px;
}

.partner-footer-bg {
    background: white;
    padding: 3px 6px;
    border-radius: 4px;
    box-sizing: border-box;
    height: 25px;
}

.partner-footer-lg {
    height: 35px;
    border-radius: 4px;
}

/* ---- HERO ---- */
.section-hero-blog {
    position: relative;
    height: 380px;
    background-image: url('../images/blog_banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.78) 0%, rgba(11, 29, 58, 0.4) 100%);
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.blog-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #d4af37;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.blog-hero-label::before,
.blog-hero-label::after {
    content: '';
    width: 36px;
    height: 1px;
    background: #d4af37;
}

.blog-hero-title {
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.blog-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
    font-weight: 400;
}

/* ---- BLOG CONTENT LAYOUT ---- */
.section-blog-content {
    padding: 60px 0 90px;
    background: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ---- BLOG CATEGORY SECTION (main) ---- */
.blog-category-section {
    margin-bottom: 52px;
}

.blog-category-section:last-of-type {
    margin-bottom: 0;
}

/* Category title — left bar vàng theo mockup */
.blog-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #0b1d3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.blog-cat-bar {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #d4af37;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Blog cards grid — 3 columns */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---- BLOG POST CARD ---- */
.blog-post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.blog-post-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.blog-post-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 0;
}

.blog-post-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-card__img-wrap img {
    transform: scale(1.08);
}

.blog-post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.blog-post-card__cat {
    font-size: 12px;
    font-weight: 600;
    color: #d4af37;
    text-transform: capitalize;
    margin-bottom: 6px;
}

.blog-post-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0b1d3a;
    line-height: 1.45;
    margin-bottom: 8px;
    text-transform: uppercase;
    display: -webkit-box;
  -webkit-line-clamp: 2; /* Số dòng tối đa */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card:hover .blog-post-card__title {
    color: #d4af37;
}

.blog-post-card__excerpt {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    text-align: justify;
      display: -webkit-box;
  -webkit-line-clamp: 3; /* Số dòng tối đa */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- PAGINATION ---- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.blog-page-btn:hover {
    border-color: #0b1d3a;
    color: #0b1d3a;
}

.blog-page-btn--active {
    background: #0b1d3a;
    border-color: #0b1d3a;
    color: #fff;
}

.blog-page-btn--active:hover {
    background: #0b1d3a;
    color: #fff;
}

.blog-page-btn--arrow {
    font-size: 20px;
    color: #475569;
    border-color: #e2e8f0;
}

.blog-page-btn--empty {
    border-color: #d4af37;
    background: transparent;
}

.blog-page-dots {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 600;
    padding: 0 2px;
}

/* ---- SIDEBAR ---- */
.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Sidebar widget */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    overflow: hidden;
}

/* Sidebar widget title */
.sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #0b1d3a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-widget__bar {
    display: inline-block;
    width: 3px;
    height: 16px;
    background: #d4af37;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Category list */
.sidebar-cat-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-cat-list__item {
    border-bottom: 1px solid #f8fafc;
}

.sidebar-cat-list__item:last-child {
    border-bottom: none;
}

.sidebar-cat-list__item a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s, background 0.2s;
}

.sidebar-cat-list__item a:hover {
    color: #0b1d3a;
    background: #f8fafc;
}

.sidebar-cat-list__item--active a {
    font-weight: 700;
    color: #fff;
    background: #0b1d3a;
    border-radius: 0;
}

.sidebar-cat-list__item--active:hover a {
    background: #0b1d3a;
    color: #fff;
}

/* Featured list */
.sidebar-featured-list {
    display: flex;
    flex-direction: column;
}

.sidebar-featured-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.2s;
    align-items: start;
}

.sidebar-featured-item:last-child {
    border-bottom: none;
}

.sidebar-featured-item:hover {
    background: #f8fafc;
}

.sidebar-featured-item__img {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.sidebar-featured-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-featured-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-featured-item__cat {
    font-size: 10px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-featured-item__date {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    align-self: flex-end;
    margin-top: -16px;
}

.sidebar-featured-item__title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0b1d3a;
    line-height: 1.4;
    margin: 0;
}

.sidebar-featured-item:hover .sidebar-featured-item__title {
    color: #d4af37;
}

.sidebar-featured-item__desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 260px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .section-hero-blog {
        height: 300px;
    }

    .section-blog-content {
        padding: 44px 0 70px;
    }

    .blog-cat-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .sidebar-featured-item {
        grid-template-columns: 64px 1fr;
        gap: 10px;
    }
}

.section-hero-blog {
    height: 300px;
}

.section-blog-content {
    padding: 44px 0 70px;
}

.blog-cat-title {
    font-size: 16px;
}
}

@media (max-width: 480px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .sidebar-featured-item {
        grid-template-columns: 64px 1fr;
        gap: 10px;
    }
}