/* Interactive Lesson: Constitutional Design - Main Styles */

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

:root {
    /* Enhanced color palette */
    --primary-color: #1e3c72;
    --primary-dark: #142952;
    --primary-light: #4364a7;
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --accent-color: #ff6b6b;
    --accent-dark: #e25555;
    --accent-light: #ff8e8e;
    --secondary-color: #38b2ac;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: rgba(255, 255, 255, 0.9);
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ffc107;
    --info-color: #2196f3;
    
    /* Enhanced shadows */
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --icon-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Mobile-optimized font sizes */
    --font-xl: clamp(2.2rem, 5vw, 3.8rem);
    --font-lg: clamp(1.6rem, 4vw, 2.6rem);
    --font-md: clamp(1.3rem, 3vw, 1.9rem);
    --font-sm: clamp(1rem, 2.5vw, 1.4rem);
    --font-xs: clamp(0.9rem, 2vw, 1.1rem);
    --line-height: 1.6;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;
}


body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: var(--line-height);
    overflow-x: hidden;
    font-size: 16px;
}

/* Particle Background */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    from { transform: translateY(100vh) translateX(0); }
    to { transform: translateY(-100px) translateX(100px); }
}

/* Main Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Enhanced Header */
.header {
    text-align: center;
    padding: 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: var(--font-lg);
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.8rem;
    animation: titlePulse 3s ease-in-out infinite;
    letter-spacing: -0.02em;
    font-weight: 800;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    font-size: var(--font-sm);
    color: var(--text-light);
    font-weight: 500;
    max-width: 80%;
    margin: 0 auto;
}

.reprint {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* Audio Controls */


/* Enhanced Navigation */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.tab {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary-color);
    border: none;
    font-size: var(--font-xs);
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

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

.tab i {
    font-size: 1.2rem;
}

/* Progress Tracker */
.progress-container {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

.progress-bar {
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}


/* Module Sections */
.module {
    display: none;
    animation: fadeIn 0.5s;
}

.module.active {
    display: block;
}

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

/* Content Blocks */
.content-block {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-block p {
    margin-bottom: 15px;
}

.content-block blockquote {
    border-left: 4px solid #3a7bd5;
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #555;
}

/* Exercise Cards */
.exercise-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.exercise-title {
  font-size: var(--font-lg);
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding: 1rem 120px 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.exercise-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
}

.exercise-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: var(--icon-shadow);
    flex-shrink: 0;
}

.activity-title {
    font-size: 1.3rem;
    color: #3a7bd5;
    margin: 25px 0 15px;
}

.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #3a7bd5;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #3a7bd5;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item:nth-child(odd)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #fff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #fff;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-date {
    font-weight: bold;
    color: #3a7bd5;
    margin-bottom: 10px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th {
    background: #3a7bd5;
    color: white;
    padding: 12px;
    text-align: left;
}

.comparison-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.comparison-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Preamble Display */
.preamble-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.preamble-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.preamble-text {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    text-align: center;
    font-size: 1.1rem;
}

.preamble-text .highlight {
    font-weight: bold;
    color: #3a7bd5;
}

/* Quiz Container */
.quiz-container {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.quiz-option {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option-letter {
    background: #3a7bd5;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.option-text {
    flex: 1;
}

.quiz-option.correct {
    border-color: #4caf50;
    background: #e8f5e9;
}

.quiz-option.incorrect {
    border-color: #f44336;
    background: #ffebee;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Custom Button Styles for Quiz */
.btn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 0.7rem;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn.secondary {
    background: linear-gradient(135deg, #64748b, #475569);
}

.btn.secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
}

/* Quiz Progress */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.results-summary {
    margin: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.score-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.results-summary h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.score-details p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 10px 0;
}

/* Matching Activity */
.matching-game {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.match-column {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px;
}

.match-column h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.match-item {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.match-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.match-item[data-selected="term"],
.match-item[data-selected="def"] {
    border-color: #3a7bd5;
    background: #e3f2fd;
}

.match-item.matched {
    background: #c8e6c9;
    border-color: #4caf50;
    cursor: default;
}

.match-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateX(5px);
}

.match-item.question-selected {
    background: #fff3e0;
    border-color: #ff9800;
    transform: translateX(5px);
}

.match-item.correct {
    background: #c8e6c9;
    border-color: #4caf50;
}

.match-item.incorrect {
    background: #ffcdd2;
    border-color: #f44336;
}

/* Interactive Elements */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.interactive-btn {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s;
    font-size: 1rem;
}

.interactive-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.interactive-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Card audio buttons */
.card-audio-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin: 8px 0 0 0;
    align-self: flex-start;
}

.card-audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.feedback-message {
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    display: none;
}

.feedback-message.show {
    display: block;
    animation: slideIn 0.5s;
}

.feedback-message.success {
    background: #c8e6c9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.feedback-message.error {
    background: #ffcdd2;
    color: #c62828;
    border: 2px solid #f44336;
}

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

/* Intro Speaker Button */
.intro-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.intro-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.intro-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.intro-speaker-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    z-index: 10;
}

.intro-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

/* Overview Speaker Button */
.overview-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.overview-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.overview-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.overview-speaker-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    z-index: 10;
}

.overview-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

/* Terms Speaker Button */
.terms-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.terms-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.terms-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.terms-speaker-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    z-index: 10;
}

.terms-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.terms-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}


/* Haryana Speaker Button */
.haryana-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.haryana-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.haryana-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.haryana-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.haryana-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.haryana-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Why Elections Speaker Button */
.whyelections-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.whyelections-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whyelections-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.whyelections-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.whyelections-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.whyelections-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Democratic Speaker Button */
.democratic-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.democratic-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.democratic-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.democratic-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.democratic-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.democratic-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Competition Speaker Button */
.competition-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.competition-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.competition-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.competition-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.competition-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.competition-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Electoral Speaker Button */
.electoral-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.electoral-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.electoral-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.electoral-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.electoral-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.electoral-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Reserved Speaker Button */
.reserved-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.reserved-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reserved-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.reserved-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.reserved-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.reserved-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Voters Speaker Button */
.voters-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.voters-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.voters-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.voters-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.voters-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.voters-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Nomination Speaker Button */
.nomination-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.nomination-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nomination-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.nomination-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.nomination-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.nomination-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Educational Speaker Button */
.educational-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.educational-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.educational-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.educational-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.educational-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.educational-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Campaign Speaker Button */
.campaign-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.campaign-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.campaign-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.campaign-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.campaign-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.campaign-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Polling Speaker Button */
.polling-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.polling-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.polling-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.polling-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.polling-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.polling-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Expensive Speaker Button */
.expensive-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.expensive-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.expensive-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.expensive-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.expensive-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.expensive-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Independent Speaker Button */
.independent-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.independent-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.independent-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.independent-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin-top: 0.5rem;
}

.independent-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.independent-speaker-btn.playing,
.popular-speaker-btn.playing,
.acceptance-speaker-btn.playing,
.challenges-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Popular Speaker Button */
.popular-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.popular-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popular-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.popular-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin-top: 0.5rem;
}

.popular-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.popular-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Acceptance Speaker Button */
.acceptance-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.acceptance-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.acceptance-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.acceptance-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin-top: 0.5rem;
}

.acceptance-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.acceptance-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Challenges Speaker Button */
.challenges-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.challenges-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.challenges-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.challenges-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin-top: 0.5rem;
}

.challenges-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.challenges-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Parliament Speaker Button */
.parliament-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.parliament-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.parliament-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.parliament-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.parliament-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.parliament-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Houses Speaker Button */
.houses-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.houses-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.houses-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.houses-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.houses-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.houses-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Political Speaker Button */
.political-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.political-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.political-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.political-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.political-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.political-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Council Speaker Button */
.council-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.council-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.council-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.council-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.council-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.council-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Powers Speaker Button */
.powers-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.powers-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.powers-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.powers-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.powers-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.powers-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* President Speaker Button */
.president-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.president-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.president-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.president-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.president-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.president-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Presidential Speaker Button */
.presidential-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.presidential-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.presidential-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.presidential-speaker-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    margin: 0.5rem 0;
}

.presidential-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.presidential-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Judiciary Speaker Button */
.judiciary-speaker-btn {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.judiciary-speaker-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.judiciary-speaker-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.judiciary-speaker-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
    min-width: 120px;
    z-index: 10;
}

.judiciary-speaker-text {
    font-size: 0.7rem;
    color: #000000;
    text-shadow: none;
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.judiciary-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

/* Show speaker buttons when cards are expanded */
.feature-card.expanded .independent-speaker-container,
.feature-card.expanded .popular-speaker-container,
.feature-card.expanded .acceptance-speaker-container,
.feature-card.expanded .challenges-speaker-container,
.feature-card.expanded .parliament-speaker-container,
.feature-card.expanded .houses-speaker-container,
.feature-card.expanded .political-speaker-container,
.feature-card.expanded .council-speaker-container,
.feature-card.expanded .powers-speaker-container,
.feature-card.expanded .president-speaker-container,
.feature-card.expanded .presidential-speaker-container,
.feature-card.expanded .judiciary-speaker-container {
    display: flex;
}

.intro-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

.overview-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

.independent-speaker-btn.playing {
    background: linear-gradient(135deg, #f44336, #e91e63);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Audio Control */
.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.audio-btn:hover {
    transform: scale(1.1);
}

.audio-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.audio-btn.muted {
    background: linear-gradient(135deg, #9e9e9e, #616161);
}

/* Reading Indicator */
.reading-indicator {
    display: flex;
    align-items: center;
    background-color: #e3f2fd;
    padding: 10px 15px;
    border-radius: 20px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #3a7bd5;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stop narration button */
.stop-narration-btn {
    margin-left: 15px;
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.stop-narration-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #c2185b);
    transform: scale(1.05);
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateX(400px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    pointer-events: none;
}

.achievement-popup.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.achievement-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1001;
}

.achievement-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

.achievement-close:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.achievement-title {
    font-size: 1.2rem;
    color: #4caf50;
    margin-bottom: 10px;
    font-weight: bold;
}

.achievement-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    border-left: 5px solid var(--error-color);
    transform: translateX(400px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    z-index: 1000;
    max-width: 300px;
    opacity: 0;
    pointer-events: none;
}

.error-notification.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.error-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1001;
}

.error-close:hover {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    transform: scale(1.1);
}

.error-close:focus {
    outline: 2px solid var(--error-color);
    outline-offset: 2px;
}

.error-title {
    font-size: 1.2rem;
    color: var(--error-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.error-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Temporary Feedback */
.temp-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.temp-feedback.show {
    transform: translateY(0);
    opacity: 1;
}

/* Expand Card Activity */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.expand-card {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 300px;
    margin: 10px;
}

.expand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.expand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    font-weight: bold;
}

.expand-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

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

.expand-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #f5f7fa;
    color: #333;
}

.expand-card.expanded .expand-card-content {
    max-height: 500px; /* Adjust based on content */
}

.expand-card-content p {
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    margin-top: 30px;
}

/* Print Mode */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav-menu, .audio-control, .achievement-popup, .progress-container, 
    .interactive-btn {
        display: none !important;
    }
    
    .container {
        margin: 0;
        padding: 20px;
        max-width: 100%;
    }
    
    .header {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .title {
        color: black;
        text-shadow: none;
    }
    
    .subtitle, .reprint {
        color: black;
    }
    
    .exercise-card, .preamble-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .module {
        display: block !important;
        page-break-after: always;
    }
}

/* Features Grid for Content Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Vertical Features Grid for Content Cards */
.features-grid-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Cards Container for Side-by-Side Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}


/* Special styling for the letter card */
.letter-card {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 193, 7, 0.05));
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
}

/* Expandable Rights Cards */
.rights-container {
    margin: 2rem 0;
}

.expandable-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.expandable-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.card-title {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

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

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--bg-color);
    padding: 0 1.5rem;
}

.expandable-card.expanded .card-content {
    max-height: 2000px;
    padding: 1.5rem;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Rights Image Styling */
.rights-image-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rights-image {
    max-width: 100%;
    height: auto;
}

/* NHRC Section Styling */
.nhrc-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(52, 152, 219, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.nhrc-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.1;
}

.nhrc-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.nhrc-section p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.nhrc-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Quiz Styling */
/* Quiz Progress Bar */
.quiz-progress {
    margin-bottom: 2rem;
}

.quiz-progress .progress-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.quiz-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* Quiz Question Display */
.quiz-question-display {
    min-height: 300px;
    position: relative;
}

.quiz-question {
    display: none;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.quiz-question.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.quiz-question h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quiz-options label:hover {
    background: rgba(52, 152, 219, 0.1);
}

.quiz-options input[type="radio"] {
    margin: 0;
}

.matching-activity {
    margin-top: 1rem;
}

.matching-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
}

.matching-term {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.matching-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    min-width: 200px;
}

.reason-input {
    margin-top: 1rem;
}

.reason-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.reason-input textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    resize: vertical;
    font-family: inherit;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    /* No hover effect */
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Disabled button styling */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
}


.nav-btn.primary:hover {
    /* No hover effect */
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.quiz-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-color);
}

.quiz-results h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.correct-answer {
    color: #27ae60;
    font-weight: 600;
}

.wrong-answer {
    color: #e74c3c;
    font-weight: 600;
}

/* Research Activity Styling */
.research-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.research-notes h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.notes-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-section label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.notes-section input,
.notes-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.notes-section input:focus,
.notes-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.notes-section textarea {
    min-height: 80px;
}

/* Enhanced comparison table styling */
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: none;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: rgba(52, 152, 219, 0.05);
    min-width: 200px;
}

.comparison-table textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.comparison-table textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.letter-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.2;
}

.letter-content {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-color);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    color: var(--primary-color);
    text-shadow: var(--icon-shadow);
}

.feature-icon i {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: var(--font-md);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-medium);
    line-height: var(--line-height);
    font-size: var(--font-xs);
    text-align: center;
}

.feature-example {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
    border-left: 4px solid var(--warning-color);
    display: none;
    font-size: 0.95rem;
}

.feature-card.expanded .feature-example {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-items {
        font-size: 0.8rem;
        gap: 10px;
    }

    .title {
        font-size: 2rem;
    }

    .matching-game {
        grid-template-columns: 1fr;
    }

    .container {
        margin-top: 110px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Fix exercise title alignment on mobile */
    .exercise-title {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .intro-speaker-container,
    .overview-speaker-container,
    .terms-speaker-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 1rem;
    }
}

/* Inline Activity Content Styles */
.activity-content {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    animation: contentFadeIn 0.3s ease-out;
}

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

.research-instructions, .debate-instructions {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.research-instructions ul, .debate-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.research-instructions li, .debate-instructions li {
    margin-bottom: 8px;
}

.research-template, .debate-template {
    margin: 20px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
}

.comparison-table textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.topic-selector {
    margin: 20px 0;
    text-align: center;
}

.topic-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.topic-dropdown {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    min-width: 300px;
}

.topic-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.debate-arguments {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.argument-section {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.argument-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.argument-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
    min-height: 100px;
}

.argument-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Specific spacing for Debate Activity */
.activity-section:nth-child(4) {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .research-modal-content, .debate-modal-content {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }

    .comparison-table table {
        font-size: 0.9rem;
    }

    .comparison-table th, .comparison-table td {
        padding: 10px;
    }

    .topic-dropdown {
        min-width: 250px;
    }

    .debate-arguments {
        gap: 15px;
    }

    .argument-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .exercise-card, .preamble-container {
        padding: 20px 15px;
    }

    .nav-items {
        gap: 5px;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .research-modal-content, .debate-modal-content {
        padding: 15px;
        width: 98%;
    }

    .comparison-table table {
        font-size: 0.8rem;
    }

    .topic-dropdown {
        min-width: 200px;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .quiz-navigation .btn {
        width: 100%;
        max-width: 250px;
        margin: 0.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .quiz-progress {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .progress-bar {
        margin: 0;
        width: 100%;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 1.5rem;
    }
}

/* Question Components Styling */
.question-container {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid transparent;
    transition: var(--transition);
}

.question-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-container h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.question-options {
    margin-bottom: 1.5rem;
}

.question-options p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.answer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-textarea {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
    background: white;
}

.answer-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.answer-textarea:disabled {
    background: #f8f9fa;
    color: var(--text-medium);
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.answer-buttons .interactive-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.answer-buttons .interactive-btn.secondary {
    background: linear-gradient(135deg, #64748b, #475569);
}

.answer-buttons .interactive-btn.secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
}

/* Success Popup Styling */
#tempSuccessPopup {
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Questions */
@media (max-width: 768px) {
    .question-container {
        padding: 1rem;
        margin: 1rem 0;
    }

    .question-container h4 {
        font-size: 1rem;
    }

    .question-options p {
        font-size: 0.9rem;
    }

    .answer-section {
        gap: 0.8rem;
    }

    .answer-textarea {
        min-height: 70px;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .answer-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .answer-buttons .interactive-btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 480px) {
    .question-container {
        padding: 0.8rem;
    }

    .question-container h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .question-options p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .answer-textarea {
        min-height: 60px;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}
