/* ================= Membership page ================= */
body {
    background-color: #F5F5F5;
}

.smallpages {
    background: linear-gradient(rgba(28, 18, 48, 0.55), rgba(28, 18, 48, 0.6)),
                url('images/uw_quad.jpg') no-repeat center center / cover;
    color: white;
    text-align: center;
    padding: clamp(6rem, 18vw, 12rem) 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smallpages > div {
    max-width: 760px;
    margin: 0 auto;
}

.smallpages h1 {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.smallpages .explanation {
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ---- Actions ---- */
.membership-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.membership-actions .btn {
    padding: 0.9rem 2.4rem;
    background-color: var(--purple);
    color: white;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.25rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.membership-actions .btn:hover {
    background-color: #4A007E;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.membership-actions .or-text {
    font-size: 1.4rem;
    color: white;
    font-weight: bold;
}

.membership-actions .qrcode {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}

/* ---- Entrance animation ---- */
.smallpages h1,
.smallpages .explanation,
.membership-actions .btn,
.membership-actions .or-text,
.membership-actions .qrcode {
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) forwards;
}

.smallpages h1              { animation-delay: 0.1s; }
.smallpages .explanation    { animation-delay: 0.35s; }
.membership-actions .btn,
.membership-actions .or-text,
.membership-actions .qrcode { animation-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
    .membership-actions .qrcode {
        width: 120px;
    }
}
