:root {
    --primary: #E33E36;
    --dark: #111111;
    --gray-bg: #f5f5f5;
    --text: #111111;
    --text-light: #777777;
    --white: #FFFFFF;
    --border: #EEEEEE;
    --font-head: 'Roboto', sans-serif;
    --font-menu: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    background-color: #fbfbfb;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    padding-top: 220px;
    /* Espaço para o cabeçalho fixo não cobrir o conteúdo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* HEADER BARTA STYLE (Fixed Top) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-main-custom {
    background: var(--dark);
    padding: 25px 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main-custom.is-sticky {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 65px;
    /* Altura imponente inicial */
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.is-sticky .logo-img {
    height: 40px;
    /* Redução de quase 40% na escala visual */
}

/* Garante que o container flexível mantenha o alinhamento central */
.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 span {
    color: var(--primary);
    font-style: italic;
    margin-left: -5px;
}

.main-nav-custom {
    display: flex;
    align-items: center;
}

.menu-custom {
    display: flex;
    margin-right: 30px;
}

.menu-custom li a {
    color: #fff;
    font-family: var(--font-menu);
    font-weight: 400;
    /* Removido o negrito para ficar mais leve */
    font-size: 13px;
    padding: 12px 18px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.menu-custom li a:hover,
.menu-custom li a.active {
    color: var(--primary);
}

.header-icons-custom {
    display: flex;
    align-items: center;
    color: #fff;
    gap: 20px;
}

.header-icons-custom a {
    font-size: 18px;
}

.header-icons-custom .divider {
    width: 1px;
    height: 20px;
    background: #333;
}

.cart-icon {
    position: relative;
}

.cart-icon .badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breaking News Bar */
.breaking-news-custom {
    background: #fff;
    border-bottom: 1px solid #ddd;
    height: 55px;
    display: flex;
    align-items: center;
}

.news-ticker {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #eee;
    height: 38px;
}

.ticker-label {
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid var(--primary);
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
}

.ticker-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: inline-block;
    padding-left: 25px;
    animation: tickerLoop 40s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-move a {
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.ticker-move a:hover {
    color: var(--primary);
}

@keyframes tickerLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Meta Bar (Date/Location) */
.meta-bar-custom {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

.meta-items span {
    margin-right: 25px;
}

.meta-items i {
    color: var(--primary);
    margin-right: 6px;
}

/* HERO GRID - 5 ITEMS (Special Layout) */
.hero-grid-custom {
    display: grid;
    grid-template-columns: 1.15fr 1.7fr 1.15fr;
    grid-template-rows: 240px 240px;
    gap: 4px;
    margin: 30px 0;
}

.hero-custom-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-custom-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    opacity: 0.85;
}

.hero-custom-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.hero-custom-item.center {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.hero-custom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    pointer-events: none;
}

.hero-custom-overlay .badge {
    background: #3b5998;
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    border-radius: 2px;
}

.hero-custom-overlay.politics .badge {
    background: var(--primary);
}

/* Custom Colors per category if needed */
.hero-custom-overlay.games .badge {
    background: #5a32a8;
}

.hero-custom-overlay.food .badge {
    background: #000;
}

.hero-custom-overlay h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-custom-item.center .hero-custom-overlay h3 {
    font-size: 24px;
}

/* Main Content Area */
.main-content {
    padding: 40px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* MIDDLE SECTION BARTA (Cabeçalho com Abas) */
.middle-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
    height: 48px;
    background: #fff;
}

.middle-header-label {
    background: var(--primary);
    color: #fff;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
}

.middle-header-label::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    border-left: 14px solid var(--primary);
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
}

.middle-header-nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    padding-right: 15px;
}

.middle-header-nav a:hover,
.middle-header-nav a.active {
    color: var(--primary);
}

.middle-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Large Featured Post in Middle */
.featured-vertical-custom {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.featured-vertical-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.featured-vertical-custom:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.featured-vertical-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: #fff;
    pointer-events: none;
}

.featured-vertical-overlay .badge {
    background: var(--primary);
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 18px;
    display: inline-block;
}

.featured-vertical-overlay h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}

.featured-vertical-meta {
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    gap: 15px;
    font-weight: 600;
}

/* Side List in Middle */
.side-list-custom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

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

.side-list-item img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    transition: 0.3s;
}

.side-list-item:hover img {
    opacity: 0.8;
}

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

.side-list-content .date {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: block;
    font-weight: 700;
}

.side-list-content h4 {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    transition: 0.3s;
    margin: 0;
}

.side-list-content h4:hover {
    color: var(--primary);
}

/* Sidebar Widgets Modernized */
.sidebar-widget {
    margin-bottom: 45px;
}

.widget-header-custom {
    border-bottom: 2px solid var(--dark);
    margin-bottom: 25px;
}

.widget-header-custom h3 {
    background: var(--dark);
    color: #fff;
    display: inline-block;
    padding: 10px 25px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
}

.social-connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: 0.3s;
}

.social-box:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-box.fb {
    background: #3b5998;
}

.social-box.tw {
    background: #1da1f2;
}

.social-box.yt {
    background: #ff0000;
}

.social-box.pt {
    background: #8e8e8e;
}

.social-box .count {
    font-weight: 400;
    font-size: 11px;
}

.promo-banner {
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.promo-banner img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

/* CATEGORY GRID BARTA (Life Style Section) */
.category-section-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #5cb85c;
    margin: 40px 0 25px;
    height: 38px;
}

.category-header-label {
    background: #5cb85c;
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.category-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 4px;
}

.cat-grid-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.cat-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.cat-grid-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.cat-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.cat-grid-overlay h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cat-grid-meta {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 600;
}

/* RECENT NEWS SIDEBAR GRID */
.recent-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.recent-grid-item {
    margin-bottom: 10px;
}

.recent-grid-item img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.recent-grid-item h4 {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    transition: 0.3s;
}

.recent-grid-item h4:hover {
    color: var(--primary);
}

/* Posts List */
.section-title {
    border-bottom: 2px solid var(--dark);
    margin-bottom: 25px;
}

.section-title h2 {
    background: var(--dark);
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    font-size: 15px;
    text-transform: uppercase;
}

.post-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.post-list-item img {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.post-list-content h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* FOOTER */
.main-footer {
    background: var(--dark);
    color: #bbb;
    padding: 60px 0 30px;
}

.footer-logo h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

/* HORIZONTAL BANNER AD (728x90 style) */
.horizontal-banner-wrapper {
    margin: 50px auto;
    text-align: center;
    max-width: 1320px;
}

.horizontal-ad-box {
    background: #222;
    color: #fff;
    padding: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ad-info {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.ad-info h5 {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
    margin: 0;
}

.ad-info p {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.btn-ad-red {
    background: var(--primary);
    color: #fff;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
}

/* TRIPLE FEATURE SECTION (Bottom Section with gray bg) */
.triple-feature-section {
    background-color: #f6f6f6;
    padding: 50px 0;
    margin: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.triple-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 0;
}

.triple-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.triple-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: 0.5s;
}

.triple-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.triple-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.triple-overlay .badge {
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    border-radius: 2px;
}

.triple-overlay h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

/* THREE COLUMN CATEGORIES SECTION */
.three-col-categories {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.cat-column-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    height: 34px;
    position: relative;
}

.cat-column-header .label {
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
}

/* Color markers for headers */
.cat-column-header.sports {
    border-bottom-color: #4a90e2;
}

.cat-column-header.sports .label {
    background: #4a90e2;
}

.cat-column-header.health {
    border-bottom-color: #f5a623;
}

.cat-column-header.health .label {
    background: #f5a623;
}

.cat-column-header.politics {
    border-bottom-color: #e33e36;
}

.cat-column-header.politics .label {
    background: #e33e36;
}

/* Decorative tip on header label */
.cat-column-header .label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-style: solid;
    border-width: 34px 10px 0 0;
    border-color: inherit;
    border-color: transparent transparent transparent transparent;
    /* Defined by parent background logic usually, but here we can just use a clip-path or absolute triangle */
}

/* Using clip-path for that slanted edge */
.cat-column-header .label {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    padding-right: 25px;
}

/* Featured item in column */
.col-featured-item {
    position: relative;
    height: 180px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
}

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

.col-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.col-featured-overlay h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.col-featured-overlay .date {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 5px;
    display: block;
}

/* Small items in column list */
.col-list-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.col-list-item img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 3px;
}

.col-list-content h5 {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    transition: 0.3s;
}

.col-list-content h5:hover {
    color: var(--primary);
}

.col-list-content .date {
    font-size: 10px;
    color: #999;
    display: block;
    margin-bottom: 3px;
}

/* Play Icon for Video Items */
.video-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border: 2px solid #fff;
    pointer-events: none;
    z-index: 5;
}

/* FEATURED NEWS SECTION (Grid 1 large + 2x3 small) */
.featured-news-section {
    margin-bottom: 50px;
}

.section-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    height: 38px;
}

.section-header-custom .label {
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    padding-right: 30px;
}

.section-header-custom.blue .label {
    background: #007bff;
}

.section-header-custom.blue {
    border-bottom-color: #007bff;
}

.section-header-custom.purple .label {
    background: #6f42c1;
}

.section-header-custom.purple {
    border-bottom-color: #6f42c1;
}

.section-header-nav {
    display: flex;
    gap: 15px;
}

.section-header-nav a {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.section-header-nav a:hover,
.section-header-nav a.active {
    color: #007bff;
}

.featured-news-wrapper {
    display: flex;
    gap: 30px;
}

.featured-news-large {
    flex: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
}

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

.featured-news-large .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.featured-news-large .overlay h2 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 10px;
}

.featured-news-grid {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.news-grid-item {
    position: relative;
}

.news-grid-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-grid-item .cat-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e33e36;
    color: #fff;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
}

.news-grid-item h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-grid-item .date {
    font-size: 10px;
    color: #999;
}

/* MORE NEWS SECTION (List + Sidebar Ad) */
.more-news-bg-wrapper {
    background-color: #f6f6f6;
    padding: 70px 0;
    margin: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.more-news-grid {
    display: flex;
    gap: 30px;
}

.more-news-list {
    flex: 2;
}

.more-news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.more-news-item img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.more-news-content {
    flex: 1;
}

.more-news-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.more-news-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.more-news-meta {
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.more-news-meta span {
    margin-right: 15px;
}

.more-news-sidebar {
    flex: 1;
}

.custom-power-ad {
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    height: 400px;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 30px;
}

.custom-power-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.custom-power-ad * {
    position: relative;
    z-index: 2;
}

.custom-power-ad h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.newsletter-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    margin-top: 30px;
    border-radius: 4px;
}

.newsletter-widget h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

/* BOTTOM FULL GRID (6 items before footer) */
.bottom-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 15px;
    margin-bottom: 80px;
}

.bottom-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.bottom-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.bottom-grid-item:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.bottom-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
}

.bottom-grid-overlay .badge {
    background: #007bff;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.bottom-grid-overlay h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.bottom-grid-meta {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 600;
}

/* FOOTER REFINEMENTS */
.main-footer {
    background: #000;
    color: #999;
    padding: 80px 0 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 22px;
    /* Aumentado para dar mais imponência */
    font-weight: 800;
    text-transform: capitalize;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--primary);
}

.footer-about p {
    line-height: 1.8;
    /* Aumentado para melhor legibilidade no rodapé */
    font-size: 15px;
    /* Texto mais robusto */
    margin-bottom: 25px;
    text-align: left;
}

.footer-social-small a {
    color: #fff;
    font-size: 14px;
    margin-right: 15px;
    transition: 0.3s;
    opacity: 0.7;
}

.footer-social-small a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-recent-post {
    margin-bottom: 20px;
}

.footer-recent-post .date {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.footer-recent-post h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #eee;
}

.footer-recent-post h4:hover {
    color: var(--primary);
}

.footer-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.footer-categories-grid a {
    color: #999;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-categories-grid a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags-cloud a {
    border: 1px solid #333;
    color: #999;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 2px;
    transition: 0.3s;
}

.footer-tags-cloud a:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-bottom-logo {
    margin-bottom: 25px;
}

.footer-bottom-logo img {
    height: 45px;
}

.footer-social-squares {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.social-sq {
    width: 36px;
    height: 36px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 2px;
    transition: 0.3s;
}

.social-sq:hover {
    background: var(--primary);
}

.copyright-text {
    font-size: 13px;
    color: #555;
}

/* Mobile Toggle Default */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-grid-custom {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    /* Header Mobile Layout */
    .container-flex {
        justify-content: center;
        /* Center Logo */
        position: relative;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        left: 15px;
        /* Hamburger on Left */
        top: 50%;
        transform: translateY(-50%);
    }

    .header-icons-custom {
        position: absolute;
        right: 15px;
        /* Search on Right */
        top: 50%;
        transform: translateY(-50%);
    }

    .header-main-custom {
        padding: 15px 0;
    }

    .hero-custom-item.center {
        grid-column: 1;
        grid-row: auto;
        height: 400px;
    }

    .hero-custom-item {
        height: 250px;
    }

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

    .middle-main-wrapper {
        grid-template-columns: 1fr;
    }

    .category-block-wrapper {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu Logic */
    .mobile-toggle {
        display: block;
    }

    .menu-custom {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        padding: 0 20px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        margin-right: 0;
        border-top: 1px solid var(--primary);
    }

    .menu-custom.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .menu-custom li {
        width: 100%;
        border-bottom: 1px solid #222;
        margin-bottom: 0;
    }

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

    .menu-custom li a {
        display: block;
        padding: 15px 0;
        font-size: 14px;
    }

    /* Fix Horizontal Scroll on Blocks */
    .category-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .cat-grid-item {
        height: 220px;
    }

    /* Fix Social Icons Scroll */
    .social-connect-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Recent News Scroll */
    .recent-news-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Featured News Grid (Black Box Items) - Stack to 1 column (Card Style) */
    .featured-news-grid {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto;
        gap: 25px;
    }

    .news-grid-item img {
        height: 200px;
        width: 100%;
    }


    .featured-news-wrapper {
        flex-direction: column;
    }


    /* Fix Bottom Full Grid - 1 Column as requested */
    .bottom-full-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    /* Fix Section Headers (Categories) - Scrollable */
    .section-header-custom,
    .middle-section-header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-bottom: 15px;
    }

    .section-header-custom .label,
    .middle-header-label {
        width: 100%;
        margin-bottom: 10px;
        clip-path: none;
        /* Remove diagonal cut on mobile for cleaner look */
    }

    .section-header-nav,
    .middle-header-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 15px;
        padding-left: 5px;
    }

    .section-header-nav a,
    .middle-header-nav a {
        padding: 5px 12px;
        background: #f0f0f0;
        border-radius: 20px;
        flex-shrink: 0;
    }

    /* Fix Dynamic Middle Content (Principais Notícias) */
    .featured-vertical-custom {
        height: 300px;
        /* Reduce large post height on mobile */
    }

    .featured-vertical-overlay h2 {
        font-size: 18px;
        /* Smaller title */
        margin-bottom: 10px;
    }

    .side-list-item img {
        width: 100px;
        height: 75px;
    }

    .side-list-content h4 {
        font-size: 14px;
    }

    /* Fix More News Section (Ad & Newsletter) - Stack to Column */
    .more-news-grid {
        flex-direction: column;
    }

    /* Fix More News Items (Photo top, Text bottom) */
    .more-news-item {
        flex-direction: column;
        gap: 15px;
    }

    .more-news-item img {
        width: 100%;
        height: 200px;
        /* Force a consistent height for visuals */
        object-fit: cover;
    }

    /* Fix Footer Grid - Stack vertically */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Fix Three Column Categories (Sports, Health, Politics) - Stack Vertically */
    .three-col-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SINGLE POST STYLES (PREMIUM) */
.post-open-header h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.post-body {
    font-family: 'Georgia', 'Times New Roman', serif;
    /* Classic reading font */
    font-size: 19px;
    line-height: 1.8;
    color: #222;
}

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

.post-body h2 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin: 35px 0 15px;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 25px;
    font-style: italic;
    font-size: 22px;
    color: #555;
    background: #fdfdfd;
    margin: 30px 0;
}

/* Opinion Box */
.opinion-box {
    background: #f0f7ff;
    border-left: 5px solid #007bff;
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
}

.opinion-box h3 {
    font-family: var(--font-head);
    /* Reset font for header */
    color: #007bff;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.opinion-box p {
    margin-bottom: 0;
    font-size: 18px;
    font-style: italic;
    color: #444;
}

.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-family: var(--font-body);
    font-size: 14px;
}

.cat-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* Sidebar Extras */
.popular-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.popular-item img {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-info h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-info h4 a:hover {
    color: var(--primary);
}

.popular-info .post-meta {
    font-size: 11px;
    color: #999;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
}

.ad-placeholder {
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
}

/* BARTA SINGLE POST LAYOUT (Exact Replica Styles) */

/* 1. Breadcrumb / Hero Area */
.breadcrumb-area {
    background-color: #111;
    /* Dark background as in Carta Branca default/demo */
    background-image: url('../images/breadcrumb-bg.jpg');
    /* If available, or fallback */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin-bottom: 50px;
    position: relative;
    color: #fff;
    text-align: center;
    /* Often centered in Carta Branca demos */
}

.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Overlay */
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-breadcrumb {
    font-size: 14px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.entry-breadcrumb a {
    color: #fff;
    font-weight: 600;
}

.entry-breadcrumb .current {
    color: var(--primary);
    /* Highlight current page */
}

.entry-breadcrumb i {
    font-size: 10px;
    color: #888;
}

/* 2. Entry Thumbnail (Image) */
.entry-thumbnail-area {
    position: relative;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.entry-thumbnail-area img {
    width: 100%;
    height: auto;
    display: block;
}

/* Date Badge on Image (Carta Branca Feature) */
.date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.date-badge .day {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* 3. Entry Meta (Bar below image) */
.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
}

/* 4. Entry Content */
.entry-content {
    font-family: 'Open Sans', sans-serif;
    /* Carta Branca standard body font */
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2,
.entry-content h3 {
    color: #222;
    font-weight: 800;
    margin: 30px 0 15px;
}

/* Dropcap (Optional but nice) */
.entry-content p:first-of-type::first-letter {
    font-size: 3em;
    color: var(--primary);
    float: left;
    margin-right: 10px;
    line-height: 0.8;
    font-weight: 900;
}

/* Blockquote */
.entry-content blockquote {
    background: #f9f9f9;
    padding: 30px 40px;
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: #555;
    position: relative;
}

.entry-content blockquote::before {
    content: '\f10d';
    /* FontAwesome quote icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 15px;
    /* Inside padding */
    color: rgba(0, 0, 0, 0.1);
    font-size: 20px;
}

/* 5. Post Footer (Tags & Share) */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-tags-list a {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    transition: 0.3s;
}

.post-tags-list a:hover {
    background: var(--primary);
    color: #fff;
}

.post-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.share-btn.fb {
    background: #3b5998;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.wa {
    background: #25d366;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 6. Author Box */
.author-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    display: flex;
    gap: 25px;
    margin-top: 50px;
    border-radius: 4px;
    align-items: flex-start;
}

.author-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
}

.author-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.author-social a {
    color: #999;
    margin-right: 15px;
    font-size: 14px;
}

.author-social a:hover {
    color: var(--primary);
}

/* 7. Related Posts */
.related-posts {
    margin-top: 50px;
}

.section-heading-custom {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.4;
}

/* COMPLEX HEADER STYLES (Match User Screenshot) */

.post-header-complex {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

/* 1. Category Ribbon (Red Arrow) */
.category-ribbon {
    background: #e33e36;
    color: #fff;
    padding: 6px 15px 6px 12px;
    display: inline-block;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 20px;
    line-height: 1;
    border-radius: 2px 0 0 2px;
}

.category-ribbon::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 11.5px solid transparent;
    /* Half of height approx */
    border-bottom: 11.5px solid transparent;
    border-left: 10px solid #e33e36;
}

/* 2. Date Line */
.post-date-line {
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* 3. Meta Bar (Flex) */
.meta-complex-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    color: #666;
    font-size: 13px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 5px;
}

.meta-divider {
    color: #ccc;
}

.red-fire {
    color: #e33e36;
    font-weight: 700;
}

/* 4. Social Buttons Row */
.social-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    /* Tight gap like screenshot */
}

.social-btn-rect {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 40px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 2px;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn-rect i {
    font-size: 16px;
}

.social-btn-rect:hover {
    opacity: 0.9;
}

.social-btn-sq {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border-radius: 2px;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.social-btn-sq:hover {
    opacity: 0.9;
}

/* Colors */
.bg-fb {
    background: #4c66a4;
}

.bg-tw {
    background: #55acee;
}

.bg-gp {
    background: #db4437;
}

/* Google+ */
.bg-in {
    background: #0077b5;
}

/* Linkedin */
.bg-wa {
    background: #25d366;
}

/* Whatsapp */
.bg-su {
    background: #eb4924;
}

/* StumbleUpon */
.bg-tb {
    background: #35465c;
}

/* Tumblr */
.bg-pi {
    background: #bd081c;
}

/* Pinterest */
.bg-rd {
    background: #ff4500;
}

/* Reddit */
.bg-em {
    background: #333333;
}

/* Email */
.bg-pr {
    background: #555555;
}

/* Print */
/* Sidebar Tabbed Widget (Latest / Popular / Comments) */
.sidebar-tabbed-widget {
    background: #fff;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.tab-header {
    display: flex;
}

.tab-btn {
    flex: 1;
    border: none;
    background: #f9f9f9;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    color: #666;
    text-align: center;
}

.tab-btn.active {
    background: #fff;
    border-bottom: 2px solid #e33e36;
    color: #000;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
}

.tab-btn:first-child.active {
    border-left: none;
}

.tab-btn:last-child.active {
    border-right: none;
}

.tab-content-area {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.tab-post-item:last-child {
    margin-bottom: 0;
}

.tab-post-item img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.tab-post-info h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.tab-post-info .date {
    font-size: 11px;
    color: #999;
}

.tab-post-info .date i {
    margin-right: 4px;
}

/* Sidebar List Widget (Most Viewed) */
.sidebar-list-widget {
    margin-bottom: 30px;
}

.sidebar-title-header {
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-title-header h3 {
    background: #000;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 12px;
    margin: 0;
    position: relative;
    top: 2px;
    /* Pull down to cover border */
}

.sidebar-title-header h3::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 32px solid #000;
    /* Height of header */
    border-right: 10px solid transparent;
}

.most-viewed-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.most-viewed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.most-viewed-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.most-viewed-info h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.most-viewed-info .date {
    font-size: 10px;
    color: #aaa;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e33e36;
    /* Carta Branca Red */
    color: #fff;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    font-size: 16px;
    z-index: 9999;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

#back-to-top:hover {
    background: #111;
    transform: translateY(-5px);
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    z-index: 9990;
    display: none;
    /* Logic in JS */
    border-left: 5px solid #e33e36;
    max-width: 1140px;
    margin: 0 auto;
}

.cookie-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #111;
    font-weight: 700;
}

.cookie-text p {
    margin: 0;
    font-size: 13px;
    color: #555;
    max-width: 600px;
    line-height: 1.5;
}

.cookie-text a {
    color: #e33e36;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.cookie-btn.primary {
    background: #e33e36;
    color: #fff;
}

.cookie-btn.primary:hover {
    background: #111;
}

.cookie-btn.outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.cookie-btn.outline:hover {
    border-color: #111;
    background: #f9f9f9;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9995;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.cookie-modal-box {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-top: 5px solid #e33e36;
}

.cookie-modal-box h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 10px;
}

.cookie-options {
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cookie-option {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
}

.switch-label input {
    display: none;
}

.slider {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    transition: .3s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: .3s;
}

input:checked+.slider {
    background: #e33e36;
}

input:checked+.slider::before {
    transform: translateX(20px);
}

.slider.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cookie-btn.text {
    background: none;
    color: #666;
    border: none;
}

.cookie-btn.text:hover {
    color: #111;
    background: none;
}

.option-desc {
    font-size: 12px;
    color: #888;
    width: 100%;
    margin-top: 5px;
    line-height: 1.4;
    font-weight: 400;
}

/* Legal Pages (Privacy Policy, Terms) */
.legal-page-content {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.legal-page-content h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 3px solid #e33e36;
    display: inline-block;
    padding-bottom: 10px;
}

.legal-page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #111;
    border-left: 4px solid #e33e36;
    padding-left: 15px;
}

.legal-page-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #444;
}

.legal-page-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.legal-page-content ul {
    margin-bottom: 20px;
    padding-left: 40px;
    list-style-type: disc;
}

.legal-page-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
    list-style-type: decimal;
}

.legal-page-content ul li,
.legal-page-content ol li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.legal-page-content a {
    color: #e33e36;
    font-weight: 500;
    text-decoration: underline;
}

.legal-page-content strong {
    color: #000;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-page-content {
        padding: 25px;
    }

    .legal-page-content h1 {
        font-size: 24px;
    }
}

/* Category Page Styles (Carta Branca Clone) */
.category-header-strip {
    background-color: #111;
    /* Use a dark color or image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1496307667243-6b5d900b2305?auto=format&fit=crop&q=80&w=2070');
    /* Placeholder City */
    background-size: cover;
    background-position: center;
    padding: 30px 0;
    position: relative;
    color: #fff;
    margin-bottom: 40px;
    text-align: left;
}

.category-header-strip h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.breadcrumb-custom {
    font-size: 14px;
    color: #bbb;
    font-family: var(--font-menu);
    opacity: 0.8;
}

.breadcrumb-custom a {
    color: #fff;
    font-weight: 600;
}

.breadcrumb-custom a:hover {
    color: var(--primary);
}

.breadcrumb-custom i {
    margin: 0 8px;
    font-size: 10px;
}

/* Category Post List Item */
.cat-post-list {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
}

.cat-post-thumb {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    margin-right: 30px;
}

.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.cat-post-thumb:hover img {
    transform: scale(1.1);
}

.cat-tag {
    position: absolute;
    top: 20px;
    left: 0;
    background: #5dbb63;
    /* Green from reference */
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.cat-post-info {
    flex: 1;
}

.cat-meta-top {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-meta-top i {
    color: #ccc;
    margin-right: 4px;
}

.cat-post-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cat-post-info h3 a {
    color: #111;
}

.cat-post-info h3 a:hover {
    color: var(--primary);
}

.cat-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .cat-post-list {
        flex-direction: column;
    }

    .cat-post-thumb {
        width: 100%;
        height: 250px;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Pagination Carta Branca */
.pagination-custom {
    display: flex;
    gap: 5px;
    margin-top: 40px;
}

.page-num {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.3s;
}

.page-num:hover,
.page-num.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* --- SEARCH OVERLAY MODAL --- */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.close-search:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.search-form-modal {
    width: 80%;
    max-width: 1000px;
    text-align: center;
}

.search-form-modal input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    color: #fff;
    font-size: 48px;
    padding: 20px 0;
    text-align: center;
    font-weight: 700;
    outline: none;
    transition: 0.3s;
}

.search-form-modal input:focus {
    border-bottom-color: var(--primary);
}

.search-form-modal input::placeholder {
    color: #555;
}

.btn-search-modal {
    margin-top: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-search-modal:hover {
    background: #fff;
    color: #000;
}

/* Responsividade da Busca */
@media (max-width: 768px) {
    .search-form-modal input {
        font-size: 24px;
        padding: 10px 0;
    }
}