/* Floating CTA buttons: shared styling for passMCQ and Latest News */
.floating-mcq-button,
.floating-news-button {
    position: fixed;
    bottom: 20px;
    background-color: var(--cta-color);
    color: var(--dark-accent);
    padding: 12px 15px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 1.3;
    width: 140px;
    border: 2px solid transparent;
}

.floating-cta-stack {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    z-index: 1000;
}

.floating-cta-stack .floating-mcq-button,
.floating-cta-stack .floating-news-button {
    position: static;
}

.floating-mcq-button {
    left: 20px;
    bottom: calc(20px + 75px);
}

.floating-news-button {
    left: 20px;
    bottom: 20px;
    background-color: var(--accent-color);
    color: #ffffff;
}

.floating-news-button i {
    color: #ffffff;
}

.floating-news-button .floating-news-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ffffff;
    color: var(--accent-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 0;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.floating-news-button .floating-news-close:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.05);
}

.floating-news-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    display: none;
}

.floating-mcq-button i {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--dark-accent);
}

.floating-news-button i {
    color: #ffffff;
}

.floating-mcq-button span,
.floating-news-button span {
    display: block;
    width: 100%;
    line-height: 1.2;
}

.floating-mcq-button:hover,
.floating-news-button:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.25);
}

.floating-mcq-button:hover i,
.floating-news-button:hover i {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .floating-mcq-button,
    .floating-news-button {
        width: 120px;
        padding: 6px 8px;
        bottom: 15px;
        font-size: 0.75rem;
        line-height: 1.2;
        min-height: auto;
    }

    .floating-cta-stack {
        left: 15px;
        bottom: 15px;
        gap: 5px;
    }

    .floating-mcq-button {
        left: 15px;
        bottom: calc(15px + 70px);
    }

    .floating-news-button {
        left: 15px;
        bottom: 15px;
    }

    .floating-news-button .floating-news-close {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .floating-mcq-button i,
    .floating-news-button i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .floating-mcq-button span,
    .floating-news-button span {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}
