@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800;900&display=swap');

/* =====================================
   Q-BEE MASCOT ANIMATION SYSTEM
   Official 3D Animated Companions
===================================== */

/* BASE MASCOT - 100% TRANSPARENT BACKGROUND (ZERO BOX, ZERO CONTAINER) */
.qb-bee,
.qb-bee-float,
.qb-bee-happy,
.qb-bee-bounce,
.qb-bee-fly,
.qb-bee-swoop,
.qb-bee-wiggle,
.qb-bee-flutter,
.qb-bee-celebrate,
.qb-bee-idle,
.qb-bee-peek {
    display: inline-block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.qb-bee-transparent,
.qb-bee-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 1. GENTLE FLOATING BEE */
@keyframes qbFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.qb-bee-float {
    animation: qbFloat 3.5s ease-in-out infinite;
}

/* 2. HAPPY BOUNCING BEE */
@keyframes qbBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-16px) scale(1.04);
    }
    65% {
        transform: translateY(-5px) scale(0.98);
    }
}

.qb-bee-happy {
    animation: qbBounce 1.8s ease-in-out infinite;
}

/* 3. HOVERING / FLYING BEE */
@keyframes qbFly {
    0% {
        transform: translate(0, 0) rotate(-4deg);
    }
    25% {
        transform: translate(12px, -10px) rotate(3deg);
    }
    50% {
        transform: translate(25px, -4px) rotate(-2deg);
    }
    75% {
        transform: translate(12px, 5px) rotate(4deg);
    }
    100% {
        transform: translate(0, 0) rotate(-4deg);
    }
}

.qb-bee-fly {
    animation: qbFly 6s ease-in-out infinite;
}

/* 4. CELEBRATION ANIMATION */
@keyframes qbCelebrate {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    40% {
        transform: scale(1.15) rotate(8deg);
        opacity: 1;
    }
    65% {
        transform: scale(0.95) rotate(-4deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.qb-bee-celebrate {
    animation: qbCelebrate 0.9s ease-out both;
}

/* 5. GENTLE SIDE-TO-SIDE MOVEMENT */
@keyframes qbWiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.qb-bee-wiggle {
    animation: qbWiggle 3s ease-in-out infinite;
}

/* 6. PEEKING FROM EDGE */
@keyframes qbPeek {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) rotate(4deg);
    }
}

.qb-bee-peek {
    animation: qbPeek 4s ease-in-out infinite;
}

/* 7. IDLE BEE */
@keyframes qbIdle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.qb-bee-idle {
    animation: qbIdle 4.5s ease-in-out infinite;
}

/* 8. MASCOT SIZES & GIANT BEES */
.qb-bee-tiny {
    width: 36px;
    height: 36px;
}

.qb-bee-small {
    width: 65px;
}

.qb-bee-medium {
    width: 120px;
}

.qb-bee-large {
    width: 200px;
}

.qb-bee-giant {
    width: 280px;
    max-width: 90vw;
}

/* 9. BIG SWOOPING & FLYING PATH ANIMATION */
@keyframes qbSwoopFlight {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(15px, -18px) rotate(6deg) scale(1.03);
    }
    45% {
        transform: translate(-10px, -30px) rotate(-5deg) scale(1.05);
    }
    70% {
        transform: translate(18px, -12px) rotate(4deg) scale(1.02);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.qb-bee-swoop {
    animation: qbSwoopFlight 7s ease-in-out infinite;
}

/* 10. FLUTTER BUZZ ANIMATION */
@keyframes qbFlutter {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.02) rotate(-2deg);
    }
    50% {
        transform: translateY(-2px) scale(0.99) rotate(2deg);
    }
    75% {
        transform: translateY(-10px) scale(1.03) rotate(-1deg);
    }
}

.qb-bee-flutter {
    animation: qbFlutter 2.2s ease-in-out infinite;
}

/* 11. GENTLE DRIFT ACROSS BACKGROUND */
@keyframes qbDriftSoft {
    0% {
        transform: translateY(0) translateX(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-16px) translateX(12px) rotate(4deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(-3deg);
    }
}

.qb-bee-drift {
    animation: qbDriftSoft 5s ease-in-out infinite;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .qb-bee-giant {
        width: 180px;
    }
    .qb-bee-large {
        width: 130px;
    }
    .qb-bee-medium {
        width: 85px;
    }
    .qb-bee-small {
        width: 48px;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .qb-bee,
    .qb-bee-float,
    .qb-bee-happy,
    .qb-bee-fly,
    .qb-bee-celebrate,
    .qb-bee-wiggle,
    .qb-bee-peek,
    .qb-bee-idle {
        animation: none !important;
        will-change: auto;
    }
}

/* ==============================================================
   KRISTON LAW PRACTICE TYPOGRAPHY & LIGHT 3D STYLING
   Soft Ivory (#F7F8FC), Pure White (#FFFFFF), Royal Blue (#174EA6),
   Deep Navy (#14264A) & Champagne Gold (#D9AD55)
============================================================== */
.qb-practice-question {
    color: #14264A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: -0.015em !important;
}

.qb-practice-question-box {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E9F6 !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 32px -6px rgba(20, 38, 74, 0.12) !important;
}

.qb-practice-option-text {
    color: #14264A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
}

.qb-practice-concept-text {
    color: #14264A !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
}

.qb-3d-text-blue,
.qb-rubber-candy-text {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700 !important;
    color: #14264A !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
    display: block;
}

.qb-rubber-candy-text-white {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    display: block;
}

@keyframes qbBoardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.qb-floating-question-board {
    border: 1.5px solid #E2E9F6 !important;
    border-bottom: 4px solid #D3E1F5 !important;
    border-radius: 24px !important;
    background: #FFFFFF !important;
    box-shadow: 0 16px 36px -8px rgba(20, 38, 74, 0.12) !important;
    position: relative;
    overflow: hidden;
}

.qb-board-half-accent {
    background: linear-gradient(135deg, #EAF1FC 0%, rgba(217, 173, 85, 0.14) 100%);
    border-bottom: 1.5px solid #E2E9F6;
}

.qb-float-opt-0,
.qb-float-opt-1,
.qb-float-opt-2,
.qb-float-opt-3 {
    animation: none;
}

/* Individual Floating 3D Rectangle Option Styling */
.qb-3d-option-board {
    border: 1.5px solid #BAE6FD !important;
    border-top: 2px solid #FFFFFF !important;
    border-bottom: 4px solid #7DD3FC !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%) !important;
    box-shadow: 0 12px 24px -8px rgba(14, 165, 233, 0.22), 0 4px 10px rgba(11, 36, 71, 0.06) !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    color: #0B2447 !important;
    transition: color 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.qb-3d-option-board:hover:not(:disabled) {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%) !important;
    border-color: #38BDF8 !important;
    border-bottom-color: #0EA5E9 !important;
    color: #0B2447 !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -8px rgba(2, 132, 199, 0.26) !important;
}

.qb-3d-option-board.selected,
.qb-3d-option-board[aria-checked="true"],
.mcq-option-card.selected,
.mcq-option-card[aria-checked="true"] {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%) !important;
    border: 1.5px solid #0284C7 !important;
    border-top: 2px solid #F0F9FF !important;
    border-bottom: 4px solid #0369A1 !important;
    box-shadow: 0 14px 28px -6px rgba(2, 132, 199, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-1px) !important;
    color: #0B2447 !important;
    font-weight: 800 !important;
}

.qb-3d-option-board.selected .qb-practice-option-text,
.qb-3d-option-board[aria-checked="true"] .qb-practice-option-text,
.mcq-option-card.selected .kl-opt-text,
.mcq-option-card[aria-checked="true"] .kl-opt-text,
.mcq-option-card.selected span:not(.kl-opt-letter),
.mcq-option-card[aria-checked="true"] span:not(.kl-opt-letter) {
    color: #0B2447 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.mcq-option-card.selected .kl-opt-letter,
.mcq-option-card[aria-checked="true"] .kl-opt-letter {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    border: 1px solid #0369A1 !important;
}

.qb-3d-option-board:active:not(:disabled) {
    transform: translateY(2px) !important;
    border-bottom-width: 2px !important;
}

/* Light Soft Ivory Practice Background */
.qb-practice-bg {
    background: linear-gradient(180deg, #F7F8FC 0%, #F1F5FC 100%) !important;
    min-height: 100vh;
}

/* ==============================================================
   ANIMATING OBSERVING LAWYERLY OWLS (NON-BLOCKING STRIPS)
   Walks/flies smoothly into view to observe, pauses, exits cleanly
   ============================================================== */
.kl-owl-observe-top,
.kl-owl-observe-bot {
    position: relative;
    width: 100%;
    height: 54px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    background: transparent !important;
}

@keyframes klOwlFlyObserve {
    0%   { left: -16%; transform: translateY(4px) rotate(6deg) scaleX(1); opacity: 0; }
    10%  { opacity: 1; }
    35%  { left: 32%; transform: translateY(-6px) rotate(-2deg) scaleX(1); opacity: 1; }
    52%  { left: 48%; transform: translateY(2px) rotate(3deg) scaleX(1); opacity: 1; }
    68%  { left: 56%; transform: translateY(-5px) rotate(-3deg) scaleX(1); opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 112%; transform: translateY(-2px) rotate(5deg) scaleX(1); opacity: 0; }
}

@keyframes klOwlWalkObserve {
    0%   { left: 108%; transform: translateY(0) rotate(0deg) scaleX(-1); opacity: 0; }
    10%  { opacity: 1; }
    24%  { left: 78%; transform: translateY(-4px) rotate(-4deg) scaleX(-1); }
    34%  { left: 66%; transform: translateY(0) rotate(3deg) scaleX(-1); }
    46%  { left: 64%; transform: translateY(-2px) rotate(0deg) scaleX(-1); }
    58%  { left: 64%; transform: translateY(0) rotate(2deg) scaleX(1); }
    72%  { left: 76%; transform: translateY(-4px) rotate(-3deg) scaleX(1); }
    90%  { opacity: 1; }
    100% { left: 112%; transform: translateY(0) rotate(2deg) scaleX(1); opacity: 0; }
}

.kl-owl-flyer {
    position: absolute;
    top: 2px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    pointer-events: none;
    animation: klOwlFlyObserve 11s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(2, 132, 199, 0.22));
}

.kl-owl-walker {
    position: absolute;
    bottom: 2px;
    width: 46px;
    height: 46px;
    object-fit: contain;
    pointer-events: none;
    animation: klOwlWalkObserve 12.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(11, 36, 71, 0.16));
}

.kl-owl-walker-alt {
    position: absolute;
    bottom: 2px;
    width: 42px;
    height: 42px;
    object-fit: contain;
    pointer-events: none;
    animation: klOwlWalkObserve 14s ease-in-out 5.5s infinite both;
    filter: drop-shadow(0 6px 10px rgba(11, 36, 71, 0.14));
}

@media (prefers-reduced-motion: reduce) {
    .kl-owl-flyer, .kl-owl-walker, .kl-owl-walker-alt {
        animation: none !important;
        left: auto !important;
        right: 12px;
        opacity: 1 !important;
    }
}




