.card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #8B0000, #006400);
    color: white;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.4;
    position: absolute;
    top: 0;
    left: 0;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

nav {
    background-color: #006400;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    padding: 10px 15px;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

main {
    max-width: 1100px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section h2 {
    color: #8B0000;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #006400;
    padding-bottom: 10px;
}

.card, .timeline-item {
    background-color: #f0f8f0;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover, .timeline-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.card h3, .timeline-item h3 {
    color: #006400;
    font-size: 1.4em;
    margin-bottom: 15px;
}


footer {
    background: linear-gradient(135deg, #8B0000, #006400);
    color: white;
    text-align: center;
    padding: 15px 20px;
    margin-top: 50px;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9em;
}

.footer-content p {
    margin: 5px 0;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-divider {
    margin: 0 10px;
    opacity: 0.6;
}

.quiz-body footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
}

.slider {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-images img {
    width: 100%;
    border-radius: 10px;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

@media (max-width: 768px) {
    nav ul li {
        margin: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .slider-prev, .slider-next {
        padding: 10px;
    }
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8B0000;
}

.timeline-date {
    background: #8B0000;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #006400;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #8B0000;
}

.timeline-item.highlight::before {
    background: #FFD700;
    width: 20px;
    height: 20px;
    left: 20px;
}

.timeline-img {
    max-width: 300px;
    margin: 10px 0;
    border-radius: 8px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #8B0000, #006400);
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 2.5em;
    margin: 0;
    color: white;
}

.stat-card p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.village-card {
    background: #f8f9fa;
    border-left: 4px solid #8B0000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.village-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.village-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.stat {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.total-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.map-placeholder {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 30px 0;
}

.ghetto-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.fact-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fact-item h4 {
    color: #8B0000;
    margin-bottom: 10px;
}

.tragedy-stages {
    margin: 40px 0;
}

.tragedy-card {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B0000;
}

.righteous-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.righteous-person {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .villages-grid {
        grid-template-columns: 1fr;
    }
    
    .ghetto-facts {
        grid-template-columns: 1fr;
    }
}

