:root {
    --primary: #0b1f3a;
    --secondary: #1d4ed8;
    --accent-gold: #f59e0b;
    --accent-red: #dc2626;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, .nav-brand {
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navbar */
header {
    background: var(--primary);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(11,31,58,0.92), rgba(29,78,216,0.85)), url('https://images.unsplash.com/photo-1517649763962-0c623266010b?q=80&w=1600') center/cover;
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    max-width: 600px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #e2e8f0;
}

.btn-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary);
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s, background 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    background: #d97706;
    color: #fff;
}

/* Projeto Resgate Jovem */
.resgate-jovem {
    max-width: 1200px;
    margin: -50px auto 50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    border-top: 5px solid var(--accent-gold);
}

.resgate-info h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.tag-resgate {
    background: var(--accent-gold);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.form-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--secondary);
}

/* Notícias */
.noticias-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card-noticia {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card-noticia:hover {
    transform: translateY(-5px);
}

.card-noticia img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.noticia-detalhe-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background-color: var(--primary);
    border-radius: 8px;
    margin-bottom: 25px;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.card-body p, .noticia-conteudo {
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Footer Customizado */
.footer-site {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-brand span {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
}

.footer-logo {
    width: 45px;
    height: auto;
}

.footer-about p {
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.contact-info i {
    font-size: 0.9rem;
    width: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.2s, color 0.2s;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.social-handle {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
}

.text-danger {
    color: #ef4444;
}

/* Base do Footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsividade para telas menores */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        gap: 15px;
    }
    .hero-logo {
        width: 85px;
        height: 85px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .resgate-jovem {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .nav-links {
        display: none;
    }
}

/* Botão da Área Restrita na Navbar */
.nav-links .btn-admin {
    background-color: var(--accent-gold);
    color: var(--primary) !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-links .btn-admin:hover {
    background-color: #d97706;
    color: #ffffff !important;
    transform: scale(1.03);
}

/* Seções Gerais e Container */
.secao-padrao {
    padding: 60px 20px;
}
.bg-alt {
    background-color: #ffffff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-desc {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
    color: #64748b;
    font-size: 1.05rem;
}

/* Modalidades */
.grid-modalidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.card-modalidade {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.card-modalidade i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}
.card-modalidade h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Galeria */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.item-galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Transparência */
.grid-transparencia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.card-documento {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #cbd5e1;
}
.card-documento i {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 10px;
}
.btn-download {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.btn-download:hover {
    background: var(--secondary);
}

/* Atualização do Banner de Doação com o Gradiente da Hero */
.banner-cta-doacao {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.banner-cta-doacao h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.banner-cta-doacao p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    color: #f8fafc;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-doar {
    background-color: #f97316;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-doar:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

.btn-inscrever {
    background-color: #ffffff;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-inscrever:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

/* --- SEÇÃO CONTADOR --- */
.secao-contador {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-contador {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.item-contador i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.item-contador .numero {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.item-contador p {
    font-size: 1rem;
    color: #e2e8f0;
    margin: 0;
}

/* --- SEÇÃO DEPOIMENTOS --- */
.secao-depoimentos {
    background-color: #f8fafc;
    padding: 70px 0;
}

.header-depoimentos {
    text-align: center;
    margin-bottom: 45px;
}

.header-depoimentos h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.header-depoimentos p {
    color: #64748b;
    font-size: 1.05rem;
}

.grid-depoimentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-depoimento {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.icone-aspas {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.8rem;
    color: #dbeafe;
}

.texto-depoimento {
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.autor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sigla {
    width: 42px;
    height: 42px;
    background-color: #dbeafe;
    color: #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.autor-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.autor-info span {
    font-size: 0.85rem;
    color: #64748b;
}