/* ============================================
   Section 2: أخبار الاقتصاد - تصميم الجريدة
   Economy News Section - Newspaper Style
   ============================================ */

/* Grid Layout - Main + 3 Side */
.sec2-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid #d4c8b8;
    overflow: hidden;
}

/* ============================================
   Main Story - Large Card
   ============================================ */
.sec2-main {
    position: relative;
    background: #fff;
    border-left: 1px solid var(--border-color);
}

.sec2-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sec2-main-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.sec2-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.sec2-main:hover .sec2-main-image img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.sec2-main-content {
    padding: 20px;
}

.sec2-main-category {
    display: inline-block;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-right: 3px solid var(--primary-dark);
}

.sec2-main-title {
    font-family: var(--font-family);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sec2-main:hover .sec2-main-title {
    color: var(--primary-dark);
}

.sec2-main-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sec2-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #888;
    padding-top: 12px;
    border-top: 1px dashed #e0d8cc;
    font-family: var(--font-family);
}

.sec2-main-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sec2-main-meta i {
    color: var(--primary-dark);
    font-size: 0.7rem;
}

/* ============================================
   Side Stories - 3 Stacked Cards
   ============================================ */
.sec2-side {
    display: flex;
    flex-direction: column;
}

.sec2-side-card {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.sec2-side-card:last-child {
    border-bottom: none;
}

/* Folded corner effect */
.sec2-side-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-135deg,
            transparent 50%,
            var(--border-color) 50%,
            var(--border-dark) 52%,
            var(--bg-secondary) 100%);
    z-index: 2;
    transition: all 0.3s ease;
}

.sec2-side-card:hover {
    background: #fffdf8;
}

.sec2-side-card:hover::before {
    width: 25px;
    height: 25px;
}

.sec2-side-inner {
    display: flex;
    gap: 12px;
}

.sec2-side-image {
    width: 110px;
    min-width: 110px;
    height: 85px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sec2-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.sec2-side-card:hover .sec2-side-image img {
    filter: grayscale(0%);
}

.sec2-side-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sec2-side-title {
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sec2-side-card:hover .sec2-side-title {
    color: var(--primary-dark);
}

.sec2-side-meta {
    font-size: 0.7rem;
    color: #999;
    font-family: var(--font-family);
}

.sec2-side-meta i {
    margin-left: 4px;
    color: var(--primary-dark);
}

/* ============================================
   Section Header - Economy Blue
   ============================================ */
.sec2-economy .section-header::after,
.sec2-economy .section-header::before {
    background: var(--primary-dark);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .sec2-grid {
        grid-template-columns: 1fr;
    }

    .sec2-main {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sec2-main-image {
        height: 220px;
    }

    .sec2-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sec2-side-card {
        flex: 1;
        min-width: 250px;
        border-left: 1px solid var(--border-color);
    }

    .sec2-side-card:first-child {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .sec2-main-image {
        height: 180px;
    }

    .sec2-main-title {
        font-size: 1.1rem;
    }

    .sec2-main-content {
        padding: 15px;
    }

    .sec2-side {
        flex-direction: column;
    }

    .sec2-side-card {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .sec2-main-image {
        height: 160px;
    }

    .sec2-main-title {
        font-size: 1rem;
    }

    .sec2-side-image {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }

    .sec2-side-title {
        font-size: 0.8rem;
    }
}

/* ============================================
   Entrance Animation
   ============================================ */
.sec2-animate-ready {
    opacity: 0;
    transform: translateY(20px);
}

.sec2-animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}