:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --gradient-primary: linear-gradient(135deg, #e63946 0%, #d62839 100%);
    --gradient-dark: linear-gradient(135deg, #1d3557 0%, #152841 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Topbar */
.topbar {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.topbar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: opacity 0.3s;
}

.topbar a:hover {
    opacity: 0.8;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.logo-area {
    padding: 15px 0;
}

.site-logo {
    max-height: 60px;
    transition: transform 0.3s;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-nav {
    background: var(--gradient-dark);
    padding: 0;
}

.main-nav .navbar {
    padding: 0;
}

.main-nav .nav-link {
    color: white !important;
    padding: 15px 20px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after {
    width: 80%;
}

.main-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 300px;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 10px 40px 10px 20px;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--gradient-primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 500px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-card:hover img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 40px 30px;
    color: white;
}

.hero-category {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Secondary Hero Cards */
.secondary-hero {
    height: 240px;
    margin-bottom: 20px;
}

.secondary-hero .hero-title {
    font-size: 1.3rem;
}

/* Category Cards */
.category-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
    cursor: pointer;
}

.trending-item:hover {
    padding-left: 10px;
    background: #f8f9fa;
    margin: 0 -10px;
    padding-right: 10px;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
}

.trending-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Ad Banner */
.ad-banner {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
}

/* Footer */
.main-footer {
    background: var(--gradient-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Page Selector */
.page-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.page-btn {
    padding: 10px 20px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn:hover {
    transform: scale(1.05);
}

.page-btn.active {
    background: var(--gradient-dark);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Post Page Styles */
.post-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.post-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta-info {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 1rem;
    color: var(--text-light);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #e9ecef;
}

/* Static Page Styles */
.page-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-role {
    color: var(--text-light);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-card {
        height: 350px;
    }

    .secondary-hero {
        height: 200px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-selector {
        bottom: 10px;
        right: 10px;
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.lavra-highlight-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
}

.section-title-post {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}

.section-title-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.data-post {
    font-size: 0.9rem;
    color: #6c757d;
}

.wp-block-embed-youtube iframe,
iframe[src*="youtube.com"] {
    width: 100%;       /* largura total do container */
    max-width: 800px;  /* largura máxima */
    height: 450px;     /* altura fixa ou ajustada */
}

.content-post {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.titulo-page-single {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-news {
    border-radius: 3px;
    background-color: #fff;
    border: solid 1px #D4D4D4;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
#image-destaque {
    height: 160px;
    border-radius: 2px;
}
.img-news {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.titulo-card-news {
    color: var(--secondary-color);
    font-family: opensans,opensans-bastian,Arial,sans-serif;
    font-size: 24px;
    letter-spacing: -1.25px;
    font-weight: 700;
}


.titulo-card-news:hover {
    color: var(--primary-color);
}
.sub-titulo-card-news {
    font-family: opensans,opensans-bastian,Arial,sans-serif;
    font-weight: 400;
    letter-spacing: -.3px;
    color: #555;
    font: 16px/20px Arial,sans-serif;
}

/* PAGINAÇÃO */
.paginacao {
    padding-top: 10px;
    padding-bottom: 10px;
}
.page-numbers {
    padding: 5px 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}
.page-numbers:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.current {
    background-color: var(--primary-color);
}

.img-footer {
    max-width: 150px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

#link-menu-superior {
    color: white !important;
    font-weight: 600;
}

#link-menu-superior:hover {
    color: var(--accent-color) !important;
}