/* ========== FROM: blog-section.css ========== */
/* Updated: 2025-11-10 02:48:37 - Content Hub Tabs Version *//* --------------------------------
   File: blog-section.css for homepage2
   Description: Styles for the Blog section of homepage2
   Author: GitHub Copilot
   Date: April 25, 2025
   -------------------------------- */

/* CSS Custom Properties cho Featured Blog Section */
:root {
    --home2-hot-primary: #ff6b35;
    --home2-hot-secondary: #f7931e;
    --home2-hot-gradient: linear-gradient(135deg, var(--home2-hot-primary) 0%, var(--home2-hot-secondary) 100%);
    --home2-hot-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    --home2-hot-shadow-hover: 0 8px 20px rgba(255, 107, 53, 0.4);
    
    --home2-card-radius: 1.5rem;
    --home2-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --home2-card-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(255, 107, 53, 0.1);
    
    --home2-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --home2-transition-duration: 0.4s;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --home2-card-bg: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
        --home2-card-text: #e2e8f0;
        --home2-card-meta: #94a3b8;
        --home2-card-border: rgba(255, 255, 255, 0.1);
    }
    
    .home2-blog-featured-card {
        background: var(--home2-card-bg);
        color: var(--home2-card-text);
        border-color: var(--home2-card-border);
    }
    
    .home2-blog-featured-content .home2-blog-meta {
        color: var(--home2-card-meta);
    }
    
    .home2-blog-featured-title .home2-blog-title-link {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/*------------------------------------*\
  #BLOG FEATURED SECTION
\*------------------------------------*/

.home2-blog-featured-section {
    margin-bottom: 4rem;
    position: relative;
}

.home2-blog-featured-section .home2-blog-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.home2-badge-hot {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: hotBadgePulse 2s infinite ease-in-out;
}

.home2-badge-hot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: hotBadgeShine 3s infinite linear;
}

/* Grid layout cho b�i vi?t n?i b?t */
.home2-blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Card styling cho b�i vi?t n?i b?t */
.home2-blog-featured-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px -4px rgba(0, 0, 0, 0.1),
        0 4px 8px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home2-blog-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        rgba(247, 147, 30, 0.08) 50%, 
        rgba(255, 107, 53, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 1;
}

.home2-blog-featured-card:hover::before {
    opacity: 1;
}

.home2-blog-featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.home2-blog-featured-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image styling cho b�i vi?t n?i b?t */
.home2-blog-featured-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.home2-blog-hot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: hotBadgeFloat 3s infinite ease-in-out;
}

.home2-hot-icon {
    font-size: 1rem;
    animation: hotIconFlicker 1.5s infinite ease-in-out;
}

.home2-blog-featured-image .home2-blog-categories {
    top: 1rem;
    left: 1rem;
    z-index: 3;
}

.home2-blog-featured-image .home2-blog-category {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.home2-blog-featured-image .home2-blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home2-blog-featured-card:hover .home2-blog-thumbnail {
    transform: scale(1.1) rotate(1deg);
}

.home2-blog-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.home2-blog-featured-card:hover .home2-blog-image-overlay {
    opacity: 1;
}

/* Content styling cho b�i vi?t n?i b?t */
.home2-blog-featured-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.home2-blog-featured-content .home2-blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.home2-blog-featured-title {
    font-size: 1.375rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    font-weight: 700;
    flex: 1;
    min-height: 4.2rem;
}

.home2-blog-featured-title .home2-blog-title-link {
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home2-blog-featured-title .home2-blog-title-link:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(4px);
}

.home2-blog-featured-content .home2-blog-excerpt {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.home2-blog-featured-content .home2-blog-footer {
    margin-top: auto;
}

.home2-blog-featured-content .home2-blog-readmore {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.home2-blog-featured-content .home2-blog-readmore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.home2-blog-featured-content .home2-blog-readmore:hover::before {
    left: 100%;
}

.home2-blog-featured-content .home2-blog-readmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Card shine effect */
.home2-blog-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
    border-radius: inherit;
}

.home2-blog-featured-card:hover .home2-blog-card-shine {
    transform: translateX(100%);
}

/* No posts fallback */
.home2-blog-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 1rem;
    border: 2px dashed #cbd5e1;
}

.home2-blog-no-posts svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.home2-blog-no-posts p {
    font-size: 1.125rem;
    margin: 0;
}

/* Animations */
@keyframes hotBadgePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    }
}

@keyframes hotBadgeShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes hotBadgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes hotIconFlicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Advanced hover effects v� micro-interactions */
.home2-blog-featured-card {
    position: relative;
    overflow: hidden;
}

.home2-blog-featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.home2-blog-featured-card:hover::after {
    opacity: 1;
}

/* Enhanced image effects */
.home2-blog-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 53, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(247, 147, 30, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.home2-blog-featured-card:hover .home2-blog-featured-image::before {
    opacity: 1;
}

/* Content reveal animation */
.home2-blog-featured-content {
    position: relative;
    overflow: hidden;
}

.home2-blog-featured-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.home2-blog-featured-card:hover .home2-blog-featured-content::before {
    left: 100%;
}

/* Enhanced title animation */
.home2-blog-featured-title {
    position: relative;
    overflow: hidden;
}

.home2-blog-featured-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    transition: width 0.4s ease;
}

.home2-blog-featured-card:hover .home2-blog-featured-title::after {
    width: 100%;
}

/* Parallax effect cho badge */
.home2-blog-hot-badge {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.home2-blog-featured-card:hover .home2-blog-hot-badge {
    transform: translateZ(10px) rotateY(5deg);
}

/* Enhanced loading animation cho no-posts */
.home2-blog-no-posts {
    background: 
        linear-gradient(45deg, transparent 25%, rgba(255, 107, 53, 0.1) 25%, rgba(255, 107, 53, 0.1) 50%, transparent 50%, transparent 75%, rgba(247, 147, 30, 0.1) 75%);
    background-size: 40px 40px;
    animation: diagonalMove 20s linear infinite;
}

.home2-blog-no-posts svg {
    animation: noPostsBob 2s ease-in-out infinite;
}

/* Additional keyframe animations */
@keyframes diagonalMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

@keyframes noPostsBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Stagger animation cho featured cards */
.home2-blog-featured-card:nth-child(1) {
    animation: cardRevealLeft 0.8s ease-out;
}

.home2-blog-featured-card:nth-child(2) {
    animation: cardRevealUp 0.8s ease-out 0.2s backwards;
}

.home2-blog-featured-card:nth-child(3) {
    animation: cardRevealRight 0.8s ease-out 0.4s backwards;
}

@keyframes cardRevealLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes cardRevealUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardRevealRight {
    0% {
        opacity: 0;
        transform: translateX(50px) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Performance optimizations */
.home2-blog-featured-card,
.home2-blog-featured-image,
.home2-blog-thumbnail {
    will-change: transform;
}

.home2-blog-featured-card:hover {
    will-change: auto;
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .home2-blog-featured-card:nth-child(1),
    .home2-blog-featured-card:nth-child(2),
    .home2-blog-featured-card:nth-child(3) {
        animation: cardRevealMobile 0.6s ease-out;
    }
    
    .home2-blog-featured-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .home2-blog-featured-card:nth-child(3) {
        animation-delay: 0.4s;
    }
}

@keyframes cardRevealMobile {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------------------*\
  #BLOG SECTION
\*------------------------------------*/
.home2-blog-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.home2-blog-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(3, 105, 161, 0.15), transparent 70%);
    pointer-events: none;
}

.home2-blog-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.home2-blog-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(3, 105, 161, 0.1), rgba(14, 165, 233, 0.1));
    animation: floatingShape 20s infinite ease-in-out;
}

.home2-blog-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation-delay: -5s;
}

.home2-blog-shape-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -100px;
    animation-delay: -10s;
}

.home2-blog-shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: -15s;
}

.home2-blog-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home2-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 columns for 2x4 layout (8 posts) */
    gap: 2rem 1.5rem;
    margin-top: 3rem;
}

.home2-blog-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%; /* �?m b?o c�c card c�ng chi?u cao */
    display: flex;
    flex-direction: column;
}

.home2-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.home2-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.home2-blog-card:hover::before {
    opacity: 1;
}

.home2-blog-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home2-blog-image {
    position: relative;
    padding-bottom: 60%;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.home2-blog-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home2-blog-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.home2-blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home2-blog-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.home2-blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home2-blog-categories {
    position: absolute;
    top: 1rem;
    left: 0;  /* �?i t? 1rem th�nh 0 */
    display: flex;
    z-index: 3;
}

.home2-blog-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    padding-left: 1rem; /* Th�m padding b�n tr�i */
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0 2rem 2rem 0; /* Ch? bo g�c b�n ph?i */
    font-size: 0.6875rem;
    color: #0369a1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none; /* B? vi?n b�n tr�i */
    line-height: 1.2;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home2-blog-category:hover {
    background: #0369a1;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

/* Mini HOT badge cho featured posts */
.home2-hot-badge-mini {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: hotBadgeFloat 3s infinite ease-in-out;
}

.home2-hot-badge-mini .home2-hot-icon {
    font-size: 0.875rem;
    animation: hotIconFlicker 1.5s infinite ease-in-out;
}

.home2-hot-badge-mini:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.home2-blog-content {
    flex: 1; /* Cho ph�p n?i dung m? r?ng */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Đẩy footer xuống dưới cùng */
}

.home2-blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.home2-blog-date,
.home2-blog-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.home2-blog-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.5;
}

.home2-blog-title-link {
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.home2-blog-title-link:hover {
    color: #0284c7;
    transform: translateX(4px);
}

.home2-blog-excerpt {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.home2-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto; /* Đẩy footer xuống dưới cùng */
}

.home2-blog-readmore {
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(2, 132, 199, 0.1);
}

.home2-blog-readmore:hover {
    color: #0369a1;
    background: rgba(2, 132, 199, 0.15);
    transform: translateX(4px);
}

/* Style riêng cho app links - màu xanh lá cây */
.home2-app-badge ~ * .home2-blog-readmore,
.home2-blog-card:has(.home2-app-badge) .home2-blog-readmore {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.home2-app-badge ~ * .home2-blog-readmore:hover,
.home2-blog-card:has(.home2-app-badge) .home2-blog-readmore:hover {
    color: #15803d;
    background: rgba(22, 163, 74, 0.15);
}

.home2-blog-arrow {
    transition: transform 0.3s ease;
}

.home2-blog-likes {
    color: rgba(255, 255, 255, 0.6);
}

.home2-blog-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.home2-blog-all-posts {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home2-blog-all-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    font-size: 1.125rem;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    background-color: #0369a1;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(3, 105, 161, 0.2);
}

/* Style for apps link - green color */
.home2-apps-link {
    background-color: #16a34a;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

.home2-apps-link:hover {
    background-color: #15803d;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

/* X�a ho�n to�n l?p overlay d? tr�nh n�t chuy?n sang m�u tr?ng */
.home2-blog-all-posts-link::before {
    display: none; /* T?t hi?u ?ng overlay */
}

.home2-blog-all-posts-link::after {
    content: '?';
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.home2-blog-all-posts-link span {
    position: relative;
    z-index: 2;
}

.home2-blog-all-posts-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(3, 105, 161, 0.3);
    background-color: #0369a1; /* Gi? nguy�n m�u xanh khi hover */
}

/* T?t hi?u ?ng transform c?a ::before khi hover */
.home2-blog-all-posts-link:hover::before {
    transform: none;
}

/* Hi?u ?ng ripple khi click */
.home2-blog-all-posts-link:active::before {
    opacity: 0.6;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Hi?u ?ng shine cho n�t */
.home2-shine-effect {
    position: relative;
    overflow: hidden;
}

.home2-shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine-idle 3s infinite linear;
    opacity: 0.5;
}

.home2-shine-effect:hover::after {
    animation: shine-hover 1s ease-out;
}

@keyframes shine-idle {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes shine-hover {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0.2;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0.2;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* Hover Effects */
.home2-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(3, 105, 161, 0.2);
}

.home2-blog-card:hover .home2-blog-thumbnail {
    transform: scale(1.05);
}

.home2-blog-card:hover .home2-blog-image-overlay {
    opacity: 1;
}

.home2-blog-card:hover .home2-blog-image-wrapper {
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.home2-blog-title-link:hover {
    color: #0284c7;
}

.home2-blog-readmore:hover .home2-blog-arrow {
    transform: translateX(3px);
}

.home2-blog-card:hover .home2-blog-card-shine {
    transform: translateX(100%);
}

/* Animation delays for 8 blog cards (2 rows x 4 columns) */
.home2-blog-card.home2-animation-delay-000 { animation-delay: 0s; }
.home2-blog-card.home2-animation-delay-100 { animation-delay: 0.1s; }
.home2-blog-card.home2-animation-delay-200 { animation-delay: 0.2s; }
.home2-blog-card.home2-animation-delay-300 { animation-delay: 0.3s; }
.home2-blog-card.home2-animation-delay-400 { animation-delay: 0.4s; }
.home2-blog-card.home2-animation-delay-500 { animation-delay: 0.5s; }
.home2-blog-card.home2-animation-delay-600 { animation-delay: 0.6s; }
.home2-blog-card.home2-animation-delay-700 { animation-delay: 0.7s; }

/* Optimized spacing for 8 cards layout */
.home2-blog-recent-section {
    margin-top: 2rem;
}

.home2-blog-recent-section .home2-blog-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Better card heights for consistent layout */
.home2-blog-card {
    min-height: 380px;
}

.home2-blog-image {
    height: 180px;
    padding-bottom: 0;
}

/* Improved meta layout without reading time */
.home2-blog-meta {
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .home2-blog-card {
        min-height: 360px;
    }
}

@media (max-width: 992px) {
    .home2-blog-card {
        min-height: 340px;
    }
    
    .home2-blog-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .home2-blog-card {
        min-height: 320px;
    }
    
    .home2-blog-image {
        height: 200px;
        padding-bottom: 66.67%;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .home2-blog-featured-grid {
        gap: 1.5rem;
    }
    
    .home2-blog-featured-image {
        height: 220px;
    }
    
    .home2-blog-grid {
        gap: 1.5rem 1.25rem;
    }
}

@media (max-width: 1200px) {
    .home2-blog-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .home2-blog-featured-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 650px;
        margin: 1rem auto 0;
    }
    
    .home2-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
}

@media (max-width: 992px) {
    .home2-blog-featured-section .home2-blog-header {
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }
    
    .home2-blog-featured-image {
        height: 200px;
    }
    
    .home2-blog-featured-content {
        padding: 2rem;
    }
    
    .home2-blog-featured-title {
        font-size: 1.25rem;
        min-height: 3.8rem;
    }
    
    .home2-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .home2-blog-section {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    .home2-blog-featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .home2-blog-featured-card:nth-child(3) {
        grid-column: 1;
        max-width: none;
        margin: 0;
    }
    
    .home2-blog-featured-image {
        height: 220px;
    }
    
    .home2-blog-featured-content {
        padding: 1.75rem;
    }
    
    .home2-blog-featured-title {
        font-size: 1.125rem;
        line-height: 1.4;
        min-height: auto;
    }
    
    .home2-blog-featured-content .home2-blog-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .home2-blog-hot-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .home2-blog-featured-image .home2-blog-category {
        padding: 0.25rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .home2-blog-featured-section .home2-blog-header {
        padding: 0 1rem;
    }
    
    .home2-blog-section {
        padding: 5rem 0;
    }
    
    .home2-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home2-blog-categories {
        left: 1rem;
    }
    
    .home2-blog-category {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .home2-blog-title {
        font-size: 1rem;
    }
    
    .home2-blog-image {
        padding-bottom: 66.67%; /* T? l? 3:2 tr�n mobile */
    }
}

@media (max-width: 480px) {
    .home2-blog-featured-content {
        padding: 1.5rem;
    }
    
    .home2-blog-featured-title {
        font-size: 1.0625rem;
        line-height: 1.4;
    }
    
    .home2-blog-featured-content .home2-blog-meta {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .home2-blog-featured-content .home2-blog-readmore {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .home2-blog-featured-grid {
        padding: 0 0.75rem;
    }
    
    .home2-blog-section {
        padding: 4rem 0;
    }
}

/* Utility classes cho blog section */
.home2-hover-lift {
    transition: transform var(--home2-transition-duration) var(--home2-transition-smooth);
}

.home2-hover-lift:hover {
    transform: translateY(-4px);
}

.home2-text-gradient {
    background: var(--home2-hot-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.home2-highlight {
    position: relative;
    z-index: 1;
}

.home2-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(90deg, 
        rgba(255, 107, 53, 0.3) 0%, 
        rgba(247, 147, 30, 0.3) 100%);
    z-index: -1;
    border-radius: 4px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .home2-blog-featured-card,
    .home2-blog-featured-card *,
    .home2-blog-hot-badge,
    .home2-hot-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .home2-blog-featured-card:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .home2-blog-featured-card {
        border: 2px solid;
        border-color: var(--home2-hot-primary);
    }
    
    .home2-blog-hot-badge {
        border: 1px solid #000;
    }
    
    .home2-blog-featured-content .home2-blog-readmore {
        border: 1px solid #fff;
    }
}

/* Print styles */
@media print {
    .home2-blog-featured-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: #fff !important;
    }
    
    .home2-blog-hot-badge,
    .home2-blog-card-shine {
        display: none;
    }
    
    .home2-blog-featured-content .home2-blog-readmore {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}
/*------------------------------------*\
  #CONTENT HUB - TABS NAVIGATION
\*------------------------------------*/

.home2-content-hub-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home2-hub-title-wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.home2-hub-title-wrapper .home2-section-badge {
    order: -1;
}

.home2-hub-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.home2-hub-tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border: none;
    background: transparent;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.home2-hub-tab svg {
    transition: transform 0.3s ease;
}

.home2-hub-tab:hover {
    color: #0f172a;
}

.home2-hub-tab:hover svg {
    transform: translateY(-2px);
}

.home2-hub-tab.active {
    color: #fff;
}

.home2-hub-tab.active svg {
    stroke: #fff;
}

.home2-tab-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s infinite ease-in-out;
}

.home2-tab-indicator {
    position: absolute;
    height: calc(100% - 1rem);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    top: 0.5rem;
    left: 0;
    width: 0;
}

.home2-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.home2-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/*------------------------------------*\
  #APPS GRID & CARDS
\*------------------------------------*/

.home2-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home2-app-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px -4px rgba(0, 0, 0, 0.1),
        0 4px 8px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.home2-app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(14, 116, 144, 0.1);
    border-color: rgba(14, 116, 144, 0.3);
}

.home2-app-card-inner {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.home2-app-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.home2-app-icon-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home2-app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home2-app-icon-placeholder {
    color: #0ea5e9;
}

.home2-app-meta {
    flex: 1;
}

.home2-app-title {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.home2-app-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home2-app-title a:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home2-app-version {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.home2-app-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.home2-app-description p {
    margin: 0;
}

.home2-app-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.home2-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.home2-app-btn-demo {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.home2-app-btn-demo:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.home2-app-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.home2-app-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.home2-app-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.home2-app-card:hover .home2-app-card-glow {
    opacity: 1;
}

/*------------------------------------*\
  #RESPONSIVE - TABS & APPS
\*------------------------------------*/

@media (max-width: 1200px) {
    .home2-apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .home2-hub-tabs {
        width: auto;
    }
}

@media (max-width: 992px) {
    .home2-apps-grid {
        gap: 1.75rem;
    }
    
    .home2-app-card-inner {
        padding: 2rem;
    }
    
    .home2-app-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .home2-app-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .home2-apps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .home2-hub-tabs {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .home2-hub-tab {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .home2-tab-indicator {
        display: none;
    }
    
    .home2-hub-tab.active {
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    }
    
    .home2-app-card-inner {
        padding: 1.75rem;
    }
    
    .home2-app-footer {
        flex-direction: column;
    }
    
    .home2-app-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home2-hub-title-wrapper {
        margin-bottom: 2rem;
    }
    
    .home2-app-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .home2-app-title {
        font-size: 1.125rem;
    }
    
    .home2-app-description {
        font-size: 0.9375rem;
    }
}

