.content-section {
    display: none;
}

.content-section.active {
    display: block !important; 
}

.chapter1-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
}

.hierarchy-visualization {
text-align: center;
margin: 2rem 0;
}

.hierarchy-visualization img {
max-width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}

.hierarchy-visualization img:hover {
transform: scale(1.02);
}

.cooking-demo {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: center;
margin: 2rem 0;
}

.cooking-steps {
background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
border-radius: 12px;
padding: 1.5rem;
border: 2px solid #fb923c;
}

.cooking-steps h4 {
color: #9a3412 !important;
margin-bottom: 1rem;
}

.cooking-step {
display: flex;
align-items: center;
gap: 1rem;
margin: 1rem 0;
padding: 0.75rem;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

.cooking-step:hover {
transform: translateX(10px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.step-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea, #764ba2);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
flex-shrink: 0;
}

.connection-web {
position: relative;
margin: 2rem 0;
}

.connection-node {
display: inline-block;
padding: 1rem 1.5rem;
margin: 0.5rem;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border-radius: 25px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.connection-node:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.connection-node.active {
background: linear-gradient(135deg, #ff6b6b, #feca57);
transform: scale(1.1);
}

.connection-details {
background: #f8f9fa;
border-radius: 12px;
padding: 1.5rem;
margin: 1rem 0;
border: 2px solid #e9ecef;
display: none;
animation: fadeIn 0.3s ease;
}

.connection-details.active {
display: block;
}

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

.quiz-section {
background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
border: 2px solid #ffc107;
border-radius: 12px;
padding: 2rem;
margin: 2rem 0;
}

.quiz-question {
margin: 1.5rem 0;
}

.quiz-option {
background: white;
border: 2px solid #ffc107;
border-radius: 8px;
padding: 1rem;
margin: 0.5rem 0;
cursor: pointer;
transition: all 0.3s ease;
display: block;
width: 100%;
text-align: left;
}

.quiz-option:hover {
background: #fff8e1;
transform: translateX(10px);
}

.quiz-option.selected {
background: #e3f2fd;
border-color: #2196f3;
}

.quiz-option.correct {
background: #e8f5e8 !important;
border-color: #4caf50 !important;
}

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

/* Enhanced Quiz Styles */
.enhanced-quiz-container {
background: white;
border-radius: 12px;
padding: 2rem;
margin: 2rem 0;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
border: 2px solid #e5e7eb;
}

.enhanced-quiz-question h4 {
color: #1f2937;
margin-bottom: 1.5rem;
font-size: 1.1rem;
}

.enhanced-quiz-option {
background: #f9fafb;
border: 2px solid #e5e7eb;
border-radius: 8px;
padding: 1rem 1.5rem;
margin: 0.5rem 0;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
color: #374151;
}

.enhanced-quiz-option:hover {
background: #f3f4f6;
border-color: #d1d5db;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.enhanced-quiz-option.selected {
background: #dbeafe;
border-color: #3b82f6;
color: #1e40af;
font-weight: 600;
}

.enhanced-quiz-option.correct {
background: #dcfce7;
border-color: #22c55e;
color: #15803d;
font-weight: 600;
}

.enhanced-quiz-option.incorrect {
background: #fee2e2;
border-color: #ef4444;
color: #dc2626;
font-weight: 600;
}

.enhanced-quiz-explanation {
display: none;
background: #f0f9ff;
border: 1px solid #0ea5e9;
border-radius: 8px;
padding: 1rem;
margin-top: 1rem;
color: #0c4a6e;
font-size: 0.95rem;
}

.progress-tracker {
display: flex;
justify-content: center;
gap: 1rem;
margin: 2rem 0;
}

.progress-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #e0e0e0;
transition: background 0.3s ease;
}

.progress-dot.active {
background: #667eea;
}

.progress-dot.completed {
background: #4caf50;
}

@media (max-width: 768px) {
.cooking-demo {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.connection-node {
    display: block;
    margin: 0.25rem 0;
    text-align: center;
}

.cooking-step {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}
}