/*!
Theme Name: Quiz Theme
Theme URI: https://andiemini.dev
Author: Andi Emini
Author URI: https://andiemini.dev
Description: Quiz Theme
Version: 1.0.0
Tested up to: 8.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: quiz-theme
*/

/* Update color scheme and base styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Modern Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Quiz Styles */
.background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
}

.section.is--main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	background-color: #f9f9f9;
}

.hero {
	text-align: center;
	margin-bottom: 60px;
}

.hero_img {
	position: relative;
}

.hero_logo {
	max-width: 200px;
	margin-bottom: 30px;
}

.final-score {
	display: none;
	padding: 30px;
	margin: 20px 0;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(2em);
	-webkit-backdrop-filter: blur(2em);
	border-radius: 15px;
	transition: all 0.3s ease;
}

.hero.is--complete .final-score {
	display: block;
}

.hero.is--complete .hero_bottom {
	opacity: 0;
	pointer-events: none;
	display: none;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	background-color: var(--primary);
	color: white;
	font-weight: 500;
	font-size: 0.875rem;
	border-radius: var(--radius-md);
	transition: all 0.2s ease;
	text-decoration: none;
	gap: 0.5rem;
}

.button:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

.button:active {
	transform: translateY(0);
}

.button--secondary {
	background-color: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
}

.button--secondary:hover {
	background-color: var(--background);
	border-color: var(--muted);
}

.button_face {
	width: 24px;
	margin-right: 10px;
}

.button_face.is--sad {
	display: none;
}

.question_item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	backdrop-filter: none;
}

.question_item h2 {
	margin-bottom: 30px;
	font-size: 24px;
	color: #333333;
}

.option {
	position: relative;
	display: flex;
	align-items: center;
	padding: 1rem 1.25rem;
	margin: 0.75rem 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	transition: all 0.2s ease;
	cursor: pointer;
}

.option:hover {
	background: rgba(37, 99, 235, 0.05);
	border-color: var(--primary);
}

.option.is--selected {
	background: rgba(37, 99, 235, 0.1);
	border-color: var(--primary);
}

.option.is--correct-answer {
	background: rgba(16, 185, 129, 0.1);
	border-color: var(--success);
}

.option_icon {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
}

.is--answered {
	pointer-events: none;
}

.is--selected {
	background: var(--primary);
	color: #ffffff;
	border-color: var(--primary);
}

.is--correct .option_icon.is--check {
	display: block;
}

.progress {
	height: 4px;
	background: var(--border);
	border-radius: 2px;
	overflow: hidden;
	margin-top: 15px;
}

.progress_bar {
	height: 100%;
	background: var(--primary);
	width: 0;
	transition: width 0.3s ease;
}

.answer {
	display: none;
	padding: 15px;
	margin-top: 20px;
	border-radius: 8px;
	align-items: center;
}

.answer_dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 10px;
	background: #ff4b4b;
}

.answer_dot.is--blue {
	background: #007bff;
}

.answer.is--right {
	background: rgba(0, 123, 255, 0.1);
}

.answer.is--wrong {
	background: rgba(255, 75, 75, 0.1);
}

.hero_bottom {
	margin-top: 30px;
	color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {
	.question_item {
		padding: 20px;
	}

	.question_item h2 {
		font-size: 20px;
	}

	.option {
		padding: 15px;
	}
}

/* Site Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.site-logo {
    height: 2.5rem;
    width: auto;
}

.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #333333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: calc(100vh - 89px);
        background: rgba(255, 255, 255, 0.98);
        padding: 40px 20px;
    }

    .main-navigation.toggled {
        display: block;
        height: 100vh;
    }

    .main-navigation ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-navigation li {
        margin: 20px 0;
        text-align: center;
    }

    .main-navigation a {
        color: #333333;
        text-decoration: none;
        font-size: 24px;
        display: block;
        padding: 10px;
    }

    body.menu-is-active {
        overflow: hidden;
    }

    /* Adjust main content padding to account for fixed header */
    .section.is--main {
        padding-top: 129px; /* 89px header height + 40px original padding */
    }
}

/* Desktop Navigation Styles */
.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Adjust main content spacing */
.section.is--main {
    padding-top: 120px; /* header height (80px) + original padding (40px) */
}

/* Update existing header styles */
.site-header {
    height: 80px; /* Fixed height for header */
}

.header-wrap {
    height: 100%;
}

/* Hide menu toggle on desktop */
.menu-toggle {
    display: none;
}

/* Mobile styles - keep your existing mobile styles but update the media query */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        margin-left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation a::after {
        display: none;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
}

.footer-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.footer-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Social Media Links */
.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--background);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.quiz-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    color: var(--text);
    transition: all 0.2s ease;
    font-size: 1rem;
}

/* Form validation and hints */
.email-hint,
.name-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Non-interactive quiz content overlay */
.quiz-content.non-interactive {
    position: relative;
}

.quiz-content.non-interactive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.118);
    z-index: 5;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.quiz-content.non-interactive .question_item {
    position: relative;
    pointer-events: none;
}

.certificate-section {
    margin: 3rem 0;
    text-align: center;
}

.certificate {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
    border: 1px solid var(--border);
}

.certificate-content {
    border: 2px solid var(--primary);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--surface);
}

.certificate h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.recipient-name {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--text);
    font-weight: 600;
}

.completion-date, 
.score-text {
    color: var(--muted);
    margin: 0.75rem 0;
}

.certificate-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.certificate-logo {
    height: 3rem;
    width: auto;
}

.certificate-id {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.name-hint {
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    margin-top: 5px;
}

.previous-results {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.previous-results h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.previous-results button {
    margin: 10px 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    color: #333333;
    transition: all 0.3s ease;
}

.previous-results button:hover {
    background: rgba(0, 0, 0, 0.3);
}

.previous-attempts {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.attempt-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.attempt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.new-attempt-btn {
    background: #007bff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.review-mode .option {
    cursor: default !important;
}

.is--review-mode {
    pointer-events: none;
}

.is--review-mode .option {
    opacity: 0.8;
}

.is--review-mode .option.is--selected {
    opacity: 1;
}

.is--review-mode .option.is--correct-answer {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
    opacity: 1;
}

.previous-attempts-section {
    margin-bottom: 20px;
}

.view-attempts-toggle {
    width: 100 !important;
    padding: 15px !important;
    background: rgba(0, 123, 255, 0.1) !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #007bff !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.view-attempts-toggle:hover {
    background: rgba(0, 123, 255, 0.2);
}

.view-attempts-toggle.is--active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.attempt-count {
    font-size: 0.9em;
    opacity: 0.8;
}

.previous-attempts {
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 15px;
}

.attempt-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.attempt-item.is--pass {
    border-left: 4px solid #2ed573;
}

.attempt-item.is--fail {
    border-left: 4px solid #ff4757;
}

.attempt-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.attempt-score .score-value {
    font-size: 1.2em;
    font-weight: bold;
}

.attempt-score .score-label {
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 4px;
}

.attempt-score.is--pass .score-label {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.attempt-score.is--fail .score-label {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.fail-message {
    color: #ff4757;
    font-size: 0.9em;
    margin: 0;
    opacity: 0.8;
}

.attempt-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Form and Attempts Styling */
.quiz-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(2em);
    -webkit-backdrop-filter: blur(2em);
    margin-bottom: 30px;
    margin-top: 30px;
}

.previous-attempts-section {
    margin-bottom: 30px;
}

.view-attempts-toggle {
    background: rgba(0, 123, 255, 0.05) !important;
    backdrop-filter: blur(1em) !important;
    -webkit-backdrop-filter: blur(1em) !important;
}

.previous-attempts {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1em);
    -webkit-backdrop-filter: blur(1em);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-top: none;
}

.attempt-item {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(0.5em);
    -webkit-backdrop-filter: blur(0.5em);
    transition: all 0.3s ease;
}

.attempt-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

.attempt-item.is--pass {
    border-left: 4px solid #2ed573;
}

.attempt-item.is--fail {
    border-left: 4px solid #ff4757;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.9);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    color: #333333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: #ffffff;
    color: #333333;
}

.quiz-result {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.quiz-result.pass {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}
.quiz-result.fail {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.social-media {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 0, 0, 0.2);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .social-media {
        margin-top: 20px;
        justify-content: center;
    }
}

.option.is--correct-answer::after {
    content: '✔';
    position: absolute;
    right: 20px;
    color: #333333;
    font-size: 20px;
    font-weight: bold;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
}

.option:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}

.option.is--selected {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.option.is--correct-answer {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.option_icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.option.is--selected .option_icon {
    opacity: 1;
}

.option_icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-btn.snapchat {
    background: #FFFC00;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.share-btn.tiktok {
    background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55);
    color: #ffffff;
}

.quiz-stats {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border);
    box-shadow: 0px 2px 2px 0 rgb(0 0 0 / 0.1);
}

.stat-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333333;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar {
    width: 100%;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
}

.bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.user-types .bar-fill {
    background: linear-gradient(90deg, #2196F3, #03A9F4);
}

.locations .bar-fill {
    background: linear-gradient(90deg, #9C27B0, #E91E63);
}


.quiz-content.non-interactive {
    display: block;
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.quiz-content.non-interactive #question0 {
    position: relative;
}

.quiz-content.non-interactive #question0::before {
    content: 'Please complete the form above to start the quiz';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    width: auto;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.quiz-content.non-interactive .option {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .quiz-content.non-interactive #question0::before {
        font-size: 0.8rem;
        padding: 1rem 1.5rem;
    }
}

/* Gutenberg Editor Styles */
.wp-block {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.editor-styles-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.editor-post-title__input {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.5em !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}

/* Block Typography */
.wp-block-paragraph {
    margin-bottom: 1.5em;
}

.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

/* Block Spacing */
.block-editor-block-list__layout > * {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* Content Width */
.wp-block {
    max-width: 840px;
}

.wp-block[data-align="wide"] {
    max-width: 1100px;
}

.wp-block[data-align="full"] {
    max-width: none;
}

/* Block Quote */
.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
}

/* Lists */
.wp-block-list {
    padding-left: 1.5em;
}

/* Code Block */
.wp-block-code {
    background: rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-radius: 4px;
    font-family: monospace;
}

/* Table Block */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    padding: 0.5em;
    border: 1px solid var(--border);
}

/* Image Block */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875em;
    color: var(--muted);
    margin-top: 0.5em;
}

/* Content Styling to Match Gutenberg */


/* Basic Block Spacing */
.section.is--main > * {
    margin-top: 28px;
    margin-bottom: 28px;
}

/* Headings */
.section.is--main h1,
.section.is--main h2,
.section.is--main h3,
.section.is--main h4,
.section.is--main h5,
.section.is--main h6 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
}

/* Paragraphs */
.section.is--main p {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* Lists */
.section.is--main ul,
.section.is--main ol {
    margin: 1.5em 0;
    padding-left: 2.5em;
}

.section.is--main li {
    margin-bottom: 0.5em;
}

.section.is--main ul.wp-block-list,
.section.is--main ol.wp-block-list {
    padding-left: 2.5em;
    margin: 2em 0;
}

/* Block Quote */
.section.is--main blockquote {
    margin: 2em 0;
    padding-left: 1em;
    border-left: 4px solid var(--primary);
}

/* Content Width */
.section.is--main {
    margin: 0 auto;
    padding: 40px 20px;
}

/* Spacing between blocks */
.section.is--main > * + * {
    margin-top: 1.5em;
}

/* Strong and Bold */
.section.is--main strong {
    font-weight: 600;
    color: var(--text);
}


/* Tables */
.section.is--main table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.section.is--main th,
.section.is--main td {
    padding: 0.75em;
    border: 1px solid var(--border);
}

/* Images */
.section.is--main img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

/* Code blocks */
.section.is--main pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2em 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section.is--main {
        padding: 20px;
    }
    
    .section.is--main h1,
    .section.is--main h2,
    .section.is--main h3,
    .section.is--main h4,
    .section.is--main h5,
    .section.is--main h6 {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}


/* Archive Grid Layout */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Post Card Styles */
.post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-card-link {
    text-decoration: none;
    color: var(--text);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers:not(.current):hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Archive Grid Layout */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2.5rem;
    color: var(--text);
}

.post-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid var(--border);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-link {
    text-decoration: none;
    color: var(--text);
}

.post-card-image {
    aspect-ratio: 16/9;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

.tablenav-pages {
    float: right;
    margin: 0 0 10px;
}

.tablenav-pages .page-numbers {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    margin: 0 5px;
    padding: 0 5px;
    text-align: center;
    line-height: 28px;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    text-decoration: none;
}

.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.tablenav-pages .page-numbers:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.displaying-num {
    margin-right: 10px;
    color: #666;
}

/* Add this to your existing CSS */
.user-types .bar-fill[data-type="individual"] {
    background: linear-gradient(90deg, #FF9800, #FF5722);
}

.attempt-item[data-user-type="individual"] {
    border-left-color: #FF9800;
}

/* Embed Block Alignments */
.wp-block-embed {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.wp-block-embed.alignwide {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1100px;
}

.wp-block-embed.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: 100vw;
}

.wp-block-embed.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-embed.alignleft {
    margin-right: 2em;
    float: left;
}

.wp-block-embed.alignright {
    margin-left: 2em;
    float: right;
}

/* Make embedded iframes responsive */
.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Clear floats after aligned embeds */
.wp-block-embed:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-embed.alignleft,
    .wp-block-embed.alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

.email-info {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    display: none;
}

/* Statistics and Progress */
.quiz-stats {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.progress {
    height: 0.25rem;
    background: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 1rem;
}

.progress_bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    min-width: 100px;
    font-size: 0.875rem;
    color: var(--muted);
}

.bar-track {
    flex: 1;
    height: 0.5rem;
    background: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-wrap {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 1rem;
        border-top: 1px solid var(--border);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-media {
        justify-content: center;
    }
    
    .quiz-form {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .button {
        width: 100%;
    }
}

/* Quiz Content Layout */
.question_list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.question_item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.question_item h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

/* Progress indicator */
.hero_bottom {
    margin-top: 2rem;
    text-align: center;
}

.progress {
    max-width: 24rem;
    margin: 1rem auto;
}

@media (max-width: 768px) {
    .question_item {
        padding: 1.5rem;
    }

    .question_item h2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
}

/* Previous Attempts Section */
.previous-attempts-section {
    margin: 2rem 0;
}

.view-attempts-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.view-attempts-toggle:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.previous-attempts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.attempt-item {
    background: var(--background);
    padding: 1.25rem;
    margin: 0.75rem 0;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.attempt-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.attempt-item.is--pass {
    border-left-color: var(--success);
}

.attempt-item.is--fail {
    border-left-color: var(--error);
}

.attempt-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.score-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.score-label {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.is--pass .score-label {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.is--fail .score-label {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Header Social Media Styles */
.header-social-media {
    display: flex;
    gap: 0.75rem;
    margin-left: 2rem;
}

.header-social-media .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--background);
    transition: all 0.2s ease;
}

.header-social-media .social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}
/* Mobile Adjustments */
@media (max-width: 768px) {
    .header-social-media {
        display: none;
    }

    .main-navigation.toggled .header-social-media {
        display: flex;
        justify-content: center;
        margin: 1.5rem 0;
        padding: 1rem 0;
        border-top: 1px solid var(--border);
    }
}

@media (min-width: 768px){
    #site-navigation{
        display: flex;
        justify-content: space-between;
    }
}