/* ========================================
   Estilos Principais do Tema
   ======================================== */

/* ========================================
   Header e Navegação
   ======================================== */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.8em;
    margin: 0;
}

.site-title a {
    color: #333;
}

.site-description {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 0 0;
}

.custom-logo {
    max-height: 100px;
    width: auto;
}

/* Navegação Principal */
.main-navigation {
    flex: 1;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

/* ========================================
   Slider de Notícias
   ======================================== */

.news-slider-section {
    margin: 40px 0;
    background-color: #f9f9f9;
    padding: 30px 0;
}

.news-slider {
    position: relative;
}

.swiper-slide {
    height: auto;
}

.slider-news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-news-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.slider-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-news-item:hover .slider-news-image img {
    transform: scale(1.05);
}

.slider-news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slider-news-title {
    font-size: 1.3em;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.slider-news-title a {
    color: #333;
}

.slider-news-title a:hover {
    color: #0066cc;
}

.slider-news-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 10px;
}

.slider-news-excerpt {
    flex: 1;
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.slider-news-link {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slider-news-link:hover {
    color: #004499;
}

/* Navegação do Slider */
.swiper-button-prev,
.swiper-button-next {
    color: #0066cc;
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #0066cc;
    color: white;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* Paginação do Slider */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background-color: rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet-active {
    background-color: #0066cc;
}

/* ========================================
   Layout de Duas Colunas
   ======================================== */

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.main-content {
    flex: 1;
}

.widget-area {
    flex: 0 0 300px;
}

/* ========================================
   Notícias (Coluna Principal)
   ======================================== */

.news-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item-inner {
    display: flex;
    gap: 20px;
}

.news-item-image {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.entry-header {
    margin-bottom: 10px;
}

.entry-title {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0066cc;
}

.entry-meta {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 10px;
}

.entry-meta a {
    color: #0066cc;
}

.entry-meta a:hover {
    color: #004499;
}

.entry-content {
    flex: 1;
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.entry-footer {
    text-align: right;
}

.read-more-link {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #004499;
}

/* ========================================
   Patrocinadores (Coluna Lateral)
   ======================================== */

.sponsors-widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.sponsors-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sponsor-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.sponsor-item:hover {
    border-color: #0066cc;
}

.sponsor-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.sponsor-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sponsor-link {
    display: block;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.sponsor-link:hover {
    background-color: #f0f0f0;
}

.sponsor-link img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sponsor-name {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* ========================================
   Widgets
   ======================================== */

.widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.widget a {
    color: #0066cc;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #004499;
}

/* ========================================
   Paginação
   ======================================== */

.pagination,
.posts-navigation {
    margin: 40px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* ========================================
   Rodapé
   ======================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    margin-bottom: 30px;
}

.footer-widgets .widget {
    background-color: transparent;
    border: none;
    padding: 0 0 20px 0;
    margin-bottom: 20px;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #0066cc;
}

.footer-widgets .widget a {
    color: #0066cc;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.site-info {
    flex: 1;
}

.site-info a {
    color: #0066cc;
}

.footer-navigation {
    flex: 1;
    text-align: right;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.footer-navigation a {
    color: #0066cc;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #fff;
}

/* ========================================
   Página 404 e Sem Resultados
   ======================================== */

.error-404,
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2em;
    color: #333;
    margin: 0 0 20px 0;
}

.page-content {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

/* ========================================
   Responsividade
   ======================================== */

/* Tablets (768px e acima) */
@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-item-inner {
        flex-direction: column;
    }

    .news-item-image {
        flex: 0 0 auto;
        height: 200px;
        width: 100%;
    }

    .sponsors-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-navigation {
        text-align: center;
    }

    .footer-navigation ul {
        justify-content: center;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }
}

/* Smartphones (480px e abaixo) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 1.4em;
    }

    .main-navigation {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .entry-title {
        font-size: 1.2em;
    }

    .slider-news-title {
        font-size: 1.1em;
    }

    .sponsors-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .swiper-button-prev {
        left: 5px;
    }

    .swiper-button-next {
        right: 5px;
    }

    .page-title {
        font-size: 1.5em;
    }
}
