/* ==========================================================================
   ESPELHO DO MARANHÃO - DESIGN SYSTEM 2026
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #0F1E36;        /* Deep Navy Blue */
    --primary-light: #1E2E4A;  /* Light Deep Navy */
    --accent: #C5A059;         /* Warm Gold Accent */
    --accent-light: rgba(197, 160, 89, 0.15);
    --bg-body: #F4F6F8;        /* Light Grey Background */
    --bg-card: #FFFFFF;
    --text-dark: #1E293B;      /* Slate Charcoal */
    --text-muted: #64748B;     /* Muted Slate */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --red-alert: #EF4444;      /* For live notifications */

    /* Typography */
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ==========================================================================
   STRUCTURE
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    padding: 40px 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header.site-header {
    background-color: var(--primary);
    color: var(--white);
    border-bottom: 4px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.top-bar-left span {
    margin-right: 15px;
}

.top-bar-right a {
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-right a:hover {
    color: var(--accent);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--white);
    line-height: 1;
}

.logo span {
    color: var(--accent);
}

.logo-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
}

nav.main-nav ul li {
    margin: 0 14px;
    position: relative;
}

nav.main-nav ul li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid transparent;
}

nav.main-nav ul li a:hover, 
nav.main-nav ul li.current-menu-item a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-trigger {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-trigger:hover {
    color: var(--accent);
}

.btn-gold {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HOMEPAGE HERO GRID
   ========================================================================== */

.hero-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.main-story {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.main-story-img-container {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: var(--primary);
    overflow: hidden;
}

/* Custom Hero Image Formats */
.main-story-img-container.format-landscape {
    height: 420px;
}

.main-story-img-container.format-square {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 480px;
}

.main-story-img-container.format-portrait {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
}

.main-story-img-container.format-original {
    height: auto;
}

.main-story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.main-story-img-container.format-original img {
    height: auto;
    object-fit: contain;
}

.main-story:hover .main-story-img-container img {
    transform: scale(1.03);
}

.badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-radius: 2px;
}

.main-story-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-story-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}

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

.main-story-excerpt {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    opacity: 0.95;
    flex-grow: 1;
}

.meta-author-row {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--accent);
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-dot {
    margin: 0 6px;
}

.reading-time {
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================================================
   LIVE SIDEBAR (ÚLTIMAS NOTÍCIAS)
   ========================================================================== */

.live-sidebar {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 720px;
}

.live-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--red-alert);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 1; }
}

.live-sidebar-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-feed-container {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 6px;
}

.live-feed-container::-webkit-scrollbar {
    width: 4px;
}
.live-feed-container::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
}

.live-item {
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.live-item::before {
    content: none; /* Remove the bullet circle */
}

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

.live-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.live-text {
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 500;
}

.live-text a:hover {
    color: var(--accent);
}

/* ==========================================================================
   DESTAQUES GRID (4 COLS)
   ========================================================================== */

.destaques-section {
    padding: 0 0 40px 0;
}

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

.destaque-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.destaque-img {
    height: 180px;
    background-color: var(--primary);
    overflow: hidden;
    position: relative;
}

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

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

.destaque-content {
    padding: 20px;
}

.destaque-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.destaque-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
    margin-top: 15px;
}

/* ==========================================================================
   SECTION HEADER UTILITY
   ========================================================================== */

.section-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 28px;
}

.section-title span::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-top: 8px;
}

/* ==========================================================================
   CATEGORIES LIST SECTIONS
   ========================================================================== */

.category-blocks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 0;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-row-item {
    display: flex;
    gap: 20px;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-row-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.news-row-img {
    width: 130px;
    height: 95px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--primary);
}

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

.news-row-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-row-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
}

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

.news-row-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   OPINIÃO SECTION (DARK ROW)
   ========================================================================== */

.opinion-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.opinion-section .section-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.opinion-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opinion-card::before {
    content: "“";
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: var(--accent);
    opacity: 0.12;
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.opinion-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
}

.opinion-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    margin-bottom: 16px;
    background-color: var(--primary-light);
}

.opinion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 2px;
}

.opinion-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

.opinion-title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.45;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   NATIVE ADVERTISEMENT PLACEMENT
   ========================================================================== */

.native-ad-wrapper {
    padding: 30px 0;
    text-align: center;
}

.native-ad {
    max-width: 970px;
    margin: 0 auto;
    background-color: #ECEFF1;
    border: 1px solid #CFD8DC;
    padding: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-radius: 6px;
    position: relative;
}

.native-ad-label {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--bg-body);
    padding: 0 10px;
    font-weight: 700;
}

.native-ad-content {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

/* ==========================================================================
   NEWSLETTER PANEL
   ========================================================================== */

.newsletter-panel {
    background-color: #E2E8F0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
}

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

.newsletter-panel-info {
    max-width: 550px;
}

.newsletter-panel-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.newsletter-panel-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.newsletter-panel-form {
    display: flex;
    gap: 12px;
    flex-grow: 1;
    max-width: 500px;
}

.newsletter-panel-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.newsletter-panel-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.site-footer {
    background-color: #08101F;
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 20px 0;
    font-size: 0.88rem;
    border-top: 6px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1;
}

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

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-serif);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.social-links-footer {
    display: flex;
    gap: 10px;
}

.social-links-footer a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links-footer a:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   SINGLE POST LAYOUT (PREMIUM READABILITY)
   ========================================================================== */

.post-wrapper {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    padding: 40px 0;
}

.post-article {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-header {
    margin-bottom: 24px;
}

.post-category {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.post-featured-image {
    width: 100%;
    height: 460px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Custom Featured Image Formats */
.post-featured-image.format-landscape {
    height: 460px;
}

.post-featured-image.format-square {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 600px;
}

.post-featured-image.format-portrait {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 650px;
}

.post-featured-image.format-original {
    height: auto;
}

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

.post-featured-image.format-original img {
    height: auto;
    object-fit: contain;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2D3748;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2, .post-content h3 {
    margin: 36px 0 16px 0;
}

/* Share block */
.post-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-share-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.share-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.share-whatsapp {
    background-color: #25D366;
}

.share-twitter {
    background-color: #000000;
}

/* ==========================================================================
   SEARCH / ARCHIVE TEMPLATES
   ========================================================================== */

.archive-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
}

.archive-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 900;
}

.archive-title span {
    color: var(--accent);
}

.archive-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 30, 54, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

.search-modal-close:hover {
    color: var(--accent);
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

.search-modal-content h3 {
    font-family: var(--font-serif);
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.search-modal-content input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 3px solid var(--accent);
    color: var(--white);
    font-size: 1.8rem;
    padding: 10px 0;
    font-family: inherit;
    text-align: center;
}

.search-modal-content input:focus {
    outline: none;
}

.search-modal-content p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .live-sidebar {
        max-height: 400px;
    }

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

    .category-blocks-row {
        grid-template-columns: 1fr;
    }

    .post-wrapper, .archive-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .post-wrapper > *,
    .archive-grid > * {
        min-width: 0 !important;
    }

    /* Hamburger Menu Styles for Tablet/Mobile */
    .mobile-menu-toggle {
        display: block !important;
        order: 2;
    }

    .main-header {
        position: relative;
    }

    nav.main-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 24px;
        box-sizing: border-box;
        z-index: 999;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    nav.main-nav.active {
        display: block !important;
    }

    nav.main-nav ul {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    nav.main-nav ul li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav.main-nav ul li:last-child {
        border-bottom: none;
    }

    nav.main-nav ul li a {
        font-size: 0.95rem !important;
        padding: 12px 0 !important;
        display: block;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    .post-article {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hide top-bar and newsletter button on mobile */
    .header-actions .btn-gold,
    .top-bar {
        display: none !important;
    }

    .main-header {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 1px !important;
        white-space: normal !important;
    }

    /* Hero */
    .main-story-img-container {
        height: 240px;
    }

    .main-story-img-container.format-landscape {
        height: 240px;
    }

    .main-story-img-container.format-square {
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 100vw;
    }

    .main-story-img-container.format-portrait {
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 120vw;
    }

    .main-story-img-container.format-original {
        height: auto;
    }

    .main-story-img-container.format-original img {
        height: auto;
    }

    .main-story-title {
        font-size: 1.45rem;
    }

    .main-story-content {
        padding: 16px;
    }

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

    /* Categories lists */
    .news-row-item {
        flex-direction: column;
        gap: 12px;
    }

    .news-row-img {
        width: 100%;
        height: 180px;
    }

    /* Opinions Mobile Swiper (Native Scroll) */
    .opinion-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .opinion-card {
        min-width: 280px;
        scroll-snap-align: start;
    }

    /* Newsletter Panel */
    .newsletter-panel-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 0 16px;
    }

    .newsletter-panel-form {
        width: 100%;
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-grid > * {
        min-width: 0 !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Single post padding */
    .post-article {
        padding: 20px;
    }

    .post-title {
        font-size: 1.7rem;
    }

    .post-featured-image {
        height: 220px;
    }

    .post-featured-image.format-landscape {
        height: 220px;
    }

    .post-featured-image.format-square {
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 100vw;
    }

    .post-featured-image.format-portrait {
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 120vw;
    }

    .post-featured-image.format-original {
        height: auto;
    }

    .post-featured-image.format-original img {
        height: auto;
    }

    /* Collapse two-column form grids on mobile */
    .form-row-two-col {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ADDITIONAL STYLES (SHARING BAR & FORM GRID)
   ========================================================================== */

/* Top Share Bar below featured image */
.post-image-share-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 20px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-image-share-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.post-image-share-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

@media (max-width: 600px) {
    .post-image-share-bar {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .post-image-share-title {
        margin-right: 0 !important;
    }

    .post-image-share-buttons {
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

.share-circle-btn {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    flex-shrink: 0 !important;
}

.share-circle-btn svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: #ffffff !important;
    display: block !important;
}

.share-circle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.share-circle-copy {
    background-color: #64748B !important;
}

.share-circle-whatsapp {
    background-color: #25D366 !important;
}

.share-circle-facebook {
    background-color: #1877F2 !important;
}

.share-circle-twitter {
    background-color: #000000 !important;
}

.share-circle-instagram {
    background-color: #E1306C !important;
}

/* Two-column form grid helper */
.form-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Live news sidebar link hover effect */
.live-item-link {
    transition: var(--transition);
}

.live-item-link:hover .live-text {
    color: var(--accent) !important;
}

/* ==========================================================================
   COOKIE MODAL STYLES
   ========================================================================== */

/* Cookie Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5) !important; /* Dark translucent background */
    backdrop-filter: blur(8px) !important; /* Blur effect on background */
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease !important;
    padding: 20px;
}

.cookie-modal-overlay.visible {
    opacity: 1 !important;
}

/* Cookie Modal Content Box */
.cookie-modal-box {
    background-color: var(--white) !important;
    max-width: 420px;
    width: 100%;
    border-radius: 20px !important; /* Highly rounded corners */
    padding: 40px 30px 35px 30px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; /* Soft shadow */
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cookie-modal-overlay.visible .cookie-modal-box {
    transform: scale(1) !important;
}

/* Close Button (X) */
.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none !important;
    border: none !important;
    font-size: 1.8rem !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 4px !important;
    transition: var(--transition) !important;
}

.cookie-modal-close:hover {
    color: var(--primary) !important;
    transform: rotate(90deg) !important;
}

/* Cookie Icon Area */
.cookie-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background-color: #FFF7ED !important; /* Very soft orange background */
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookiePulse 2s infinite ease-in-out;
}

.cookie-modal-icon svg {
    width: 50px;
    height: 50px;
}

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

/* Typography & Content */
.cookie-modal-title {
    font-family: var(--font-serif) !important;
    font-size: 1.6rem !important;
    color: var(--primary) !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
}

.cookie-modal-desc {
    font-size: 0.92rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

/* Large Rounded Orange Action Button */
.cookie-modal-btn {
    background-color: #FF6B00 !important; /* Premium vibrant orange */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shaped button */
    padding: 14px 40px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4) !important;
}

.cookie-modal-btn:hover {
    background-color: #E25C00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6) !important;
}

.cookie-modal-btn:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   CONTENT PROTECTION (BLOCK SELECT & COPY)
   ========================================================================== */

/* Prevent text selection on articles and standard text blocks */
.post-content,
.post-article {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection in form inputs, textareas, search modal, and newsletter inputs */
input,
textarea,
select,
button,
[contenteditable="true"],
.search-modal input,
.newsletter-panel input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent iOS long press and dragging/saving on images */
img {
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* ==========================================================================
   COMMENTS SECTION (PREMIUM & CLEAN DESIGNS)
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.comment-respond {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

#reply-title,
.comments-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}

#reply-title::after,
.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

#cancel-comment-reply-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red-alert);
    margin-left: 12px;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
}

#cancel-comment-reply-link:hover {
    color: #DC2626;
}

.logged-in-as {
    display: none !important;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-notes {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-form-comment label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form-comment textarea {
    width: 100%;
    height: 90px !important;
    min-height: 70px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #F8FAFC;
    transition: var(--transition);
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Guest author, email, url fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #F8FAFC;
    transition: var(--transition);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Cookies consent checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 5px;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* Submit Button styling */
.form-submit {
    margin-top: 5px;
}

.form-submit input[type="submit"] {
    background-color: var(--accent);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
    background-color: transparent;
    color: var(--accent);
}

/* Comments list styling */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-body {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.comment-author .fn {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary);
    font-style: normal;
}

.comment-metadata a {
    color: var(--text-muted);
}

.comment-metadata a:hover {
    color: var(--accent);
}

.comment-awaiting-moderation {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-style: italic;
    color: #D97706;
    background-color: #FEF3C7;
    border-left: 3px solid #D97706;
    padding: 8px 12px;
    border-radius: 4px;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.comment-reply-link::before {
    content: '↩';
    margin-right: 6px;
    font-size: 1rem;
    line-height: 1;
}

.comment-reply-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Replies thread line / indentation */
.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 2px solid var(--border-color);
}

@media (max-width: 767px) {
    .comment-list .children {
        padding-left: 15px;
    }
    
    .comment-respond {
        padding: 20px 15px;
        margin-top: 20px;
    }
}

@media (min-width: 768px) {
    #commentform {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .comment-notes {
        grid-column: span 3;
        white-space: nowrap;
    }
    
    .comment-form-comment {
        grid-column: span 3;
    }
    
    .comment-form-cookies-consent {
        grid-column: span 3;
    }
    
    .form-submit {
        grid-column: span 3;
    }
}

/* ==========================================================================
   AJAX SEARCH AUTOCOMPLETE DROPDOWN
   ========================================================================== */

/* Force visible text cursor and caret on all search and form inputs */
input[type="search"],
.wp-block-search__input,
.search-field,
#search-input {
    cursor: text !important;
    caret-color: var(--primary) !important;
    -webkit-user-select: text !important;
    user-select: text !important;
}

.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

.search-autocomplete-dropdown.active {
    display: block;
}

.search-autocomplete-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

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

.search-autocomplete-item:hover {
    background-color: #F8FAFC;
}

.search-autocomplete-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.search-autocomplete-category {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.search-autocomplete-date {
    color: var(--text-muted);
}

.search-autocomplete-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary);
}

.search-autocomplete-item:hover .search-autocomplete-title {
    color: var(--accent);
}

.search-autocomplete-message {
    padding: 16px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.search-autocomplete-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: searchSpin 0.8s infinite linear;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

