* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #2a5298;
    color: white;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.section {
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section h2 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 0.5rem;
}

.section h3 {
    color: #2a5298;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.highlight-box h3 {
    color: white;
    margin-top: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2a5298;
}

.stat-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2a5298;
    margin: 0.5rem 0;
}

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

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.content-left, .content-right {
    padding: 1rem;
}

/* Resource List */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Ethnic Chart */
.ethnic-chart {
    margin-top: 1rem;
}

.ethnic-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ethnic-bar {
    height: 20px;
    border-radius: 10px;
    margin-right: 1rem;
    display: inline-block;
}

.ethnic-bar.kazakh {
    width: 140px;
    background-color: #1e3c72;
}

.ethnic-bar.russian {
    width: 32px;
    background-color: #dc3545;
}

.ethnic-bar.uzbek {
    width: 7px;
    background-color: #28a745;
}

.ethnic-bar.other {
    width: 22px;
    background-color: #ffc107;
}

/* Sector Chart */
.sector-chart {
    margin-top: 1rem;
}

.sector-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.sector-bar {
    height: 25px;
    border-radius: 12px;
    margin-right: 1rem;
    display: inline-block;
}

.sector-bar.services {
    width: 110px;
    background-color: #17a2b8;
}

.sector-bar.industry {
    width: 68px;
    background-color: #fd7e14;
}

.sector-bar.agriculture {
    width: 22px;
    background-color: #28a745;
}

/* Government Structure */
.gov-structure {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.gov-branch {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.gov-branch h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #2a5298;
}

.news-item h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Outlook Grid */
.outlook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.outlook-item {
    padding: 1.5rem;
    border-radius: 10px;
}

.outlook-item.challenges {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.outlook-item.opportunities {
    background: #f0fff4;
    border-left: 4px solid #28a745;
}

.outlook-item h3 {
    margin-top: 0;
}

.challenges h3 {
    color: #dc3545;
}

.opportunities h3 {
    color: #28a745;
}

/* Lists */
ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .outlook-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .section {
        padding: 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .ethnic-bar, .sector-bar {
        width: auto;
        min-width: 20px;
        flex: 1;
        max-width: 100px;
    }
    
    .ethnic-item, .sector-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for cards */
.stat-card, .news-item, .outlook-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .news-item:hover, .outlook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}