.actus-container {
    max-width: 650px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background-color: var(--bg-kikof);
    border-right: 2px solid var(--border-aside-kikof);
    border-left: 2px solid var(--border-aside-kikof);
    color: var(--color-kikof) !important;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-kikof) !important;
    margin-bottom: 1.5rem;
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--bg-search-main-kikof);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--color-kikof);
    outline: none;
    transition: all 0.3s;
    background-color: var(--bg-search-main-kikof);
}

.search-input:focus {
    border-color: var(--border-aside-kikof);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

/* --- Retour Button (aligned to match-container left) --- */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.625rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #033244;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

    /* Ensure it sticks to container's left side */
    margin-bottom: 1.25rem;
    margin-left: 0; /* aligns to container’s inner left edge */
    display: block; /* takes full control of its positioning */
}

.back-btn:hover {
    background-color: #f8f7ff;
    border-color: #033244;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.back-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.actus-item {
    width: 100%;
    border: 1px solid var(--border-aside-kikof);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 15px;
}
.actus-item .actus-img {
    border-radius: 12px;
    width: 100%;
}
.actus-text {
    font-family: Lato;
    font-style: Medium;
}
.actus-text .actus-head {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 3px;
}
.actus-text .actus-description {
    margin-bottom: 8px;
    margin-top: 8px;
}

a.more {
    list-style: none;
    cursor: pointer;
}

a.more::after {
    content: '→ ';
    transition: transform 0.3s;
    margin-left: 10px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Version Mobile */
@media (max-width: 575.98px) {
    .container {
        padding: 1.5rem 0;
    }
    .actus-section {
        width: 100%;
        border: 1px solid var(--border-aside-kikof);
        border-radius: 12px;
    }
    .content-head {
        background-color: var(--bg-kikof) !important;
        position: relative;
    }
    .actus-container {
        margin-top: 60px;
        border: none;
        padding: 1rem 0;
        margin-left: 10px;
        margin-right: 10px;
    }
    .for-mobile.d-none {
        display: block !important;
        margin: 0px 15px;
    }
    .actus-item {
        border: none;
        margin-bottom: 0;
    }
    h5.for-mobile.d-none {
        color: var(--color-kikof);
    }
}

@media (max-width: 575px) {
    .back-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
        border-radius: 8px;
        margin-left: 0;
    }
    .actus-container {
        margin-top: 60px;
        border: none;
        padding: 1rem 0;
        margin-left: 10px;
        margin-right: 10px;
    }
    .actus-section {
        width: 100%;
        border: 1px solid var(--border-aside-kikof);
        border-radius: 12px;
    }
    .for-mobile.d-none {
        display: block !important;
        margin: 0px 15px;
    }
    h5.for-mobile.d-none {
        color: var(--color-kikof);
    }
    .actus-item {
        border: none;
        margin-bottom: 0;
    }
    .actus-img-box {
        height: 121px;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
    .actus-video-box {
        height: auto;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
    }
}

.no-news-wrapper {
    background-color: #f8f9fa; /* Light grey background */
    border-radius: 15px;
    border: 2px dashed #dee2e6; /* Dashed border gives an "empty slot" feel */
    margin: 20px 10px;
}

.no-news-icon i {
    filter: grayscale(1);
}

/* Ensure the container takes up enough height to look good */
.actus-section:empty, .no-news-wrapper {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* --- Media Fix (Uniform height & No distortion) --- */
/* --- Media Container Fix --- */
.actus-img-box, .actus-video-box {
    width: 100%;
    /* Standardizes the height so cards are uniform */
    height: 350px; 
    overflow: hidden;
    background-color: #000; /* Black background fills space for non-standard ratios */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* For Images: Using 'cover' but ensuring it doesn't look blurry */
.actus-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* For Videos: Using 'contain' to stop pixelation/zoom */
video.actus-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This shows the full video frame without zooming in */
}

/* --- Card Styling --- */
.actus-item {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-aside-kikof);
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

/* Hover effect */
.actus-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Spacing and Typography */
.actus-text {
    padding: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.actus-head {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.actus-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Volume Button --- */
.volume-toggle-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* --- Mobile Adjustments --- */
@media (max-width: 575px) {
    .actus-img-box, .actus-video-box {
        height: 220px; /* Reduced height for smaller screens */
    }
    .actus-container {
        padding: 1rem;
    }
}

.position-relative {
    position: relative;
}

.volume-toggle-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.volume-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.volume-toggle-btn i {
    font-size: 1.2rem;
}