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

:root {
    --primary: #1a1a2e;
    --accent: #e94560;
    --accent-dark: #c73e54;
    --secondary: #16213e;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --text: #212529;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
.header-top {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

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

.header-top-nav a {
    color: rgba(255,255,255,0.8);
    margin-left: 20px;
    transition: var(--transition);
}

.header-top-nav a:hover {
    color: var(--accent);
}

.header-main {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent);
}

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

.logo a {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-noticia {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
}

.logo-24h {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
}

.logo-city {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray);
    margin-left: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.search-box input {
    padding: 10px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 25px;
    font-size: 0.9rem;
    width: 300px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

/* MAIN NAV */
.main-nav {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.main-nav ul li a {
    display: block;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: var(--accent);
    color: var(--white);
}

/* BREAKING NEWS */
.breaking-news-bar {
    background: var(--accent);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-news-bar .container {
    display: flex;
    align-items: center;
}

.breaking-label {
    background: var(--white);
    color: var(--accent);
    padding: 4px 14px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 3px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-ticker {
    overflow: hidden;
    margin-left: 15px;
    flex: 1;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    padding: 0 40px;
    font-weight: 500;
    font-size: 0.9rem;
}

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

/* HERO SECTION */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    min-height: 450px;
}

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

.hero-main .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 30px 30px;
    color: var(--white);
}

.hero-main .category-badge {
    background: var(--accent);
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-main h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-main .hero-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    flex: 1;
    min-height: 210px;
}

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

.hero-side-card .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px 15px 15px;
    color: var(--white);
}

.hero-side-card .category-badge {
    background: var(--accent);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-side-card h3 {
    font-size: 1rem;
    line-height: 1.3;
}

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

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.news-card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.news-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* CATEGORY SECTIONS */
.category-section-block {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.section-header a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-news-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.category-news-item .item-image {
    height: 150px;
    overflow: hidden;
}

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

.category-news-item .item-body {
    padding: 15px;
}

.category-news-item .item-body h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.category-news-item .item-body .item-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* NEWS MODAL */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.news-modal.active {
    display: block;
}

.modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: var(--white);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-body .category-badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.modal-body h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.modal-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.modal-text p {
    margin-bottom: 18px;
}

/* FOOTER */
.main-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

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

.footer-logo .logo-noticia,
.footer-logo .logo-24h {
    font-size: 1.6rem;
}

.footer-logo .logo-city {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-sidebar {
        flex-direction: row;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .search-box {
        display: none;
    }
    .logo-noticia, .logo-24h {
        font-size: 1.6rem;
    }
    .logo-city {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
    }
    .hero-section {
        grid-template-columns: 1fr;
        margin: 15px 0;
    }
    .hero-main {
        min-height: 300px;
    }
    .hero-sidebar {
        flex-direction: column;
    }
    .hero-side-card {
        min-height: 200px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .category-news-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-body h1 {
        font-size: 1.4rem;
    }
    .modal-image {
        height: 250px;
    }
}

/* FEATURED HIGHLIGHT */
.featured-highlight {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 18px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.featured-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(233,69,96,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.featured-badge {
    background: var(--accent);
    color: var(--white);
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 22px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.featured-content:hover .featured-cta {
    color: var(--accent);
}

.featured-gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8px;
    height: 220px;
}

.featured-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    height: 220px;
}

.featured-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.featured-img-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 220px;
}

.featured-img-stack img {
    width: 100%;
    border-radius: 8px;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.featured-text {
    color: var(--white);
}

.featured-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 8px 0;
}

.featured-text p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
}

.featured-meta {
    display: flex;
    gap: 18px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    align-items: center;
    flex-wrap: wrap;
}

.featured-cta {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr;
    }
    .featured-text h2 {
        font-size: 1.1rem;
    }
    .featured-gallery {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .featured-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .featured-img-stack {
        flex-direction: row;
        max-height: 120px;
    }
    .featured-img-stack img {
        max-height: 120px;
    }
    .featured-text h2 {
        font-size: 1rem;
    }
    .featured-highlight {
        padding: 14px 0;
    }
}

/* Image wrapper with opacity overlay */
.img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.img-wrapper .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.25;
    pointer-events: none;
}

.news-card:hover .img-wrapper img,
.hero-main:hover .img-wrapper img,
.hero-side-card:hover .img-wrapper img,
.category-news-item:hover .img-wrapper img {
    transform: scale(1.08);
}

/* Modal image with overlay */
.modal-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    pointer-events: none;
}

/* Placeholder images with CSS gradients */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
    font-weight: 800;
}

.bg-politica { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.bg-economia { background: linear-gradient(135deg, #0f4c75, #1b6ca8); }
.bg-infraestrutura { background: linear-gradient(135deg, #e94560, #c73e54); }
.bg-seguranca { background: linear-gradient(135deg, #343a40, #495057); }
.bg-esportes { background: linear-gradient(135deg, #2d6a4f, #40916c); }
.bg-cultura { background: linear-gradient(135deg, #7209b7, #560bad); }
.bg-saude { background: linear-gradient(135deg, #0077b6, #00b4d8); }
.bg-educacao { background: linear-gradient(135deg, #e85d04, #dc2f02); }

/* Search results highlight */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--gray);
}
