/* =========================================
   dungnh.vn Style for Blog Section
   Dark Theme with Serif Typography
   ========================================= */

/* Import Serif Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Blog Section Dark Theme */
section.blog {
    background: #1a1a1a;
    color: #e5e5e5;
    padding: 80px 0;
}

section.blog .section__head {
    text-align: center;
    margin-bottom: 48px;
}

section.blog .section__head .h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Blog Navigation Arrows - Dark Theme */
.blog__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #333333;
    background: #222222;
    color: #a0a0a0;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog__nav:hover {
    background: #2a2a2a;
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
}

.blog__nav svg {
    width: 24px;
    height: 24px;
}

/* Blog Cards - Dark Theme */
.blog__card {
    position: relative;
    min-width: 100%;
    scroll-snap-align: start;
    flex: 0 0 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a2a;
    border: 1px solid #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.blog__card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* Blog Card Body with Dark Overlay */
.blog__card .blog__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: #ffffff;
    /* Much darker gradient for better text visibility */
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(0, 0, 0, 0.85) 60%,
            rgba(0, 0, 0, 0.95) 100%);
}


.blog__card .blog__body .tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    color: #f59e0b;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.blog__card .blog__body .h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    /* Stronger text shadow for better contrast */
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8),
        0 4px 24px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.01em;
}


.blog__card .blog__body .excerpt {
    color: #e5e5e5;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}


.blog__card .blog__body .read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog__card .blog__body .read:hover {
    gap: 12px;
    color: #fbbf24;
}

.blog__card .blog__body .read span {
    font-size: 1.25rem;
}

/* Blog Dots - Dark Theme */
.blog__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
}

.blog__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.blog__dot--active {
    background: #f59e0b;
    border-color: #f59e0b;
    width: 24px;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .blog__card img {
        height: 420px;
    }

    section.blog {
        padding: 60px 0;
    }
}

@media (max-width: 720px) {
    .blog__card img {
        height: 320px;
    }

    section.blog {
        padding: 48px 0;
    }

    .blog__nav {
        width: 40px;
        height: 40px;
    }

    .blog__nav svg {
        width: 20px;
        height: 20px;
    }

    .blog__card .blog__body {
        padding: 1.25rem;
    }

    .blog__card .blog__body .h3 {
        font-size: 1.25rem;
    }
}