/* ============================================
   MORE STORIES SECTION
   Version: 1.3.0 - Fixed width
   ============================================ */

/* Force the block to stay within bounds */
.more-stories-block {
    max-width: 1320px !important;
    margin: 30px auto 0 auto !important;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e8ebe8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="dark"] .more-stories-block {
    background: #1E1E1E;
    border-color: #2a2a2a;
}

/* Header */
.more-stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #C5D631;
}

.more-stories-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.more-stories-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f1a;
    margin: 0;
    letter-spacing: -0.3px;
}

[data-theme="dark"] .more-stories-title {
    color: #ffffff;
}

/* View All Link */
.more-stories-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #C5D631;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.more-stories-view-all:hover {
    color: #a8b82a;
}

.more-stories-view-all svg {
    transition: transform 0.2s ease;
}

.more-stories-view-all:hover svg {
    transform: translateX(3px);
}

/* Grid Layout */
.more-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.more-story-card.featured {
    grid-column: span 2;
}

/* Card Styling */
.more-story-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9f8;
    border: 1px solid #e8ebe8;
    transition: all 0.3s ease;
}

.more-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #C5D631;
}

[data-theme="dark"] .more-story-card {
    background: #252525;
    border-color: #333;
}

[data-theme="dark"] .more-story-card:hover {
    border-color: #C5D631;
}

.more-story-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

/* Image */
.more-story-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.more-story-card.featured .more-story-image {
    aspect-ratio: 16/9;
}

.more-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.more-story-card:hover .more-story-image img {
    transform: scale(1.05);
}

.more-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.more-story-card:hover .more-story-overlay {
    opacity: 1;
}

/* Content */
.more-story-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.more-story-card.featured .more-story-content {
    padding: 18px;
    gap: 8px;
}

/* Category */
.more-story-category {
    display: inline-block;
    background: linear-gradient(135deg, #C5D631 0%, #b8c92d 100%);
    color: #1a1f1a;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.more-story-card.featured .more-story-category {
    font-size: 10px;
    padding: 4px 10px;
}

/* Title */
.more-story-title-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1f1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-story-card.featured .more-story-title-text {
    font-size: 17px;
    -webkit-line-clamp: 3;
}

.more-story-card:hover .more-story-title-text {
    color: #3d4a3d;
}

[data-theme="dark"] .more-story-title-text {
    color: #f0f0f0;
}

[data-theme="dark"] .more-story-card:hover .more-story-title-text {
    color: #ffffff;
}

/* Excerpt */
.more-story-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .more-story-excerpt {
    color: #999;
}

/* Date */
.more-story-date {
    font-size: 11px;
    color: #999;
    margin-top: auto;
}

[data-theme="dark"] .more-story-date {
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .more-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .more-story-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .more-stories-block {
        margin: 20px 16px 0 16px !important;
        padding: 20px;
        border-radius: 12px;
    }
    .more-stories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .more-stories-title {
        font-size: 20px;
    }
    .more-stories-grid {
        gap: 14px;
    }
    .more-story-content {
        padding: 12px;
    }
    .more-story-title-text {
        font-size: 13px;
    }
    .more-story-card.featured .more-story-excerpt {
        display: none;
    }
}

@media (max-width: 480px) {
    .more-stories-grid {
        grid-template-columns: 1fr;
    }
    .more-story-card.featured .more-story-excerpt {
        display: block;
    }
}
