/* Section v5 - Modern Grid 8 Articles */

.section-v5 {
    padding: 40px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
    margin: 40px 200px !important;
    width: unset;
    max-width: 100%;
}

/* Decorative Background Elements */
.section-v5::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-v5::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.section-v5-container {
    
   
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* === SECTION HEADER === */
.section-v5-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f0f0f0;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--section-accent, #0066FF) 0%, #0052cc 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    width: fit-content;
}

.section-title-v5 {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.view-all-v5 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.view-all-v5:hover {
    background: var(--section-accent, #0066FF);
    color: white;
    border-color: var(--section-accent, #0066FF);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

/* === GRID LAYOUT === */
.section-v5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* === HERO ITEM (Left Side) === */
.item-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.item-hero:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.item-hero:hover .hero-image {
    transform: scale(1.06);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    color: white;
}

.hero-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.post-badge {
    margin-bottom: 8px;
}

.post-badge a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--section-accent, #0066FF);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.post-badge a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-link {
    text-decoration: none;
    color: inherit;
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    color: white;
    transition: opacity 0.3s ease;
}

.item-hero:hover .hero-title {
    opacity: 0.9;
}

.hero-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.hero-meta {
    margin-top: 8px;
}

.meta-author-v5 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-v5 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info-v5 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name-v5 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.post-date-v5 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* === RIGHT SIDE GRID === */
.grid-right-v5 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === TOP ROW - 3 CARDS === */
.top-row-v5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.item-card-v5 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.item-card-v5:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--section-accent, #0066FF);
}

.card-image-v5 {
    width: 100%;
    height: 160px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.item-card-v5:hover .card-image-v5 {
    transform: scale(1.08);
}

.card-body-v5 {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.card-number {
    position: absolute;
    top: -16px;
    right: 20px;
    font-size: 32px;
    font-weight: 900;
    color: var(--section-accent, #0066FF);
    opacity: 0.15;
}

.card-link-v5 {
    text-decoration: none;
    color: inherit;
}

.card-title-v5 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.item-card-v5:hover .card-title-v5 {
    color: var(--section-accent, #0066FF);
}

.card-meta-v5 {
    margin-top: auto;
}

.card-date-v5 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.card-date-v5 svg {
    color: #ccc;
}

/* === MIDDLE ROW - 2 WIDE CARDS === */
.middle-row-v5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.item-wide-v5 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    border: 1px solid #f0f0f0;
}

.item-wide-v5:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--section-accent, #0066FF);
}

.wide-image-v5 {
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.item-wide-v5:hover .wide-image-v5 {
    transform: scale(1.05);
}

.wide-content-v5 {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.wide-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: 900;
    color: var(--section-accent, #0066FF);
    opacity: 0.12;
}

.wide-link-v5 {
    text-decoration: none;
    color: inherit;
}

.wide-title-v5 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.item-wide-v5:hover .wide-title-v5 {
    color: var(--section-accent, #0066FF);
}

.wide-excerpt-v5 {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.wide-date-v5 {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 4px;
}

/* === BOTTOM ROW - 2 MEDIUM CARDS === */
.bottom-row-v5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.item-medium-v5 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    height: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.item-medium-v5:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.medium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

.medium-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    color: white;
}

.medium-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
}

.medium-link {
    text-decoration: none;
    color: inherit;
}

.medium-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: white;
    transition: opacity 0.3s ease;
}

.item-medium-v5:hover .medium-title {
    opacity: 0.9;
}

.medium-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* === RESPONSIVE === */

/* Large Tablet */
@media (max-width: 1200px) {
    .section-v5-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .item-hero {
        min-height: 500px;
    }

    .top-row-v5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 32px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .section-v5 {
        padding: 60px 0;
        margin: 0 1rem !important;
    }

    .section-v5-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .section-title-v5 {
        font-size: 32px;
    }

    /* Grid devine flex column stack */
    .section-v5-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Hero devine un singur item */
    .item-hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-content {
        padding: 32px;
    }

    /* Grid-right devine stack vertical */
    .grid-right-v5 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Top row devine stack */
    .top-row-v5 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Middle row devine stack */
    .middle-row-v5 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Bottom row devine stack */
    .bottom-row-v5 {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .item-wide-v5 {
        grid-template-columns: 1fr;
    }

    .wide-image-v5 {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-v5-container {
        padding: 0;
    }

    .section-title-v5 {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .item-hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-excerpt {
        font-size: 15px;
    }

    .hero-content {
        padding: 28px;
        gap: 12px;
    }

    .hero-number {
        font-size: 60px;
        top: 24px;
        right: 24px;
    }

    .card-title-v5 {
        font-size: 16px;
    }

    .wide-title-v5 {
        font-size: 16px;
    }

    .medium-title {
        font-size: 20px;
    }

    .item-medium-v5 {
        height: 220px;
    }
}