/* ==========================================
   ARTICLE UPDATES TIMELINE STYLES
   ========================================== */

/* Updates Section Wrapper */
.updates-section {
    max-width: 900px;
    margin: 0 auto 60px;
}

/* Section Label */
.updates-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--theme-5);
}

.updates-label {
    font-family: 'Shadows Into Light', cursive;
    font-size: 22px;
    color: var(--theme-0);
    display: flex;
    align-items: center;
    gap: 10px;
}

.updates-label i {
    color: var(--theme-1);
    font-size: 18px;
}

/* ==========================================
   TIMELINE
   ========================================== */

.updates-timeline {
    position: relative;
    padding-left: 30px;
}

/* Vertical line */
.updates-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--theme-1), var(--theme-3));
    border-radius: 2px;
}

/* ==========================================
   INDIVIDUAL UPDATE ENTRY
   ========================================== */

.update-entry {
    position: relative;
    margin-bottom: 50px;
    padding-left: 35px;
}

.update-entry:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.update-entry::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--theme-1);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

/* First entry (most recent) gets a filled dot */
/* first-child dot: no special default state */

/* Hover effect on dot */
.update-entry:hover::before {
    background: var(--theme-1);
    transform: scale(1.2);
}

/* ==========================================
   UPDATE DATE
   ========================================== */

.update-date {
    font-family: 'Heebo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* update-date::after removed */

/* ==========================================
   UPDATE CARD (content box)
   ========================================== */

.update-card {
    background: var(--white);
    border: 1px solid var(--theme-5);
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.update-entry:hover .update-card {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: translateX(3px);
}

/* IMAGE SIDE — text left, image right (desktop) */
.update-card.has-image {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}

.update-card.has-image .update-text-content {
    padding: 25px 30px;
}

.update-card.has-image .update-card-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

/* ==========================================
   UPDATE TEXT
   ========================================== */

.update-text-content p,
.update-card:not(.has-image) p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--theme-2);
    margin: 0;
}

/* ==========================================
   UPDATE CLOSING (call to action / cierre)
   ========================================== */

.update-closing {
    font-size: 14px;
    font-style: italic;
    color: var(--theme-3, #aaa);
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--theme-5);
}


/* ==========================================
   LATEST BADGE
   ========================================== */

.update-latest-badge {
    display: inline-block;
    background: var(--theme-1);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    margin-bottom: 10px;
    font-family: 'Heebo', sans-serif;
}

/* ==========================================
   INTRO HTML BLOCK
   ========================================== */

.article-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--white);
    padding: 40px 50px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-top: none;
}

.article-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--theme-2);
    margin-bottom: 20px;
}

.article-intro p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
    .updates-section {
        margin-bottom: 40px;
    }

    .updates-timeline {
        padding-left: 20px;
    }

    .updates-timeline::before {
        left: 0;
    }

    .update-entry {
        padding-left: 25px;
        margin-bottom: 35px;
    }

    .update-entry::before {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .update-card {
        padding: 20px;
    }

    /* On mobile: image always on top */
    .update-card.has-image {
        display: flex;
        flex-direction: column;
    }

    .update-card.has-image .update-card-image {
        order: -1;
        width: 100%;
        height: auto;
        min-height: unset;
        object-fit: cover;
    }

    .update-card.has-image .update-text-content {
        padding: 20px;
    }

    .article-intro {
        padding: 25px 20px;
        margin-bottom: 35px;
    }

    .article-intro p {
        font-size: 15px;
    }

    .update-text-content p,
    .update-card:not(.has-image) p {
        font-size: 15px;
    }
}