/* Owl Carousel dots customization */
.authors-carousel .owl-dots {
    margin-top: 30px !important;
    text-align: center;
}
.authors-carousel .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    margin: 5px 7px !important;
    transition: all 0.3s ease !important;
}
.authors-carousel .owl-dot.active span {
    background: #fff !important;
    transform: scale(1.2);
}
.authors-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
}
.authors-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}
.authors-carousel .owl-nav .owl-prev { left: -50px; }
.authors-carousel .owl-nav .owl-next { right: -50px; }

@media (max-width: 1200px) {
    .authors-carousel .owl-nav { display: none; }
}

/* 
=============================================
General & Section Styles
=============================================
*/
.section-title-custom {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    margin-bottom: 32px;
    font-weight: 600;
    color: #3c4858;
}

/* 
=============================================
Authors Section ("Nos Rédacteurs")
=============================================
*/
.authors-section {
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 8px;
}

/* Prevent cropping when items scale or move up */
.authors-carousel {
    padding: 60px 0 !important;
}

.authors-carousel .owl-stage-outer {
    padding: 20px 0 !important;
    margin: -20px 0 !important;
}

.authors-section .section-title {
    font-size: 2.8rem; color: #fff; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
}

.author-card {
    position: relative; 
    padding-top: 50px; 
    height: 100%;
    transition: transform 0.4s ease;
}

.card-inner {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; 
    padding: 60px 1.2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; 
    flex-direction: column; 
    height: 310px; /* REDUCED HEIGHT (~20% less than 360px) */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Move the whole card up */
.author-card:hover { 
    transform: translateY(-15px); 
}

.author-card:hover .card-inner { 
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
}

.author-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    z-index: 10; /* Ensure it stays on top */
}

.author-image { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.author-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.author-card:hover .author-image {
    border-color: #00c9ff;
    transform: scale(1.15);
}

.author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.author-name { 
    color: #fff; 
    font-size: 1.8rem; /* INCREASED FONT SIZE */
    margin-bottom: 0.3rem; 
    font-weight: 700; 
    line-height: 1.2;
}

.author-role { 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 1.2rem; /* INCREASED FONT SIZE */
    font-weight: 500; 
    margin-bottom: 1rem;
    min-height: 1.5em;
}

.profile-link {
    color: #fff; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1rem;
    display: flex;
    align-items: center; 
    justify-content: center; /* CENTERED CONTENT */
    gap: 8px; 
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(0, 201, 255, 0.2);
    border: 2px solid #00c9ff;
    border-radius: 12px;
    margin-top: auto;
    width: 100%; /* FULL WIDTH / JUSTIFIED */
}

.profile-link:hover { 
    background: #00c9ff;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 201, 255, 0.6);
    transform: scale(1.02);
}

.author-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.social-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Custom 5-column layout for desktop */
@media (min-width: 992px) {
    .custom-col-lg-20p {
        flex: 0 0 auto;
        width: 20% !important;
    }
}

/* 
=============================================
Partners Section
=============================================
*/
.partner-section {
    background: #f8f9fa; padding: 4rem 0; overflow: hidden;
}

.partner-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 2rem; padding: 0 1rem;
}

.partner-item {
    flex: 0 1 180px;
    transition: all 0.3s ease;
}

.logo-container {
    width: 100%; padding-bottom: 75%; position: relative; background: white;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-logo {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    max-width: 85%; max-height: 85%; object-fit: contain; filter: grayscale(100%);
    transition: all 0.3s ease;
}
.partner-item:hover .partner-logo { filter: grayscale(0%); transform: translate(-50%, -50%) scale(1.05); }

/* 
=============================================
Advertisement Sections
=============================================
*/
.bottom-ad-section, 
#dynamic-category-ad-container .bottom-ad-section-category {
    margin-top: 2rem;
    padding: 2rem 0;
    text-align: center;
    background-color: #f8f9fa;
}
.bottom-ad-section img,
#dynamic-category-ad-container .bottom-ad-section-category img {
    max-width: 100%; /* Changed from 85% for better scaling */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 
=============================================
Subscribe Section
=============================================
*/
.subscribe-line {
    padding: 3rem 0;
}
.subscribe-line .title {
    font-family: 'Roboto', sans-serif;
}

/* 
=============================================
RESPONSIVE STYLES (Mobile First Approach)
=============================================
*/
@media (max-width: 991px) {
    /* Reduce spacing for author cards on tablets */
    .authors-section .row {
        --bs-gutter-x: 1.5rem;
    }
}

@media (max-width: 767px) {
    /* General Section Adjustments */
    .section-title-custom { font-size: 2.2rem; }
    .authors-section { padding: 3rem 0; }
    .partner-section { padding: 3rem 0; }
    
    /* Authors Section on Mobile */
    .authors-section .section-title { font-size: 2rem; }
    .author-image { height: 170px; }
    .author-name { font-size: 1.1rem; }
    .author-role { font-size: 0.8rem; }
    
    /* Partners Section on Mobile */
    .partner-grid { gap: 1.5rem; }
    .partner-item { flex-basis: 120px; }
}

@media (max-width: 576px) {
    .partner-item { flex-basis: 100px; }
}
