/*
Theme Name: Consórcio Saúde
Theme URI: https://seu-site.com
Author: Renan Afonso
Author URI: https://seu-site.com
Description: Tema personalizado para o Consórcio Público de Saúde de Paulo Afonso
Version: 1.0
License: GPL v2 or later
Text Domain: consorcio
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8faff;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== CORES ===== */
:root {
    --primary: #0083BA;
    --primary-dark: #006a99;
    --primary-light: #e1f2fa;
    --secondary: #00B087;
    --secondary-light: #e0f5ee;
    --text-dark: #0b2b4a;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-area img{
    width: 130px;
    height: auto;
}
.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 131, 186, 0.25);
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.25s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.nav-links .btn-nav:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.nav-links .btn-nav::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 4px 4px 4px 16px;
    transition: background 0.2s, box-shadow 0.2s;
}
.search-form:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary);
}
.search-field {
    border: none;
    background: transparent;
    padding: 6px 0;
    font-size: 0.9rem;
    width: 120px;
    outline: none;
    color: #1e293b;
}
.search-field::placeholder {
    color: #94a3b8;
}
.search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-submit:hover {
    background: var(--primary-dark);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 60px 0 50px;
    border-bottom: 1px solid rgba(0, 131, 186, 0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 34px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 131, 186, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 14px 34px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 320px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* ===== NOTÍCIAS ===== */
.section {
    padding: 64px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header a {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.section-header a:hover {
    gap: 14px;
}

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

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f0f4fe;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 131, 186, 0.10);
}

.news-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.news-link:hover h3 {
    color: var(--primary);
    transition: color 0.2s;
}

.news-card .thumb {
    height: 180px;
    background: linear-gradient(145deg, var(--primary-light), #eef5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    overflow: hidden;
}
.news-card .thumb img {
    transition: transform 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card:hover .thumb img {
    transform: scale(1.05);
}

.news-card .body {
    padding: 20px 22px 24px;
}

.news-card .tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.news-card p {
    color: #64748b;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .meta {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-card .meta i {
    margin-right: 4px;
}

/* ===== SINGLE ===== */
.single-post {

    margin: 0 auto;
    background: #fff;
    border-radius: 24px;

}
.single-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
}
.single-meta i {
    margin-right: 6px;
    color: var(--primary);
}
.single-thumb {
    margin: 24px 0 28px;
    border-radius: 16px;
    overflow: hidden;
}
.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
}
.single-content h2, .single-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
.single-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e9effa;
}
.tags {
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.tag-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 8px;
}
.post-nav {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}
.post-nav a {
    color: var(--primary);
    transition: color 0.2s;
}
.post-nav a:hover {
    color: var(--primary-dark);
}

/* ===== PAGE ===== */
.page-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
    background: #fff;
    padding: 40px 48px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.page-content h2, .page-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

/* ===== ACESSO RÁPIDO ===== */
.acesso-rapido {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.grid-acesso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.acesso-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 1px solid #e9effa;
    cursor: pointer;
}

.acesso-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 131, 186, 0.08);
    border-color: var(--primary);
}

.acesso-item .icon {
    background: var(--primary-light);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: var(--primary);
    transition: background 0.2s, color 0.2s;
}

.acesso-item:hover .icon {
    background: var(--primary);
    color: #fff;
}

.acesso-item .label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.acesso-item .sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== CONTATO ===== */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contato-info {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f9;
}

.contato-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contato-info p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #334155;
}

.contato-info p i {
    width: 24px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contato-info .social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.contato-info .social-links a {
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.contato-info .social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.contato-mapa {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f9;
    min-height: 280px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.contato-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-dark);
    color: #cddbe9;
    padding: 32px 0;
    margin-top: 16px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: #a0c4e8;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}
.img-rodape img{
    max-width: 400px;
    
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    transition: background 0.2s, color 0.2s;
}
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
}
.pagination a.page-numbers:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .contato-grid {
        grid-template-columns: 1fr;
    }
    .navbar .container {
        height: 64px;
    }
    .single-post, .page-content {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 24px 20px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
        border-top: 1px solid #edf2f9;
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .grid-acesso {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .search-field {
        width: 100%;
    }
    .nav-links li:has(.search-form) {
        width: 100%;
    }
    .search-form {
        width: 100%;
        padding: 4px 4px 4px 12px;
    }
    .single-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .btn-primary, .btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .hero {
        padding: 40px 0 30px;
    }
    .section {
        padding: 40px 0;
    }
    .single-post, .page-content {
        padding: 20px 16px;
    }
    .single-title {
        font-size: 1.6rem;
    }
}