* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.main-body {
    margin: 0 auto;
    padding: 20px;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.page-header {
    background: linear-gradient(
                rgba(0, 0, 0, 0.6),
                rgba(0, 0, 0, 0.6)
              ),
              url("../images/statiistics.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card.middle {
    border-top: 5px solid #3498db;
}

.stat-card.high {
    border-top: 5px solid #2ecc71;
}

.stat-card.low {
    border-top: 5px solid #e74c3c;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4a6491;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.stat-card.middle .stat-number {
    color: #3498db;
}

.stat-card.high .stat-number {
    color: #2ecc71;
}

.stat-card.low .stat-number {
    color: #e74c3c;
}

.stat-description {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.details-section {
    margin-top: 40px;
}

.details-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
}

.program-details {
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.program-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.toggle-btn {
    background: #4a6491;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #2c3e50;
}

.program-content {
    display: none;
    padding-top: 20px;
}

.program-content.active {
    display: block;
}

.chart-container {
    height: 400px;
    margin-top: 20px;
}

.yearly-breakdown {
    margin-top: 30px;
}

.yearly-breakdown h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f5f7fa;
    color: #2c3e50;
}

tr:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .stats-summary {
        flex-direction: column;
    }

    .stat-card {
        min-width: 100%;
    }

    .program-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-btn {
        margin-top: 10px;
    }
}
