/* =========================================
   RECENT ACHIEVEMENT SPOTLIGHT
   ========================================= */

.recent-achievement-spotlight .views-view-responsive-grid {
    display: block;
}

.recent-achievement-spotlight .views-view-responsive-grid__item-inner {
    display: grid;
    grid-template-columns: minmax(360px, 48%) 1fr;
    column-gap: 20px;
    align-items: start;
}

/* IMAGE */
.recent-achievement-spotlight .views-field-field-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
}

.recent-achievement-spotlight .views-field-field-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.recent-achievement-spotlight .views-field-field-image a {
    display: block;
}

.recent-achievement-spotlight .views-field-field-image a img {
    display: block;
    width: 100%;
    height: auto;
}

/* TITLE */
.recent-achievement-spotlight .views-field-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 3px;
    text-align: left;
}

.recent-achievement-spotlight .views-field-title a {
    font-size: 30px;
}

/* BODY */
.recent-achievement-spotlight .views-field-body {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
}

.recent-achievement-spotlight .views-field-title .field-content,
.recent-achievement-spotlight .views-field-body .field-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

/* Keep this spotlight calm and static */
.recent-achievement-spotlight,
.recent-achievement-spotlight * {
    animation: none !important;
    transition: none !important;
}

/* BODY TEXT CLAMP: 4 lines max, then "..." */
.recent-achievement-spotlight .views-field-body .field-content {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* MOBILE */
@media (max-width: 700px) {

    .recent-achievement-spotlight .views-view-responsive-grid__item-inner {
        display: block;
    }

    .recent-achievement-spotlight .views-field-field-image {
        margin-bottom: 20px;
    }

    .recent-achievement-spotlight .views-field-field-image img {
        max-height: none;
    }

    .recent-achievement-spotlight .views-field-title {
        margin-bottom: 12px;
        text-align: left;
        font-size: 30px;
    }

    .recent-achievement-spotlight .views-field-body {
        text-align: left;
    }
}


/* =========================================
   SPOTLIGHT ROTATOR
   ========================================= */

.recent-achievement-spotlight .spotlight-item-hidden {
    display: none !important;
}

/* The spotlight card */
.recent-achievement-spotlight
.views-view-responsive-grid__item-inner {
    position: relative;
    padding-bottom: 14px;
}

/* Progress track — belongs to the card */
.recent-achievement-spotlight .spotlight-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    overflow: hidden;
    background: #e5e5e5;
}

/* Moving portion */
.recent-achievement-spotlight .spotlight-progress-bar {
    width: 0;
    height: 100%;
    background: #b99d64;
}



.recent-achievement-spotlight
.views-field-body {
    cursor: text;
}

.recent-achievement-spotlight
.spotlight-progress {
    cursor: default;
}

/* =========================================
   SPOTLIGHT — HERO PRESENTATION
   ========================================= */

/* Give Spotlight its own breathing room */
.recent-achievement-spotlight {
    width: 100%;
    margin: 0 0 55px;
}

/* Make the actual Spotlight item feel substantial */
.recent-achievement-spotlight
.views-view-responsive-grid__item {
    width: 100%;
}

/* Large editorial-style card */
.recent-achievement-spotlight
.views-view-responsive-grid__item-inner {
    width: 100%;
    min-height: 390px;
    padding: 25px 25px 30px;
    box-sizing: border-box;
}

/* Make the image more dominant */
.recent-achievement-spotlight
.views-field-field-image img {
    max-height: 460px;
    width: 100%;
    object-fit: cover;
}

/* Give the text area more room */
.recent-achievement-spotlight
.views-field-title {
    line-height: 1.25;
    margin-bottom: 12px;
}

/* More readable Spotlight description */
.recent-achievement-spotlight
.views-field-body {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Keep the progress bar inside the enlarged card */
.recent-achievement-spotlight
.spotlight-progress {
    left: 25px;
    right: 25px;
    bottom: 10px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .recent-achievement-spotlight {
        margin-bottom: 40px;
    }

    .recent-achievement-spotlight
    .views-view-responsive-grid__item-inner {
        min-height: 0;
       /* padding: 20px 0 25px;*/
    }

    .recent-achievement-spotlight
    .views-field-title {
        font-size: 1.4rem;
    }

    .recent-achievement-spotlight
    .views-field-body {
        font-size: 1rem;
        line-height: 1.5;
    }

    .recent-achievement-spotlight
    .spotlight-progress {
        left: 0;
        right: 0;
        bottom: 5px;
    }
}

 /* =========================================
    SPOTLIGHT — FULL WIDTH
    ========================================= */

/* Make the Spotlight grid itself span the full available width */
.recent-achievement-spotlight
.views-view-responsive-grid {
    display: block !important;
    width: 100% !important;
}

/* Make the single Spotlight item full width */
.recent-achievement-spotlight
.views-view-responsive-grid__item {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Make the Spotlight card use the entire section */
.recent-achievement-spotlight
.views-view-responsive-grid__item-inner {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

/* =========================================
   SPOTLIGHT — ROTATOR OVERRIDES
   ========================================= */

/* The Spotlight itself is full width */
.recent-achievement-spotlight
.views-view-responsive-grid {
    display: block !important;
    width: 100% !important;
}

/* Every item occupies the full Spotlight width */
.recent-achievement-spotlight
.views-view-responsive-grid__item {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* JS-hidden stories MUST remain hidden */
.recent-achievement-spotlight
.views-view-responsive-grid__item.spotlight-item-hidden {
    display: none !important;
}

/* Active story */
.recent-achievement-spotlight
.views-view-responsive-grid__item:not(.spotlight-item-hidden) {
    display: block !important;
}

/* Full-width Spotlight card */
.recent-achievement-spotlight
.views-view-responsive-grid__item-inner {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .recent-achievement-spotlight
    .views-view-responsive-grid__item-inner {
        display: block !important;
        width: 100% !important;
    }

    /* Keep image visible */
    .recent-achievement-spotlight
    .views-field-field-image {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px;
    }

    .recent-achievement-spotlight
    .views-field-field-image a {
        display: block !important;
        width: 100% !important;
    }

    .recent-achievement-spotlight
    .views-field-field-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Restore text on mobile */
    .recent-achievement-spotlight
    .views-field-title {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px;
        text-align: left !important;
    }

    .recent-achievement-spotlight
    .views-field-title a {
        display: inline !important;
    }

    .recent-achievement-spotlight
    .views-field-body {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

}

/* =========================================
   SPOTLIGHT — SOFT STORY TRANSITION
   ========================================= */

@keyframes spotlightFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Newly displayed Spotlight story */
.recent-achievement-spotlight
.views-view-responsive-grid__item:not(.spotlight-item-hidden) {
    animation: spotlightFadeIn 1.65s ease-in-out !important;
}

/* =========================================
   SPOTLIGHT — NAVIGATION CONTROLS
   ========================================= */

.recent-achievement-spotlight .spotlight-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.recent-achievement-spotlight .spotlight-nav {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #b99d64;
    border-radius: 50%;
    background: transparent;
    color: #b99d64;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.recent-achievement-spotlight .spotlight-nav:hover,
.recent-achievement-spotlight .spotlight-nav:focus-visible {
    background: #b99d64;
    color: #fff;
}

.recent-achievement-spotlight .spotlight-counter {
    min-width: 3.5em;
    text-align: center;
    font-size: 0.9rem;
}

.recent-achievement-spotlight .spotlight-status {
    min-height: 1.5em;
    margin-top: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    visibility: hidden;
}

.recent-achievement-spotlight.spotlight-paused .spotlight-status {
    visibility: visible;
}

/* Subtle: progress bar goes grey */
.recent-achievement-spotlight.spotlight-paused .spotlight-progress-bar {
    background: #999;
}

/* Subtle: thin gold outline around the card */
.recent-achievement-spotlight.spotlight-paused
.views-view-responsive-grid__item:not(.spotlight-item-hidden)
.views-view-responsive-grid__item-inner {
    box-shadow: 0 0 0 1px rgba(185, 157, 100, 0.7);
}