/* Custom CSS for Doyenne website */

/* About section image styling */
section.about-one .about-one__img img {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}


/* Scroll down button styling */
.scroll-down-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto 0;
    width: 100%;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background-color: #ff6b35;
    transform: translateY(-5px);
    color: white;
}

/* Animation for the bounce effect */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* ------------------------------ */
/* Founder's Note: Multi-columns  */
/* ------------------------------ */
.founders-note-columns {
    column-count: 1; /* mobile-first */
    column-gap: 2rem;
    column-rule: 1px solid rgba(255, 255, 255, 0.15);
}

.founders-note-columns p {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.founders-note-columns p:last-child {
    margin-bottom: 0;
}

/* >= md */
@media (min-width: 768px) {
    .founders-note-columns { column-count: 2; }
}
/* >= lg */
@media (min-width: 992px) {
    .founders-note-columns { column-count: 3; }
}
/* >= xl */
@media (min-width: 1200px) {
    .founders-note-columns { column-count: 4; }
}

/* Niongoze Fellowship Timeline */
.nf-timeline {
    position: relative;
    margin-top: 20px;
    padding-left: 40px;
}

.nf-timeline:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.nf-timeline__item {
    position: relative;
    margin-bottom: 28px;
}

.nf-timeline__marker {
    position: absolute;
    left: -2px;
    top: 0.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--chioary-base);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.nf-timeline__content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 22px 22px 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.nf-timeline .model-details__points {
    margin-top: 14px;
}

.nf-timeline .model-details__points li p {
    margin: 0;
}

@media (min-width: 992px) {
    .nf-timeline { padding-left: 48px; }
    .nf-timeline:before { left: 22px; }
    .nf-timeline__marker { left: 0; width: 40px; height: 40px; }
}

/* Niongoze Fellowship paragraph cards */
.nf-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 22px 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    height: 100%;
}

.nf-card .model-details__title-2 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.nf-card .model-details__text-3 {
    margin: 0;
}

@media (min-width: 992px) {
    .nf-card .model-details__title-2 {
        font-size: 22px;
    }
}

/* Alternating backgrounds for cards */
.model-details__bottom-left .row > [class*="col-"]:nth-child(even) .nf-card {
    background: #fff6f2; /* light-tint background */
    border-color: var(--chioary-base);
}

/* Subtle hover for all cards */
.nf-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    transition: all .2s ease;
}

/* ------------------------------ */
/* Cohorts cards spacing tweaks    */
/* ------------------------------ */

.services-one .services-one__img-box { padding: 12px; }
.services-one .services-one__img { margin: 0; position: relative; overflow: hidden; }
.services-one .services-one__img-box { position: relative; }

/* Overlay the title centered over the image */
.services-one .services-one__content {
    position: absolute !important;
    inset: 12px; /* align with inner image edges */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.services-one .services-one__content-inner { padding: 0; }

.services-one .services-one__title { margin: 0; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.services-one .services-one__title a { color: #fff; transition: color .2s ease; }
/* Hover: change overlay title color */
.services-one .services-one__single:hover .services-one__title a { color: var(--chioary-base); }

/* Image overlay covering the entire card */
.services-one .services-one__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.45)
    );
    transition: opacity .25s ease, background .25s ease;
    pointer-events: none;
}
.services-one .services-one__single:hover .services-one__img::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.60)
    );
}

.services-one .services-one__single {
    margin-bottom: 24px; /* tighten vertical spacing */
}

/* ------------------------------ */
/* Cohorts sidebar: responsive sticky */
/* ------------------------------ */

.sidebar .sidebar__all-category {
    position: static; /* default for mobile/tablet */
}

@media (min-width: 992px) {
    .sidebar .sidebar__all-category {
        position: static; /* sticky will be on the container */
    }
    /* Make the sidebar column content-sized and allow sticky inside flex layout */
    .blog-details .col-lg-4,
    .blog-details .col-xl-3 { 
        align-self: flex-start; 
    }
    .sidebar { 
        position: sticky; 
        top: 80px; 
        z-index: 3; 
        height: max-content; 
    }
    /* Ensure no ancestors clip sticky */
    .blog-details .container, 
    .blog-details .row { 
        overflow: visible; 
    }
}
