/*
Theme Name: Ketly - André Neto
Theme URI: https://blogdoandreneto.com.br
Author: W3D - Jorge S Calçado
Author URI: https://w3designer.com.br
Description: Tema personalizado para o Blog do André Neto - Portal de notícias de Bom Conselho e região
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogandreneto
*/

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

body {
    font-family: 'Libre Baskerville', serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.top-bar {
    background: #fff;
    color: #000;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.social-icon:hover {
    color: #AD2C2F;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 94px;
    width: auto;
}

/* SEARCH BAR */
.header-search {
    flex: 1;
    max-width: 450px;
    margin-left: 30px;
}

.search-form {
    display: flex;
    border: 2px solid #AD2C2F;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-family: 'Libre Baskerville', serif;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #AD2C2F;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-button:hover {
    background: #8B2326;
}

.search-icon {
    font-size: 14px;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #AD2C2F;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 9999;
    border: none;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #FFF212;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* NAVIGATION */
nav {
    background: #AD2C2F;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: #8B2326;
}

/* Submenu Arrow Indicator */
.nav-menu .menu-item-has-children>a::after {
    content: '\f107';
    /* FontAwesome Angle Down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.8;
}

/* SUBMENU */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #AD2C2F;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    padding: 0;
    list-style: none;
}

.nav-menu li:hover>.sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu .sub-menu a:hover {
    background: #8B2326;
    padding-left: 25px;
    /* Slight indent effect on hover */
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
}

.menu-toggle:hover {
    color: #FFF212;
}

/* MAIN CONTAINER */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.row {
    margin: 0;
}

/* MAIN CONTENT */
.main-content {
    background: #fff;
    position: relative;
    z-index: 1;
}

/* DESTAQUE PRINCIPAL */
.featured-post {
    position: relative;
    overflow: hidden;
    height: 540px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.featured-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 30px;
    color: #fff;
}

.featured-overlay a {
    color: #fff;
    text-decoration: none;
}

.featured-category {
    background: #FFF212;
    color: #000;
    padding: 5px 15px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 3px;
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-title:hover {
    color: #FFF212;
}

.featured-meta {
    font-size: 13px;
    opacity: 0.9;
}

/* SECTION TITLES */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 5px solid #AD2C2F;
    padding-left: 15px;
    margin-bottom: 25px;
    color: #1a1a1a;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFF212;
    color: #000;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.news-card-content {
    padding: 20px;
}

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

.news-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.news-card-title:hover {
    color: #AD2C2F;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* LIST POSTS */
.list-posts {
    margin-bottom: 40px;
}

.list-post {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-post:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.list-post-image {
    width: 280px;
    height: 196px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.list-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-post:hover .list-post-image img {
    transform: scale(1.1);
}

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

.list-post-content a {
    text-decoration: none;
    color: inherit;
}

.list-post-category {
    background: #FFF212;
    color: #000;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 3px;
}

.list-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.list-post-title:hover {
    color: #AD2C2F;
}

.list-post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.list-post-meta {
    font-size: 12px;
    color: #999;
}

/* SINGLE POST */
.single-post-content {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.single-post-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.single-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.single-post-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-featured-image {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-post-body p {
    margin-bottom: 20px;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #AD2C2F;
    color: #fff;
    border-color: #AD2C2F;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 5px solid #AD2C2F;
    padding-left: 15px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* MOST READ */
.most-read-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.most-read-item:last-child {
    border-bottom: none;
}

.most-read-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #AD2C2F;
    line-height: 1;
    width: 40px;
    flex-shrink: 0;
}

.most-read-content {
    flex: 1;
}

.most-read-content a {
    text-decoration: none;
    color: inherit;
}

.most-read-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.most-read-title:hover {
    color: #AD2C2F;
}

.most-read-meta {
    font-size: 12px;
    color: #999;
}

/* CATEGORY WIDGET */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

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

.widget a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

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

.widget .count {
    color: #999;
}

/* AD SPACE */
.ad-space {
    background: #f0f0f0;
    padding: 100px 20px;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 5px;
    color: #999;
    font-size: 14px;
}

/* FOOTER */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

footer .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #FFF212;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFF212;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits,
.credits a {
    color: #fff212 !important;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #AD2C2F;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        padding: 18px 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .list-post {
        flex-direction: column;
    }

    .list-post-image {
        width: 100%;
        height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .featured-post {
        height: 420px;
    }

    .featured-title {
        font-size: 24px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-search {
        margin-left: 0;
        margin-top: 15px;
        max-width: 100%;
    }

    .search-form {
        border-radius: 20px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 12px;
        max-width: 120px;
    }

    .search-button {
        padding: 8px 20px;
        font-size: 12px;
        letter-spacing: 0.3px;
        flex: 1;
    }

    .single-post-content {
        padding: 20px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}