/* I3Web - News - Portal de Notícias Moderno */
/* Design baseado no admin.css com foco em usabilidade e performance */

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #ff9300;
    --primary-hover: #e6820a;
    --primary-light: #ffa726;
    --secondary-color: #333;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-sidebar: #0f172a;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Lora', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir seleção de texto em inputs e textareas */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== HEADER MODERNO ===== */
.header-moderno {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

/* Header Info - Data e Cotações */
.header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
}

.header-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.date-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.date-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-cotacao {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.04);
    border-left: 3px solid #3b82f6;
    transition: all 0.3s ease;
}

.header-cotacao:hover {
    background: rgba(0, 0, 0, 0.06);
    border-left-color: var(--categoria-cor, #3b82f6);
}

.header-cotacao .cotacao-bandeira {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.header-cotacao .cotacao-simbolo {
    font-weight: 700;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.header-cotacao .cotacao-valor {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.header-cotacao .cotacao-variacao {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 0, 0, 0.05);
}

.header-cotacao .cotacao-variacao.positive {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.header-cotacao .cotacao-variacao.negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

.header-cotacao .cotacao-variacao i {
    font-size: 0.7rem;
}

.header-cotacao .cotacao-icone-moeda {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Cotação no header com categoria (fundo colorido) */
body[class*="categoria-"] .header-cotacao {
    background: rgba(0, 0, 0, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

body[class*="categoria-"] .header-cotacao:hover {
    background: rgba(0, 0, 0, 0.15);
    border-left-color: white;
}

body[class*="categoria-"] .header-cotacao .cotacao-simbolo {
    color: rgba(255, 255, 255, 0.85);
}

body[class*="categoria-"] .header-cotacao .cotacao-valor {
    color: white !important;
}

body[class*="categoria-"] .header-cotacao .cotacao-valor * {
    color: white !important;
}

body[class*="categoria-"] .header-cotacao .cotacao-variacao {
    background: rgba(255, 255, 255, 0.15);
}

body[class*="categoria-"] .header-cotacao .cotacao-variacao.positive {
    color: #d1fae5;
}

body[class*="categoria-"] .header-cotacao .cotacao-variacao.negative {
    color: #fecaca;
}

body[class*="categoria-"] .header-cotacao .cotacao-icone-moeda {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.cotacao-simbolo {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cotacao-valor {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cotacao-variacao {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: var(--radius-sm);
}

.cotacao-variacao.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.cotacao-variacao.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    justify-content: flex-end;
    margin-left: auto;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-color: #25D366;
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0E7A6B 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
    color: white;
    border-color: #1877F2;
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #166FE5 0%, #1460D1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #dc2743;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #e0852a 0%, #d55a2f 25%, #d01e36 50%, #c01a59 75%, #b0157a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
    transform: translateY(-3px) scale(1.05);
}


.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 147, 0, 0.1);
}

.search-form:focus-within .search-input {
    width: 180px;
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    width: 40px;
    max-width: 200px;
    min-width: 40px;
    outline: none;
    flex: 1;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.header-social {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 147, 0, 0.3);
    border-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

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


/* ===== HERO SECTION ===== */
.hero-section {
    margin-bottom: 3rem;
}

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

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-story {
    height: 100%;
    position: relative;
}

.story-image {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.main-story:hover .story-image img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.story-category {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.story-title a {
    color: white;
    text-decoration: none;
}

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

.story-excerpt {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    justify-content: space-between;
}

.side-story {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: calc((100% - 1.5rem) / 3);
    min-height: 150px;
    max-height: calc((100% - 1.5rem) / 3);
    margin-bottom: 0;
    flex: 1 1 0;
}

.side-story:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.side-story-image {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 150px;
}

.side-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-story-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
}

.side-story-category {
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.side-story-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    flex: 0 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.side-story-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.side-story-title a:hover {
    color: var(--primary-color);
}

.side-story-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1;
    margin-top: auto;
    flex-shrink: 0;
}

/* ===== HERO SLIDER ===== */
.hero-slider-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 400px;
}

.hero-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-slider .owl-stage-outer {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider .owl-stage {
    width: 100%;
    height: 100%;
}

.hero-slider .owl-item {
    width: 100%;
    height: 100%;
}

.slider-item {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.slider-item:hover {
    transform: none;
    box-shadow: none;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

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

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

.slider-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 2;
}

.slider-category {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    color: white;
}

.slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    flex: 1;
}

.slider-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.slider-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.slider-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: auto;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: auto;
}

.slider-views {
    color: rgba(255, 255, 255, 0.8);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 1rem);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
    padding: 0 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev svg,
.slider-next svg {
    color: white;
    transition: color 0.2s ease;
    width: 16px;
    height: 16px;
}

.slider-prev:hover svg,
.slider-next:hover svg {
    color: white;
}

/* Barra de Progresso do Slider */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Indicadores de Página (Dots) */
.hero-slider .owl-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-slider .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active,
.hero-slider .owl-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Controles de Navegação */
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    pointer-events: none;
}

.hero-slider .owl-nav button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.hero-slider .owl-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ===== NEWS SECTIONS ===== */
.news-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.section-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-more:hover {
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

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

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
}

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

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* ===== DESTAQUE DA CIDADE WIDGET ===== */
.destaque-cidade-widget {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.destaque-cidade-list {
    padding: 0 1.5rem 1rem 1.5rem;
}

.destaque-cidade-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: visible;
}

.destaque-cidade-item:last-child {
    border-bottom: none;
}

.destaque-cidade-item:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin: 0 -0.75rem;
}

.destaque-cidade-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-start;
}

.destaque-cidade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.destaque-cidade-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: visible;
}

.destaque-cidade-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.destaque-cidade-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.destaque-cidade-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.destaque-cidade-title a:hover {
    color: var(--primary-color);
}

.destaque-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.destaque-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.destaque-empty p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .destaque-cidade-list {
        padding: 0 1rem 1rem 1rem;
    }
    
    .destaque-cidade-item {
        gap: 0.5rem;
    }
    
    .destaque-cidade-title {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .destaque-cidade-list {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .destaque-cidade-item {
        padding: 0.5rem 0;
    }
    
    .destaque-cidade-item:hover {
        margin: 0 -0.5rem;
        padding: 0.5rem;
    }
}

/* ===== WEATHER WIDGET ===== */
.item-lateral-home {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pos-tempo-home {
    padding: 1rem;
}

.tempo-cidade-data {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.tempo-cidade-data span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tempo-tab1 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-md);
    color: white;
}

.cond-atual {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cond-atual span:first-child {
    font-size: 2rem;
}

.cond-atual span:last-child {
    font-size: 2.5rem;
    font-weight: 700;
}

.min-max {
    flex: 1;
}

.descricao-tempo {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.min-max p {
    margin: 0;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.min-max p span {
    opacity: 0.8;
}

.tempo-tab2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-extra {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.cell-env {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.cell-env .icons-tempo {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.cell-env span:nth-child(2) {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cell-env span:last-child {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.tempo-futuro {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.item-futuro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    min-width: 60px;
    gap: 0.25rem;
}

.item-futuro span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.item-futuro .icons-tempo {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.item-futuro span:nth-child(3) {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-futuro span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fonte-tempo {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Ícones do tempo */
.icons-tempo {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-nublado {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E");
}

.icon-sensacao {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.icon-vento {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M2 12h20l-4-4m0 8l4-4'/%3E%3C/svg%3E");
}

.icon-umidade {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M12 2c-5.33 4.55-8 8.48-8 11.8 0 4.98 3.8 8.2 8 8.2s8-3.22 8-8.2c0-3.32-2.67-7.25-8-11.8z'/%3E%3C/svg%3E");
}

.icon-chuva {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 17l-2-2-2 2 2 2 2-2zm-4-4l-2-2-2 2 2 2 2-2z'/%3E%3C/svg%3E");
}

.icon-nascer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.icon-por {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M12 22l-3.09-6.26L2 14.73l5-4.87-1.18-6.88L12 6.23l6.18-3.25L17 9.86l5 4.87-6.91 1.01L12 22z'/%3E%3C/svg%3E");
}

.icon-ensolarado {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z'/%3E%3C/svg%3E");
}

.icon-nublado-dia {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23667eea'%3E%3Cpath d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM12 7c2.76 0 5 2.24 5 5s-2.24 5-5 5-5-2.24-5-5 2.24-5 5-5z'/%3E%3C/svg%3E");
}

/* Responsividade */
@media (max-width: 768px) {
    .tempo-tab1 {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .tempo-tab2 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .tempo-futuro {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .item-futuro {
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .pos-tempo-home {
        padding: 0.75rem;
    }
    
    .tempo-tab1 {
        padding: 0.75rem;
    }
    
    .cond-atual span:last-child {
        font-size: 2rem;
    }
    
    .min-max p {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===== MOST READ WIDGET ===== */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.most-read-item:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin: 0 -0.75rem;
}

.most-read-image {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-start;
}

.most-read-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.most-read-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

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

.most-read-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.most-read-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.most-read-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.most-read-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.most-read-title a:hover {
    color: var(--primary-color);
}

/* ===== LATEST NEWS WIDGET ===== */
.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-news-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.latest-news-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.latest-news-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.latest-news-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.latest-news-title a:hover {
    color: var(--primary-color);
}

.latest-news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== COTAÇÕES WIDGET ===== */
.cotacoes-widget {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
}

.cotacoes-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cotacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

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

.cotacao-item:hover {
    background: var(--bg-tertiary);
    margin: 0 -0.5rem;
    padding: 0.875rem 0.5rem;
    border-radius: var(--radius-md);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cotacao-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cotacao-simbolo {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.cotacao-nome {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cotacao-valor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.cotacao-preco {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.25px;
}

.cotacao-variacao {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    letter-spacing: 0.25px;
}

.cotacao-variacao.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.cotacao-variacao.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.cotacao-variacao.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

.cotacoes-footer {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: var(--bg-tertiary);
    margin: 1rem -1rem -1rem -1rem;
    padding: 0.875rem 1rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.cotacoes-footer small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.no-content-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.no-content-message h2 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ===== AD WIDGET ===== */
.ad-widget {
    text-align: center;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    color: var(--text-muted);
}

.ad-content {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ===== FOOTER CLEAN ===== */
.footer-clean {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 147, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .header-main {
        gap: 0.5rem;
    }
    
    .search-input {
        width: 40px;
        max-width: 160px;
    }
    
    .search-form:focus-within .search-input {
        width: 160px;
    }
}

@media (max-width: 1024px) {
    .header-main {
        gap: 0.75rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    /* Footer Tablet */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .search-input {
        width: 150px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .hero-main {
        height: 400px;
        margin-bottom: 2rem;
    }
    
    .hero-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .side-story {
        height: auto;
        flex-direction: column;
    }
    
    .side-story-image {
        width: 100%;
        height: 150px;
    }
    
    /* Removido - estava causando problema na página de post */
    /* .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    } */
    
    .news-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .news-card.featured .news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-social {
        gap: 0.4rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .search-input {
        width: 40px;
    }
    
    .search-form:focus-within .search-input {
        width: 120px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .search-input {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    
    .search-form:focus-within .search-input {
        width: 100%;
    }
    
    .header-social {
        display: none;
    }
    
    /* Footer Responsivo */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    
    .hero-side {
        flex-direction: column;
        min-height: 300px;
    }
    
    .side-story {
        height: calc((100% - 2.25rem) / 4);
    }
    
    .side-story-image {
        width: 100px;
        height: 100%;
    }
    
    .hero-slider-container {
        margin-top: 1.5rem;
    }
    
    .slider-item {
        height: 280px;
    }
    
    .slider-image {
        height: 160px;
    }
    
    .slider-content {
        padding: 0.875rem;
    }
    
    .slider-title {
        font-size: 0.9375rem;
    }
    
    .slider-excerpt {
        font-size: 0.75rem;
    }
    
    .slider-controls {
        padding: 0 0.25rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 28px;
        height: 28px;
    }
    
    .slider-prev svg,
    .slider-next svg {
        width: 14px;
        height: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        display: block;
    }
    
    .news-card.featured .news-image {
        height: 200px;
    }
    
    /* Removido - estava causando problema na página de post */
    /* .sidebar {
        order: -1;
    } */
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .search-input {
        width: 100px;
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-main {
        height: 300px;
    }
    
    .story-title {
        font-size: 1.5rem;
    }
    
    .story-excerpt {
        font-size: 1rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-card.featured .news-title {
        font-size: 1.25rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

/* ===== FOCUS STATES ===== */
.nav-link:focus,
.mobile-nav-link:focus,
.social-link:focus,
.search-input:focus,
.search-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== POSTS LISTING STYLES ===== */
.posts-listing {
    margin-bottom: 2rem;
}

.posts-listing .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.posts-listing .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}


.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-content {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-direction: row;
}

.post-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.post-chapeu {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(255, 147, 0, 0.1) 0%, rgba(255, 147, 0, 0.05) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 147, 0, 0.15);
    transition: var(--transition);
}

.post-chapeu:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 147, 0, 0.25);
    background: linear-gradient(135deg, rgba(255, 147, 0, 0.15) 0%, rgba(255, 147, 0, 0.08) 100%);
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.post-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-views {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    order: -1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Botão Carregar Mais Posts */
.load-more-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 200px;
    height: 56px;
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive para botão */
@media (max-width: 768px) {
    .load-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Responsive para posts listing */
@media (max-width: 768px) {
    .post-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
        order: 0;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .posts-listing .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-excerpt {
        font-size: 0.875rem;
    }
}

/* ===== PUBLICIDADE STYLES ===== */
.ad-banner {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ad-placeholder:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ad-size {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.ad-description {
    font-size: 0.75rem;
    text-align: center;
}

/* Tamanhos específicos */
.ad-970x250 {
    width: 970px;
    height: 250px;
    max-width: 100%;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-320x50 {
    width: 320px;
    height: 50px;
    max-width: 100%;
}

.ad-750x200 {
    width: 750px;
    height: 200px;
    max-width: 100%;
}

/* Posicionamento específico */
.ad-banner-top {
    margin: 2rem 0;
}

.ad-sidebar-top {
    margin-bottom: 1.5rem;
}

.ad-sidebar-middle {
    margin: 1.5rem 0;
}

.ad-sidebar-bottom {
    margin-top: 1.5rem;
}

.ad-between-posts {
    margin: 2rem 0;
}


/* Mobile Sticky */
.ad-mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin: 0;
    padding: 0.5rem;
    display: none; /* Oculto por padrão, mostrado apenas em mobile */
}

/* Responsive */
@media (max-width: 1200px) {
    .ad-970x250 {
        width: 100%;
        max-width: 728px;
        height: 90px;
    }
    
    .ad-750x200 {
        width: 100%;
        max-width: 600px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .ad-banner {
        margin: 1rem 0;
    }
    
    .ad-300x250 {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .ad-970x250 {
        width: 100%;
        height: 90px;
    }
    
    .ad-750x200 {
        width: 100%;
        height: 120px;
    }
    
    .ad-mobile-sticky {
        display: flex;
    }
    
    .ad-sidebar-top,
    .ad-sidebar-middle,
    .ad-sidebar-bottom {
        display: none; /* Ocultar banners da sidebar em mobile */
    }
}

@media (max-width: 480px) {
    .ad-300x250 {
        height: 150px;
    }
    
    .ad-320x50 {
        width: 100%;
        height: 50px;
    }
    
    .ad-content {
        font-size: 0.75rem;
    }
    
    .ad-size {
        font-size: 0.875rem;
    }
}

/* ===== CATEGORIAS SECTION ===== */
.categorias-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Esconder seção de categorias em mobile (já está no menu hambúrguer) */
@media (max-width: 768px) {
    .categorias-section {
        display: none;
    }
}

.categorias-nav {
    width: 100%;
}

.categorias-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.categoria-link {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.categoria-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.categoria-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--categoria-cor);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.categoria-link:hover::before {
    opacity: 1;
}

/* Cores dinâmicas das categorias */
.categoria-inicio { --categoria-cor: #6b7280; }
.categoria-1 { --categoria-cor: #ff9300; }
.categoria-2 { --categoria-cor: #10b981; }
.categoria-3 { --categoria-cor: #3b82f6; }
.categoria-4 { --categoria-cor: #8b5cf6; }
.categoria-5 { --categoria-cor: #f59e0b; }
.categoria-6 { --categoria-cor: #ef4444; }

/* Aplicar cores da categoria no header e footer dos posts */
body.categoria-1 .header-moderno,
body.categoria-1 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(255, 147, 0, 0.8) 100%);
    color: white;
}

body.categoria-2 .header-moderno,
body.categoria-2 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(16, 185, 129, 0.8) 100%);
    color: white;
}

body.categoria-3 .header-moderno,
body.categoria-3 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(59, 130, 246, 0.8) 100%);
    color: white;
}

body.categoria-4 .header-moderno,
body.categoria-4 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(139, 92, 246, 0.8) 100%);
    color: white;
}

body.categoria-5 .header-moderno,
body.categoria-5 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(245, 158, 11, 0.8) 100%);
    color: white;
}

body.categoria-6 .header-moderno,
body.categoria-6 .footer-clean {
    background: linear-gradient(135deg, var(--categoria-cor) 0%, rgba(239, 68, 68, 0.8) 100%);
    color: white;
}

/* Ajustar cores dos elementos dentro do header e footer com categoria */
body[class*="categoria-"] .header-moderno,
body[class*="categoria-"] .header-moderno * {
    color: white !important;
}

body[class*="categoria-"] .header-moderno a,
body[class*="categoria-"] .footer-clean a {
    color: white !important;
}

body[class*="categoria-"] .header-moderno a:hover,
body[class*="categoria-"] .footer-clean a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

body[class*="categoria-"] .header-moderno .header-info,
body[class*="categoria-"] .header-moderno .header-actions,
body[class*="categoria-"] .header-moderno .header-info *,
body[class*="categoria-"] .header-moderno .header-actions * {
    color: rgba(255, 255, 255, 0.9) !important;
}

body[class*="categoria-"] .header-moderno .logo-link,
body[class*="categoria-"] .header-moderno .logo-img {
    color: white !important;
}

body[class*="categoria-"] .header-moderno .nav-link {
    color: white !important;
}

body[class*="categoria-"] .header-moderno .nav-link:hover,
body[class*="categoria-"] .header-moderno .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

body[class*="categoria-"] .header-moderno .categorias-nav a {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3);
}

body[class*="categoria-"] .header-moderno .categorias-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Garantir que todos os textos do header sejam brancos */
body[class*="categoria-"] .header-moderno .header-date,
body[class*="categoria-"] .header-moderno .header-date *,
body[class*="categoria-"] .header-moderno .header-cotacao,
body[class*="categoria-"] .header-moderno .header-cotacao *,
body[class*="categoria-"] .header-moderno .header-social,
body[class*="categoria-"] .header-moderno .header-social *,
body[class*="categoria-"] .header-moderno .social-link,
body[class*="categoria-"] .header-moderno .social-link *,
body[class*="categoria-"] .header-moderno .mobile-menu-toggle,
body[class*="categoria-"] .header-moderno .mobile-menu-toggle * {
    color: white !important;
}

body[class*="categoria-"] .header-moderno .search-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[class*="categoria-"] .header-moderno .search-input {
    background: transparent;
    color: white;
}

body[class*="categoria-"] .header-moderno .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body[class*="categoria-"] .header-moderno .search-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

body[class*="categoria-"] .header-moderno .search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body[class*="categoria-"] .header-moderno .social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

body[class*="categoria-"] .header-moderno .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body[class*="categoria-"] .footer-clean .footer-title,
body[class*="categoria-"] .footer-clean .footer-description,
body[class*="categoria-"] .footer-clean .footer-bottom-content p {
    color: white;
}

body[class*="categoria-"] .footer-clean .footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
}

body[class*="categoria-"] .footer-clean .footer-menu li a:hover {
    color: white;
}

body[class*="categoria-"] .footer-clean .footer-bottom {
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body[class*="categoria-"] .footer-clean .footer-social .footer-social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

body[class*="categoria-"] .footer-clean .footer-social .footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Estilo para link ativo */
.categoria-link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.categoria-link.active:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive para categorias */
@media (max-width: 768px) {
    .categorias-menu {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .categoria-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .categorias-menu {
        gap: 0.25rem;
    }
    
    .categoria-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ===== RESPONSIVIDADE DO NOVO HEADER ===== */
@media (max-width: 1024px) {
    .header-main {
        gap: 0.75rem;
    }
    
    .header-info {
        min-width: 180px;
    }
    
    .header-actions {
        min-width: 120px;
    }
    
    .date-value {
        font-size: 0.75rem;
    }
}

/* ===== HEADER MOBILE OPTIMIZED ===== */
@media (max-width: 768px) {
    .header-moderno {
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .header-container {
        padding: 0;
    }
    
    .header-main {
        display: grid;
        grid-template-columns: 1fr auto auto 1fr;
        grid-template-areas: 
            "info logo menu ."
            "nav nav nav nav";
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        min-height: 60px;
    }
    
    /* Área 1: Informações (Data/Cotação) */
    .header-info {
        grid-area: info;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 0;
        justify-self: start;
    }
    
    .header-date {
        display: none; /* Ocultar data em mobile para economizar espaço */
    }
    
    .header-cotacao {
        background: var(--primary-color);
        color: white;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        border: none;
    }
    
    .cotacao-simbolo {
        font-size: 0.6rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .cotacao-valor {
        font-size: 0.75rem;
        color: white;
        font-weight: 700;
    }
    
    .cotacao-variacao {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    /* Área 2: Logo Central */
    .header-logo {
        grid-area: logo;
        position: static;
        transform: none;
        justify-self: center;
        z-index: auto;
    }
    
    .logo-img {
        height: 40px;
        width: auto;
        max-width: 120px;
    }
    
    /* Área 3: Menu ao lado da Logo */
    .header-actions {
        grid-area: menu;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        margin-left: 0;
    }
    
    /* Esconder redes sociais em mobile */
    .header-social {
        display: none;
    }
    
    .social-link {
        display: none;
    }
    
    /* Botão Menu Mobile */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 3px;
        background: var(--primary-color);
        border: none;
        border-radius: 8px;
        padding: 0.6rem;
        cursor: pointer;
        transition: var(--transition);
        margin-left: 0.5rem;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--primary-hover);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle.active {
        background: var(--primary-hover);
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 1px;
        transition: var(--transition);
    }
    
    /* Animação do botão hambúrguer */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Menu Mobile Expandido */
    .mobile-menu {
        grid-area: nav;
        display: none;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 0;
        margin: 0 -1rem;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav-menu li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .mobile-nav-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        transition: var(--transition);
        border-left: 3px solid transparent;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: var(--bg-secondary);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
    }
    
    /* Ocultar elementos desnecessários em mobile */
    .header-search {
        display: none;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    .header-main {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
        min-height: 55px;
    }
    
    .header-info {
        gap: 0.2rem;
    }
    
    .header-cotacao {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .cotacao-simbolo {
        font-size: 0.55rem;
    }
    
    .cotacao-valor {
        font-size: 0.7rem;
    }
    
    .cotacao-variacao {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
    }
    
    .logo-img {
        height: 35px;
        max-width: 100px;
    }
    
    /* Redes sociais já escondidas no breakpoint anterior */
    
    .mobile-menu-toggle {
        padding: 0.5rem;
        margin-left: 0.4rem;
    }
    
    .mobile-menu-toggle span {
        width: 16px;
        height: 2px;
    }
    
    .mobile-nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mobile Muito Pequeno (até 360px) */
@media (max-width: 360px) {
    .header-main {
        padding: 0.4rem 0.5rem;
        min-height: 50px;
    }
    
    .header-cotacao {
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .logo-img {
        height: 30px;
        max-width: 80px;
    }
    
    /* Redes sociais já escondidas no breakpoint anterior */
    
    .mobile-menu-toggle {
        padding: 0.45rem;
        margin-left: 0.3rem;
    }
    
    .mobile-menu-toggle span {
        width: 14px;
        height: 1.5px;
    }
}

/* ===== CORES DINÂMICAS DAS CATEGORIAS ===== */
/* Cores das categorias serão aplicadas dinamicamente via PHP */
.post-category.categoria-1 { background: #ff9300; color: white; }
.post-category.categoria-2 { background: #10b981; color: white; }
.post-category.categoria-3 { background: #3b82f6; color: white; }
.post-category.categoria-4 { background: #8b5cf6; color: white; }
.post-category.categoria-5 { background: #f59e0b; color: white; }
.post-category.categoria-6 { background: #ef4444; color: white; }

/* Hover effects para títulos com cores das categorias */
.categoria-1 .post-title a:hover { color: #ff9300; }
.categoria-2 .post-title a:hover { color: #10b981; }
.categoria-3 .post-title a:hover { color: #3b82f6; }
.categoria-4 .post-title a:hover { color: #8b5cf6; }
.categoria-5 .post-title a:hover { color: #f59e0b; }
.categoria-6 .post-title a:hover { color: #ef4444; }

/* ===== PRINT STYLES ===== */
@media print {
    .header-moderno,
    .footer-simples,
    .mobile-menu {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== OTIMIZAÇÕES ESPECÍFICAS PARA MOBILE ===== */

/* Melhorar performance de scroll no mobile */
* {
    -webkit-overflow-scrolling: touch;
}

/* Otimizar animações para mobile */
@media (max-width: 768px) {
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Desabilitar hover effects em touch devices */
    .btn:hover,
    .post-card:hover,
    .categoria-link:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Otimizar transformações para mobile */
    .post-image:hover img,
    .ad-banner:hover {
        transform: none;
    }
}

/* Melhorar legibilidade em telas pequenas */
@media (max-width: 768px) {
    /* Aumentar tamanho mínimo de texto */
    body {
        font-size: 16px;
    }
    
    /* Melhorar contraste */
    .text-secondary {
        color: var(--text-primary);
    }
    
    /* Melhorar botões para touch */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Otimizar formulários */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 0.75rem;
    }
}

/* Otimizações específicas para iOS */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--radius-md);
    }
    
    .btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--radius-md);
    }
}

/* Otimizações para Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Correções específicas para carregamento no mobile */
@media screen and (max-width: 768px) {
    /* Garantir que o layout seja sempre responsivo */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Otimizar header para mobile */
    .header-moderno {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-container {
        width: 100%;
        max-width: 100%;
    }
    
    /* Garantir que os elementos sejam visíveis */
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    .post-grid {
        display: block;
        width: 100%;
    }
    
    .post-card {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Otimizar sidebar para mobile */
    .sidebar {
        width: 100%;
        margin-top: 2rem;
    }
    
    .widget {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Correções para dispositivos muito pequenos */
@media screen and (max-width: 480px) {
    /* Garantir que o layout seja sempre vertical */
    .main-layout {
        flex-direction: column;
    }
    
    /* Otimizar espaçamento */
    .main-content {
        padding: 0.5rem;
    }
    
    .post-card {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    
    /* Garantir que textos sejam legíveis */
    body {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* Otimizar botões para touch */
    .btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Garantir que modais funcionem */
    .modal,
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 0.5rem;
    }
}