/* --- Actuality Section --- */
.actuality-section {
    padding: 6rem 0 0;
    background-color: var(--color-secondary);
    position: relative; /* Needed for absolute positioning of arrows */
}

.actuality-section .container {
    padding-bottom: 2rem;
}

.actuality-section h2.section-title {
    color: white;
}

.actuality-slider {
    position: relative;
    background-color: #f1f1f1;
    display: grid;
    overflow: hidden;
}
.actuality-item {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s; /* Changed from 0.8s to 0.5s */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    min-height: calc(100vh - 80px - 61px); /* Fullscreen minus header and nav dots */
    width: 100vw;
    position: relative;
}

/* Faster transition for specific actuality items */
.actuality-item.actuality-item-fast-transition {
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

/* Dark overlay for background image slides */
.actuality-item[data-background-image]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); /* Consistent overlay */
    z-index: 1; /* Below content, above background image */
}
.actuality-item .actuality-content {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}


/* Styling for slides with dark background images */
.actuality-item.actuality-item-bg-dark {
    color: white;
}
.actuality-item.actuality-item-bg-dark h3,
.actuality-item.actuality-item-bg-dark p {
    color: white;
}
.actuality-item.actuality-item-bg-dark .btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: transparent;
    color: var(--color-secondary); /* Ensure button text is readable */
}
.actuality-item.actuality-item-bg-dark .btn-secondary:hover {
     background-color: white;
}

.actuality-item.active {
    visibility: visible;
    opacity: 1;
}
.actuality-content { max-width: 900px; width: 100%;}
.actuality-content h3 { font-size: 3.2rem; margin-bottom: 1rem; }
.actuality-content p { margin-bottom: 1.5rem; font-size: 1.4rem;}
.book-item { display: flex; text-align: left; align-items: center; gap: 2.5rem; }
.book-cover { height: 250px; width: auto; object-fit: cover; box-shadow: var(--shadow); }

/* Gallery slide specific styles */
.actuality-item.gallery-slide {
    padding: 0;
}
.actuality-item.gallery-slide .actuality-content {
    max-width: 100%;
    height: 100%;
}
.actuality-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.gallery-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 5rem 3rem 3rem;
    z-index: 10;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    right: 0;
}
.gallery-text-overlay h3, .gallery-text-overlay p {
    color: white;
}

.actuality-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.actuality-gallery .gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Changed from 1s to 0.5s for faster image switching */
}

.actuality-gallery .gallery-image.active {
    opacity: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    background-color: var(--color-secondary);
    position: relative;
    z-index: 10;
}

.slider-nav {
    text-align: center;
    /* Removed padding as it's now handled by .slider-controls */
}
.slider-nav .dot {
    height: 12px;
    width: 12px;
    background-color: #777;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
    border: none;
    transition: background-color 0.3s;
}
.slider-nav .dot.active {
    background-color: var(--color-primary);
}

.slider-arrow {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    z-index: 101;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.5);
}

.slider-arrow:hover {
    color: var(--color-primary);
    text-shadow: 0px 0px 8px rgba(255,255,255,0.8);
}

.prev-arrow {
    left: 1rem;
}

.next-arrow {
    right: 1rem;
}


.actuality-section.actuality-wide .container {
    max-width: 1600px; /* Wider container for this section */
}