/* ============================================
   Section 3: أخبار متنوعة - تصميم 3 أعمدة
   Mixed News Section - 3 Columns Layout
   ============================================ */

/* Main Grid - 3 Columns with gap */
.sec3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: transparent;
    overflow: visible;
}

/* ============================================
   Column Style
   ============================================ */
.sec3-column {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid #d4c8b8;
    overflow: hidden;
    border-radius: 3px;
}

/* ============================================
   Column Header - Matching Main Page Style
   ============================================ */
.sec3-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-secondary);
    position: relative;
}

/* Custom border - full solid line */
.sec3-column-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.sec3-column-header::after {
    display: none;
}

.sec3-column-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Decorative dot before title */
.sec3-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(-135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(49, 101, 149, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Hover effect for title */
.sec3-column-title:hover {
    color: var(--primary-color);
}

.sec3-column-title:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(49, 101, 149, 0.3);
}

/* Hide icons */
.sec3-column-title i {
    display: none;
}

.sec3-column-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sec3-column-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.sec3-column-link i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.sec3-column-link:hover i {
    transform: translateX(-3px);
}

/* Unified Category Color */
.sec3-top-category {
    border-right-color: var(--primary-color) !important;
}

/* Unified Hover colors */
.sec3-top:hover .sec3-top-title,
.sec3-item:hover .sec3-item-title {
    color: var(--primary-color);
}

.sec3-item:hover .sec3-item-number {
    background: var(--primary-color);
    color: #fff;
}

.sec3-top-meta i {
    color: var(--primary-color);
}

/* ============================================
   Top Story (Main) in each column
   ============================================ */
.sec3-top {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sec3-top:hover {
    background: #fffdf8;
}

.sec3-top-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sec3-top-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.sec3-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.sec3-top:hover .sec3-top-image img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.sec3-top-content {
    padding: 15px;
}

.sec3-top-category {
    display: inline-block;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-right: 3px solid var(--primary-dark);
}

.sec3-top-title {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sec3-top:hover .sec3-top-title {
    color: var(--primary-dark);
}

.sec3-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: #888;
    font-family: var(--font-family);
}

.sec3-top-meta i {
    color: var(--primary-dark);
    margin-left: 4px;
}

/* ============================================
   Small Stories (3 per column)
   ============================================ */
.sec3-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sec3-item {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.sec3-item:last-child {
    border-bottom: none;
}

/* Folded corner */
.sec3-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 15px;
    height: 15px;
    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;
}

.sec3-item:hover {
    background: #fffdf8;
}

.sec3-item:hover::before {
    width: 20px;
    height: 20px;
}

.sec3-item-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sec3-item-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #f0ebe4;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.sec3-item:hover .sec3-item-number {
    background: var(--primary-dark);
    color: #fff;
}

.sec3-item-content {
    flex: 1;
}

.sec3-item-title {
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sec3-item:hover .sec3-item-title {
    color: var(--primary-dark);
}

/* ============================================
   Section Header - Green Theme
   ============================================ */
.sec3-world .section-header::after,
.sec3-world .section-header::before {
    background: var(--primary-dark);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1200px) {
    .sec3-top-image {
        height: 160px;
    }

    .sec3-top-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .sec3-grid {
        grid-template-columns: 1fr;
    }

    .sec3-column {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sec3-column:last-child {
        border-bottom: none;
    }

    .sec3-top-image {
        height: 200px;
    }

    .sec3-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sec3-item {
        flex: 1;
        min-width: 200px;
        border-left: 1px solid var(--border-color);
    }

    .sec3-item:first-child {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .sec3-top-image {
        height: 180px;
    }

    .sec3-list {
        flex-direction: column;
    }

    .sec3-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .sec3-top-image {
        height: 150px;
    }

    .sec3-top-title {
        font-size: 0.9rem;
    }

    .sec3-top-content {
        padding: 12px;
    }

    .sec3-item {
        padding: 10px 12px;
    }

    .sec3-item-title {
        font-size: 0.75rem;
    }

    .sec3-item-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.7rem;
    }
}

/* ============================================
   Entrance Animation
   ============================================ */
.sec3-animate-ready {
    opacity: 0;
    transform: translateY(20px);
}

.sec3-animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}