/* ==========================================================================
   Hero Section Custom Variables
   ========================================================================== */
.nr-hero {
    --nr-hero-gap: 24px;
    --nr-hero-radius: 14px;
    --nr-hero-border: #ececec;
    --nr-hero-red: #c8102e;
    --nr-hero-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    --nr-hero-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.07);
    --nr-hero-duration: 200ms;

    width: 100%;
    box-sizing: border-box;
}

.nr-hero * {
    box-sizing: border-box;
}

/* ==========================================================================
   Desktop Grid Layout (Equal Heights via stretch)
   ========================================================================== */
.nr-hero-container {
    display: flex;
    margin: 0 auto;
    width: 100%;
    align-items: stretch;
    gap: var(--nr-hero-gap);
}

.nr-hero-column {
    display: flex;
    flex-direction: column;
}

.nr-hero-column--featured {
    flex: 0 0 calc(60% - (var(--nr-hero-gap) * 0.4));
}

.nr-hero-column--secondary {
    flex: 0 0 calc(22% - (var(--nr-hero-gap) * 0.4));
}

.nr-hero-column--live {
    flex: 0 0 calc(18% - (var(--nr-hero-gap) * 0.4));
}

/* ==========================================================================
   Column 1: Featured Story (Overlay Card)
   ========================================================================== */
.nr-hero-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 480px;
    padding: 30px;
    overflow: hidden;
    text-decoration: none;
    background-color: #000000;
    border-radius: var(--nr-hero-radius);
}

.nr-hero-featured__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--nr-hero-radius);
}

.nr-hero-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--nr-hero-duration) ease-in-out;
}

.nr-hero-featured__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    border-radius: var(--nr-hero-radius);
}

/* Badging */
.nr-hero-featured__breaking-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--nr-hero-red);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.nr-hero-featured__content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 90%;
    text-align: left;
}

.nr-hero-featured__category {
    display: inline-block;
    background-color: var(--nr-hero-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.nr-hero-featured__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.nr-hero-featured__excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
}

.nr-hero-featured__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.nr-hero-featured__meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nr-hero-featured__meta-item svg {
    opacity: 0.8;
}

.nr-hero-featured__meta-divider {
    color: rgba(255, 255, 255, 0.4);
}

/* Chevron Link Indicator */
.nr-hero-featured__arrow {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--nr-hero-duration) ease-in-out;
    z-index: 2;
}

/* Hover effects */
.nr-hero-featured:hover .nr-hero-featured__image {
    transform: scale(1.05);
}

.nr-hero-featured:hover .nr-hero-featured__arrow {
    opacity: 1;
    transform: translateX(0);
    background-color: var(--nr-hero-red);
}

/* ==========================================================================
   Column 2: Secondary Stories
   ========================================================================== */
.nr-hero-secondary-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.nr-hero-story {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid var(--nr-hero-border);
    border-radius: var(--nr-hero-radius);
    text-decoration: none;
    flex: 1;
    transition: all var(--nr-hero-duration) ease-in-out;
    min-height: 100px;
    text-align: left;
}

.nr-hero-story__image-wrapper {
    width: 90px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.nr-hero-story__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--nr-hero-duration) ease-in-out;
}

.nr-hero-story__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.nr-hero-story__category {
    font-size: 11px;
    font-weight: 700;
    color: var(--nr-hero-red);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.nr-hero-story__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nr-hero-story__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888888;
}

/* Secondary hover */
.nr-hero-story:hover {
    transform: translateY(-2px);
    box-shadow: var(--nr-hero-shadow-hover);
    border-color: rgba(200, 16, 46, 0.2);
}

.nr-hero-story:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   Column 3: Live Updates Timeline
   ========================================================================== */
.nr-hero-live {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--nr-hero-border);
    border-radius: var(--nr-hero-radius);
    padding: 20px;
    height: 100%;
    text-align: left;
}

.nr-hero-live__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nr-hero-border);
    margin-bottom: 16px;
}

.nr-hero-live__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--nr-hero-red);
}

.nr-hero-live__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--nr-hero-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.nr-hero-live__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-block;
}

.nr-hero-live__timeline {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.nr-hero-live__timeline::-webkit-scrollbar {
    width: 4px;
}

.nr-hero-live__timeline::-webkit-scrollbar-thumb {
    background-color: #e0e0e0;
    border-radius: 2px;
}

.nr-hero-live__timeline-item {
    display: flex;
    align-items: flex-start;
}

.nr-hero-live__time {
    font-size: 11px;
    font-weight: 800;
    color: #555555;
    flex: 0 0 62px;
    padding-top: 2px;
    text-align: right;
}

.nr-hero-live__body {
    flex: 1;
    padding-left: 18px;
    padding-bottom: 18px;
    border-left: 1px solid var(--nr-hero-border);
    position: relative;
    min-height: 60px;
}

.nr-hero-live__dot {
    position: absolute;
    left: -4.5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--nr-hero-red);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--nr-hero-red);
}

.nr-hero-live__timeline-item:last-child .nr-hero-live__body {
    border-left-color: transparent;
}

.nr-hero-live__link {
    text-decoration: none;
}

.nr-hero-live__headline {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #222222;
    margin: 0;
    transition: color var(--nr-hero-duration) ease;
}

.nr-hero-live__headline:hover {
    color: var(--nr-hero-red);
}

.nr-hero-live__footer {
    margin-top: 14px;
}

.nr-hero-live__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--nr-hero-red);
    color: var(--nr-hero-red);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    background-color: transparent;
    transition: all var(--nr-hero-duration) ease;
}

.nr-hero-live__btn:hover {
    background-color: var(--nr-hero-red);
    color: #ffffff;
}

.nr-hero-live__btn svg {
    transition: transform var(--nr-hero-duration) ease;
}

.nr-hero-live__btn:hover svg {
    transform: translateX(3px);
}

.nr-hero-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background-color: #fafafa;
    border: 1px dashed var(--nr-hero-border);
    color: #888888;
    font-size: 13px;
}

/* ==========================================================================
   Responsive Reflow (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .nr-hero-featured__title {
        font-size: 26px;
    }
}

@media (max-width: 991px) {
    .nr-hero-container {
        flex-direction: column;
    }

    .nr-hero-column {
        flex: 1 1 auto !important;
        width: 100% !important;
        margin-bottom: 24px;
    }

    .nr-hero-column:last-child {
        margin-bottom: 0;
    }

    /* Reflow secondary into 2x2 grid */
    .nr-hero-secondary-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .nr-hero-story {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .nr-hero-featured {
        padding: 20px;
        min-height: 380px;
    }

    .nr-hero-featured__title {
        font-size: 22px;
    }

    .nr-hero-featured__excerpt {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Stacks vertically */
    .nr-hero-secondary-grid {
        grid-template-columns: 1fr;
    }
    
    .nr-hero-live__timeline {
        max-height: 300px;
    }
}

/* Micro-pulse for live indicator */
@keyframes nrLivePulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.animate-pulse .nr-hero-live__badge-dot {
    animation: nrLivePulse 1.5s infinite ease-in-out;
}
