/**
 * Portal Elimar Cortes - Main Stylesheet
 * @package Portal_Elimar_Cortes
 * @since 1.0.0
 */

:root {
    --color-black: #000000;
    --color-black-soft: #1F1F1F;
    --color-gray-dark: #2D2D2D;
    --color-gray-medium: #6B7280;
    --color-gray-light: #F3F4F6;
    --color-white: #FFFFFF;
    --color-gold: #C91212;
    --color-red: #EF4444;
    --font-primary: 'Oswald', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-gray-medium);
    background-color: var(--color-white);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Navigation */
.navbar-custom {
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    height: 90px;
    border-bottom: 1px solid var(--color-gray-light);
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    color: var(--color-black) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-custom .navbar-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-right: 15px;
}

.navbar-toggler {
    border: 1px solid var(--color-gray-medium);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--color-black) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding: 12px 25px !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 8px;
    margin: 0 5px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    background-color: var(--color-gold) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-medium);
    border-radius: 25px;
    color: var(--color-black);
    padding: 8px 40px 8px 20px;
    width: 220px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: var(--color-white);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 18, 18, 0.25);
    color: var(--color-black);
}

.search-input::placeholder {
    color: var(--color-gray-medium);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-medium);
    cursor: pointer;
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
    background: var(--color-gray-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-toggle:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.mobile-search-toggle:active {
    transform: scale(0.95);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.mobile-search-header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.mobile-search-close {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

.mobile-search-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.mobile-search-form {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 1.25rem 60px 1.25rem 1.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-search-input:focus {
    outline: none;
    box-shadow: 0 10px 50px rgba(201, 18, 18, 0.4);
}

.mobile-search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-gold);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-submit:hover {
    background: #a00f0f;
    transform: translateY(-50%) scale(1.05);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons a {
    color: var(--color-gray-medium);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--color-gray-light);
    text-decoration: none !important;
}

.social-icons a:hover {
    color: var(--color-white);
    background: var(--color-gold);
    transform: scale(1.05);
}

/* Banner Ad */
.top-banner-ad {
    background: var(--color-white);
    padding: 2rem 0;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible;
    width: 100%;
}

/* Top Banner Wrapper - Clean and Simple */
.banner-top-wrapper {
    width: 100%;
    background: #ffffff;
    padding: 3rem 1rem;
    overflow: visible;
    display: block;
    min-height: 150px;
    margin-top: 95px;
    position: relative;
    z-index: 1;
}

.banner-top-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    overflow: visible;
    padding: 0 15px;
}

.banner-top-wrapper img {
    max-width: 100%;
    width: auto;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
}

.banner-top-wrapper .adrotate_group {
    overflow: visible;
    display: inline-block;
    width: auto;
}

.banner-top-wrapper a {
    display: inline-block;
    overflow: visible;
    line-height: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .banner-top-wrapper {
        padding: 2rem 0.5rem;
        min-height: 100px;
    }
}

/* Show/Hide banners based on device */
.ad-space-mobile {
    display: none !important;
}

.ad-space-desktop {
    display: flex !important;
}

.ad-space-top-banner {
    height: auto;
    min-height: 90px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.ad-space-top-banner img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.ad-space-top-banner span {
    display: block;
    width: 100%;
    text-align: center;
}

/* Bottom Banner Ad */
.bottom-banner-ad {
    background: var(--color-white);
    padding: 1rem 0;
    border-top: 1px solid var(--color-gray-light);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.ad-space-bottom-banner {
    max-width: 970px;
    width: 100%;
    margin: 0 auto;
    display: block;
    overflow: hidden;
}

.ad-space-bottom-banner img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.ad-space-bottom-banner a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-space-bottom-banner .placeholder-ad {
    background: #f0f0f0;
    border: none !important;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    margin: 0 auto;
    width: 970px;
    max-width: 100%;
}

.ad-space-top-banner .placeholder-ad {
    background: #f0f0f0;
    border: none !important;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    margin: 0 auto;
    width: 970px;
    max-width: 100%;
}

/* Override generic ad-space styles for banners */
.ad-space-bottom-banner,
.ad-space-top-banner,
.ad-space-sidebar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ad-space-top-banner a,
.ad-space-sidebar a {
    display: block;
    line-height: 0;
    border: none !important;
}

.ad-space-bottom-banner a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
}

.ad-space-bottom-banner img,
.ad-space-top-banner img,
.ad-space-sidebar img {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    padding: 3rem 0;
    margin-top: 0;
}

.hero-category-sidebar {
    background: var(--color-white);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.category-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #00b300;
}

.category-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-news-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.category-news-item:hover {
    transform: translateX(5px);
}

.category-news-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.category-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-news-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00b300;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-news-title a {
    color: inherit;
    text-decoration: none;
}

.category-news-item:hover .category-news-title {
    color: #009900;
}

.category-news-time {
    color: var(--color-gray-medium);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 500px;
}

.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('https://elimarcortes.com.br/wp-content/uploads/2025/09/Foto-PT-350x250.jpeg');
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hero-card-main {
    grid-row: 1 / 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
}

.hero-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 8px 14px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(201, 18, 18, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-card-main .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-meta {
    color: var(--color-gray-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* News Grid */
.news-grid {
    padding: 4rem 0;
}

.news-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    height: auto !important;
}

.news-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.news-card-horizontal .news-card-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.news-card-large .news-card-image {
    height: 300px;
}

.news-card-small .news-card-image {
    height: 150px;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-horizontal .news-card-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-card-category {
    color: var(--color-gray-medium);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--color-gold);
}

.news-card-horizontal .news-card-title {
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.news-card-large .news-card-title {
    font-size: 1.5rem;
}

.news-card-small .news-card-title {
    font-size: 1rem;
}

.news-card-excerpt {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    color: var(--color-gray-medium);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.news-card-horizontal .news-card-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.news-card-horizontal .news-card-meta span {
    white-space: nowrap;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card-meta span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar */
.sidebar {
    background: var(--color-white);
    border-left: 1px solid var(--color-gray-light);
    padding-left: 2rem;
}

.widget {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    transition: all 0.3s ease;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    font-size: 0.9rem;
}

.widget-list small {
    font-size: 0.75rem;
}

.widget-list li:hover {
    background: var(--color-gray-light);
    margin: 0 -1.5rem;
}

.featured-article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-article-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.featured-article-link:hover {
    transform: translateY(-3px);
}

.featured-article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.featured-article-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-article-link:hover .featured-article-title {
    color: var(--color-gold);
}

.featured-article-excerpt {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 0;
}

.other-articles-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 1rem 0 0.75rem 0;
    padding-top: 1rem;
    border-top: 3px solid var(--color-gray-medium);
}

.featured-article-topics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-article-topics li {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.featured-article-topics li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.featured-article-topics li a {
    color: var(--color-gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article-topics li a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Sidebar Widgets Styles */
.ad-space-sidebar {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.ad-space-sidebar img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-space-sidebar .placeholder-ad {
    background: #f0f0f0;
    border: none;
    padding: 80px 20px;
    text-align: center;
    color: #999;
}

.widget-artigos .featured-article {
    margin-bottom: 1rem;
}

.widget-artigos .article-title a {
    color: var(--color-black);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-artigos .article-title a:hover {
    color: var(--color-gold);
}

.widget-artigos .article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget-outros-artigos ul {
    margin: 0;
    padding: 0;
}

.widget-outros-artigos li {
    margin-bottom: 0.5rem;
}

.widget-outros-artigos a {
    color: #d32f2f;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.widget-outros-artigos a:hover {
    color: #9a0007;
    text-decoration: underline;
}

.widget-categorias .categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-categorias .category-pill {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.widget-categorias .category-pill:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
}

.widget-arquivos ul,
.widget-posts-recentes ul,
.widget-comentarios ul {
    margin: 0;
    padding: 0;
}

.widget-arquivos li,
.widget-posts-recentes li,
.widget-comentarios li {
    margin-bottom: 0.5rem;
}

.widget-arquivos a,
.widget-posts-recentes a,
.widget-comentarios a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.widget-arquivos a:hover,
.widget-posts-recentes a:hover,
.widget-comentarios a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.widget-list a {
    color: var(--color-gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: var(--color-gold);
}

.category-pill {
    background: var(--color-black);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 5px 10px 0;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.category-count {
    background: var(--color-white);
    color: var(--color-black);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.social-widget .social-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 5px;
    text-align: center;
    line-height: 50px;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.instagram { background: #e4405f; }
.social-btn.youtube { background: #ff0000; }

.social-btn:hover {
    transform: scale(1.1);
    color: var(--color-white);
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
    object-fit: contain;
    background: var(--color-black);
    padding: 8px;
    border-radius: 8px;
}

.footer-logo-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-gold);
    margin: 0;
}

.footer h5 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.footer a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--color-gold);
}

.footer .social-icons a {
    color: var(--color-gray-light);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    background: none;
}

.footer .social-icons a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-dark);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-gray-medium);
}

/* Ad Spaces */
.ad-space {
    background: transparent;
    border: none;
    border-radius: 0;
    display: block;
    color: var(--color-gray-medium);
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}

.ad-space:hover {
    border-color: transparent;
    background: transparent;
}

.ad-space-rectangle {
    height: 250px;
    width: 100%;
}

.ad-space-sidebar {
    height: 250px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.ad-space-horizontal {
    height: 90px;
    width: 100%;
    margin: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-gray-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.view-all-btn {
    background: none;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* Slider Styles */
.news-slider {
    overflow: hidden;
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-item {
    flex: 0 0 auto;
    margin-right: 1.5rem;
}

/* Geral Section Slider - 3 items side by side on desktop, 1 on mobile */
.geral-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.geral-slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease-in-out;
    gap: 20px;
    will-change: transform;
    backface-visibility: hidden;
}

.geral-slider-item {
    flex: 0 0 calc(25% - 15px);
    width: calc(25% - 15px);
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
}

.geral-slider-item .news-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Mobile: 1 item at a time */
@media (max-width: 768px) {
    .geral-slider-wrapper {
        gap: 15px;
    }

    .geral-slider-item {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Category Sliders (Política & Segurança) - Horizontal pages with vertical stacks */
.category-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.category-slider-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    grid-auto-columns: 100%;
    gap: 1rem 0;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
}

.category-slider-wrapper .slider-item {
    width: 100%;
}

.slider-nav {
    text-align: center;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* List Styles */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list-item {
    border-bottom: 1px solid var(--color-gray-light);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    background: var(--color-gray-light);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.news-list-title:hover {
    color: var(--color-gold);
}

.news-list-meta {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
}

/* Single Post Styles */
.single-post-section {
    padding: 3rem 0;
    padding-top: 8rem;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.breadcrumb-nav {
    background: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--color-gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--color-gold);
}

.breadcrumb-nav .active {
    color: var(--color-gold);
    font-weight: 600;
}

.post-header {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-category {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--color-gold);
    font-style: italic;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-gray-light);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta-item i {
    color: var(--color-gold);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.post-featured-image {
    width: 70%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.post-content {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--color-gray-light);
    border-radius: 8px;
    font-style: italic;
    color: var(--color-gray-dark);
}

.post-tags {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-tags h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background: var(--color-gray-light);
    color: var(--color-gray-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.social-share {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.social-share h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.share-btn-facebook {
    background: #3b5998;
    color: var(--color-white);
}

.share-btn-twitter {
    background: #1da1f2;
    color: var(--color-white);
}

.share-btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
}

.share-btn-telegram {
    background: #0088cc;
    color: var(--color-white);
}

.share-btn-email {
    background: var(--color-gray-dark);
    color: var(--color-white);
}

.related-posts {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.related-posts h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-gold);
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-item:hover {
    background: var(--color-gray-light);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.related-post-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-post-item:hover .related-post-title {
    color: var(--color-gold);
}

.related-post-meta {
    color: var(--color-gray-medium);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Widget Post Item */
.widget-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.widget-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-post-item:hover {
    transform: translateX(5px);
}

.widget-post-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.widget-post-content {
    flex: 1;
}

.widget-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-post-item:hover .widget-post-title {
    color: var(--color-gold);
}

.widget-post-date {
    color: var(--color-gray-medium);
    font-size: 0.75rem;
}

/* Search feedback animation */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    15%, 85% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Styles */
@media (max-width: 1280px) {
    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 0.85rem;
        margin: 0 2px;
    }

    .search-input {
        width: 180px;
        padding: 8px 35px 8px 15px;
    }

    .social-icons {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        min-width: 32px;
        flex-shrink: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom {
        height: auto;
        padding: 1rem 0;
    }

    .navbar-custom .container-xl {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Ensure mobile buttons are always visible */
    .mobile-search-toggle,
    .navbar-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide desktop search in collapsed menu */
    .navbar-collapse .search-container,
    .navbar-collapse .social-icons {
        display: none !important;
    }

    .top-banner-ad {
        margin-top: 0;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        padding-top: 70px !important;
        overflow-x: hidden;
        display: block !important;
        visibility: visible !important;
    }

    .ad-space-top-banner {
        height: auto;
        min-height: 90px;
        font-size: 0.8rem;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
    }

    .ad-space-top-banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 90px !important;
        display: block !important;
    }

    .ad-space-top-banner .placeholder-ad {
        display: block !important;
        width: 100% !important;
        min-height: 90px;
        padding: 30px 20px;
    }

    .bottom-banner-ad {
        overflow-x: hidden;
        padding: 1rem 0.5rem;
    }

    .ad-space-bottom-banner {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 90px;
    }

    .ad-space-bottom-banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 90px !important;
    }

    .ad-space-bottom-banner .placeholder-ad {
        min-height: 90px;
        padding: 30px 20px;
    }

    .hero-section {
        margin-top: 0;
        padding: 1rem 0 2rem 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 1rem;
    }

    .hero-card-main {
        grid-row: 1;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-card-main .hero-title {
        font-size: 2rem;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--color-gray-light);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .search-input {
        width: 180px;
    }

    .social-icons {
        gap: 6px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .news-card-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .slider-item {
        min-width: 280px;
    }

    .ad-space-sidebar {
        height: 200px;
    }

    .ad-space-horizontal {
        height: 60px;
        font-size: 0.8rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    /* Ensure mobile controls are visible on small screens */
    .mobile-search-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .navbar-toggler {
        padding: 0.4rem 0.6rem;
    }

    .navbar-custom .navbar-brand img {
        height: 35px;
    }

    /* Show mobile banners, hide desktop banners */
    .ad-space-mobile {
        display: flex !important;
    }

    .ad-space-desktop {
        display: none !important;
    }

    .top-banner-ad {
        padding: 1rem 0.5rem 1rem 0.5rem;
        padding-top: 70px !important;
        margin-top: 1rem;
        overflow-x: hidden;
        display: flex !important;
        justify-content: center;
        align-items: center;
        visibility: visible !important;
    }

    .ad-space-top-banner.ad-space-mobile {
        height: auto;
        min-height: 100px;
        font-size: 0.7rem;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto;
        display: flex !important;
    }

    .ad-space-top-banner.ad-space-desktop {
        display: none !important;
    }

    .ad-space-top-banner img {
        width: 100% !important;
        max-width: 320px !important;
        min-height: 100px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto;
    }

    .ad-space-top-banner .placeholder-ad {
        display: block !important;
        width: 100% !important;
        max-width: 320px;
        min-height: 100px;
        padding: 25px 15px;
        margin: 0 auto;
    }

    .bottom-banner-ad {
        overflow-x: hidden;
        padding: 1rem 0.5rem;
    }

    .ad-space-bottom-banner.ad-space-mobile {
        width: 100% !important;
        max-width: 320px !important;
        min-height: 100px;
        margin: 0 auto;
        display: flex !important;
    }

    .ad-space-bottom-banner.ad-space-desktop {
        display: none !important;
    }

    .ad-space-bottom-banner.ad-space-mobile img {
        width: 100% !important;
        max-width: 320px !important;
        min-height: 100px !important;
        height: auto !important;
        margin: 0 auto;
    }

    .ad-space-bottom-banner.ad-space-mobile .placeholder-ad {
        min-height: 100px;
        max-width: 320px;
        padding: 25px 15px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-card-main .hero-title {
        font-size: 1.2rem;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

    .hero-card {
        min-height: 300px;
    }

    .search-input {
        width: 100%;
        margin-bottom: 1rem;
    }

    .social-icons {
        margin-top: 1rem;
        justify-content: center;
        gap: 12px;
    }

    .slider-item {
        min-width: 250px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .ad-space-horizontal {
        height: 50px;
        font-size: 0.7rem;
    }

    .ad-space-rectangle {
        height: 200px;
    }

    .news-card-horizontal .news-card-image {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .news-card-horizontal .news-card-title {
        font-size: 0.85rem;
    }

    .news-card-horizontal .news-card-content {
        padding: 0;
    }

    .slider-item {
        margin-bottom: 0.75rem !important;
    }

    .slider-item:first-child {
        margin-top: 0 !important;
    }

    .news-card-horizontal {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .category-slider-wrapper .slider-item {
        margin-bottom: 0.75rem;
    }

    .category-slider-wrapper .slider-item:first-child {
        margin-top: 0 !important;
    }

    .news-card {
        margin-bottom: 0 !important;
    }

    .footer-logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 0.5rem;
    }

    .footer .col-lg-4,
    .footer .col-lg-2 {
        text-align: center;
    }

    .footer h5 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer .list-unstyled {
        text-align: center;
        padding: 0;
    }

    .footer .list-unstyled li {
        text-align: center;
    }

    .footer .social-icons {
        justify-content: center;
    }

    /* Footer contact info centering on mobile */
    .footer p {
        text-align: center;
    }

    .footer .mb-4 {
        margin-bottom: 2rem !important;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-subtitle {
        font-size: 1rem;
        padding-left: 0.75rem;
    }

    .post-header {
        padding: 1.5rem;
    }

    .post-content {
        padding: 1.25rem;
    }

    .post-content p {
        font-size: 1rem;
    }

    .related-post-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* AdRotate Banner Styles - Fix para exibir banner completo */
.top-banner-ad img,
.bottom-banner-ad img,
.ad-space-sidebar img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Post Inline Ad - Floating Right */
.post-inline-ad {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 300px;
    clear: right;
}

.post-inline-ad img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Mobile: Stack banner below content */
@media (max-width: 768px) {
    .post-inline-ad {
        float: none;
        margin: 1rem auto;
        max-width: 100%;
        text-align: center;
    }
}

.top-banner-ad .adrotate_group,
.bottom-banner-ad .adrotate_group,
.ad-space-sidebar .adrotate_group {
    overflow: visible !important;
    width: 100% !important;
    text-align: center !important;
}

.top-banner-ad,
.bottom-banner-ad {
    overflow: visible !important;
    width: 100% !important;
}

.top-banner-ad .container-xl,
.bottom-banner-ad .container-xl {
    overflow: visible !important;
}
