/**
 * Frontend Styles for Bài Viết Nổi Bật Plugin
 * CSS cho slider và grid layout
 * 
 * @package BaiVietNoiBat
 * Version: 2.3.1 - Optimized
 */

/* === FEATURED POSTS SLIDER === */
.featured-posts-slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.featured-posts-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.featured-posts-slider::-webkit-scrollbar {
    display: none;
}

.featured-post-card {
    flex: 0 0 auto;
    width: 222px;
    height: 318px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-post-card:hover .featured-post-image {
    transform: scale(1.05);
}

.featured-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 20px;
    color: white;
}

.featured-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-post-meta {
    font-size: 12px;
    opacity: 0.9;
}

.featured-post-meta .post-date {
    color: white;
}

/* Navigation Buttons */
.featured-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.featured-nav-button:hover:not(:disabled) {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.featured-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.featured-nav-button.prev {
    left: -20px;
}

.featured-nav-button.next {
    right: -20px;
}

.featured-nav-button i {
    font-size: 20px;
}

/* Category wrapper */
.featured-posts-category-wrapper {
    margin-bottom: 40px;
}

.featured-posts-category-wrapper .section-title-container {
    margin-bottom: 20px;
}

.featured-posts-category-wrapper .section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #4ecdc4;
    display: inline-block;
}

/* Loading skeleton */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.featured-post-card.loading {
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 800px 104px;
    animation: shimmer 1.2s infinite linear;
}

/* Widget Styles */
.bvnb-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bvnb-widget-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.bvnb-widget-item:last-child {
    border-bottom: none;
}

.bvnb-widget-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.bvnb-widget-item .widget-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 5px;
}

.bvnb-widget-item .widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bvnb-widget-item .widget-post-content {
    flex: 1;
}

.bvnb-widget-item h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.4;
    font-weight: 600;
}

.bvnb-widget-item .post-date {
    font-size: 12px;
    color: #999;
}

/* === AUTHOR METADATA BLOCK === */
.post-metadata-block {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
}

.bvnb-after-title .post-metadata-block,
.bvnb-in-content .post-metadata-block {
    margin-top: 0 !important;
}

.post-metadata-block:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-metadata-block .author-avatar {
    flex-shrink: 0;
}

.post-metadata-block .author-avatar img {
    width: 60px !important;
    height: 60px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.post-metadata-block .metadata-content {
    flex: 1;
}

.post-metadata-block .author-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
}

.post-metadata-block .author-name a {
    color: #333 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: color 0.3s ease !important;
}

.post-metadata-block .author-name a:hover {
    color: #0073aa !important;
}

.post-metadata-block .content-status {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
}

.post-metadata-block .content-status span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    background: #28a745 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.post-metadata-block .content-status svg {
    width: 12px !important;
    height: 12px !important;
    fill: white !important;
}

.post-metadata-block .content-status span:last-child {
    color: #28a745 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.post-metadata-block .post-info {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

.post-metadata-block .post-info strong {
    font-weight: 600 !important;
    color: #333 !important;
}

.post-metadata-block .post-info > span {
    white-space: nowrap !important;
}

/* === AUTHOR PROFILE CARD === */
.profile-card {
    font-family: Arial, sans-serif !important;
    border: 1px solid #e0e0e0 !important;
    padding: 24px !important;
    max-width: 700px !important;
    margin: 20px auto 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

.profile-card:hover .profile-image-container img {
    transform: scale(1.05) !important;
}

/* Masonry Layout - Float-based */
.profile-content {
    display: block !important;
    overflow: visible !important;
}

.profile-content::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

.profile-image-container {
    float: left !important;
    width: 124px !important;
    height: auto !important;
    margin-right: 24px !important;
    margin-bottom: 3px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}

.profile-image-container img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
}

.profile-text {
    overflow: visible !important;
}

.profile-text * {
    font-size: 14px;
    color: #333;
}

.profile-text a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
    height: auto;
    line-height: initial;
}

.profile-text a:hover {
    color: #0073aa !important;
}

.profile-text p {
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
}

.profile-text h2 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
}

/* Author Bio Content */
.author-bio-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.author-bio-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.author-bio-content p:last-child {
    margin-bottom: 0;
}

.author-bio-content ul,
.author-bio-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.author-bio-content li {
    margin-bottom: 5px;
}

.author-bio-content a {
    color: #0073aa;
    text-decoration: none;
}

.author-bio-content a:hover {
    text-decoration: underline;
}

.author-bio-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* === SOCIAL ICONS === */
.social-icons {
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
    display: flex !important;
    gap: 8px !important;
    font-size: 18px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.social-icons a {
    text-decoration: none !important;
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
}

.social-icons a:hover {
    opacity: 0.8 !important;
    transform: scale(1.05) !important;
}

/* SVG Icons */
.social-icons a svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
    display: inline-block;
}

.social-icons a.icon.button.circle {
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    min-width: unset !important;
}

.social-icons a.icon.button.circle svg {
    width: 18px !important;
    height: 18px !important;
}

.social-icons a.icon.button.circle:hover {
    transform: scale(1.05) !important;
    opacity: 0.85 !important;
}

/* Profile card social icons */
.profile-card .social-icons {
    gap: 10px !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    border-top: 1px solid #f0f0f0 !important;
    justify-content: flex-start !important;
    clear: both !important;
}

.profile-card .social-icons a {
    width: 40px !important;
    height: 40px !important;
}

.profile-card .social-icons a svg {
    width: 20px !important;
    height: 20px !important;
}

/* Metadata block social icons */
.post-metadata-block .social-icons {
    gap: 6px !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
}

.post-metadata-block .social-icons a {
    width: 32px !important;
    height: 32px !important;
}

.post-metadata-block .social-icons a svg {
    width: 16px !important;
    height: 16px !important;
}

/* === WEB STORY SLIDER === */
.bvnb-web-story-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.bvnb-web-story-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.bvnb-section-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}

.bvnb-web-story-icon {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.bvnb-web-story-slider-wrapper {
    position: relative !important;
}

.bvnb-web-story-slider {
    display: flex !important;
    gap: 15px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    padding-bottom: 10px !important;
    scrollbar-width: thin !important;
}

.bvnb-web-story-slider::-webkit-scrollbar {
    height: 8px;
}

.bvnb-web-story-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bvnb-web-story-slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.bvnb-web-story-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Story Card */
.bvnb-story-card {
    min-width: 180px !important;
    width: 180px !important;
    height: 320px !important;
    border: 2px solid #ddd !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    background: #f5f5f5 !important;
    text-decoration: none !important;
    display: block !important;
}

.bvnb-story-card:first-child {
    border: 3px solid #8b5cf6 !important;
}

.bvnb-story-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.bvnb-story-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.bvnb-story-card-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
    padding: 15px !important;
    color: white !important;
}

.bvnb-story-card-title,
h3.bvnb-story-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Story Navigation Buttons */
.bvnb-story-nav-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #333 !important;
    border-radius: 50% !important;
    background: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.bvnb-story-nav-button.next {
    right: -50px !important;
}

.bvnb-story-nav-button.prev {
    left: -50px !important;
}

.bvnb-story-nav-button:hover {
    background: #333 !important;
    color: white !important;
}

.bvnb-story-nav-button:hover i {
    color: white !important;
}

.bvnb-story-nav-button:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.bvnb-story-nav-button:disabled:hover {
    background: white !important;
    color: #333 !important;
}

.bvnb-story-nav-button i {
    font-size: 22px !important;
    color: currentColor !important;
}

.bvnb-story-nav-button:disabled i {
    color: #999 !important;
}

.bvnb-no-stories {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #999 !important;
    font-size: 16px !important;
}

/* === RESPONSIVE DESIGN === */
/* Metadata Block Responsive */
@media (max-width: 767px) {
    .post-metadata-block {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .post-metadata-block .author-avatar {
        align-self: flex-start !important;
    }
    
    .post-metadata-block .author-avatar img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .post-metadata-block .author-name {
        font-size: 15px !important;
    }
    
    .post-metadata-block .post-info {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

@media (max-width: 549px) {
    .post-metadata-block {
        padding: 12px !important;
    }
    
    .post-metadata-block .post-info {
        font-size: 12px !important;
    }
}

@media (max-width: 489px) {
    .post-metadata-block .post-info,
    .post-metadata-block .author-name {
        text-align: center !important;
    }
}

/* Profile Card Responsive */
@media (max-width: 768px) {
    .profile-card {
        margin: 15px auto !important;
        padding: 20px !important;
        border-radius: 6px !important;
    }
    
    .profile-image-container {
        width: 100px !important;
        margin-right: 20px !important;
    }
    
    .profile-text a {
        font-size: 1.3em !important;
    }
    
    .profile-card .social-icons {
        gap: 8px !important;
        padding-top: 16px !important;
        margin-top: 16px !important;
    }
    
    .social-icons a,
    .social-icons a.icon.button.circle {
        width: 36px !important;
        height: 36px !important;
    }
    
    .social-icons a svg,
    .social-icons a.icon.button.circle svg {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 480px) {
    .profile-card {
        margin: 10px 5px !important;
        padding: 16px !important;
    }
    
    .profile-image-container {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
    
    .profile-text a {
        font-size: 1.2em !important;
    }
    
    .profile-card .social-icons {
        gap: 6px !important;
        padding-top: 14px !important;
        margin-top: 14px !important;
    }
    
    .social-icons a,
    .social-icons a.icon.button.circle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .social-icons a svg,
    .social-icons a.icon.button.circle svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Featured Posts Responsive */
@media (max-width: 1024px) {
    .featured-post-card {
        width: 240px;
        height: 340px;
    }
    
    .featured-nav-button.prev {
        left: -15px;
    }
    
    .featured-nav-button.next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .featured-post-card {
        width: 200px;
        height: 300px;
    }
    
    .featured-post-title {
        font-size: 14px;
    }
    
    .featured-nav-button {
        width: 40px;
        height: 40px;
    }
    
    .featured-nav-button.prev {
        left: 5px;
    }
    
    .featured-nav-button.next {
        right: 5px;
    }
    
    .featured-posts-slider {
        gap: 15px;
    }
    
    .bvnb-story-card {
        min-width: 140px !important;
        width: 140px !important;
        height: 250px !important;
    }

    .bvnb-section-title {
        font-size: 20px !important;
    }

    .bvnb-story-nav-button.next,
    .bvnb-story-nav-button.prev {
        bottom: 10px !important;
        top: auto !important;
        transform: none !important;
    }
    
    .bvnb-story-nav-button.next {
        right: 10px !important;
    }
    
    .bvnb-story-nav-button.prev {
        left: 10px !important;
    }
    
    .bvnb-web-story-container {
        margin: 20px auto;
        padding: 0 15px;
    }
}

@media (max-width: 549px) {
    .featured-post-card {
        width: 180px;
        height: 280px;
    }
    
    .featured-post-overlay {
        padding: 15px;
    }
    
    .featured-nav-button {
        width: 35px;
        height: 35px;
    }
    
    .featured-nav-button i {
        font-size: 16px;
    }
    
    .featured-posts-slider {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bvnb-story-card {
        min-width: 120px !important;
        width: 120px !important;
        height: 215px !important;
    }
    
    .bvnb-story-card-overlay {
        padding: 10px !important;
    }
    
    .bvnb-story-card-title,
    h3.bvnb-story-card-title {
        font-size: 12px !important;
    }
}


.blog-archive .section-title-container h2.section-title{
	display: none;
}



















/* Css từ theme */

.web-story-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.web-story-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.web-story-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.web-story-icon {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.web-story-slider-wrapper {
    position: relative;
}

.web-story-slider {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.web-story-slider::-webkit-scrollbar {
    height: 8px;
}

.web-story-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.web-story-slider::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.web-story-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.story-card {
    min-width: 180px;
    width: 180px;
    height: 320px;
    border: 2px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f5f5f5;
}

.story-card:first-child {
    border: 3px solid #8b5cf6;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.story-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    color: white;
}

.story-card-title,
p.story-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.story-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.story-nav-button.next {
    right: -50px;
}

.story-nav-button.prev {
    left: -50px;
}

.story-nav-button:hover {
    background: #333;
    color: white;
}

.story-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.story-nav-button:disabled:hover {
    background: white;
    color: #333;
}

.story-nav-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.story-nav-button:hover svg {
    stroke: white;
}

.story-nav-button:disabled svg {
    stroke: #999;
}

@media (max-width: 768px) {
    .story-card {
        min-width: 140px;
        width: 140px;
        height: 250px;
    }

    .web-story-title {
        font-size: 20px;
    }

    .story-nav-button.next {
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
    }

    .story-nav-button.prev {
        left: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
    }
}

#prevBtn {
    margin: 0px 0px 15.52px 15.52px;
}

/* Section Tin Mới */
.section-wrapper {
    margin-bottom: 50px;
}

.section-title-container {
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Layout chung */
#row-recent-posts {
    display: flex;
    align-items: stretch;
}

#row-recent-posts .box-blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#row-recent-posts .box-blog-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

#row-recent-posts .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

#row-recent-posts .image-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

#row-recent-posts .image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#row-recent-posts .box-blog-post:hover .image-cover img {
    transform: scale(1.05);
}

#row-recent-posts .box-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#row-recent-posts .blog-post-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#row-recent-posts .post-title {
    margin: 0 0 15px 0;
    line-height: 1.4;
}

#row-recent-posts .post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

#row-recent-posts .post-title a:hover {
    color: #666;
}

#row-recent-posts .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#row-recent-posts .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

#row-recent-posts .post-meta-avatar {
    display: inline-flex;
    align-items: center;
}

#row-recent-posts .post-meta-avatar img {
    border-radius: 50%;
}

#row-recent-posts .post-author {
    font-weight: 600;
    color: #333;
}

#row-recent-posts .post-author::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

#row-recent-posts .post-date {
    color: #999;
}

/* Featured Post - Bài nổi bật bên trái (60%) */
#row-recent-posts .featured-post-col {
    padding-right: 10px;
}

#row-recent-posts .featured-post .box-text {
    padding: 10px 10px;
}

#row-recent-posts .featured-post .post-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

#row-recent-posts .featured-post .post-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

#row-recent-posts .featured-post .post-meta {
    padding-top: 15px;
}

#row-recent-posts .featured-post .post-meta-avatar img {
    width: 24px;
    height: 24px;
}

/* Đảm bảo ảnh WordPress hiển thị đúng */
#row-recent-posts .box-image a {
    display: block;
    position: relative;
}

#row-recent-posts .box-image img.attachment-large,
#row-recent-posts .box-image img.attachment-medium {
    max-width: none !important;
}

/* Grid Posts - 4 bài dạng lưới 2×2 bên phải (40%) */
#row-recent-posts .grid-posts-col {
    padding-left: 10px;
}

#row-recent-posts .grid-posts-row {
    height: 100%;
}

#row-recent-posts .grid-post-item {
    margin-bottom: 20px;
}

#row-recent-posts .grid-post .box-text {
    padding: 5px;
}

#row-recent-posts .grid-post .post-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
}

#row-recent-posts .grid-post .post-meta {
    padding-top: 5px;
    font-size: 12px;
}

#row-recent-posts .grid-post .post-meta-avatar img {
    width: 18px;
    height: 18px;
}

#row-recent-posts .grid-post .post-author,
#row-recent-posts .grid-post .post-date {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 849px) {

    /* Tablet: Featured full width, grid 2 columns */
    #row-recent-posts .featured-post-col,
    #row-recent-posts .grid-posts-col {
        padding-left: 0;
        padding-right: 0;
    }

    #row-recent-posts .featured-post-col {
        margin-bottom: 20px;
    }

    #row-recent-posts .featured-post .post-title {
        font-size: 24px;
    }
}

@media (max-width: 549px) {

    /* Mobile: Tất cả full width */
    .section-title {
        font-size: 24px;
    }

    #row-recent-posts .featured-post .post-title {
        font-size: 20px;
    }

    #row-recent-posts .featured-post .box-text {
        padding: 20px;
    }

    #row-recent-posts .grid-post .post-title {
        font-size: 15px;
    }

    #row-recent-posts .grid-post-item {
        margin-bottom: 15px;
    }
}

/* ================================================
   Layout mới: 1 Featured + 2 Posts dọc + Sidebar
   ================================================ */

#new-layout-section {
    display: flex;
}

/* Main Content Area (Bên trái 8 columns) */
.main-content-area {
    padding-right: 20px;
}

#new-layout-row {
    display: flex;
    gap: 20px;
}

/* Bài viết nổi bật chính (60%) */
.main-featured-col {
    padding-right: 10px;
}

.main-featured-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.main-featured-post:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.main-featured-post .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.main-featured-post .image-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.main-featured-post .image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
}

.main-featured-post:hover .image-cover img {
    transform: scale(1.05);
}

.main-featured-post .box-text {
    padding: 6px;
}


.box-text .box-text-inner a:hover {
    color: #666;
}


.main-featured-post .post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.main-featured-post .post-title a {
    color: #333;
    text-decoration: none;
}

.main-featured-post .post-title a:hover {
    color: #666;
}

.main-featured-post .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.main-featured-post .post-meta-avatar img {
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.main-featured-post .post-author {
    font-weight: 600;
    color: #333;
}

.main-featured-post .post-author::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.main-featured-post .post-date {
    color: #999;
}

/* 2 bài xếp dọc bên phải (40%) */
.side-posts-col {
    padding-left: 10px;
}

.side-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-post-item {
    flex: 1;
}

.side-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.side-post:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.side-post .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.side-post .image-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.side-post .image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
}

.side-post:hover .image-cover img {
    transform: scale(1.05);
}

.side-post .box-text {
    padding: 4px;
}

.side-post .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.side-post .post-title a {
    color: #333;
    text-decoration: none;
}

.side-post .post-title a:hover {
    color: #666;
}

.side-post .post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.side-post .post-meta-avatar img {
    border-radius: 50%;
    width: 18px;
    height: 18px;
}

.side-post .post-author {
    font-weight: 600;
    color: #333;
}

.side-post .post-author::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.side-post .post-date {
    color: #999;
}

/* Sidebar "Xem thêm" (Bên phải 4 columns) */
.sidebar-area {
    padding-left: 20px;
}

.sidebar-widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-widget .widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.sidebar-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: item;
}

.sidebar-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.sidebar-post-link:hover {
    color: #666;
}

.sidebar-post-link .post-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.sidebar-post-link:hover .post-number {
    background: #333;
    color: #fff;
}

.sidebar-post-link .post-title-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.widget-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #666;
    gap: 8px;
}

.view-all-link i {
    font-size: 12px;
}

/* Responsive cho Layout mới */
@media (max-width: 849px) {

    .main-content-area,
    .sidebar-area {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content-area {
        margin-bottom: 30px;
    }

    .main-featured-col,
    .side-posts-col {
        padding-left: 0;
        padding-right: 0;
    }

    .main-featured-col {
        margin-bottom: 20px;
    }
}

@media (max-width: 549px) {
    .main-featured-post .post-title {
        font-size: 18px;
    }

    .side-post .post-title {
        font-size: 15px;
    }

    .sidebar-widget {
        padding: 15px;
    }

    .sidebar-widget .widget-title {
        font-size: 18px;
    }
}

/* ================================================
   Layout Lưới 4 Cột - Bài viết nổi bật
   ================================================ */

#featured-grid-4col {
    display: flex;
    flex-wrap: wrap;
}

#featured-grid-4col .featured-grid-item {
    margin-bottom: 20px;
}

#featured-grid-4col .col-inner {
    height: 100%;
}

/* Card styling */
.featured-grid-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-grid-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Image styling */
.featured-grid-card .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.featured-grid-card .image-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.featured-grid-card .image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.featured-grid-card:hover .image-cover img {
    transform: scale(1.1);
}

/* Text content */
.featured-grid-card .box-text {
    padding: 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-grid-card .box-text-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-grid-card .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex: 1;
}

.featured-grid-card .post-title a {
    color: #333;
    text-decoration: none;
}

.featured-grid-card .post-title a:hover {
    color: #007bff;
}

/* Meta information */
.featured-grid-card .post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin-top: auto;
}

.featured-grid-card .post-meta-avatar {
    display: inline-flex;
    align-items: center;
}

.featured-grid-card .post-meta-avatar img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.featured-grid-card .post-author {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.featured-grid-card .post-author::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #999;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.featured-grid-card .post-date {
    color: #999;
    white-space: nowrap;
}

/* View All Button */
.view-all-btn {
    background-color: #007bff;
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-all-btn:hover {
    background-color: #0056b3;
    transform: translateX(3px);
}

.view-all-btn i {
    font-size: 12px;
}

/* Responsive cho lưới 4 cột */
@media (max-width: 849px) {

    /* Tablet: 2 cột */
    #featured-grid-4col .featured-grid-item {
        margin-bottom: 20px;
    }

    .featured-grid-card .post-title {
        font-size: 15px;
    }
}

@media (max-width: 549px) {

    /* Mobile: 1 cột */
    #featured-grid-4col .featured-grid-item {
        margin-bottom: 20px;
    }

    .featured-grid-card .post-title {
        font-size: 15px;
    }

    .featured-grid-card .box-text {
        padding: 12px;
    }

    .view-all-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

.web-story-header {
    margin-top: 30px;
}

.view-all-link {
    background: #dcdcdc;
    padding: 5px 10px;
}

.custom-news-list {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    border-bottom: 1px solid #ededed;
    padding-bottom: 24px;
    gap: 24px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item-featured .news-thumb {
    min-width: 260px;
    max-width: 315px;
    width: 34vw;
}

.news-item-featured .news-thumb img {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.news-item-side .news-thumb {
    min-width: 95px;
    max-width: 110px;
    width: 17vw;
}

.news-item-side .news-thumb img {
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.news-category {
    font-size: 13px;
    color: #8F8F8F;
    font-weight: 400;
    margin-bottom: 2px;
}

.news-category a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.news-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #007bff;
}

/* Bài đầu tiên có title lớn hơn */
.news-item-featured .news-title {
    font-size: 22px;
    font-weight: 700;
}

/* Các bài phụ có title nhỏ hơn */
.news-item-side .news-title {
    font-size: 17px;
}

.news-excerpt {
    font-size: 15px;
    font-weight: 400;
    color: #444;
    margin-top: 1px;
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Hỗ trợ bullet points trong excerpt */
.news-excerpt ul,
.news-excerpt ol {
    margin: 8px 0;
    padding-left: 20px;
}

.news-excerpt li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* Style cho sidebar giống hình */
#meme-section .sidebar-widget {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

#meme-section .widget-title {
    font-size: 18px;
    margin-bottom: 16px;
}

#meme-section .sidebar-post-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

#meme-section .sidebar-post-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

#meme-section .sidebar-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#meme-section .sidebar-post-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
}

#meme-section .sidebar-post-link:hover {
    color: #007bff;
}

#meme-section .post-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

#meme-section .post-title-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

#meme-section .widget-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.news-meta {
    font-size: 13px;
    color: #000000;
    margin-top: auto;
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Đảm bảo layout 2 cột cho section Meme */
#meme-section .main-content-area {
    padding-right: 30px;
}

#meme-section .sidebar-area {
    padding-left: 15px;
}

/* Responsive cho layout Meme */
@media (max-width: 849px) {
    .custom-news-list {
        gap: 24px;
    }

    .news-item {
        gap: 16px;
        padding-bottom: 20px;
    }

    .news-item-featured .news-thumb {
        min-width: 200px;
        max-width: 250px;
    }

    .news-title {
        font-size: 18px;
    }

    #meme-section .main-content-area,
    #meme-section .sidebar-area {
        padding-left: 0;
        padding-right: 0;
    }

    #meme-section .main-content-area {
        margin-bottom: 30px;
    }
}

@media (max-width: 549px) {
    .custom-news-list {
        gap: 20px;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
        padding-bottom: 16px;
    }

    .news-item-featured .news-thumb,
    .news-item-side .news-thumb {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .news-item-featured .news-thumb img {
        aspect-ratio: 16/9;
    }

    .news-item-side .news-thumb img {
        aspect-ratio: 16/9;
    }

    .news-title {
        font-size: 16px;
    }

    .news-excerpt {
        font-size: 14px;
    }

    .news-meta {
        font-size: 12px;
        gap: 12px;
    }
}

.archive-page-header .page-title {
    text-align: left;
}

.badge.post-date {
    display: none;
}

.blog-archive .box-image {
    border-radius: 10px;
}

.box-blog-post .is-divider {
    display: none;
}

.blog-archive .post-title {
    text-align: left;
    margin-bottom: 10px;
}

.blog-archive .from_the_blog_excerpt {
    text-align: left;
}

.post-item {
    min-height: 300px;
}




/* Breadcrumb container */
.breadcrumbs {
    padding: 0 12px;
    background: #e8f5e9;
    /* very light green for subtle highlight */
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

/* The breadcrumb nav helps a11y but doesn't need extra styling here */

/* Breadcrumb list */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 10px 0 2px 0;
    margin: 0;
    background: transparent;
}

/* Breadcrumb items separator (default >, but you use custom markup so style li) */
.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #0f9d58;
    font-weight: bold;
    margin: 0 8px;
    position: absolute;
    left: -18px;
}


.breadcrumb-item {
    position: relative;
}

/* Breadcrumb links */
.breadcrumb .breadcrumb-item a {
    color: #0f9d58;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;

}

/* Breadcrumb icon (e.g., .bi-house) */
.breadcrumb .breadcrumb-item a i {
    margin-right: 6px;
    color: #0f9d58;
    font-size: 1.15em;
    vertical-align: middle;
}

/* Breadcrumb link hover/active */
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
    color: #1abc9c;
    text-decoration: underline;
}

/* Active breadcrumb (current page) */
.breadcrumb .breadcrumb-item.active,
.breadcrumb .breadcrumb-item.active a,
.breadcrumb .breadcrumb-item.active span {
    color: #070707;
    font-weight: 600;
    cursor: default;
    text-decoration: none;
}

/* Add ellipsis effect for long breadcumb text, especially on mobile */
.breadcrumb .breadcrumb-item {
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

@media (max-width: 600px) {
    .breadcrumbs {
        font-size: 13px;
        padding: 0 5px;
    }

    .breadcrumb {
        justify-content: center;
    }
}



body #wrapper a,
body #wrapper span,
body #wrapper p,
body #wrapper li,
body #wrapper h1,
body #wrapper h2,
body #wrapper h3,
body #wrapper h4,
body #wrapper h5,
body #wrapper h6 {
    font-family: 'Roboto', sans-serif !important;
}


.widget .recent-blog-posts a {
    font-weight: bold;
}

.blog-single h1.entry-title {}

.blog-single .text-center .is-divider {
    display: none;
}

.blog-single .entry-header-text.text-center {
    padding: 0px;
}








/* CSS cho thẻ profile */
.profile-card {
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-content {
    display: flex;
    align-items: flex-start;
    /* Căn trên cùng */
    gap: 20px;
}

.profile-image-container {
    flex-shrink: 0;
    /* Ngăn hình ảnh bị co lại */
    width: 150px;
    /* Kích thước ảnh đại diện */
    height: 200px;
    overflow: hidden;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo ảnh bao phủ toàn bộ khung */
}

.profile-text {
    flex-grow: 1;
}

.profile-text h2 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.profile-text p {
    line-height: 1.6;
    margin-bottom: 0;
}

.social-icons {
    border-top: 1px solid #ccc;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    gap: 15px;
    font-size: 24px;
    /* Kích thước icon */
}

/* Tùy chỉnh màu sắc và kiểu dáng cho các icon (sử dụng ký tự đại diện) */
.social-icons a {
    text-decoration: none;
    color: #333;
}

.social-icons a.icon.button.circle.whatsapp {
    display: none !important;
}

/* Mô phỏng các icon: Twitter, Pinterest, Behance, Flickr */
.social-icons span {
    font-weight: bold;
}

.story-card-title {
    color: #ffff;
}

.breadcrumb .breadcrumb-item{
    white-space: normal;
}

.breadcrumb .breadcrumb-item:last-child {
    padding-right: 0px;
}



@media screen and (min-width: 850px) {
    .row-divided>.col+.col:not(.large-12) {
        border-left: none !important;
    }

    .blog-single .large-8.col {
        padding-right: 10px;
    }

    .blog-single .large-4.col {
        padding-left: 10px;
    }


}

/* ================================================
   Author Page Styling
   ================================================ */

/* Author Header */
.author-header-section {
    margin-bottom: 30px;
}

.author-title {
    font-size: 27px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0px 0;
    line-height: 1.3;
}

/* Main Content Box */
.author-content-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-box-title {
    font-size: 24px;
    font-weight: 600;
    color: #999;
    margin: 0;
}

.author-bio {
    margin-top: 20px;
    color: #666;
    line-height: 1.6;
}

.author-stats {
    margin-top: 15px;
    font-size: 15px;
    color: #666;
}

.author-stats strong {
    color: #333;
}

/* Author Main Section Layout */
#author-main-section .author-main-content {
    padding-right: 25px;
}

#author-main-section .author-sidebar {
    padding-left: 10px;
}

/* Author Sidebar */
.author-sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.author-sidebar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.author-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.author-sidebar-item {
    margin-bottom: 16px;
}

.author-sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-item-link:hover {
    opacity: 0.8;
}

.sidebar-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.sidebar-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.sidebar-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author Posts Grid Section */
.author-posts-section {
    margin-top: 40px;
}

.author-posts-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

#author-posts-grid {
    display: flex;
    flex-wrap: wrap;
}

#author-posts-grid .author-post-item {
    margin-bottom: 20px;
}

.author-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.author-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.author-post-card .box-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.author-post-card .image-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.author-post-card .image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block !important;
    opacity: 1 !important;
}

.author-post-card:hover .image-cover img {
    transform: scale(1.1);
}

/* Number Overlay on Images */
.post-number-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

.author-post-card .box-text {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-post-card .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    flex: 1;
}

.author-post-card .post-title a {
    color: #333;
    text-decoration: none;
}

.author-post-card .post-title a:hover {
    color: #007bff;
}

.author-post-card .post-meta {
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* Pagination */
.author-pagination {
    margin-top: 40px;
    text-align: center;
}

.author-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.author-pagination .page-numbers:hover,
.author-pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
}

/* Responsive for Author Page */
@media (max-width: 849px) {
    .author-title {
        font-size: 24px;
        padding: 15px 0;
    }

    #author-main-section .author-main-content,
    #author-main-section .author-sidebar {
        padding-left: 0;
        padding-right: 0;
    }

    #author-main-section .author-main-content {
        margin-bottom: 30px;
    }

    .author-content-box {
        padding: 30px 20px;
        min-height: 250px;
    }

    .content-box-title {
        font-size: 20px;
    }

    .author-posts-section .section-title {
        font-size: 24px;
    }
}

@media (max-width: 549px) {
    .author-title {
        font-size: 20px;
        padding: 10px 0;
    }

    .author-content-box {
        padding: 20px 15px;
        min-height: 200px;
    }

    .content-box-title {
        font-size: 18px;
    }

    .sidebar-item-thumb {
        width: 60px;
        height: 60px;
    }

    .sidebar-item-title {
        font-size: 13px;
    }

    .author-posts-section .section-title {
        font-size: 20px;
    }

    .author-post-card .post-title {
        font-size: 15px;
    }
}



/* === BẮT ĐẦU CSS CHO BÀI VIẾT NỔI BẬT === */

/* Tiêu đề chính */
.category-featured-section .section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    /* Màu chữ xanh đen */
    border-bottom: 4px solid #3498db;
    /* Đường viền xanh dương */
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Khung bài viết */
.category-featured-section .box-blog-post {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Hiệu ứng chuyển động mượt */
    border: 1px solid #f0f0f0;
    /* Viền mỏng nhẹ */
}

/* Hiệu ứng Hover */
.category-featured-section .box-blog-post:hover {
    transform: translateY(-8px);
    /* Nâng box lên rõ ràng hơn */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    /* Bóng đổ mạnh hơn */
}

/* Ảnh đại diện */
.category-featured-section .image-cover {
    /* Đảm bảo tỉ lệ ảnh được giữ (padding-top: 75% là ổn) */
}

.category-featured-section .image-cover img {
    transition: transform 0.4s ease-in-out;
}

.category-featured-section .box-blog-post:hover .image-cover img {
    transform: scale(1.08);
    /* Zoom ảnh nổi bật */
}

/* Nội dung text */
.category-featured-section .box-text-inner {
    padding: 15px;
    min-height: 120px;
    /* Đảm bảo chiều cao đồng nhất */
}

/* Tiêu đề bài viết */
.category-featured-section .post-title {
    height: auto;
    /* Cho phép tiêu đề dài 2-3 dòng */
}

.category-featured-section .post-title a {
    font-size: 1.15em;
    font-weight: 650;
    color: #2c3e50;
    text-decoration: none;
}

.category-featured-section .post-title a:hover {
    color: #e74c3c;
    /* Màu đỏ nổi bật khi hover */
}

/* Ngày đăng */
.category-featured-section .post-meta {
    margin-top: 10px;
}

.category-featured-section .post-date {
    font-size: 0.9em;
    color: #95a5a6;
    /* Màu xám lạnh */
    font-style: italic;
}

/* === KẾT THÚC CSS CHO BÀI VIẾT NỔI BẬT === */

.blog-archive .large-12.col {
    padding-bottom: 0px;
}

/* === CSS CHO KHỐI METADATA TÁC GIẢ (SINGLE POST) === */
.post-metadata-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.post-metadata-block:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-metadata-block .author-avatar {
    flex-shrink: 0;
}

.post-metadata-block .author-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-metadata-block .metadata-content {
    flex: 1;
}

.post-metadata-block .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.post-metadata-block .author-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-metadata-block .author-name a:hover {
    color: #0073aa;
}

.post-metadata-block .content-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.post-metadata-block .content-status span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #28a745;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-metadata-block .content-status svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.post-metadata-block .content-status span:last-child {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
}

.post-metadata-block .post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.post-metadata-block .post-info strong {
    font-weight: 600;
    color: #333;
}

.post-metadata-block .post-info>span {
    white-space: nowrap;
}

/* Responsive cho mobile */
@media (max-width: 767px) {
    .post-metadata-block {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .post-metadata-block .author-avatar {
        align-self: flex-start;
    }

    .post-metadata-block .author-avatar img {
        width: 50px;
        height: 50px;
    }

    .post-metadata-block .author-name {
        font-size: 15px;
    }

    .post-metadata-block .post-info {
        flex-direction: column;
        gap: 8px;
    }

    .post-metadata-block .post-info>span[style*="color: #ddd"] {
        display: none;
        /* Ẩn dấu phân cách trên mobile */
    }
}

@media (max-width: 549px) {
    .post-metadata-block {
        padding: 12px;
    }

    .post-metadata-block .post-info {
        font-size: 12px;
    }
}

/* === KẾT THÚC CSS CHO KHỐI METADATA === */


@media (max-width: 489px) {
    .post-metadata-block .post-info {
        text-align: center;
    }

    .post-metadata-block .author-name {
        text-align: center;
    }
}

/* === CSS CHO FEATURED POSTS SLIDER === */
.featured-posts-slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.featured-posts-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.featured-posts-slider::-webkit-scrollbar {
    display: none;
}

.featured-post-card {
    flex: 0 0 auto;
    width: 222px;
    height: 318px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;

}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image {
    transform: scale(1.05);
}

.featured-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 20px;
    color: white;
}

.featured-post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-post-meta {
    font-size: 12px;
    opacity: 0.9;
}

.featured-post-meta .post-date {
    color: white;
}


.featured-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.featured-nav-button:hover:not(:disabled) {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.featured-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.featured-nav-button.prev {
    left: -20px;
}

.featured-nav-button.next {
    right: -20px;
}

.featured-nav-button i {
    font-size: 20px;
}


.featured-posts-category-wrapper {
    margin-bottom: 40px;
}

.featured-posts-category-wrapper .section-title-container {
    margin-bottom: 20px;
}

.featured-posts-category-wrapper .section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #4ecdc4;
    display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-post-card {
        width: 240px;
        height: 340px;
    }

    .featured-nav-button.prev {
        left: -15px;
    }

    .featured-nav-button.next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .featured-post-card {
        width: 200px;
        height: 300px;
    }

    .featured-post-title {
        font-size: 14px;
    }

    .featured-nav-button {
        width: 40px;
        height: 40px;
    }

    .featured-nav-button.prev {
        left: 5px;
    }

    .featured-nav-button.next {
        right: 5px;
    }

    .featured-posts-slider {
        gap: 15px;
    }
}

@media (max-width: 549px) {
    .featured-post-card {
        width: 180px;
        height: 280px;
    }

    .featured-post-overlay {
        padding: 15px;
    }

    .featured-nav-button {
        width: 35px;
        height: 35px;
    }

    .featured-nav-button i {
        font-size: 16px;
    }

    .featured-posts-slider {
        gap: 10px;
    }
}


@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.featured-post-card.loading {
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 800px 104px;
    animation: shimmer 1.2s infinite linear;
}

a.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

a.post-title:hover {
    color: #666;
}

a.post-title.is-large {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

a.post-title.is-small {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

a.post-title.plain {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
}

/* CSS cho news-title */
a.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

a.news-title:hover {
    color: #666;
}

.box-text .box-text-inner a {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.4;
}

.featured-post .post-title {
    font-size: 22px;
}

#row-recent-posts .grid-post .post-title {
    line-height: 1.4;
    margin-top: 5px;
}

.news-item-side .news-title {
    font-size: 16px;
    margin-bottom: 0px;
}