/* ==========================================
   WAYA BLOG MAGAZINE - PREMIUM STYLES
   ========================================== */

/* 1. HERO SECTION (Immersive) */
.blog-hero-immersive {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Large impactful hero */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 4rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 10s ease;
    /* Subtle zoom effect */
}

/* Overlay gradient for readability */
.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    color: var(--color-white);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-tag {
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
}

.hero-title-large {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 2. MAGAZINE GRID (Bento / Masonry feel) */
.magazine-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem 2rem;
}

.section-label {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-label::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 1rem auto 0;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
}

/* Card Styles */
.mag-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    height: 100%;
    /* Fill grid cell */
    display: flex;
    flex-direction: column;
}

.mag-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mag-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-grow: 1;
    /* Pushes content down if needed, or occupies space */
}

.mag-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-card:hover .mag-card-img img {
    transform: scale(1.05);
}

.mag-card-content {
    padding: 1.5rem;
    background: var(--color-white);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Sizes */
/* Featured Row (2 cols) */
.mag-card.medium {
    grid-column: span 6;
    min-height: 450px;
}

/* Standard Row (3 cols) */
.mag-card.standard {
    grid-column: span 4;
    min-height: 400px;
}

/* Typography in Cards */
.mag-date {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.mag-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.mag-card:hover .mag-title {
    color: #e0bc00;
    /* Darker yellow/gold */
}

.mag-excerpt {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Overlay Tag on Image */
.mag-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 5;
    color: var(--color-dark);
}

/* 3. RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title-large {
        font-size: 3.5rem;
    }

    .mag-card.standard {
        grid-column: span 6;
        /* 2 cols on tablet */
    }
}

@media (max-width: 768px) {
    .blog-hero-immersive {
        height: 70vh;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .magazine-grid {
        display: flex;
        flex-direction: column;
    }

    .mag-card {
        min-height: auto;
    }

    .mag-card-img {
        height: 250px;
    }
}