/* ==========================================
   HERO SECTION
   ========================================== */

.life-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 120px 20px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.life-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.life-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.life-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.life-hero-title {
    font-size: 3.0rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.life-hero-subtitle {
    font-size: 1.0rem;
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 800px;
    opacity: 0.95;
}

.life-hero-button {
    display: inline-block;
    background: #fff;
    color: #1e3a8a;
    padding: 16px 42px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.life-hero-button:hover {
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   GENERAL SECTIONS
   ========================================== */

.life-section {
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
}

.life-section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #08254F;
    margin: 0 0 20px;
}

.life-section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: #5b6b85;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */

.life-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.life-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.life-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ==========================================
   CARDS
   ========================================== */

.life-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3b82f6;
    display: flex;
    flex-direction: column;
}

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

/* Infraestrutura section - Cards com diferentes larguras */
#infraestrutura .life-card:nth-child(1) {
    grid-column: span 7;
}

#infraestrutura .life-card:nth-child(2) {
    grid-column: span 5;
}

#infraestrutura .life-card:nth-child(3) {
    grid-column: span 6;
}

#infraestrutura .life-card:nth-child(4) {
    grid-column: span 6;
}

.life-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.life-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.life-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.life-card-icon-red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.life-card-icon-red svg {
    stroke: #fff;
}

.life-card-icon-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.life-card-icon-blue svg {
    stroke: #fff;
}

.life-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1b2a4a;
    margin: 0;
}

.life-card-text {
    font-size: 1rem;
    color: #5b6b85;
    line-height: 1.7;
    margin-bottom: 16px;
}

.life-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.life-card-list li {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.6;
}

.life-card-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.2rem;
}

.life-card-list-red li::before {
    content: "✓";
    color: #16a34a;
}

.life-card-list-blue li::before {
    content: "✓";
    color: #16a34a;
}

/* ==========================================
   HEALTH & EDUCATION SECTION
   ========================================== */

.life-health-edu {
    background: #f9fafb;
    padding: 80px 20px;
}

.life-info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.life-info-box {
    padding: 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.life-info-box-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #dc2626;
    color: #C10007;
}

.life-info-box-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #0066cc;
    color: #033CB9;
}

.life-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.life-info-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   CULTURE SECTION
   ========================================== */

.life-culture {
    background: #fff;
}

.life-card-simple {
    border-left: 4px solid #3b82f6;
}

.life-highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 48px 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.life-highlight-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.life-highlight-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 900px;
    opacity: 0.95;
}

/* ==========================================
   COST SECTION
   ========================================== */

.life-cost {
    background: #f9fafb;
    text-align: center;
    padding: 80px 20px;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.life-cta {
    position: relative;
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    text-align: center;
    padding: 100px 20px;
    color: #ffffff;
    overflow: hidden;
}

.life-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.life-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.life-cta > * {
    position: relative;
    z-index: 2;
}

.life-cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
}

.life-cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 40px;
    max-width: 800px;
    line-height: 1.7;
}

.life-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.life-button {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.life-button-primary {
    background: #ffffff;
    color: #0066cc;
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.life-button-primary:hover {
    color: #0066cc;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.life-button-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.life-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .life-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .life-hero {
        padding: 80px 20px;
    }
    
    .life-hero-title {
        font-size: 2.2rem;
    }
    
    .life-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .life-section {
        padding: 60px 20px;
    }
    
    .life-section-title {
        font-size: 2rem;
    }

    .life-section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .life-cta-title {
        font-size: 2rem;
    }

    .life-cta-subtitle {
        font-size: 1.1rem;
    }
    
    .life-grid,
    .life-grid-2,
    .life-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Reset larguras customizadas no mobile */
    #infraestrutura .life-card:nth-child(1),
    #infraestrutura .life-card:nth-child(2),
    #infraestrutura .life-card:nth-child(3),
    #infraestrutura .life-card:nth-child(4) {
        grid-column: span 1;
    }

    .life-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .life-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .life-button {
        width: 100%;
        text-align: center;
    }

    .life-card {
        padding: 24px;
    }

    .life-highlight {
        padding: 32px 24px;
    }

    .life-highlight-title {
        font-size: 1.5rem;
    }

    .life-highlight-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .life-hero {
        padding: 60px 20px;
    }

    .life-hero-title {
        font-size: 1.8rem;
    }

    .life-hero-subtitle {
        font-size: 1rem;
    }

    .life-section {
        padding: 50px 20px;
    }

    .life-section-title {
        font-size: 1.75rem;
    }

    .life-cta {
        padding: 70px 20px;
    }

    .life-cta-title {
        font-size: 1.6rem;
    }
}