/**
 * Recommended Reads Section
 */

.recommended-section {
    padding: 10px 0;
    background-color: var(--color-bg);
}

.recommended-section .section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    padding-left: 10px;
    border-left: 3px solid #FF5722;
    display: inline-block;
}

.recommended-layout {
    background: #1a1a1a;
    /* Dark background maintained */
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Left 60%, Right 40% */
    gap: 0;
}

/* ==================== LEFT COLUMN (2x2 Grid) ==================== */

.recommended-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    grid-template-rows: 1fr 1fr;
    /* 2 rows */
    gap: 10px;
    padding: 25px 10px;
}

.recommended-small-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.recommended-small-item:hover {
    transform: translateY(-2px);
}

.recommended-small-item:hover .recommended-small-title {
    color: #FF5722;
}

.recommended-small-image {
    width: 100%;
    height: 145px;
    /* Fixed height like original */
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.recommended-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommended-small-content {
    display: flex;
    flex-direction: column;
}

.recommended-small-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: white;
    /* White text on dark background */
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

/* ==================== RIGHT COLUMN (Featured) ==================== */

.recommended-right {
    display: flex;
    flex-direction: column;
    padding: 10px 0 0 0;
    /* Padding for content, no padding bottom for image */
}

/* .recommended-featured-content {
    padding-bottom: 15px;
} */

.recommended-featured-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #FF5722;
    line-height: 1.3;
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
    padding-right: 5px;
}

.recommended-featured-link:hover .recommended-featured-title {
    color: #ffffff;
}

.recommended-featured-description {
    font-family: var(--font-body);
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-featured-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.recommended-featured-image {
    width: 100%;
    height: 360px;
    /* Takes remaining space */
    /* min-height: 250px; */
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 6px;
}

.recommended-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Loading Skeleton */
.recommended-skeleton {
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .recommended-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Featured first on mobile */
    .recommended-right {
        order: 1;
        padding: 25px;
    }

    .recommended-featured-image {
        height: 205px;
    }

    /* Grid second */
    .recommended-left {
        order: 2;
        padding: 25px;
        grid-template-columns: 1fr 1fr;
        /* Keep 2x2 */
    }
}

@media (max-width: 768px) {
    .recommended-section {
        padding: 10px 0;
    }

    .recommended-section .section-title {
        font-size: 20px;
    }

    .recommended-left {
        padding: 20px;
        gap: 12px;
    }

    .recommended-right {
        padding: 20px;
    }

    .recommended-small-image {
        height: 100px;
    }

    .recommended-small-title {
        font-size: 13px;
    }

    .recommended-featured-title {
        font-size: 20px;
    }

    .recommended-featured-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recommended-left {
        padding: 15px;
        grid-template-columns: 1fr 1fr;
        /* Single column on small mobile */
        gap: 15px;
    }

    .recommended-right {
        padding: 15px;
    }

    .recommended-small-image {
        height: 98px;
    }

    .recommended-featured-title {
        font-size: 18px;
    }

    .recommended-featured-image {
        height: 206px;
    }
}