* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.imams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.imam-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid;
}

.imam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.imam-header {
    padding: 25px;
    text-align: center;
    color: white;
}

.imam-header h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.school-name {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 500;
}

.imam-content {
    padding: 25px;
}

.question-selector {
    margin-bottom: 20px;
}

.question-selector label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    font-size: 1em;
}

.question-dropdown {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.question-dropdown:hover {
    border-color: #999;
}

.question-dropdown:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.answer-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.answer-box.active {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-color: #f39c12;
}

.answer-box h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.answer-box p {
    color: #34495e;
    line-height: 1.7;
    font-size: 0.95em;
}

.placeholder-text {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .imams-grid {
        grid-template-columns: 1fr;
    }
    
    .imam-header h2 {
        font-size: 1.5em;
    }
}