/* Importação de Fonte e Reset Básico */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0A3D62;
    --accent-yellow: #FDCB6E;
    --light-bg: #f8f9fa;
    --white-color: #ffffff;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-color: #dee2e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white-color);
    color: var(--dark-text);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- COMPONENTES GERAIS --- */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #082f49;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.2);
}

/* --- HEADER --- */
.landing-header {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.85)), url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NTA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&ixlib=rb-4.0.3&q=80&w=1080') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* --- NEWS SECTION --- */
.news-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.news-card p {
    color: var(--light-text);
    flex-grow: 1;
    margin-bottom: 20px;
}

.news-card a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    align-self: flex-start;
}

/* --- PÁGINA SOBRE --- */
.page-header {
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
}

.page-content {
    padding: 60px 20px;
    max-width: 800px;
}

.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- FOOTER --- */
.landing-footer {
    background-color: var(--dark-text);
    color: var(--light-bg);
    text-align: center;
    padding: 30px 0;
}

/* --- ESTILOS DE GERENCIAMENTO --- */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.management-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: var(--shadow);
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
}

.management-table thead {
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.management-table th, .management-table td {
    padding: 15px;
    text-align: left;
}

.management-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.management-table tbody tr:last-of-type {
    border-bottom: none;
}

.management-table tbody tr:hover {
    background-color: var(--light-bg);
}

.table-thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.btn-action {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 5px;
    color: var(--white-color);
    text-decoration: none;
}

.btn-edit { background-color: #0984e3; }
.btn-delete { background-color: #d63031; }
.btn-secondary { background-color: var(--light-text); color: var(--white-color); }
.btn-danger { background-color: #d63031; color: var(--white-color); }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* --- FORMULÁRIOS --- */
.styled-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- CORREÇÃO DO BOTÃO NO MENU --- */
.main-nav a.btn {
    color: var(--white-color) !important;
}


/* --- SERVICES SECTION --- */
.services-section {
    padding: 80px 0;
    background-color: var(--white-color); /* Fundo branco para contrastar com o cinza das notícias */
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--light-text);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* --- WHATSAPP SECTION --- */
.whatsapp-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap; /* Para telas menores */
}

.whatsapp-content img {
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.whatsapp-text {
    max-width: 500px;
}

.whatsapp-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.whatsapp-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- ESTILOS ADICIONAIS PARA A PÁGINA "SOBRE" --- */

.page-content .content-heading {
    color: var(--primary-blue);
    margin-top: 3rem;      /* Adiciona um bom espaço acima do subtítulo */
    margin-bottom: 1.5rem; /* Adiciona espaço entre o subtítulo e o texto abaixo */
    padding-bottom: 0.5rem;
    font-size: 2.1rem;
    border-bottom: 2px solid var(--border-color); /* Linha sutil para separar as seções */
}

.page-content .closing-statement {
    text-align: center;
    border-bottom: none; /* A frase final não precisa da linha */
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 4rem;
    
}

/* Estilo de justificação APENAS para a página Sobre */
.sobre-container p {
    text-align: justify;
}

/* --- ESTILOS PARA O LINK DO CARD NA HOME --- */
a.card-link {
    text-decoration: none;
    color: inherit; /* Herda a cor do texto normal */
    display: block; /* Garante que a área do link cubra todo o card */
}

/* --- BIBLIOTECA DE PROMPTS --- */

/* Estilo dos cards de categoria */
.prompt-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
}

.category-card i {
    font-size: 1.5rem;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    color: var(--primary-blue);
}

.category-card:hover i {
    color: var(--primary-blue);
}

.category-card.active {
    background-color: var(--primary-blue);
    color: var(--white-color);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.2);
}

.category-card.active i {
    color: var(--white-color);
}

/* Estilo da área de exibição dos prompts */
.prompt-group {
    display: none; /* Escondido por padrão */
    animation: fadeIn 0.5s ease-in-out;
}

.prompt-group.active {
    display: block; /* Mostra o grupo ativo */
}

.prompt-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-blue);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative; /* Para posicionar o botão de copiar */
}

.prompt-card h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.prompt-content pre {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 5px;
    color: #333;
    white-space: pre-wrap; /* Garante a quebra de linha */
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-copy {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--primary-blue);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #082f49;
}

.btn-copy.copied {
    background-color: #28a745; /* Verde para feedback de sucesso */
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- SEÇÃO DE CONTATO (WHATSAPP E INSTAGRAM) --- */
.contact-section {
    padding: 40px 0 80px 0; /* Diminui o padding-top de 80px para 40px */
    background-color: var(--light-bg);
}

/* O container principal com 3 colunas */
.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

/* Texto da coluna central */
.contact-text {
    flex-basis: 35%;
    text-align: center;
}

.contact-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.7;
}

/* Estilo dos cards de QR Code */
.contact-card {
    flex-basis: 25%;
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-card img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Novo estilo para o agrupamento ícone + título */
.card-title-with-icon {
    display: flex; /* Coloca o ícone e o h3 lado a lado */
    align-items: center;
    justify-content: center; /* Centraliza o grupo inteiro */
    gap: 10px; /* Espaço entre o ícone e o título */
    margin-bottom: 5px; /* Ajusta o espaçamento abaixo */
}

.contact-icon {
    width: 30px; /* Tamanho do ícone */
    height: 30px;
    object-fit: contain; /* Garante que a imagem se ajuste sem cortar */
    border: none; /* Remove a borda padrão do QR Code */
    border-radius: 0; /* Remove o border-radius padrão do QR Code */
}

.contact-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin: 0; /* Zera margens padrão para evitar conflitos */
}

.contact-card p {
    color: var(--light-text);
    margin: 0;
    font-size: 0.95rem;
}

.btn-contact-link {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-contact-link:hover {
    background-color: #082f49;
    transform: translateY(-2px);
}


/* --- RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-text {
        order: -1;
        margin-bottom: 20px;
    }
}