
.intro-section {
    margin-bottom: 3rem;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

.stat-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: #51287D;
    display: block;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    margin-top: 0.5rem;
}

.section-title {
    font-size: 32px;
    color: #51287D;
    margin: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #51287D;
}

.timeline-periods {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #51287D;
}

.period-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.period-years {
    font-weight: bold;
    color: #51287D;
}

.period-description {
    color: #495057;
    margin-top: 0.25rem;
}

.chart-section {
    margin: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.chart-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 2rem 4rem 2rem;
    height: auto;
    position: relative;
}

.chart-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 20px;
    color: #495057;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 300px;
    padding: 1rem;
}

.chart-bar {
    background: linear-gradient(180deg, #51287D, #3d2081);
    border-radius: 4px 4px 0 0;
    min-width: 35px;
    max-width: 50px;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 2px;
}

.chart-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.chart-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    transform-origin: center;
}

.chart-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #51287D;
    font-weight: bold;
}

.deputies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.deputy-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.deputy-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.deputy-photo {
    display: flex;
    align-items: start;
    justify-content: start;
    margin-bottom: 20px;
}

.deputy-photo>div {
    width: 100px;
    height: 100px;
    background: #FFD95E;
    border-radius: 100%;
    background-position: top;
    background-size: cover;
}

.deputy-number {
    background: #51287D;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.deputy-name {
    font-size: 20px;
    font-weight: 600;
    color: #51287D;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 12px;
}

.deputy-period {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.deputy-description {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
}

.highlight-section {
    background: linear-gradient(135deg, #fffae9 0%, #fff1c5 100%);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #FFD95E;
}

.highlight-title {
    color: #51287D;
    font-size: 20px;
    margin-bottom: 1rem;
    text-align: center;
}

.highlight-description {
    text-align: center;
    color: #553C9A;
    margin-bottom: 1rem;
}

.current-deputies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.current-deputy {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #1565c0;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #90caf9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.current-deputy:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(150, 148, 5, 0.1);
}

.footer-info {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    
    .main-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .deputies-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-highlight {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        padding: 0.5rem;
        min-height: 350px;
    }

    .chart-bars {
        height: 220px;
        padding: 0.5rem 0.25rem;
        padding-bottom: 3.5rem;
        gap: 1px;
    }

    .chart-bar {
        min-width: 20px;
        max-width: 35px;
    }

    .chart-label {
        font-size: 10px;
        bottom: -40px;
        transform: translateX(-50%) rotate(-45deg);
    }

    .chart-value {
        font-size: 11px;
        top: -20px;
        padding: 1px 3px;
    }

    .chart-title {
        font-size: 16px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-highlight {
        grid-template-columns: 1fr;
    }

    .chart-container {
        min-height: 320px;
    }

    .chart-bars {
        height: 200px;
        padding-bottom: 4rem;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #51287D #f1f1f1;
    }

    .chart-bars::-webkit-scrollbar {
        height: 4px;
    }

    .chart-bars::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .chart-bars::-webkit-scrollbar-thumb {
        background: #51287D;
        border-radius: 2px;
    }

    .chart-bar {
        min-width: 18px;
        max-width: 25px;
    }

    .chart-label {
        font-size: 9px;
        bottom: -35px;
    }

    .chart-value {
        font-size: 11px;
        top: -18px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .chart-bars {
        min-width: 320px;
        justify-content: flex-start;
    }

    .chart-bar {
        min-width: 22px;
        margin-right: 2px;
    }
}