﻿
/* --- BLOG DETAIL PAGE --- */
.blog-article {
    width: 100%;
    overflow: hidden;
}

.blog-detail-wrapper {
    background-color: #fff;
}

/* 1. Typography & Content */
.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #2c3e50;
}

.article-meta {
    font-size: 0.9rem;
}

/* Featured Image */
.article-featured-img img {
    object-fit: cover;
    /* Aspect Ratio cho ảnh bìa */
    aspect-ratio: 21/9;
}

/* 2. Main Content Styling (QUAN TRỌNG) */
/* Style cho nội dung lấy từ Editor (CKEditor/TinyMCE) */
.article-content {
    font-size: 1.125rem; /* 18px - Kích thước chuẩn cho blog hiện đại */
    line-height: 1.8;
    color: #4a5568;
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #1a202c;
        font-weight: 700;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
        font-family: system-ui, -apple-system, sans-serif; /* Tiêu đề dùng font không chân cho mạnh mẽ */
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    /* Ảnh trong bài viết */
    .article-content img {
        max-width: 100%;
        height: auto !important;
        border-radius: 12px;
        margin: 20px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .article-content figure {
        text-align: center;
    }

    .article-content figcaption {
        font-size: 0.9rem;
        color: #888;
        margin-top: 8px;
        font-style: italic;
    }

    /* Trích dẫn (Blockquote) */
    .article-content blockquote {
        border-left: 4px solid var(--primary-color, #0046ba);
        padding-left: 20px;
        margin: 30px 0;
        font-style: italic;
        color: #555;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 0 8px 8px 0;
    }

    /* List */
    .article-content ul, .article-content ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    .article-content li {
        margin-bottom: 0.5rem;
    }

/* 3. Share Buttons */
.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: transform 0.3s;
    text-decoration: none;
}

    .btn-share:hover {
        transform: translateY(-3px);
        color: #fff;
    }

    .btn-share.fb {
        background: #1877f2;
    }

    .btn-share.tw {
        background: #1da1f2;
    }

    .btn-share.zl {
        background: #0068ff;
        font-weight: bold;
    }

/* 4. Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

    .sidebar-widget h4 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
        position: relative;
    }

        .sidebar-widget h4::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary-color, #0046ba);
        }

/* CTA Widget Decor */
.cta-widget {
    border: none;
}

    .cta-widget .decor-circle {
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }

/* Title Underline for Related Posts */
.title-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color, #0046ba);
    margin-top: 10px;
    border-radius: 2px;
}

/* --- ULTIMATE SIDEBAR CTA --- */

.sidebar-cta-ultimate {
    /* Gradient nền tối sang trọng (Dark Blue -> Black) */
    background: linear-gradient(160deg, #0046ba 0%, #0b1120 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 70, 186, 0.2);
    transition: transform 0.3s ease;
}

    .sidebar-cta-ultimate:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 70, 186, 0.3);
    }

/* 1. Background Effects */
.cta-bg-speed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Tạo vân sọc chéo tượng trưng cho vạch kẻ đường/tốc độ */
    background-image: repeating-linear-gradient( 135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 20px );
    z-index: 0;
}

.cta-glow-circle {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.cta-big-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.sidebar-cta-ultimate:hover .cta-big-icon {
    transform: rotate(0deg) scale(1.1) translateX(-10px);
    color: rgba(255, 255, 255, 0.1);
}

/* 2. Typography */
.fw-black {
    font-weight: 900;
}

.cta-title {
    font-size: 1.5rem;
    line-height: 1.2;
}

.text-gradient-gold {
    background: linear-gradient(to right, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cta-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 3. Live Badge (Chấm đỏ nhấp nháy) */
.live-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

.dot-blink {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #ff4757;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 4. Button Pulse (Nút rung) */
.btn-cta-pulse {
    background: #fff;
    color: #0046ba;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 10;
}

    /* Hiệu ứng sóng lan tỏa từ nút */
    .btn-cta-pulse::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        animation: pulse-ring 2s infinite;
        z-index: -1;
    }

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 140%;
        height: 180%;
        opacity: 0;
    }
}

.btn-cta-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    background: #f8f9fa;
    color: #003082;
}

.moving-arrow {
    transition: transform 0.3s;
}

.btn-cta-pulse:hover .moving-arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-featured-img img {
        aspect-ratio: 16/9;
    }
}
