/* Section v4 - Modern Grid 10 Articles */

.section-v4 {
    padding: 40px 0;
    background: #ffffff;
    overflow: hidden;
    margin: 40px 200px !important;
    width: unset;
    max-width: 100%;
}

.section-v4-container {

    padding: 0 20px;
    
}

/* === SECTION HEADER === */
.section-v4-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--section-accent, #0066FF);
}

.section-title {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title svg {
    color: var(--section-accent, #0066FF);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    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-link:hover {
    background: var(--section-accent, #0066FF);
    color: white;
    border-color: var(--section-accent, #0066FF);
    transform: translateX(4px);
}

/* === GRID LAYOUT === */
.section-v4-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 280px);
    gap: 20px;
}

/* Grid Item Positioning */
.item-large {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.item-medium {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
}

.item-card:nth-of-type(3) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.item-card:nth-of-type(4) {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
}

.item-card:nth-of-type(5) {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}

.item-wide {
    grid-column: 1 / 7;
    grid-row: 3 / 4;
}

.item-card:nth-of-type(7) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.item-card:nth-of-type(8) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

.item-medium-right:nth-of-type(9) {
    grid-column: 3 / 5;
    grid-row: 4 / 5;
}

.item-medium-right:nth-of-type(10) {
    grid-column: 5 / 7;
    grid-row: 4 / 5;
}

/* === LARGE FEATURED ITEM === */
.item-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.item-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.item-overlay {
    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) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

.item-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    color: white;
}

.post-category-badge {
    margin-bottom: 12px;
}

.post-category-badge a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--section-accent, #0066FF);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.post-category-badge a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.item-link {
    text-decoration: none;
    color: inherit;
}

.large-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: white;
    transition: opacity 0.3s ease;
}

.item-large:hover .large-title {
    opacity: 0.9;
}

.item-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.meta-author span,
.meta-date {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* === MEDIUM ITEMS === */
.item-medium,
.item-medium-right {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.item-medium:hover,
.item-medium-right:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.item-medium .item-content,
.item-medium-right .item-content {
    padding: 24px;
}

.item-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: white;
    transition: opacity 0.3s ease;
}

.item-medium:hover .item-title,
.item-medium-right:hover .item-title {
    opacity: 0.9;
}

.item-date-small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* === SMALL CARD ITEMS === */
.item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--section-accent, #0066FF);
}

.card-image {
    width: 100%;
    height: 140px;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.item-card:hover .card-image {
    transform: scale(1.08);
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.item-card:hover .card-title {
    color: var(--section-accent, #0066FF);
}

.card-meta {
    margin-top: auto;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.card-date svg {
    color: #999;
}

/* === WIDE ITEM === */
.item-wide {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.item-wide:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--section-accent, #0066FF);
}

.wide-image {
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.item-wide:hover .wide-image {
    transform: scale(1.05);
}

.wide-content {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.post-category-small {
    margin-bottom: 4px;
}

.post-category-small span {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: var(--section-accent, #0066FF);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wide-link {
    text-decoration: none;
    color: inherit;
}

.wide-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.item-wide:hover .wide-title {
    color: var(--section-accent, #0066FF);
}

.wide-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.wide-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.wide-author {
    font-weight: 600;
    color: #666;
}

.meta-separator {
    color: #ddd;
}

.wide-date {
    color: #999;
}

/* === RESPONSIVE === */

/* Large Tablet */
@media (max-width: 1200px) {
    .section-v4-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }

    .item-large {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        min-height: 450px;
    }

    .item-medium {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
        min-height: 250px;
    }

    .item-card:nth-of-type(3) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .item-card:nth-of-type(4) {
        grid-column: 4 / 5;
        grid-row: 2 / 3;
    }

    .item-card:nth-of-type(5) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .item-wide {
        grid-column: 2 / 5;
        grid-row: 3 / 4;
    }

    .item-card:nth-of-type(7) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }

    .item-card:nth-of-type(8) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }

    .item-medium-right:nth-of-type(9) {
        grid-column: 3 / 4;
        grid-row: 4 / 5;
        min-height: 250px;
    }

    .item-medium-right:nth-of-type(10) {
        grid-column: 4 / 5;
        grid-row: 4 / 5;
        min-height: 250px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .section-v4 {
        padding: 60px 0;
        margin: 0 1rem !important;
    }

    .section-v4-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-v4-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Toate item-urile devin stack vertical */
    .item-large,
    .item-medium,
    .item-card,
    .item-wide,
    .item-medium-right {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px;
    }

    .item-wide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wide-image {
        height: 220px;
    }

    .wide-content {
        padding: 24px;
    }

    .wide-title {
        font-size: 22px;
    }

    .large-title {
        font-size: 26px;
    }

    .item-excerpt {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-v4-container {
        padding: 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-v4-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .item-large,
    .item-medium,
    .item-card,
    .item-medium-right {
        min-height: 260px;
    }

    .item-content {
        padding: 24px;
    }

    .large-title {
        font-size: 22px;
    }

    .item-title {
        font-size: 18px;
    }

    .wide-title {
        font-size: 20px;
    }

    .wide-excerpt {
        font-size: 14px;
    }
}