/* ====================== SHORT QUESTIONS MARQUEE ====================== */

.qh-shorts-section {
    background: var(--qh-bg);
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 12px 0;
    border-radius: var(--qh-radius-lg);
    background: var(--qh-surface);
    box-shadow: var(--qh-shadow);
    height: 400px;
    display: flex;
    align-items: center;

    /* 🔥 Fade left & right */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* LEFT FADE */
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--qh-surface) 0%,
        rgba(255,255,255,0) 100%
    );
}

/* RIGHT FADE */
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--qh-surface) 0%,
        rgba(255,255,255,0) 100%
    );
}
/* Pause animation on hover */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
     align-items: stretch;   /* 🔥 makes equal height work */
    gap: 20px;
    width: max-content;
    animation: scroll-left 500s linear infinite;
}
 
/* Duplicate cards for seamless infinite scroll */
.marquee-track::after {
    content: attr(data-clone); /* We'll handle cloning via JS or duplicate in PHP */
    display: none;
}

/* Short Question Card */
.qh-short-card {
    min-width: 320px;
    max-width: 320px;
    height: 360px;

    display: flex;
    flex-direction: column;

    padding: 20px;
    border-radius: var(--qh-radius);

    background: var(--qh-surface);
    border: 1px solid var(--qh-border);

    box-shadow: 0 4px 15px rgba(0,0,0,0.06);

    transition: all 0.3s ease;
}
.qh-short-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12);
    border-color: var(--qh-primary);
}

/* Icon */
.short-icon {
    font-size: 28px;
    color: var(--qh-primary);
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Category Tag */
.short-category {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--qh-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    white-space: nowrap;
}

/* Question */
.short-question {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--qh-text);
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 4;   /* 👈 IMPORTANT */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-answer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--qh-text);

    border-top: 1px solid var(--qh-border);
    padding-top: 10px;
    margin-top: auto;

    display: -webkit-box;
    -webkit-line-clamp: 5;   /* 👈 LIMIT ANSWER */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.short-answer strong {
    color: var(--qh-success);
}
.short-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.short-category {
    margin-bottom: 8px;
}

.short-question {
    margin-bottom: 5px;
}
/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Dark Mode */
.dark-mode .qh-short-card {
    background: var(--qh-surface);
    border-color: var(--qh-border);
}

.dark-mode .short-category {
    background: rgba(11, 234, 237, 0.15);
    color: var(--qh-nav-hover);
}

.dark-mode .short-answer {
    border-top-color: #1e343b;
}



 
