/* Definições de Variáveis e Reset Básico */
:root {
    --primary-color: #007bff; /* Azul (AOTICASPE) */
    --secondary-color: #6c757d; /* Cinza Escuro */
    --highlight-color: #ff6f00; /* Laranja (Ações) */
    --text-dark: #343a40; 
    --bg-light: #f8f9fa; 
    --card-bg: #ffffff; 
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--card-bg);
}

/* --- ESTILOS GERAIS DA SEÇÃO --- */
.public-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.public-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.public-section h2 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.public-section p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* --- BOTÕES PÚBLICOS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-primary-nav {
    background-color: var(--highlight-color);
    color: white;
    margin-left: 15px;
}

.btn-secondary-nav {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    padding: 10px 20px;
    margin-left: 10px;
}

.btn-hero-action-public {
    background-color: var(--highlight-color);
    color: white;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-hero-action-public:hover {
    background-color: #cc5800;
}
.btn-secondary-small {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

/* --- 1. HEADER E HERO SECTION --- */
.public-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid #ddd;
}

.navbar-public {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 5%;
}

.logo-public {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-public {
    background: url('img/hero_bg_public.jpg') no-repeat center center/cover; /* Adicione sua imagem de fundo! */
    background-color: #f0f0f0; 
    padding: 120px 5% 100px;
    color: var(--text-dark);
    text-align: center;
}

.hero-public h1 {
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 15px;
    color: var(--text-dark);
}

.hero-public p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- 2. EVENTOS --- */
.events-section {
    background-color: var(--card-bg);
}

.events-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.event-card-public {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    width: 350px;
    text-align: left;
}

.event-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-card-public h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.event-card-public p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.meta-public span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.meta-public i {
    margin-right: 5px;
    color: var(--highlight-color);
}

/* --- 3. DIRETÓRIO --- */
.directory-section {
    background-color: var(--bg-light);
}

.directory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.otica-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: left;
    border-left: 5px solid var(--primary-color);
}

.otica-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.otica-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
}

.social-links i {
    margin-right: 5px;
    color: var(--highlight-color);
}

/* --- 4. BIBLIOTECA --- */
.library-section {
    background-color: var(--primary-color);
    color: white;
}

.library-section h2, .library-section p {
    color: white;
}
.library-section h2 i {
    color: var(--highlight-color);
}

.content-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.content-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    width: 30%;
    text-align: left;
    border-top: 3px solid var(--highlight-color);
}

.content-item i {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.content-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}
.content-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.cta-access {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.cta-access p {
    margin-bottom: 15px;
}


/* --- FOOTER PÚBLICO --- */
.public-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.footer-contact, .footer-links, .footer-social {
    width: 30%;
}

.footer-contact h3, .footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
}

.footer-contact p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-align: left;
}
.footer-contact i {
    margin-right: 8px;
    color: var(--highlight-color);
}

.footer-links ul {
    list-style: none;
    text-align: left;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.footer-links a:hover {
    color: var(--highlight-color);
}

.footer-social a {
    font-size: 1.8rem;
    color: white;
    margin-right: 15px;
    transition: color 0.3s;
}
.footer-social a:hover {
    color: var(--highlight-color);
}

.footer-copy {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}


/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero-public h1 {
        font-size: 2.5rem;
    }
    .events-grid, .content-showcase {
        flex-direction: column;
        align-items: center;
    }
    .event-card-public, .content-item {
        width: 100%;
        max-width: 400px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-contact, .footer-links, .footer-social {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-contact p, .footer-links ul {
        text-align: center;
    }
}
