/*---------------------------------------
  PALAVER ACADEMY - VISUAL FLOW ENHANCEMENTS            
-----------------------------------------*/

/* Nova Program Sections - Consistent Spacing */
#mentorbox,
#sandbox,
#peerbox {
    padding: 80px 0;
    transition: all 0.4s ease;
}

/* Alternating Background for Visual Rhythm */
#mentorbox {
    background: var(--white-color);
    color: var(--primary-color);
}

#mentorbox h5,
#mentorbox h6,
#mentorbox p,
#mentorbox .custom-block p a[download] {
    color: var(--primary-color);
}

#mentorbox h6,
#mentorbox p {
    color: #444;
}

#sandbox {
    background: rgba(11, 13, 26, 0.4);
    /* Darker background */
    color: var(--white-color);
}

/* Ensure text is light on the dark middle section */
#sandbox h5 {
    color: var(--white-color);
}

#sandbox h6 {
    color: #e0e0e0;
}

#sandbox p {
    color: #cccccc;
}

#peerbox {
    background: var(--white-color);
    color: var(--primary-color);
}

#peerbox h5,
#peerbox h6,
#peerbox p,
#peerbox .custom-block p a[download] {
    color: var(--primary-color);
}

#peerbox h6,
#peerbox p {
    color: #444;
}

/* Video Container Enhancements */
.custom-block-image-wrap {
    position: relative;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.custom-block-image-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Video Styling */
.custom-block-image-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.custom-block-image-wrap:hover video {
    transform: scale(1.02);
}

/* Content Container - Better Typography */
.custom-block .col-lg-12 {
    line-height: 1.8;
}

.custom-block h5 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.custom-block span {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.custom-block h6 {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
}

.custom-block p {
    font-size: 15px;
    line-height: 1.7;
}

/* Creative Download Prompt */
.custom-block p a[download] {
    display: inline-block;
    position: relative;
    color: var(--gold-muted);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.custom-block p a[download]:hover {
    color: var(--gold-deep);
    border-bottom-color: var(--gold-muted);
    padding-left: 8px;
}

.custom-block p a[download]::before {
    content: "→";
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.custom-block p a[download]:hover::before {
    transform: translateX(4px);
}

/* Section Dividers - Subtle Visual Connectors */
.custom-block {
    position: relative;
    margin-bottom: 0;
}

.custom-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(184, 155, 94, 0.3) 50%,
            transparent 100%);
}

.custom-block:last-child::after {
    display: none;
}

/* CTA Button Enhancements */
.custom-block .custom-btn {
    margin-top: 12px;
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.custom-block .custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 155, 94, 0.3);
}

/* Border Top Styling */
.custom-block .border-top {
    border-color: rgba(0, 0, 0, 0.08) !important;
    margin-top: 32px;
    padding-top: 24px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    #mentorbox,
    #sandbox,
    #peerbox {
        padding: 60px 0;
    }

    .custom-block-image-wrap {
        margin-bottom: 32px;
    }

    .custom-block h5 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    #mentorbox,
    #sandbox,
    #peerbox {
        padding: 48px 0;
    }

    .custom-block h5 {
        font-size: 22px;
    }

    .custom-block h6 {
        font-size: 15px;
    }
}

/* Scroll Animation - Dynamic Slide */
.academy-text-animate {
    opacity: 0;
    transform: translateX(-100px);
    /* Start "inside" the video area */
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.academy-text-animate.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Ensure Video stays above for sliding effect */
.custom-block-image-wrap {
    z-index: 2;
    position: relative;
    background: #000;
}

.custom-block {
    animation: none;
}

/* Stagger animation for multiple blocks */
#mentorbox {
    animation-delay: 0.1s;
}

#sandbox {
    animation-delay: 0.2s;
}

#peerbox {
    animation-delay: 0.3s;
}