/* ============================================
   UPDATES PAGE - FEATURED UPDATE
   ============================================ */

/* Outer wrapper - gradient becomes the border */
.update-featured {
    position: relative;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, #0084c9 0%, #00db6d 100%);
    margin-bottom: 40px;
}

/* Inner wrapper - white background */
.update-featured__inner {
    background: white;
    border-radius: 6px;
    padding: 30px;
}

/* Top meta row */
.update-featured__meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 10px;
}

.update-featured__meta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* "FEATURED UPDATE" label */
.update-featured__label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.update-featured__date {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* Category tags - featured */
.update-featured__tag {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.update-featured__tag--publication {
    background: #e8f5e9;
    color: #2e7d32;
}

.update-featured__tag--news {
    background: #e3f2fd;
    color: #1565c0;
}

.update-featured__tag--research {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Headline */
.update-featured__title {
    font-family: 'Ruda', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #595959;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Featured button - right aligned, full width on mobile */
.update-featured .content-section__button-wrapper {
    justify-content: flex-end;
    margin-top: 20px;
}

/* ============================================
   UPDATES PAGE - TIMELINE
   ============================================ */

.update-timeline {
    position: relative;
    padding-left: 28px;
    margin-bottom: 30px;
}

/* Vertical line */
.update-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(0, 132, 201, 0.15) 0%,
        rgba(0, 132, 201, 0.4) 20%,
        rgba(0, 132, 201, 0.4) 80%,
        rgba(0, 132, 201, 0.15) 100%
    );
}

/* Each timeline row */
.update-timeline__item {
    position: relative;
    padding: 4px 0 0 20px;
    margin-bottom: 0;
}

/* Dot marker */
.update-timeline__marker {
    position: absolute;
    left: -28px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.content-section .update-timeline hr {
	margin: 20px 0;
}

/* All dots filled */
.update-timeline__item--original .update-timeline__marker,
.update-timeline__item--curated .update-timeline__marker {
    background: #0084c9;
    border: 2px solid #0084c9;
}

/* Dot hover */
.update-timeline__item:hover .update-timeline__marker {
    transform: scale(1.2);
}

/* Meta row */
.update-timeline__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.update-timeline__date {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

/* Timeline tags */
.update-timeline__tag {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.update-timeline__tag--publication {
    background: #e8f5e9;
    color: #2e7d32;
}

.update-timeline__tag--news {
    background: #e3f2fd;
    color: #1565c0;
}

.update-timeline__tag--research {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Timeline headline */
.update-timeline__title {
    font-family: 'Ruda', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #595959;
    line-height: 1.3;
    margin-bottom: 6px;
}

.update-timeline__title a {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-timeline__title a:hover {
    color: #0084c9;
}

/* Excerpt */
.update-timeline__excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #777;
    margin: 0;
}

/* Curated items - normalized colors */
.update-timeline__item--curated .update-timeline__title a {
    color: #595959;
}

.update-timeline__item--curated .update-timeline__title a:hover {
    color: #0084c9;
}

.update-timeline__item--curated .update-timeline__excerpt {
    color: #777;
}

/* Read more link */
.update-timeline__readmore {
    display: block;
	text-align: right;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0084c9;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.update-timeline__readmore:hover {
    color: #006da6;
    text-decoration: underline;
}

.content-section__button-wrapper {
        justify-content: center;
    }

/* ============================================
   MOBILE - 768px
   ============================================ */

@media (max-width: 768px) {

    /* Featured */
    .update-featured {
        margin-bottom: 30px;
    }

    .update-featured__inner {
        padding: 20px 16px;
    }

    .update-featured__title {
        font-size: 22px;
    }

    /* Timeline */
    .update-timeline {
        padding-left: 24px;
    }

    .update-timeline__item {
        padding-left: 16px;
    }

    .update-timeline__marker {
        left: -24px;
        width: 14px;
        height: 14px;
        top: 10px;
    }

    .update-timeline__meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .update-timeline__date {
        flex-shrink: 0;
    }

    .update-timeline__tag {
        flex-shrink: 0;
    }

    .update-timeline__title {
        font-size: 16px;
    }

    .update-timeline__excerpt {
        font-size: 14px;
    }

    /* Center buttons */
	.update-featured .content-section__button-wrapper {
        justify-content: center;
    }
    
}


/* ============================================
   MOBILE - 480px
   ============================================ */

@media (max-width: 480px) {

    /* Featured */
    .update-featured {
        margin-left: 2px;
        margin-right: 2px;
        padding: 1px;
    }

    .update-featured__inner {
        padding: 16px 12px;
    }

    .update-featured__title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Timeline */
    .update-timeline {
        padding-left: 20px;
    }

    .update-timeline__marker {
        left: -20px;
        width: 12px;
        height: 12px;
        top: 10px;
    }

    .update-timeline::before {
        left: 5px;
    }

    .update-timeline__meta {
        margin-bottom: 10px;
    }

    .update-timeline__item {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .update-timeline__excerpt {
        font-size: 13px;
        margin-bottom: 0;
    }
}

/* Archive variant - removes timeline styling, simplifies to rows */
.update-timeline--archive {
    padding-left: 0; /* Remove left padding for timeline */
}

.update-timeline--archive::before {
    display: none; /* Remove vertical line */
}

.update-timeline--archive .update-timeline__marker {
    display: none; /* Remove dots */
}

.update-timeline--archive .update-timeline__item {
    padding-left: 0; /* Remove indent */
    /* Keep other spacing */
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin: 40px 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

/* Previous/Next buttons */
.pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #0084c9;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination__btn:hover {
    background: #f8fbfd;
    border-color: #0084c9;
}

.pagination__btn--disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination__btn i {
    font-size: 12px;
}

/* Page numbers container */
.pagination__numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

/* Individual page number */
.pagination__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #595959;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination__number:hover {
    background: #f8fbfd;
    border-color: #0084c9;
    color: #0084c9;
}

/* Active page */
.pagination__number--active {
    background: #0084c9;
    border-color: #0084c9;
    color: white;
    cursor: default;
}

/* Ellipsis */
.pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #999;
    font-size: 14px;
}


/* ============================================
   RESPONSIVE - 768px
   ============================================ */

@media (max-width: 768px) {

    .pagination {
        gap: 6px;
    }

    .pagination__btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pagination__numbers {
        gap: 3px;
        margin: 0 6px;
    }

    .pagination__number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}


/* ============================================
   RESPONSIVE - 480px
   ============================================ */

@media (max-width: 480px) {

    .pagination {
        gap: 4px;
    }

    /* Hide text on prev/next, show icons only */
    .pagination__btn span {
        display: none;
    }

    .pagination__btn {
        padding: 8px 12px;
    }

    /* Show fewer page numbers on mobile */
    .pagination__numbers {
        margin: 0 4px;
    }

    .pagination__number {
        min-width: 30px;
        height: 30px;
    }
}

/* SOURCE LINKS ON UPDATES PAGES */
.source-links {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    counter-reset: source-counter; /* Enable counter for numbering */
}

.source-links li {
    position: relative;
    padding-left: 30px; /* Space for the number */
    margin-bottom: 12px;
    counter-increment: source-counter;
}

.source-links li::before {
    content: counter(source-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Ruda', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0084c9;
    line-height: 1.4;
}

/* All on one line - source, date, and title */
.source-links li > div {
    display: inline; /* Make everything flow inline */
}

.source-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    margin: 0;
}

.source-links a {
    display: inline; /* Changed from inline-flex to inline */
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #0084c9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-links a:hover {
    color: #00a5db;
    text-decoration: underline;
}

.source-links a i {
    font-size: 13px;
    margin-left: 4px;
}

/* ========== COMPACT HERO SECTION ========== */
/* Used for individual update view pages */

#hero-compact {
    position: relative;
    min-height: 32vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
    padding: 50px 0 40px;
}

/* Mirrors article-wrapper exactly */
.hero-compact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0 30px;
    max-width: 1400px;
    width: 100%;
    //margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Mirrors content-article exactly */
.hero-compact-content {
    flex: 1;
    min-width: 0;
	max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Background image overlay */
#hero-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../img/public/paper-2.jpg');
    background-size: cover;
    background-position: 75% 25%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}


/* Tag + date row */
.hero-compact-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Category tags */
.hero-compact-tag {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero-compact-tag--publication {
    background: #e8f5e9;
    color: #2e7d32;
}

.hero-compact-tag--news {
    background: #e3f2fd;
    color: #1565c0;
}

.hero-compact-tag--research {
    background: #f3e5f5;
    color: #6a1b9a;
}

.hero-compact-date {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

/* Title - hero centerpiece */
.hero-compact-title {
    font-family: 'Ruda', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #595959;
    line-height: 1.3;
    margin: 0;
}

/* Breadcrumb - sits at bottom */
.hero-compact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #aaa;
}

.hero-compact-breadcrumb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-compact-breadcrumb a:hover {
    color: #0084c9;
}

.hero-compact-breadcrumb i {
    font-size: 10px;
    color: #ccc;
}

/* Floating orbs - subtle at this scale */
#hero-compact .floating-orb {
    opacity: 0.25;
}


/* ========== RESPONSIVE - 767px ========== */

@media (max-width: 767px) {

    #hero-compact {
        min-height: 28vh;
        padding: 40px 20px 30px;
    }

    .hero-compact-title {
        font-size: 26px;
    }

    .hero-compact-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-compact-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
}


/* ========== RESPONSIVE - 480px ========== */

@media (max-width: 480px) {

    #hero-compact {
        min-height: 24vh;
        padding: 30px 16px 24px;
    }

    .hero-compact-title {
        font-size: 22px;
    }
}

/* Invisible spacer - reserves space for sidebar */
.hero-compact-sidebar-spacer {
    width: 280px; /* Match your sidebar width */
    flex-shrink: 0;
}
/* Responsive - hide spacer when sidebar stacks below */
@media (max-width: 1023px) {
    .hero-compact-sidebar-spacer {
        display: none;
    }
    
    .hero-compact-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 950px) {
    #hero-compact {
        min-height: 28vh;
        padding: 40px 0 30px;
    }

    .hero-compact-wrapper {
        padding: 0 20px;
		max-width: 600px;
    }

    .hero-compact-title {
        font-size: 26px;
    }

    .hero-compact-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-compact-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    #hero-compact {
        min-height: 24vh;
        padding: 30px 0 24px;
    }

    .hero-compact-title {
        font-size: 22px;
    }
}