/* =========================================================
   Featured Cover Stories — Design System
   ========================================================= */

/* --- Custom Properties (scoped to section) --- */
.cover-story-section {
    --cs-brand:       #ff7600;
    --cs-brand-dk:    #e06000;
    --cs-title-color: #1a2332;
    --cs-text-color:  #4a5568;
    --cs-loc-color:   #1d4ed8;
    --cs-thumb-size:  130px;
    --cs-card-radius: 14px;
}

/* --- Section Heading Accent --- */
.cs-section-heading {
    padding-bottom: 0.5rem;
}
.cs-section-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #ff7600;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --- Card --- */
.cs-card {
    border-radius: var(--cs-card-radius) !important;
    border-left: 4px solid var(--cs-brand) !important;
    overflow: visible !important;
}

/* --- Badge --- */
.cs-badge {
    top: 15px;
    left: 15px;
    z-index: 2;
    background-color: var(--cs-brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.32em 0.9em;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 118, 0, 0.4);
}

/* --- Card Body --- */
.cs-card-body {
    padding: 1.5rem !important;
    /* extra bottom room for the thumbnail that bleeds below the image */
    padding-bottom: calc(var(--cs-thumb-size) * 0.5 + 1.5rem) !important;
}

/* --- Image Block --- */
.cs-img-wrapper {
    /* push down so the bleed thumbnail doesn't overlap text below */
    margin-bottom: calc(var(--cs-thumb-size) * 0.5);
}

.cs-img-main {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    /* keep the JS hover animation */
    transition: transform 1s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cs-img-thumb {
    position: absolute;
    height: var(--cs-thumb-size) !important;
    width:  var(--cs-thumb-size) !important;
    max-width: unset !important;
    left: -16px !important;
    bottom: calc(-1 * var(--cs-thumb-size) * 0.45) !important;
    object-fit: cover;
    border: 4px solid #fff !important;
    border-radius: 10px !important;
    z-index: 1;
    /* keep the JS hover animation */
    transition: transform 1s ease, width 1s ease, height 1s ease;
}

/* --- Typography --- */
.cs-title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    color: var(--cs-title-color);
    letter-spacing: -0.01em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.cs-location {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cs-loc-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Story Wrapper (reserves exactly 10 lines) --- */
.cs-story-wrapper {
    position: relative;
    /* 10 lines × line-height (1.75) expressed in em so it scales with font-size */
    min-height: calc(10 * 1.75em);
}

.cs-story {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.75;
    color: var(--cs-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-story.cs-story-expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

/* --- Read More Button (bottom-right of wrapper) --- */
.cs-read-more {
    position: absolute;
    bottom: 0;
    right: 0;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cs-brand, #ff7600);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
    line-height: 1.75; /* aligns baseline with last text line */
}
.cs-read-more:hover {
    color: var(--cs-brand-dk, #e06000);
}

/* --- CTA Button --- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--cs-brand);
    border-color: var(--cs-brand);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.55rem 1.6rem;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.cs-btn:hover,
.cs-btn:focus {
    background-color: var(--cs-brand-dk);
    border-color: var(--cs-brand-dk);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 118, 0, 0.35);
}

/* --- Swiper Nav --- */
.cs-swiper-prev { margin-left: -50px; color: #333; }
.cs-swiper-next { margin-right: -50px; color: #333; }

/* =========================================================
   Responsive
   ========================================================= */

/* md+ — thumbnail no longer bleeds below since layout is still column */
@media (min-width: 768px) {
    .cs-card-body {
        padding: 2rem !important;
        padding-bottom: calc(var(--cs-thumb-size) * 0.5 + 2rem) !important;
    }


}

/* lg+ — flex row, image sits alongside text, thumb bleeds only within its column */
@media (min-width: 992px) {
    .cs-card-body {
        padding: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .cs-img-wrapper {
        margin-bottom: 0;
    }

    .cs-img-thumb {
        bottom: -28px !important;
    }

    .cs-img-main {
        max-width: 380px;
    }
}

/* xl+ */
@media (min-width: 1200px) {
    .cs-img-main {
        max-width: 430px;
    }
}
