/* ── LIGHT PROFESSIONAL PALETTE UNIFIED ── */
body {
    background-color: var(--navy-bg, #f8fafc);
    color: var(--text-main, #0f172a);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.breadcrumb-container {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 0;
}

.blog-wrapper {
    padding: calc(var(--nav-height) + 20px) 16px 60px;
    padding-bottom: 60px;
}

/* ── CARDS & CONTAINER ── */
.blog-card-main {
    background: var(--navy-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 10px 30px -5px rgba(15, 23, 42, 0.08));
    padding: 24px;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}

/* Featured Post Styling */
.featured-post-card {
    background: var(--navy-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
    height: 100%;
    display: flex;
    flex-direction: column;
}
.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card, 0 10px 30px -5px rgba(15, 23, 42, 0.08));
    border-color: var(--gold, #d97706);
}
.featured-img-box {
    overflow: hidden;
    position: relative;
}
.featured-img-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}
.featured-post-card:hover .featured-img-box img {
    transform: scale(1.04);
}
.featured-title {
    color: var(--text-main, #0f172a);
    font-weight: 700;
    line-height: 1.35;
    font-size: 1.25rem;
}
.featured-post-card:hover .featured-title {
    color: var(--gold, #d97706);
}

/* Side Recent Posts Item */
.side-post-item {
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    padding-bottom: 12px;
    margin-bottom: 12px;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.side-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.side-post-title {
    color: var(--text-main, #0f172a);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}
.side-post-title:hover {
    color: var(--gold, #d97706);
}

/* ── SIDEBAR SECTIONS ── */
.sidebar-widget {
    background: var(--navy-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-main, 0 4px 20px -2px rgba(15, 23, 42, 0.06));
}
.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main, #0f172a);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    position: relative;
}
.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold, #d97706);
}

/* Counter Badge cho Bài Thảo Luận */
.rank-number {
    width: 28px;
    height: 28px;
    background-color: var(--navy-input, #f1f5f9);
    color: var(--text-muted, #475569);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.discussion-item:first-child .rank-number {
    background-color: var(--gold, #d97706);
    color: #ffffff;
}

/* PDF / Sách mới Item */
.book-thumb-container {
    width: 76px;
    height: 96px;
    background: var(--navy-input, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

/* ── APP SIDEBAR ── */
.app-sidebar-item {
    background: var(--navy-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 10px 12px;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.app-sidebar-item:hover {
    border-color: var(--gold, #d97706);
    transform: translateY(-2px);
    box-shadow: var(--shadow-main, 0 4px 20px -2px rgba(15, 23, 42, 0.06));
}
.app-sidebar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color, #e2e8f0);
    flex-shrink: 0;
}
.app-sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main, #0f172a);
}

.download-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.badge-ios {
    background: #000000;
    color: #ffffff;
}
.badge-ios:hover {
    background: #333333;
    color: #ffffff;
}
.badge-android {
    background: #15803d;
    color: #ffffff;
}
.badge-android:hover {
    background: #166534;
    color: #ffffff;
}

/* ── BUTTONS ── */
.btn-gold-outline {
    color: var(--gold, #d97706);
    border: 1.5px solid var(--gold, #d97706);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition, 0.25s cubic-bezier(0.4, 0, 0.2, 1));
}
.btn-gold-outline:hover {
    background: var(--gold, #d97706);
    color: #ffffff;
}

@media (max-width: 768px) {
    .blog-wrapper { padding-top: calc(var(--nav-height, 84px) + 12px); }
}