/* 
 * File: slider-alignment-fix.css — AMRIC
 * Last-loaded slider stylesheet — !important overrides are intentional.
 * Also owns the typewriter animation entry styles.
 */

/* ── Perfect centering of the content box ── */
.slide-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;

    /* Width: comfortable reading box, not edge-to-edge */
    width: 88% !important;
    max-width: 760px !important;

    /* Frosted-glass card */
    background: rgba(14, 42, 16, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(249, 168, 37, 0.25) !important;
    border-top: 3px solid rgba(249, 168, 37, 0.7) !important;
    border-radius: 16px !important;
    padding: 28px 24px 24px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35) !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

/* ── Title ── */
.slide-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(1.3rem, 4vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
    margin-bottom: 14px !important;
    /* hide until typewriter fires */
    min-height: 1.5em;
}

.slide-title span {
    color: #F9A825 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Typewriter cursor on active slide title */
.slide.active .slide-title::after {
    content: '|';
    color: #F9A825;
    animation: cursorBlink 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}
/* Remove cursor once typing is done */
.slide.active .slide-title.typed-done::after {
    display: none;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Description — fade-up in after title ── */
.slide-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 580px !important;
    font-size: clamp(0.88rem, 2vw, 1.05rem) !important;
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.65 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
    margin-bottom: 20px !important;
    /* hidden until fade-up fires */
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}
.slide-description.desc-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Button — fade-up after description ── */
.slide-btn {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 12px 28px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #F9A825, #e68900) !important;
    color: #fff !important;
    border: 2px solid rgba(249,168,37,0.6) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(249,168,37,0.35) !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease !important;
}
.slide-btn.btn-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.slide-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 28px rgba(249,168,37,0.5) !important;
    background: linear-gradient(135deg, #e68900, #F9A825) !important;
}

/* ── Overlay gradient ── */
.slide::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to bottom,
        rgba(10, 30, 10, 0.38) 0%,
        rgba(10, 30, 10, 0.18) 40%,
        rgba(10, 30, 10, 0.18) 60%,
        rgba(10, 30, 10, 0.55) 100%
    ) !important;
    z-index: 5 !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .slide-content {
        width: 92% !important;
        padding: 22px 18px 20px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 480px) {
    .slide-content {
        width: 94% !important;
        padding: 18px 14px 16px !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .slide-description,
    .slide-btn {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .slide.active .slide-title::after { animation: none !important; }
}