/* Admin Updates Section */
.admin-updates-section {
    text-align: center;
    padding: 7rem 0;
    position: relative;
    height: 40rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.admin-updates-header {
    font-size: 3.5rem;
    padding-bottom: 4rem;
}

/* Updates Carousel */
.updates-carousel {
    position: relative;
    min-width: 65%;
    width:65%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
}

.updates-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center;
}

.update-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    z-index: 1;
    display: flex;
    align-items: center;
}

.update-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
    position: relative;
}

.update-container {
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.update-container:hover {
    transform: translateY(-5px);
}

.update-title {
    font-size: 1.8rem;
    color: var(--light-gray);
    margin: 0 0 15px 0;
    font-weight: 700;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.update-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-gray);
    text-align: left;
    margin-bottom: auto;
    max-width: 65%;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.update-meta {
    position: absolute;
    bottom: 50px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--light-gray);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

/* When slide is active, animate the children */
.update-slide.active .update-title,
.update-slide.active .update-content,
.update-slide.active .update-meta {
    opacity: 1;
    transform: translateX(0);
}

.admin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.admin-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1rem;
}

.update-date {
    font-style: italic;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Carousel Arrows */
.updates-arrows-container {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.updates-arrow {
    background: none;
    border: none;
    position: absolute;
    color: var(--dark-gray);
    font-size: 2.5rem;
    cursor: pointer;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.updates-arrow:hover {
    color: #007bff;
    transform: scale(1.05);
}

.updates-arrow-left {
    left: 10px;
}

.updates-arrow-right {
    right: 10px;
}

.arrow-icon {
    display: block;
    line-height: 1;
    font-weight: bold;
}

/* TABLET */
@media (max-width: 1024px) {
    .admin-updates-section {
        padding: 5rem 2rem;
        height: 40rem;
    }
    
    .admin-updates-header {
        font-size: 3rem;
        padding-bottom: 3rem;
    }
    
    .updates-carousel {
        max-width: 85%;
    }
    
    .update-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        width: 100%;
    }
    
    .update-title {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 0 1rem 0;
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    
    .update-content {
        text-align: center;
        margin: 0 auto 1.5rem auto;
        max-width: 80%;
        font-size: 1rem;
        line-height: 1.6;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
    }
    
    .update-meta {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: auto;
        width: 100%;
        gap: 10px;
        opacity: 0;
        transition: opacity 0.8s ease 0.6s;
    }
    
    .admin-info {
        align-items: center;
        text-align: center;
    }
    
    .updates-arrow {
        width: 3rem;
        height: 3rem;
        font-size: 2rem;
    }
}

/* PHONE */
@media (max-width: 768px) {
    .admin-updates-section {
        padding: 4rem 1.5rem;
        height: 40rem;
    }
    
    .admin-updates-header {
        font-size: 2rem;
        padding-bottom: 2.5rem;
    }
    
    .updates-carousel {
        max-width: 95%;
    }
    
    .update-container {
        padding: 1.5rem;
    }
    
    .update-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    
    .update-content {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
    }
    
    .admin-logo {
        width: 35px;
        height: 35px;
    }
    
    .admin-label {
        font-size: 0.9rem;
    }
    
    .update-date {
        font-size: 0.85rem;
    }
    
    .updates-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.8rem;
    }
    
    .updates-arrow-left {
        left: 5px;
    }
    
    .updates-arrow-right {
        right: 5px;
    }
    
    .update-meta {
        margin-top: 1rem;
        opacity: 0;
        transition: opacity 0.8s ease 0.6s;
    }
}

/* SMALL PHONE */
@media (max-width: 480px) {
    .admin-updates-section {
        padding: 3rem 1rem;
    }
    
    .admin-updates-header {
        font-size: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .update-title {
        font-size: 1.1rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    }
    
    .update-content {
        font-size: 0.9rem;
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
    }
    
    .updates-arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.5rem;
    }
    
    .update-meta {
        opacity: 0;
        transition: opacity 0.8s ease 0.6s;
    }
    .updates-carousel{
        width:90%;
    }
}

