/* =========================================================
   LATEST UPDATES SLIDER
========================================================= */

.updates-section {

    position: relative;

    padding:0px 0 30px;

    background:
        var(--cream);

}


/* =========================================================
   SLIDER CONTAINER
========================================================= */

.updates-slider {
    position: relative;
    min-height:130px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border:1px solid rgba(6, 24, 74, .08);
    /* border-radius:0px 0px 16px 16px; */
    background: var(--white);

    box-shadow:
        0 18px 45px
        rgba(6, 24, 74, .08);

}


/* =========================================================
   SLIDE
========================================================= */

.update-slide {
    width: 100%;
    min-height:155px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding:28px 160px 28px 32px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transform:translateX(25px);
    transition:opacity .45s ease, transform .45s ease, visibility .45s ease;
}


/* Active slide */

.update-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform:translateX(0);
}


/* =========================================================
   ICON
========================================================= */

.update-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius:10px;
    background:#e0aafe;
    color:#5a199b;
}


/* SVG */

.update-icon svg {
    width: 34px;
    height: 34px;
}


/* Icon variations */

.notice-icon {
    background:#EEF0FA;
    color:var(--lavender);
}

.event-icon {
    background:#EAF5FB;
    color:#5a199b;
}


.green-icon {
    background:#E8F5F4;
    color:#3B8EA5;
}


.announcement-icon {
    background:#F0EFF8;
    color:#514A71;
}


.community-icon {
    background:#EAF5FB;
    color:#2F80ED;
}


/* =========================================================
   CONTENT
========================================================= */

.update-content {
    min-width:0;
    max-width:800px;
}


/* Meta row */

.update-meta {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:7px;
}


/* Category */

.update-category {
    color:#5a199b;
    font-size:var(--font-14);
    font-weight:var(--weight-500);
}


/* Date */

.update-date {
    position:relative;
    padding-left:14px;
    color:var(--muted);
    font-size:var(--font-14);
}


.update-date::before {
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:3px;
    height:3px;
    border-radius:50%;
    background:#B7BEC9;
    transform:translateY(-50%);
}


/* =========================================================
   TITLE
========================================================= */

.update-content h3 {
    max-width:720px;
    margin:0;
    color:var(--dark);
    font-family:"Poppins", sans-serif;
    font-size:var(--font-18);
    font-weight:var(--weight-600);
    line-height:1.35;
}


/* Supporting text */

.update-content p {
    max-width:720px;
    margin-top:5px;
    color:var(--muted);
    font-size:var(--font-14);
    line-height:1.55;
}


/* =========================================================
   CONTROLS
========================================================= */

.updates-controls {
    position:absolute;
    right:28px;
    bottom:25px;
    display:flex;
    align-items:center;
    gap:12px;
}


/* Arrows */

.update-arrow {
    width:31px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(6, 24, 74, .12);
    border-radius:50%;
    background:var(--white);
    color:var(--dark);
    font-size:var(--font-12);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}


.update-arrow:hover {

    background:var(--dark);
    color:white;
    transform:translateY(-2px);
}


/* =========================================================
   DOTS
========================================================= */

.update-dots {
    display:flex;
    align-items:center;
    gap:5px;
}


.update-dot {
    width:6px;
    height:6px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#C7CDD7;
    transition:width .3s ease, background .3s ease;
}


.update-dot.active {
    width:20px;
    border-radius:10px;
    background:#5a199b;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {
    .updates-section {
        padding:40px 0 30px;
    }

    .update-slide {
        padding:25px 125px 25px 25px;
    }

    .update-content h3 {
        font-size:var(--font-16);
    }

    .update-content p {
        font-size:var(--font-12);
    }

    .updates-controls {
        right:20px;
        bottom:20px;
    }
}


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

@media (max-width: 600px) {
    .updates-slider {
        min-height:190px;
        border-radius:20px;
    }

    .update-slide {
        min-height:190px;
        align-items:flex-start;
        gap:14px;
        padding:22px 18px 55px;
    }

    .update-icon {
        width:43px;
        height:43px;
        flex-basis:43px;
        border-radius:12px;
    }

    .update-icon svg {
        width:21px;
        height:21px;
    }

    .update-meta {
        gap:8px;
    }

    .update-category,
    .update-date {
        font-size:var(--font-12);
    }

    .update-content h3 {
        font-size:var(--font-14);
        line-height:1.4;
    }

    .update-content p {
        font-size:var(--font-12);
        line-height:1.5;
    }

    .updates-controls {
        right:18px;
        bottom:14px;
    }
}