/* Budget Transparency & Finance Visualization */

.finance-transparency-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
}

.money-flow-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Where Your Money Goes Infographic */
.money-flow-infographic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.income-section,
.expense-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.section-title-finance {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
}

.flow-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #138808, #0a5c05);
}

.flow-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flow-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9933, #ff6b35);
    border-radius: 12px;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.flow-details {
    flex: 1;
}

.flow-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.flow-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.flow-percentage {
    font-size: 0.9rem;
    color: #138808;
    margin-left: 10px;
}

.total-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    text-align: center;
}

.total-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff9933, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Interactive Budget Visualizer */
.budget-visualizer {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.chart-container-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.chart-box {
    position: relative;
}

.chart-canvas {
    max-width: 400px;
    margin: 0 auto;
}

.chart-legend {
    margin-top: 30px;
}

.legend-item-finance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item-finance:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 12px;
}

.legend-label-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.legend-text {
    font-size: 0.95rem;
    color: #333;
}

.legend-value {
    font-weight: 700;
    color: #ff9933;
    font-size: 1.1rem;
}

/* Scheme Coverage Map */
.scheme-coverage-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    color: white;
}

.coverage-map-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

.ward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.ward-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff9933, #ffd700);
}

.ward-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.ward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ward-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.ward-icon {
    font-size: 2rem;
}

.coverage-stats {
    margin-top: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 700;
    color: #ffd700;
}

.coverage-progress {
    margin-top: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.mini-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #138808, #4ade80);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Beneficiary Success Stories */
.success-stories-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
}

.stories-container {
    max-width: 1200px;
    margin: 40px auto 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-content {
    padding: 30px;
}

.story-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.story-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #ff9933;
    opacity: 0.3;
}

.beneficiary-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.beneficiary-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9933, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.beneficiary-details h4 {
    color: #333;
    margin: 0 0 5px 0;
}

.beneficiary-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.story-impact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #138808;
}

.impact-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.impact-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-item {
    font-size: 0.9rem;
    color: #666;
}

.metric-item strong {
    color: #138808;
}

/* Responsive */
@media (max-width: 768px) {

    .money-flow-infographic,
    .chart-container-wrapper {
        grid-template-columns: 1fr;
    }

    .ward-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .total-amount {
        font-size: 2rem;
    }
}