/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00843D;
    --secondary-color: #0053A5;
    --accent-color: #FFD700;
    --danger-color: #D32F2F;
    --success-color: #388E3C;
    --text-dark: #212121;
    --text-light: #616161; /* WCAG AA compliant - 6.17:1 contrast ratio on white */
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Disable text selection for question content */
.question-item,
.question-text,
.answer-option,
.explanation,
#questionText,
#questionBankContent,
.quiz-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Buttons */
.btn {
    padding: 14px 28px; /* Increased for 44px minimum touch target */
    min-height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #006B30;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #004286;
}

.btn-upgrade {
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-size: 18px;
    padding: 14px 32px;
}

.btn-upgrade:hover {
    background-color: #FFC400;
    transform: scale(1.05);
}

.btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    padding: 32px;
    border-radius: 16px;
    max-width: 460px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    margin-bottom: 8px;
    color: var(--primary-color);
    text-align: center;
    font-size: 24px;
}

.modal-content p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    min-height: 44px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Auth Form */
#authForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

#authForm input,
#resetPasswordForm input {
    padding: 11px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#authForm input:focus,
#resetPasswordForm input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#authForm input.valid {
    border-color: var(--success-color);
}

#authForm input.invalid,
#resetPasswordForm input.invalid {
    border-color: var(--danger-color);
}

/* Password Visibility Toggle */
.password-input-group {
    position: relative;
    width: 100%;
}

.password-input-group input {
    padding-right: 56px !important; /* Space for toggle button */
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
    /* Mobile-specific touch enhancements */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 132, 61, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--primary-color);
    background: rgba(0, 132, 61, 0.05);
    border-radius: 50%;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.9);
}

.password-toggle .toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Eye icon states */
.password-toggle[data-visible="false"] .toggle-icon {
    /* Eye closed icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.password-toggle[data-visible="true"] .toggle-icon {
    /* Eye open with slash icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300843D' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.field-error {
    color: var(--danger-color);
    font-size: 13px;
    min-height: 0;
    display: block;
    transition: all 0.2s ease;
}

.field-error:not(:empty) {
    min-height: 18px;
    margin-top: 4px;
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    text-align: center;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-bar-fill.weak {
    width: 33%;
    background-color: var(--danger-color);
}

.strength-bar-fill.medium {
    width: 66%;
    background-color: var(--accent-color);
}

.strength-bar-fill.strong {
    width: 100%;
    background-color: var(--success-color);
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 32px;
    margin: 10px 0;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #FFD700;
    transform: scale(1.1);
}

.star-rating .star.active {
    color: #FFD700;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-light);
    font-size: 16px;
}

/* Skeleton Screens */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        #e0e0e0 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 44px;
    width: 120px;
}

.skeleton-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Email Verification Banner */
.verification-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 999;
    max-width: 600px;
    width: 90%;
    animation: slideDown 0.3s ease-out;
}

.verification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.verification-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.verification-text {
    flex: 1;
    min-width: 0;
}

.verification-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.verification-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.btn-secondary-small {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary-small:hover {
    background: rgba(255,255,255,0.3);
}

.btn-secondary-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 32px;
    min-height: 32px;
}

.btn-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive verification banner */
@media (max-width: 768px) {
    .verification-banner {
        top: 70px;
        padding: 12px 15px;
        width: 95%;
    }

    .verification-content {
        gap: 10px;
        flex-wrap: wrap;
    }

    .verification-icon {
        font-size: 24px;
    }

    .verification-text strong {
        font-size: 14px;
    }

    .verification-text p {
        font-size: 12px;
    }

    .btn-secondary-small {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Bookmark Styles */
.question-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bookmark-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.bookmark-button.bookmarked {
    background: var(--primary-color);
    color: #FFD700;
    border-color: var(--primary-color);
}

.bookmark-button.bookmarked:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Bookmarks Section */
.bookmarks-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.bookmarks-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.select-control {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
}

.select-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.bookmarks-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item:first-child {
    padding-right: 16px;
    border-right: 2px solid var(--border-color);
    flex-shrink: 0;
}

.stat-item.section-breakdown-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.section-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 132, 61, 0.08);
    border: 1px solid rgba(0, 132, 61, 0.2);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.section-badge .section-name {
    font-weight: 700;
}

.section-badge .section-count {
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Bookmarks List */
.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.bookmark-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s;
}

.bookmark-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}

.bookmark-section-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bookmark-date {
    font-size: 13px;
    color: var(--text-light);
    flex: 1;
    text-align: right;
    margin-right: 10px;
}

.btn-remove-bookmark {
    background: transparent;
    border: none;
    color: #FFD700;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-bookmark:hover {
    transform: scale(1.2) rotate(15deg);
}

.bookmark-question,
.bookmark-answer,
.bookmark-description {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.bookmark-question {
    font-weight: 500;
}

.bookmark-question strong,
.bookmark-answer strong,
.bookmark-description strong {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8fef9 0%, #ffffff 100%);
    border: 2px dashed rgba(0, 132, 61, 0.2);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 132, 61, 0.1), rgba(0, 83, 165, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 95, 45, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: bottom 0.3s ease-out;
    font-weight: 500;
    white-space: nowrap;
}

.toast-notification.show {
    bottom: 30px;
}

/* Unified Modal System */
.unified-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unified-modal.show {
    opacity: 1;
}

.unified-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.unified-modal.show .unified-modal-content {
    transform: scale(1);
}

.unified-modal-header {
    padding: 24px 30px 16px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.unified-modal-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
}

.unified-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.unified-modal-body {
    padding: 20px 30px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.unified-modal-footer {
    padding: 16px 30px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.unified-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unified-modal-btn.btn-primary {
    background: var(--primary-color);
    color: white;
}

.unified-modal-btn.btn-primary:hover {
    background: #234d24;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 95, 45, 0.3);
}

.unified-modal-btn.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.unified-modal-btn.btn-secondary:hover {
    background: #e0e0e0;
}

/* Type-specific styling */
.unified-modal[data-type="success"] .unified-modal-header {
    border-bottom-color: rgba(44, 95, 45, 0.2);
}

.unified-modal[data-type="error"] .unified-modal-header {
    border-bottom-color: rgba(220, 53, 69, 0.2);
}

.unified-modal[data-type="warning"] .unified-modal-header {
    border-bottom-color: rgba(255, 193, 7, 0.2);
}

.unified-modal[data-type="info"] .unified-modal-header {
    border-bottom-color: rgba(13, 110, 253, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .unified-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .unified-modal-header {
        padding: 20px 20px 14px;
    }

    .unified-modal-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .unified-modal-title {
        font-size: 19px;
    }

    .unified-modal-body {
        padding: 16px 20px;
        font-size: 14px;
    }

    .unified-modal-footer {
        padding: 14px 20px 20px;
        flex-direction: column;
    }

    .unified-modal-btn {
        width: 100%;
    }
}

/* Responsive Bookmarks */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookmarks-controls {
        width: 100%;
        flex-direction: column;
    }

    .bookmarks-controls .btn,
    .select-control {
        width: 100%;
    }

    .bookmarks-stats {
        flex-direction: column;
        gap: 15px;
    }

    .bookmark-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookmark-date {
        text-align: left;
        margin-right: 0;
    }

    .question-actions {
        gap: 5px;
    }

    .bookmark-button {
        font-size: 18px;
        padding: 6px 10px;
    }
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

header h1 {
    font-size: 24px;
    transition: opacity 0.3s ease;
}

header h1:hover {
    opacity: 0.8;
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    background-color: #FFECB3;
    color: #FFA000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-badge {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

/* Dashboard */
#dashboard h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-color);
}

/* Upgrade Section */
.upgrade-section {
    background: linear-gradient(135deg, var(--accent-color), #FFA000);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.upgrade-section h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.upgrade-section ul {
    margin: 20px 0;
    padding-left: 24px;
}

.upgrade-section li {
    margin: 8px 0;
    font-size: 16px;
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideDown 0.5s ease;
}

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

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.banner-text p {
    margin: 0;
    opacity: 0.9;
}

.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    opacity: 1;
}

/* Upgrade Card (Dashboard) - Compact Banner */
.upgrade-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 132, 61, 0.15);
}

.upgrade-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.upgrade-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.upgrade-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.upgrade-title {
    flex: 1;
    min-width: 0;
}

.upgrade-title h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.upgrade-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.upgrade-features {
    display: none;
}

.upgrade-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.upgrade-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: white;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
}

.price-period {
    font-size: 13px;
    opacity: 0.9;
}

.btn-upgrade-large {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-upgrade-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Results Upgrade CTA */
.results-upgrade-cta {
    background: linear-gradient(135deg, #F3F9FF, #E8F5FF);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.cta-content h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 24px;
}

.cta-content ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.cta-content li {
    margin: 12px 0;
    font-size: 16px;
}

.cta-price {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 20px 0;
}

/* Quiz Modes */
.quiz-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.mode-card {
    background-color: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mode-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.mode-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 20px;
    display: inline-block;
}

.mode-card p {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.5;
}

.mode-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-free {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
}

.mode-info {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

.rate-limit-info {
    margin: 16px 0;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.rate-limit-warning {
    color: var(--danger-color);
}

/* Subscription Section */
.subscription-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 32px;
    border: 2px solid rgba(0, 132, 61, 0.1);
}

.subscription-section h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscription-section h3::before {
    content: "⭐";
    font-size: 24px;
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.subscription-item {
    padding: 14px 16px;
    background-color: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.subscription-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.subscription-item strong {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subscription-item span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

/* History Section */
.history-section {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.history-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.history-item {
    background-color: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
    overflow: hidden;
}

.history-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.history-item.passed {
    border-left: 4px solid var(--success-color);
}

.history-item.failed {
    border-left: 4px solid var(--danger-color);
}

.history-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
}

.history-left {
    flex: 1;
    min-width: 0;
}

.history-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 4px;
}

.mode-icon {
    font-size: 16px;
}

.history-date {
    font-size: 11px;
    color: var(--text-light);
}

.history-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-metrics {
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.metric.percentage .metric-value-large {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.history-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.history-status.passed {
    background-color: rgba(76, 175, 80, 0.12);
    color: var(--success-color);
}

.history-status.failed {
    background-color: rgba(244, 67, 54, 0.12);
    color: var(--danger-color);
}

.status-icon {
    font-size: 12px;
    font-weight: 700;
}

/* Quiz Container */
.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.btn-quit-test {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-quit-test:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-quit-test .quit-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.btn-quit-test .quit-text {
    font-size: 14px;
}

.quiz-progress {
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 200px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Question Container */
.question-container {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.question-header h3 {
    flex: 1;
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-dark);
}

.tts-button {
    background-color: var(--secondary-color);
    border: none;
    padding: 14px; /* Increased for 44px minimum touch target */
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tts-button:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Choices Container */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-button {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-button:hover {
    border-color: var(--primary-color);
    background-color: #F0F8F5;
    transform: translateX(4px);
}

.choice-button.correct {
    background-color: #E8F5E9;
    border-color: var(--success-color);
    font-weight: 600;
}

.choice-button.incorrect {
    background-color: #FFEBEE;
    border-color: var(--danger-color);
    font-weight: 600;
}

.choice-button:disabled {
    cursor: not-allowed;
}

/* Feedback Container */
.feedback-container {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--bg-light);
}

.feedback-message {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feedback-message.correct {
    color: var(--success-color);
}

.feedback-message.incorrect {
    color: var(--danger-color);
}

.feedback-description {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

/* Results Container */
.results-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.results-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 32px;
}

/* Visual Score Display */
.results-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 12;
}

.score-circle-progress {
    fill: none;
    stroke: var(--success-color);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534.07; /* 2 * PI * 85 */
    stroke-dashoffset: 534.07;
    transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.score-circle-progress.fail {
    stroke: var(--danger-color);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-percentage {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.score-label {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 4px;
}

.status-badge {
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.status-badge.pass {
    background-color: var(--success-color);
    color: var(--white);
}

.status-badge.fail {
    background-color: var(--danger-color);
    color: var(--white);
}

.results-score {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.results-status {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    padding: 16px;
    border-radius: 8px;
}

.results-status.passed {
    background-color: #E8F5E9;
    color: var(--success-color);
}

.results-status.failed {
    background-color: #FFEBEE;
    color: var(--danger-color);
}

.results-breakdown {
    margin-bottom: 32px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
    border-bottom: none;
}

/* Wrong Answers Section */
.wrong-answers-section {
    margin: 32px 0;
}

.wrong-answers-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.wrong-answer-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--danger-color);
}

.wrong-answer-question {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.wrong-answer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wrong-answer-your,
.wrong-answer-correct {
    padding: 8px 12px;
    border-radius: 4px;
}

.wrong-answer-your {
    background-color: #FFEBEE;
    color: var(--danger-color);
}

.wrong-answer-correct {
    background-color: #E8F5E9;
    color: var(--success-color);
}

.wrong-answer-description {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 20px;
    }

    .modal-content {
        padding: 24px;
    }

    .quiz-modes {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 24px;
    }

    .question-container {
        padding: 20px;
    }

    .question-header {
        flex-direction: column;
    }

    .tts-button {
        align-self: flex-start;
    }

    .results-content {
        padding: 24px;
    }

    .results-content h2 {
        font-size: 24px;
    }

    .results-score {
        font-size: 36px;
    }

    .results-status {
        font-size: 18px;
    }

    .breakdown-item {
        flex-direction: column;
        gap: 8px;
    }

    /* Responsive history items */
    .history-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .history-right {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .history-metrics {
        width: 100%;
        justify-content: space-between;
    }

    .history-status {
        align-self: flex-start;
    }

    /* Responsive bookmarks stats */
    .bookmarks-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item:first-child {
        padding-right: 0;
        border-right: none;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--border-color);
        justify-content: center;
    }

    .stat-item.section-breakdown-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-header-top {
        flex-wrap: wrap;
    }

    .btn-quit-test .quit-text {
        display: none;
    }

    .btn-quit-test {
        padding: 8px 12px;
    }

    /* Responsive upgrade card */
    .upgrade-card-content {
        flex-wrap: wrap;
    }

    .upgrade-card-header {
        flex: 1 1 100%;
    }

    .upgrade-card-footer {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .upgrade-icon {
        font-size: 20px;
    }

    .upgrade-title h3 {
        font-size: 14px;
    }

    .upgrade-subtitle {
        font-size: 12px;
    }

    .price-amount {
        font-size: 16px;
    }

    .btn-upgrade-large {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* ============================================ */
/* MARKETING LANDING PAGE STYLES */
/* ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-cta {
    margin-bottom: 20px;
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-size: 20px;
    padding: 18px 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background-color: #FFC400;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hero-note {
    font-size: 14px;
    opacity: 0.8;
}

.hero-faq-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.hero-faq-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.price span {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.pricing-footer p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.pricing-faq-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pricing-faq-link:hover {
    color: var(--accent-color);
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: var(--white);
}

.blog-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.blog-preview-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.blog-preview-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color);
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-preview-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.blog-preview-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.blog-preview-card p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-preview-readmore {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-preview-card:hover .blog-preview-readmore {
    color: var(--accent-color);
}

.blog-preview-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-outline-alt {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-alt:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-premium {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-premium:hover {
    background-color: #FFC400;
    transform: translateY(-2px);
}

/* Landing Footer */
.landing-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-note {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.6;
    font-style: italic;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-separator {
    color: var(--white);
    opacity: 0.5;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-separator {
        display: none;
    }
}

/* Modal Close Button */
.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    min-width: 44px; /* 44px minimum touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-content {
    position: relative;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
    color: var(--text-light);
    font-size: 14px;
}

/* Google Sign-In Button */
.btn-google {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 600;
}

.btn-google:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google svg {
    flex-shrink: 0;
}

/* ============================================ */
/* QUESTION BANK SECTION STYLES */
/* ============================================ */

.question-bank-section {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

.question-bank-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.question-bank-section h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 0;
}

.question-bank-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.question-count {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.last-updated {
    color: var(--text-light);
    font-size: 13px;
    background-color: var(--background-color);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.question-bank-filters {
    margin: 16px 0;
    padding: 12px 16px;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.filter-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.filter-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.question-bank-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-group {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-group.locked {
    opacity: 0.6;
    background-color: var(--bg-light);
}

.section-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.section-header:hover {
    background-color: #006B30;
}

.section-header.locked {
    background-color: var(--text-light);
    cursor: default;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
}

.section-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.btn-section-test {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-section-test:hover {
    background-color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-section-test:active {
    transform: translateY(0);
}

.section-expand-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.section-expand-icon.expanded {
    transform: rotate(180deg);
}

.section-questions {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    background-color: var(--white);
}

.section-questions.expanded {
    max-height: 400px; /* Or any other height you prefer */
    overflow-y: auto;
}

.question-item {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

.question-item:first-child {
    border-top: none;
}

.question-item:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.question-text {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 6px rgba(255, 107, 107, 0.5);
    }
}

.question-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.choice-item {
    padding: 16px 20px; /* Increased for 44px minimum touch target */
    min-height: 48px;
    background-color: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid transparent;
    margin-bottom: 12px;
}

.choice-item.correct-answer {
    background-color: #E8F5E9;
    border-left-color: var(--success-color);
    font-weight: 600;
}

.question-description {
    padding: 12px 16px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
}

.locked-overlay {
    padding: 40px;
    text-align: center;
    background-color: var(--bg-light);
}

.locked-overlay h4 {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.locked-overlay p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive Landing Page */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-cta {
        font-size: 18px;
        padding: 14px 32px;
    }

    .features h2,
    .pricing h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .blog-preview h2 {
        font-size: 28px;
    }

    .blog-preview-subtitle {
        font-size: 16px;
    }

    .blog-preview-cards {
        grid-template-columns: 1fr;
    }

    .blog-preview-card {
        padding: 24px;
    }

    .blog-preview-icon {
        font-size: 40px;
    }

    .blog-preview-card h3 {
        font-size: 20px;
    }

    .blog-preview-card p {
        font-size: 15px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .landing-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
