/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
.homepage-quiz-banner {
    padding: 60px 0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.quiz-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px; /* Protects edges on all screens */
    box-sizing: border-box;
}

/* ==========================================================================
   2. Main Layout Wrapper (Desktop First)
   ========================================================================== */
.quiz-banner-wrapper {
    display: flex;
    background-color: #ebf4ff;
    border-radius: 16px;
    overflow: hidden;
}

/* Left Side: Content Box */
.quiz-content {
    flex: 1;
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #162b65;
    line-height: 1.2;
    margin: 0 0 24px 0;
}

/* CTA Button Link Group */
.quiz-btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.quiz-btn-group .btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.quiz-btn-group .btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.btn-quiz-dark {
    background-color: #162b65;
    color: #ffffff;
}

.btn-quiz-light {
    background-color: #ffffff;
    color: #162b65;
    border: 1px solid #162b65; /* Better visibility against light blue bg */
}

.quiz-subtext {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

/* Right Side: Image Box */
.quiz-image {
    flex: 1;
    width: 50%;
    background-size: cover;
    background-position: center center;
}

/* ==========================================================================
   3. Tablet Responsive Viewports
   ========================================================================== */
@media (max-width: 992px) {
    .homepage-quiz-banner {
        padding: 40px 0;
    }
    
    .quiz-content {
        padding: 40px;
    }
    
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-btn-group {
        flex-direction: column; /* Prevents button collision on medium screens */
        gap: 12px;
    }
    
    .quiz-btn-group .btn {
        width: 100%;
        white-space: normal;
    }
}

/* ==========================================================================
   4. Mobile Responsive Viewports
   ========================================================================== */
@media (max-width: 768px) {
    .quiz-banner-container {
        padding: 0 16px;
    }
    
    .quiz-banner-wrapper {
        flex-direction: column; /* Stacks text on top of the image */
    }
    
    .quiz-content {
        width: 100%;
        padding: 40px 24px;
    }
    
    .quiz-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .quiz-image {
        width: 100%;
        height: 280px; /* Gives the image an explicit size on mobile stack */
    }
}
