/* ===== BLOG HERO ===== */
.blog-hero {
    height: 70vh;
    min-height: 300px;
    background-image: url('/static/images/pl.jpg'); /* reuse existing image or add a dedicated one */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-content {
    text-align: center;
    padding: 0 20px;
}

.blog-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== BLOG CONTAINER & GRID ===== */
.blog-container {
    padding: 60px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column for detail page */
    gap: 0;
    margin-bottom: 50px;
}

/* ===== BLOG CARD (used for the article) ===== */
.blog-card {
    background: #1e1e1e;  /* --dark-light */
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #c9a227; /* --primary */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Thumbnail area */
.card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #1a1a1a;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* Card text content */
.card-content {
    padding: 25px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #fff;
}

.card-meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-content h3 {
    color: #c9a227;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.card-content ul, .card-content ol {
    color: #ccc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.card-content li {
    margin-bottom: 8px;
}

.card-content a {
    color: #c9a227;
    text-decoration: none;
    font-weight: 600;
}

.card-content a:hover {
    text-decoration: underline;
}

.card-readmore {
    color: #c9a227;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    text-decoration: none;
}

.card-readmore:hover {
    color: #dbb85c;
    border-bottom-color: #c9a227;
}

/* ===== FLOATING CONTACT WIDGET (QR + CHAT) ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.qr-card {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border: 2px solid #c9a227;
    pointer-events: auto;
    transition: transform 0.3s;
}

.qr-card:hover {
    transform: scale(1.05);
}

.qr-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-button {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    pointer-events: auto;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid white;
    font-size: 1rem;
}

.chat-button i {
    font-size: 1.3rem;
}

.chat-button:hover {
    transform: scale(1.05) translateY(-2px);
    background-color: #20b859;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }

    .floating-contact {
        bottom: 80px;
        right: 15px;
    }

    .qr-card {
        width: 80px;
        height: 80px;
    }

    .chat-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}