/**
 * LegendNews Engine — Central Premium Design System
 */

/* ==========================================================================
   1. CORE VARIABLES & THEME ROOT
   ========================================================================== */
:root {
    /* Color Palette */
    --ln-primary: #1A4C19;
    --ln-primary-rgb: 26, 76, 25;
    --ln-secondary: #111111;
    --ln-accent: #FFBC01;
    --ln-accent-rgb: 255, 188, 1;
    
    /* Light Mode Theme */
    --ln-bg: #F5F5F5;
    --ln-card: #FFFFFF;
    --ln-text: #222222;
    --ln-text-muted: #666666;
    --ln-border: #E5E5E5;
    --ln-topbar-bg: rgba(17, 17, 17, 0.95);
    --ln-header-bg: #FFFFFF;
    
    /* Spacing & Radius */
    --ln-radius: 14px;
    --ln-shadow: 0 10px 30px rgba(255, 85, 0, 0.03), 0 1px 8px rgba(0, 0, 0, 0.02);
    --ln-shadow-hover: 0 15px 40px rgba(255, 85, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    --ln-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Layout */
    --ln-max-width: 1250px;
}

/* Dark Mode Theme Mapping */
html.dark {
    --ln-bg: #0A0A0F;
    --ln-card: #14141E;
    --ln-text: #EDEDF5;
    --ln-text-muted: #A3A3B3;
    --ln-border: #222230;
    --ln-topbar-bg: rgba(10, 10, 15, 0.95);
    --ln-header-bg: #11111A;
}

/* ==========================================================================
   2. BASIC RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.legendnews-portal {
    background-color: var(--ln-bg);
    color: var(--ln-text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ln-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.portal-container {
    width: 100%;
    max-width: var(--ln-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. TOPBAR & ANIMATED NEWS TICKER
   ========================================================================== */
.portal-topbar {
    background: #09090c;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.portal-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--ln-accent) 0%, rgba(255, 188, 1, 0.3) 50%, transparent 100%);
}

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

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.topbar-date, .topbar-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    cursor: default;
}

.topbar-date:hover, .topbar-weather:hover {
    color: #FFFFFF;
}

.topbar-date i {
    color: var(--ln-accent);
    font-size: 14px;
}

.topbar-weather i {
    color: var(--ln-accent);
    font-size: 15px;
}

.topbar-weather-icon {
    animation: floatWeather 3s ease-in-out infinite alternate;
}

@keyframes floatWeather {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1.5px); }
}

.topbar-divider {
    color: rgba(255, 255, 255, 0.12);
    font-weight: 300;
}

.topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 3px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    margin: 0 10px;
}

.ticker-badge {
    font-weight: 700;
    font-size: 11px;
    background: rgba(255, 188, 1, 0.1);
    color: var(--ln-accent);
    border: 1px solid rgba(255, 188, 1, 0.25);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 188, 1, 0.05);
}

.ticker-badge i {
    font-size: 12px;
    animation: flashBolt 1s infinite alternate;
}

@keyframes flashBolt {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: lnTicker 30s linear infinite;
    gap: 60px;
}

.ticker-item {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.2px;
}

.ticker-item a {
    transition: color 0.2s ease;
}

.ticker-item a:hover {
    color: var(--ln-accent);
}

@keyframes lnTicker {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-100%); }
}

.topbar-right a.topbar-ad-link {
    background: transparent;
    color: var(--ln-accent);
    border: 1px solid rgba(255, 188, 1, 0.35);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 0 0px rgba(255, 188, 1, 0);
}

.topbar-right a.topbar-ad-link:hover {
    background: linear-gradient(135deg, var(--ln-accent) 0%, #D49B00 100%);
    color: #000000;
    border-color: var(--ln-accent);
    box-shadow: 0 4px 15px rgba(255, 188, 1, 0.25);
    transform: translateY(-1.5px);
}

.topbar-right a.topbar-ad-link:hover i {
    animation: shakeMegaphone 0.5s ease infinite alternate;
}

@keyframes shakeMegaphone {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(15deg); }
}

/* ==========================================================================
   4. PORTAL HEADER & SEARCH
   ========================================================================== */
.portal-header {
    background: linear-gradient(135deg, #012013 0%, #033923 100%);
    position: relative;
    z-index: 100;
    overflow: visible; /* Fix search results dropdown clipping */
    padding: 17px 0;
    border-bottom: none;
    transition: background-color 0.3s;
}

/* Embedded wave pattern mask */
.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23054f32" fill-opacity="0.15" d="M0,96L80,112C160,128,320,160,480,160C640,160,800,128,960,122.7C1120,117,1280,139,1360,149.3L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path><path fill="%23085a3a" fill-opacity="0.1" d="M0,192L80,186.7C160,181,320,171,480,144C640,117,800,75,960,80C1120,85,1280,139,1360,165.3L1440,192L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* Background Animations Wrapper */
.portal-header > .header-bg-glow {
    display: none;
}

/* Dynamic glowing light pulse & energy waves animation */
.header-bg-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0.8;
    pointer-events: none;
    animation: lnEnergyPulse 6s ease-in-out infinite alternate;
}

/* Particle glow embers floating */
.header-bg-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.12) 8%, transparent 8%),
        radial-gradient(rgba(255, 230, 150, 0.1) 12%, transparent 12%);
    background-size: 80px 80px, 120px 120px;
    background-position: 0 0, 40px 60px;
    opacity: 0.45;
    pointer-events: none;
    animation: lnEmbersFloat 35s linear infinite;
    z-index: 1;
}

.portal-header > * {
    position: relative;
    z-index: 2; /* Ensures content sits beautifully above animated embers */
}

@keyframes lnEnergyPulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }
    100% {
        opacity: 1.0;
        transform: scale(1.02);
    }
}

@keyframes lnEmbersFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(40px, -60px) rotate(8deg);
    }
}

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

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

.header-social-icons {
    display: flex;
    gap: 8px;
}

.header-social-icons a {
    color: #FFFFFF;
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--ln-transition);
}

.header-social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.dark-mode-toggle-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--ln-transition);
}

.dark-mode-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.mobile-dark-toggle-btn {
    display: none;
}

.header-center .portal-logo-link img {
    max-height: 70px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.35s ease;
}

.header-center .portal-logo-link:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

.header-center .portal-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--ln-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.header-center .portal-logo-text span {
    color: var(--ln-primary);
}

.portal-logo-subtitle {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--ln-text-muted);
    text-align: center;
    margin-top: 6px;
    margin-right: -6px; /* Balanceia o espaçamento da última letra */
}

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

.smart-search-box {
    position: relative;
    width: 250px;
}

.smart-search-box form {
    display: flex;
    position: relative;
}

.portal-header .smart-search-box {
    width: 300px;
}

.portal-header .smart-search-box input.search-input {
    width: 100%;
    background-color: rgba(4, 26, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 11px 45px 11px 20px;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--ln-transition);
}

.portal-header .smart-search-box input.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.portal-header .smart-search-box input.search-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(4, 26, 17, 0.85);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Custom premium Webkit search cancel cross styling */
.portal-header .smart-search-box input.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.5)'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 5px;
    transition: opacity 0.2s;
}

.portal-header .smart-search-box input.search-input::-webkit-search-cancel-button:hover {
    opacity: 0.8;
}

.portal-header .smart-search-box button.search-submit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ln-transition);
}

.portal-header .smart-search-box button.search-submit:hover {
    color: var(--ln-accent);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 12px;
    border-bottom: 1px solid var(--ln-border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--ln-bg);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-info h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ln-text);
    margin-bottom: 3px;
}

.search-result-info span {
    font-size: 10px;
    color: var(--ln-text-muted);
}

.hamburger-menu-btn {
    display: none;
    font-size: 24px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
}

/* ==========================================================================
   5. NAVIGATION MENU
   ========================================================================== */
.portal-nav {
    background-color: #03140d;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 23, 184, 0.05);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 3px solid var(--ln-accent); /* Golden bottom border line */
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered navigation menu for high-end symmetry */
}

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

.nav-menu li {
    position: relative;
    transition: var(--ln-transition);
    border-radius: 12px 12px 0 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 12px 12px 0 0;
    transition: var(--ln-transition);
    white-space: nowrap; /* Prevent menu items from wrapping to two lines */
}

.nav-menu li a i,
.nav-menu li a svg {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s;
}

.nav-menu li a:hover i,
.nav-menu li a:hover svg {
    transform: scale(1.2);
    color: #FFBC01; /* Unified gold hover icon color */
}

/* Elegant horizontal gold slide transition for hover state */
.nav-menu li::after {
    content: '';
    position: absolute;
    bottom: -3px; /* Align perfectly over the border line */
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #FFBC01; /* Unified gold underline highlight */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.nav-menu li:hover::after,
.nav-menu li.active::after {
    width: 100%;
}

.nav-menu li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-menu li.active {
    background-color: rgba(14, 58, 41, 0.65);
}

.nav-menu li.active:hover {
    background-color: rgba(14, 58, 41, 0.85);
}

.nav-menu li.active a {
    color: #FFFFFF;
}

.nav-menu li.active a i,
.nav-menu li.active a svg {
    color: #FFBC01; /* Unified active icon color */
}

.nav-menu li a:hover {
    color: #FFFFFF;
}

/* Sticky Navigation Menu */
.portal-nav.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: slideDownNav 0.3s cubic-bezier(0.1, 1, 0.1, 1);
    background-color: #03140d;
}

@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* WordPress Admin Bar offsets */
.admin-bar .portal-nav.sticky-active {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .portal-nav.sticky-active {
        top: 46px;
    }
}
@media screen and (max-width: 600px) {
    .admin-bar .portal-nav.sticky-active {
        top: 0;
    }
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.portal-hero-section {
    margin-top: 25px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Giant main featured card */
.featured-hero-card {
    position: relative;
    border-radius: var(--ln-radius);
    overflow: hidden;
    height: 480px;
    box-shadow: var(--ln-shadow);
    cursor: pointer;
}

.hero-card-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.1, 1, 0.1, 1);
}

.featured-hero-card:hover .hero-card-img {
    transform: scale(1.03);
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #FFFFFF;
}

.hero-category-badge {
    background-color: var(--ln-accent);
    color: #000000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.2;
    margin-top: 12px;
    letter-spacing: -0.5px;
}

.hero-title a {
    color: #FFFFFF;
}

.hero-title a:hover {
    color: var(--ln-accent);
}

.hero-excerpt {
    margin-top: 10px;
    font-size: 14px;
    color: #E1E1E1;
    line-height: 1.5;
    max-width: 90%;
}

.hero-meta {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    font-size: 11px;
    font-weight: 500;
    color: #A3A3B3;
}

.hero-meta i {
    color: var(--ln-accent);
}

/* Sidebar mini cards list */
.hero-right-sidebar {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: max-content;
    position: sticky;
    top: 90px;
    align-self: start;
}

.hero-sidebar-header {
    border-bottom: 2px solid var(--ln-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.hero-sidebar-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--ln-text);
}

.hero-sidebar-header h3 i {
    color: var(--ln-primary);
}

.hero-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
}

.mini-news-card {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--ln-border);
}

.mini-news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-img-wrap {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-cat-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ln-primary);
}

.mini-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin: 3px 0;
}

.mini-title a {
    color: var(--ln-text);
}

.mini-title a:hover {
    color: var(--ln-primary);
}

.mini-time {
    font-size: 10px;
    color: var(--ln-text-muted);
}

/* ==========================================================================
   7. CATEGORY BLOCKS
   ========================================================================== */
.portal-category-blocks-section {
    margin-top: 30px;
}

.cat-block {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 20px;
    box-shadow: var(--ln-shadow);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #012013 0%, #033923 100%);
    padding: 14px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: var(--ln-radius) var(--ln-radius) 0 0;
    border-bottom: 3px solid var(--ln-accent) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.block-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-header h3 i {
    color: var(--ln-accent) !important;
    font-size: 18px;
}

.block-header a {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: var(--ln-transition);
}

.block-header a:hover {
    color: var(--ln-accent) !important;
}

.category-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cat-block-full {
    grid-column: span 2;
}

.cat-block-half {
    grid-column: span 1;
}

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

.block-body.half-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (max-width: 991px) {
    .block-body.full-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-blocks-grid {
        grid-template-columns: 1fr;
    }
    .cat-block-full, .cat-block-half {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .block-body.full-layout, .block-body.half-layout {
        grid-template-columns: 1fr;
    }
}

.cat-block-main-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block-img-wrap {
    width: 100%;
    height: 160px;
    border-radius: var(--ln-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.block-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-block-main-card:hover .block-img-wrap img {
    transform: scale(1.05);
}

.block-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 800;
    color: #000000 !important;
    background-color: var(--ln-accent) !important;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.block-content h4 {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.block-content h4 a {
    color: var(--ln-text);
}

.block-content h4 a:hover {
    color: var(--ln-primary);
}

html.dark .block-content h4 a:hover {
    color: var(--ln-accent);
}

.block-content p {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ln-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   8. DYNAMIC NEWS GRID & MOSAIC CARDS
   ========================================================================== */
.portal-general-grid-section {
    margin-top: 45px; /* Evita que a barra lateral encoste na linha de cards de categorias acima */
}

.general-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.grid-main-area {
    min-width: 0;
}

.section-title-wrapper {
    border-bottom: 2px solid var(--ln-border);
    padding-bottom: 8px;
    margin-bottom: 25px;
    position: relative;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ln-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Alinha perfeitamente sobre a borda inferior do wrapper */
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--ln-primary);
    border-radius: 2px;
}

.news-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mosaic-news-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    overflow: hidden;
    box-shadow: var(--ln-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--ln-transition);
    cursor: pointer;
}

.mosaic-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ln-shadow-hover);
    border-color: rgba(0, 23, 184, 0.08);
}

.mosaic-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.mosaic-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mosaic-news-card:hover .mosaic-img-wrap img {
    transform: scale(1.02);
}

.mosaic-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--ln-primary);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

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

.mosaic-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.mosaic-title a {
    color: var(--ln-text);
}

.mosaic-title a:hover {
    color: var(--ln-primary);
}

.mosaic-excerpt {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ln-text-muted);
    line-height: 1.5;
}

.mosaic-meta {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ln-text-muted);
    border-top: 1px solid var(--ln-border);
}

.mosaic-meta span i {
    color: var(--ln-primary);
}

.grid-load-more-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.portal-load-more-btn {
    background-color: var(--ln-card);
    border: 2px solid var(--ln-primary);
    color: var(--ln-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--ln-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--ln-shadow);
}

.portal-load-more-btn:hover {
    background-color: var(--ln-primary);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.portal-load-more-btn i {
    font-size: 16px;
}

/* ==========================================================================
   9. SIDEBAR WIDGETS
   ========================================================================== */
.grid-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: max-content;
    position: sticky;
    top: 90px;
    align-self: start;
}

@media screen and (min-width: 769px) {
    .grid-sidebar-area.home-sidebar {
        padding-top: 64px; /* Align top edge of ad card with news cards (below section title) */
    }
}

.sidebar-ad-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 15px;
    box-shadow: var(--ln-shadow);
    text-align: center;
}

.sidebar-ad-placeholder {
    height: 250px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 2px dashed var(--ln-border);
    border-radius: var(--ln-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--ln-text-muted);
    font-size: 12px;
    font-weight: 700;
}

html.dark .sidebar-ad-placeholder {
    background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-widget {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 22px;
    box-shadow: var(--ln-shadow);
}

.sidebar-widget .widget-header {
    border-bottom: 2px solid var(--ln-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sidebar-widget .widget-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ln-text);
}

/* Weather sidebar widget */
.weather-widget-card {
    border-top: 4px solid var(--ln-primary);
}

.weather-card-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ln-text);
}

.weather-card-header h4 i {
    color: var(--ln-primary);
    margin-right: 6px;
}

.weather-temp-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 10px 0;
}

.weather-icon-big {
    font-size: 42px;
    color: var(--ln-primary);
    display: inline-block;
    animation: weather-float 3s ease-in-out infinite;
}

@keyframes weather-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.weather-temp-val {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--ln-text);
}

.weather-desc-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ln-text-muted);
}

.weather-specs-table {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed var(--ln-border);
    padding-bottom: 6px;
    color: var(--ln-text);
}

.weather-spec-item span {
    color: var(--ln-text-muted);
}

.weather-spec-item strong {
    color: var(--ln-text);
    font-weight: 700;
}

/* Trending topics sidebar list */
.trending-list-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-list-links li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.trending-number {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--ln-accent);
    background: rgba(var(--ln-accent-rgb), 0.15);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.trending-list-links li a {
    color: var(--ln-text);
}

.trending-list-links li a:hover {
    color: var(--ln-primary);
}

/* ==========================================================================
   10. INSTAGRAM FEED SLIDER
   ========================================================================== */
.portal-instagram-section {
    margin-top: 60px;
}

.instagram-carousel-container {
    position: relative;
    width: 100%;
}

.instagram-feed-carousel-wrap {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding-bottom: 5px;
    padding-top: 5px;
}

.instagram-feed-carousel-wrap::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.ig-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--ln-text);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

html.dark .ig-carousel-btn {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ln-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ig-carousel-btn:hover {
    background: var(--ln-primary);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 23, 184, 0.25);
}

html.dark .ig-carousel-btn:hover {
    background: var(--ln-accent);
    color: #000000;
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.3);
}

.ig-carousel-btn.prev-btn {
    left: -21px;
}

.ig-carousel-btn.next-btn {
    right: -21px;
}

@media (max-width: 768px) {
    .ig-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .ig-carousel-btn.prev-btn {
        left: -10px;
    }
    .ig-carousel-btn.next-btn {
        right: -10px;
    }
}

.instagram-track {
    display: flex;
    gap: 18px;
    justify-content: center;
}

@media (max-width: 900px) {
    .instagram-track {
        justify-content: flex-start;
    }
}

.instagram-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    overflow: hidden;
    width: 200px;
    flex-shrink: 0;
    box-shadow: var(--ln-shadow);
}

.ig-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.ig-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.ig-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Elegant premium gradient highlighting the brand accent color */
    background: linear-gradient(135deg, rgba(var(--ln-primary-rgb), 0.85) 0%, rgba(var(--ln-accent-rgb), 0.9) 100%);
    backdrop-filter: blur(6px); /* Premium depth-of-field frosted blur */
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instagram-card:hover .ig-card-hover-overlay {
    opacity: 1;
}

.ig-stat {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(15px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instagram-card:hover .ig-stat {
    transform: translateY(0) scale(1);
}

.ig-card-caption {
    padding: 12px;
    font-size: 11px;
    color: var(--ln-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   11. SINGLE POST READER VIEW
   ========================================================================== */
.portal-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ln-text-muted);
    text-transform: uppercase;
}

.portal-breadcrumbs i {
    font-size: 12px;
}

.portal-breadcrumbs a:hover {
    color: var(--ln-primary);
}

.single-article-header {
    margin-top: 15px;
}

.sponsored-label-tag {
    background-color: var(--ln-accent);
    color: #000000;
    font-weight: 800;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-cat-badge {
    background-color: rgba(var(--ln-primary-rgb), 0.1);
    color: var(--ln-primary);
    font-weight: 800;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.article-main-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 38px;
    line-height: 1.15;
    margin-top: 12px;
    letter-spacing: -0.8px;
    color: var(--ln-text);
}

.article-subtitle-deck {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ln-text-muted);
}

.article-author-card-meta {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--ln-border);
    border-bottom: 1px solid var(--ln-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-details-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-details-wrap img {
    border-radius: 50%;
}

.author-name {
    display: block;
    font-size: 13px;
}

.article-dates {
    display: block;
    font-size: 11px;
    color: var(--ln-text-muted);
}

.article-reading-spec {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--ln-text-muted);
}

/* Split layout content single */
.single-body-layout {
    display: grid;
    grid-template-columns: 80px 2fr 1fr;
    gap: 35px;
}

.single-share-sidebar {
    min-width: 0;
}

.share-box-sticky {
    position: sticky;
    top: 120px;
    margin-top: 60px; /* Alinha a barra de compartilhamento com o limite de altura do titulo */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-title {
    font-size: 9px;
    font-weight: 800;
    color: var(--ln-text-muted);
    letter-spacing: 0.5px;
    transform: rotate(-90deg);
    margin-bottom: 25px;
    white-space: nowrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #000000; }
.share-btn.copy-link-btn { background-color: var(--ln-primary); }

.share-btn:hover {
    transform: scale(1.05);
}

.article-mobile-share-bar {
    display: none;
}

.single-article-body {
    min-width: 0;
}

.single-featured-image-container {
    border-radius: var(--ln-radius);
    overflow: hidden;
    margin-bottom: 25px;
    height: 380px;
}

.single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TOC Box */
.article-toc-box {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.toc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ln-primary);
}

.toc-links-list {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-links-list li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ln-text);
    border-bottom: 1px dashed transparent;
}

.toc-links-list li a:hover {
    color: var(--ln-primary);
    border-bottom-color: var(--ln-primary);
}

/* Formatting single post body HTML elements */
.article-formatted-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--ln-text);
}

.article-formatted-content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: var(--ln-text);
    letter-spacing: -0.5px;
}

.article-formatted-content blockquote {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    color: var(--ln-primary);
    border-left: 4px solid var(--ln-accent);
    padding-left: 20px;
    margin: 25px 0;
}

.single-inline-ad-placeholder {
    height: 120px;
    background-color: rgba(0, 0, 0, 0.02);
    border: 2px dashed var(--ln-border);
    border-radius: var(--ln-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.single-inline-ad-placeholder .ad-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.single-inline-ad-placeholder .ad-line-primary {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ln-text);
    line-height: 1;
    white-space: nowrap;
}

.single-inline-ad-placeholder .ad-line-secondary {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ln-text-muted);
    line-height: 1;
    white-space: nowrap;
}

/* Emojis reaction buttons styling */
.reactions-flex-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.reaction-btn-action {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--ln-transition);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ln-text);
}

.reaction-btn-action:hover {
    transform: translateY(-2px);
    background-color: var(--ln-bg);
}

.reaction-btn-action.active-reacted {
    background-color: var(--ln-primary);
    color: #FFFFFF;
    border-color: var(--ln-primary);
}

.react-emoji {
    font-size: 16px;
}

.react-num {
    background-color: rgba(0,0,0,0.05);
    color: var(--ln-text-muted);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
}

.reaction-btn-action.active-reacted .react-num {
    background-color: rgba(255,255,255,0.2);
    color: #FFFFFF;
}

/* Related articles */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.related-post-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--ln-shadow);
}

.related-img-wrap {
    height: 120px;
}

.related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 12px;
}

.related-content h4 {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.related-content h4 a {
    color: var(--ln-text);
}

.related-content span {
    font-size: 9px;
    color: var(--ln-text-muted);
    display: block;
    margin-top: 6px;
}

/* Premium Comments Thread Styling */
.comments-section-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ln-text);
}

.comments-submit-btn {
    background-color: var(--ln-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.comment-form-comment textarea {
    width: 100%;
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    color: var(--ln-text);
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    margin-top: 8px;
}

.comment-form-comment textarea:focus {
    border-color: var(--ln-primary);
}

.comments-form-flex-fields {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.comments-form-flex-fields p {
    flex: 1;
}

.comments-form-flex-fields input {
    width: 100%;
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    color: var(--ln-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.comments-form-flex-fields input:focus {
    border-color: var(--ln-primary);
}

.comments-list-items {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item-wrap {
    display: flex;
    gap: 15px;
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    padding: 15px 20px;
    border-radius: 8px;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-author-meta strong {
    font-size: 13px;
}

.comment-date {
    font-size: 10px;
    color: var(--ln-text-muted);
    margin-left: 10px;
}

.comment-text-body {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.comments-empty-message {
    color: var(--ln-text-muted);
    font-style: italic;
    font-size: 12px;
}

/* ==========================================================================
   12. THE MEGA FOOTER
   ========================================================================== */
.portal-footer {
    background-color: #111111;
    color: #FFFFFF;
    margin-top: 40px;
    border-top: 4px solid var(--ln-accent);
}

.footer-newsletter-wrap {
    background-color: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 30px 0;
}

.newsletter-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ln-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-text p {
    font-size: 13px;
    color: #CCCCCC;
    margin-top: 4px;
}

.newsletter-form-container form {
    display: flex;
    gap: 10px;
}

.newsletter-form-container input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    outline: none;
    width: 250px;
}

.newsletter-form-container input:focus {
    border-color: var(--ln-accent);
}

.newsletter-submit-btn {
    background-color: var(--ln-accent);
    color: #000000;
    font-weight: 800;
    font-size: 12px;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
}

.newsletter-response-message {
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--ln-accent);
}

/* Directories list */
.footer-main-directories {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 35px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 20px;
    border-left: 3px solid var(--ln-accent);
    padding-left: 8px;
}

.brand-col .footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 900;
}

.brand-col .footer-logo-text span {
    color: var(--ln-primary);
}

.brand-col img.footer-logo {
    max-height: 48px;
}

.footer-about {
    font-size: 12px;
    line-height: 1.6;
    color: #A3A3B3;
    margin-top: 15px;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.footer-socials a {
    color: #FFFFFF;
    background-color: rgba(255,255,255,0.06);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-socials a:hover {
    background-color: var(--ln-accent);
    color: #000000;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    font-size: 12px;
    color: #A3A3B3;
    display: flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--ln-accent);
    transform: translateX(2px);
}

.footer-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #A3A3B3;
}

.footer-contact-details li i {
    color: var(--ln-accent);
    font-size: 16px;
}

/* Legal Credits bar */
.footer-legal-bar {
    background-color: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    font-size: 11px;
    color: #777777;
}

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

.developer-credit a {
    color: #999999;
}

.developer-credit a:hover {
    color: var(--ln-accent);
}

/* ==========================================================================
   13. THE MOBILE STICKY BOTTOM NAVIGATION DOCK & DRAWER
   ========================================================================== */
/* Drawer overlays */
.mobile-sidebar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
}

.drawer-content {
    background-color: #1A4C19;
    background-image: linear-gradient(180deg, #103210 0%, #1A4C19 50%, #0B220B 100%);
    width: 280px;
    height: 100%;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.drawer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.close-drawer-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--ln-transition);
}

.close-drawer-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: #FFD000;
}

.drawer-body {
    margin-top: 20px;
    overflow-y: auto;
}

.drawer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--ln-transition);
}

.drawer-menu-list li a i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--ln-transition);
}

.drawer-menu-list li a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.drawer-menu-list li a:hover i {
    color: #FFD000;
    transform: scale(1.1);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.drawer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.drawer-socials a {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--ln-transition);
}

.drawer-socials a:hover {
    background-color: #FFFFFF;
    color: var(--ln-primary);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   14. RESPONSIVE DESIGN (Breakpoints)
   ========================================================================== */

/* Tablet breakpoint */
@media screen and (max-width: 1280px) {
    .general-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .single-body-layout {
        grid-template-columns: 1fr;
    }
    
    .single-share-sidebar {
        display: none; /* Hide floating shares sidebar */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-hero-card {
        height: 380px;
    }
    
    .hero-right-sidebar {
        height: auto;
    }
    
    .article-mobile-share-bar {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
        padding-top: 10px;
        margin-bottom: 25px;
        border-top: 1px dashed var(--ln-border);
    }
    
    .article-mobile-share-bar .share-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--ln-text-muted);
    }
    
    .article-mobile-share-bar .mobile-share-buttons {
        display: flex;
        gap: 12px;
    }
}

/* Mobile first breakpoint */
@media screen and (max-width: 768px) {
    .portal-topbar {
        display: none; /* Hide topbar on mobile */
    }
    
    .portal-header {
        position: sticky;
        top: 0;
        z-index: 999;
        padding: 10px 0; /* Diminui a altura da navbar no mobile */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Sombra elegante no scroll mobile */
    }

    .portal-nav.sticky-active {
        display: none !important; /* Oculta a barra flutuante no mobile */
    }

    .header-center .portal-logo-link img {
        max-height: 48px; /* Reduz tamanho da logo no mobile para ficar harmônico */
    }

    .header-flex {
        position: relative;
        justify-content: center;
    }
    
    .hamburger-menu-btn {
        display: block; /* Show hamburger button on mobile header */
        position: absolute;
        left: 20px; /* Posiciona no lado esquerdo */
        top: 50%;
        transform: translateY(-50%);
        font-size: 26px;
    }
    
    .mobile-dark-toggle-btn {
        display: block; /* Show dark mode button on mobile header */
        position: absolute;
        right: 20px; /* Posiciona no lado direito */
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        background: transparent;
        border: none;
        color: #FFFFFF;
        cursor: pointer;
        transition: var(--ln-transition);
        z-index: 10;
    }
    
    .portal-nav {
        display: none; /* Hide categories navigation */
    }
    
    .header-left {
        display: none; /* Hide socials in header */
    }
    
    .smart-search-box {
        display: none; /* Hide standard search box */
    }
    
    .header-center {
        margin: 0 auto;
    }
    

    .category-blocks-grid {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form-container input {
        width: 100%;
    }
    
    .article-main-title {
        font-size: 26px;
    }
    
    .article-subtitle-deck {
        font-size: 15px;
    }
    
    .single-featured-image-container {
        height: 220px;
    }
    
    .reactions-flex-buttons {
        flex-wrap: wrap;
    }
    
    .featured-hero-card {
        height: 350px !important;
    }
    
    .hero-title {
        font-size: 20px !important;
        line-height: 1.25 !important;
        margin-top: 8px !important;
    }
    
    .hero-excerpt {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-top: 6px !important;
        max-width: 100% !important;
    }
    
    .hero-card-content {
        padding: 15px !important;
    }
    
    .hero-meta {
        margin-top: 8px !important;
        font-size: 10px !important;
    }
    
    /* Harmonize Author Meta and Specs on Mobile */
    .article-author-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }
    
    .author-details-wrap {
        width: 100%;
    }
    
    .article-reading-spec {
        width: 100%;
        justify-content: space-between;
        border-top: 1px dashed var(--ln-border);
        padding-top: 10px;
        margin-top: 4px;
        gap: 10px;
    }

    /* ---- Institutional pages (sobre, editorial, anuncie, contato) ---- */

    /* Hide sidebar on mobile — content takes full width */
    .single-article-sidebar {
        display: none;
    }

    /* Page layout: single column on mobile */
    .page-body-layout {
        grid-template-columns: 1fr !important;
    }

    /* About branding card: stack icon + text vertically */
    .about-branding-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 18px !important;
    }

    /* Contact channels grid → single column */
    .contact-methods-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact form name/email row → single column */
    .contact-form-row {
        grid-template-columns: 1fr !important;
    }

    /* Editorial principles grid → single column */
    .institutional-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ads metrics grid on Anuncie page → single column */
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    /* Send message button full width on mobile */
    .portal-single-content form button[type="submit"] {
        align-self: stretch !important;
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ==========================================================================
   14b. INSTITUTIONAL PAGES BASE STYLES
   ========================================================================== */

.page-body-layout {
    grid-template-columns: 2fr 1fr;
}

.institutional-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==========================================================================
   15. ADVERTISEMENT SLOTS STYLING (PREMIUM DESIGN)
   ========================================================================== */
.legendnews-ad-slot {
    position: relative;
    width: 100%;
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
}

.legendnews-ad-slot.slot-header {
    max-width: 970px;
    margin: 15px auto 25px auto;
}

.legendnews-ad-banner {
    display: block;
    width: 100%;
    max-width: 970px;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #181926 0%, #11121d 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 90px;
    border: 1px solid var(--ln-border);
}

.portal-ad-container-top {
    width: 100%;
    max-width: 970px;
    margin: 25px auto;
}

.portal-ad-placeholder {
    width: 100%;
    max-width: 970px;
    margin: 25px auto;
    height: 90px;
    background: linear-gradient(135deg, rgba(var(--ln-primary-rgb), 0.05) 0%, rgba(var(--ln-accent-rgb), 0.03) 100%);
    border: 2px dashed rgba(var(--ln-primary-rgb), 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 15px;
    color: var(--ln-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--ln-transition);
}

.portal-ad-placeholder p {
    text-align: center;
    margin: 0;
}

.portal-ad-placeholder:hover {
    border-color: var(--ln-primary);
    background: linear-gradient(135deg, rgba(var(--ln-primary-rgb), 0.08) 0%, rgba(var(--ln-accent-rgb), 0.05) 100%);
    color: var(--ln-primary);
}

.sidebar-ad-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 12px;
    box-shadow: var(--ln-shadow);
}

.sidebar-ad-card .legendnews-ad-banner {
    max-height: 250px;
    min-height: 250px;
}

/* ==========================================================================
   16. ARCHIVE & CATEGORY PAGES LAYOUT (3 COLUMNS & STICKY SIDEBAR)
   ========================================================================== */
.portal-archive-content {
    margin-top: 0;
}

.archive-body-layout {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.archive-main-grid-area {
    min-width: 0;
}

.archive-posts-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Category cards spacing adjustments */
.archive-posts-mosaic .mosaic-news-card {
    height: 100%;
}

.archive-posts-mosaic .mosaic-img-wrap {
    height: 160px;
}

.archive-posts-mosaic .mosaic-content {
    padding: 15px;
}

.archive-posts-mosaic .mosaic-title {
    font-size: 14px;
    line-height: 1.4;
}

.archive-posts-mosaic .mosaic-excerpt {
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.45;
}

/* Sticky widget sidebars */
.archive-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-latest-widget {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.sticky-latest-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--ln-border);
    padding-bottom: 14px;
    transition: var(--ln-transition);
}

.latest-card-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-thumb-wrap {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--ln-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.latest-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-card-item:hover .latest-thumb-wrap img {
    transform: scale(1.08);
}

.latest-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.latest-item-content a {
    color: var(--ln-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ln-transition);
}

.latest-item-content a:hover {
    color: var(--ln-primary);
}

.latest-time {
    font-size: 10px;
    color: var(--ln-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.latest-time i {
    font-size: 11px;
}

/* Responsive adjustment for Category Layout */
@media screen and (max-width: 1150px) {
    .archive-posts-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .archive-body-layout {
        grid-template-columns: 1fr;
    }
    
    .sticky-latest-widget {
        position: static;
    }
}

@media screen and (max-width: 600px) {
    .archive-posts-mosaic {
        grid-template-columns: 1fr;
    }
}

/* Sticky header logo image styling */
.sticky-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    transition: transform 0.2s ease;
}

.sticky-logo-img:hover {
    transform: scale(1.04);
}

/* Premium Category Header Card Styling */
.archive-banner-header {
    margin-bottom: 25px;
}

.archive-banner-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: var(--ln-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: var(--ln-transition);
}

.archive-banner-card:hover {
    box-shadow: var(--ln-shadow-hover);
    border-color: rgba(var(--ln-primary-rgb), 0.15);
}

.archive-banner-left-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--ln-primary) 0%, var(--ln-accent) 100%);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.archive-banner-content {
    width: 100%;
}

.archive-eyebrow-container {
    margin-bottom: 6px;
}

.archive-eyebrow-badge {
    background: rgba(var(--ln-primary-rgb), 0.07);
    color: var(--ln-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 100px;
    display: inline-block;
}

.archive-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ln-text);
    margin: 4px 0 8px 0;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.archive-desc {
    font-size: 14px;
    color: var(--ln-text-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 850px;
}

/* Responsive adjustment for Category Banner */
@media screen and (max-width: 768px) {
    .archive-banner-card {
        padding: 20px 24px;
    }
    
    .archive-title {
        font-size: 26px;
    }
    
    .archive-desc {
        font-size: 13px;
    }
}

/* ==========================================================================
   17. SIDEBAR INSTAGRAM BANNER AD (PREMIUM EFFECTS)
   ========================================================================== */
.sidebar-instagram-ad {
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-instagram-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.sidebar-instagram-ad a {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    border-radius: calc(var(--ln-radius) - 1px);
}

.sidebar-instagram-ad img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    object-fit: cover;
}

.sidebar-instagram-ad:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   18. CUSTOM 404 ERROR PAGE (PREMIUM CUSTOM DESIGN)
   ========================================================================== */
.error-404-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 60px auto;
    box-shadow: var(--ln-shadow);
    position: relative;
    overflow: hidden;
}

.error-404-sun-wrap {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    background: rgba(var(--ln-accent-rgb), 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px auto !important;
    box-shadow: 0 8px 24px rgba(var(--ln-accent-rgb), 0.15) !important;
    border: 1px solid rgba(var(--ln-accent-rgb), 0.2) !important;
    overflow: hidden !important;
    position: relative !important;
    animation: sunSpin 25s linear infinite !important;
}

.error-sun-icon {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ln-accent) !important;
    animation: sunPulse 3s ease-in-out infinite alternate !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

@keyframes sunSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sunPulse {
    0% { transform: scale(0.92); filter: drop-shadow(0 0 2px var(--ln-accent)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--ln-accent)); }
}

.error-404-code {
    font-family: 'Outfit', sans-serif;
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, var(--ln-primary) 0%, var(--ln-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(var(--ln-primary-rgb), 0.15));
}

.error-404-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--ln-text);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.error-404-text {
    font-size: 15px;
    color: var(--ln-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-btn-primary {
    background: linear-gradient(135deg, var(--ln-primary) 0%, var(--ln-accent) 100%);
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(var(--ln-primary-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--ln-primary-rgb), 0.45);
    filter: brightness(1.05);
}

.error-btn-secondary {
    background: rgba(var(--ln-text-rgb), 0.03);
    border: 2px solid var(--ln-border);
    color: var(--ln-text) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

html.dark .error-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
}

.error-btn-secondary:hover {
    background: var(--ln-text);
    color: var(--ln-card) !important;
    border-color: var(--ln-text);
    transform: translateY(-2px);
}

/* Suggestions Section below */
.error-suggestions-section {
    border-top: 1px solid var(--ln-border);
    padding-top: 50px;
    margin-bottom: 80px;
}

.suggestions-header {
    text-align: center;
    margin-bottom: 35px;
}

.suggestions-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--ln-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.suggestions-header p {
    font-size: 14px;
    color: var(--ln-text-muted);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.suggestion-card {
    background-color: var(--ln-card);
    border: 1px solid var(--ln-border);
    border-radius: var(--ln-radius);
    overflow: hidden;
    box-shadow: var(--ln-shadow);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.suggestion-thumb-link {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    line-height: 0;
}

.suggestion-thumb-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.suggestion-card:hover .suggestion-thumb-link img {
    transform: scale(1.06);
}

.suggestion-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ln-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.suggestion-card-date {
    font-size: 11px;
    color: var(--ln-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.suggestion-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.suggestion-card-title a {
    color: var(--ln-text);
    transition: color 0.3s ease;
}

.suggestion-card-title a:hover {
    color: var(--ln-primary);
}

.suggestion-read-more {
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--ln-primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.suggestion-read-more:hover {
    gap: 8px;
}

@media screen and (max-width: 600px) {
    .error-404-card {
        padding: 40px 20px;
        margin: 20px auto 40px auto;
    }
    
    .error-404-code {
        font-size: 90px;
    }
    
    .error-404-title {
        font-size: 22px;
    }
    
    .error-404-text {
        font-size: 14px;
    }
    
    .error-404-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-btn-primary, .error-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Standard WordPress Emoji style constraint fallback */
img.wp-smiley,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Link wrappers for clickable cards images */
.hero-card-link-wrapper,
.block-img-link-wrapper,
.mini-img-link-wrapper,
.mosaic-img-link-wrapper,
.latest-thumb-link-wrapper {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: inherit;
    width: 100%;
    height: 100%;
}

/* Premium Sidebar Ad Placeholder Card */
.portal-sidebar-ad-placeholder {
    width: 100%;
    height: 370px; /* Aligns with the average height of the news grid cards */
    background-color: #012013; /* Keep the green */
    border: 1px dashed rgba(255, 255, 255, 0.25); /* Dashed border "marcações" */
    border-radius: var(--ln-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 25px;
    transition: var(--ln-transition);
}

.portal-sidebar-ad-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: var(--ln-shadow-hover);
    border-color: var(--ln-accent);
}

.portal-sidebar-ad-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.5;
}

/* Dark mode overrides */
html.dark .portal-sidebar-ad-placeholder {
    background-color: #03140d;
    border-color: rgba(255, 255, 255, 0.15);
}




