@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette - Minimalist Monochromatic & Red */
    --brand-primary: #1A1A1A;    /* Intense Black */
    --rich-black: var(--brand-primary);
    --brand-accent: #C4170C;     /* G1 Red (Maintain for Impact) */
    --text-main: #2D2D2D;       /* Dark Gray for Body */
    --text-muted: #555555;      /* Medium Gray for Taglines */
    --bg-light: #F9F9F9;
    --pure-white: #FFFFFF;
    --gray-light: #EEEEEE;
    --accent-gold: #B8860B;

    /* Typography - Harmonized Sizes */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing & Borders */
    --container-width: 1100px; /* Slightly tighter */
    --radius-sm: 2px; /* More angular/minimalist */
    --radius-md: 4px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .nav-link {
    font-family: var(--font-header);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* Typography Helpers */
.text-upper { text-transform: uppercase; letter-spacing: 1px; }
.text-red { color: var(--brand-accent); }
.text-gold { color: var(--accent-gold); }

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Structural Components */
.top-bar { 
    background: var(--brand-primary); 
    color: white; 
    font-size: 0.85rem; 
    height: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.cnn-ticker {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
}

.ticker-urgent-tag {
    background: var(--brand-accent);
    color: white;
    padding: 0 12px;
    height: 35px;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-urgent-tag::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    border-top: 17.5px solid transparent;
    border-bottom: 17.5px solid transparent;
    border-left: 15px solid var(--brand-accent);
}

.ticker-scroll-container {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0; /* Critical flex fix for mobile */
}

.ticker-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: cnn-scroll 30s linear infinite;
    font-weight: 500;
    letter-spacing: 0.5px;
    will-change: transform;
}

@keyframes cnn-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-scroll-text span {
    margin-right: 50px;
}

.main-header { 
    background: var(--pure-white); 
    padding: 20px 0; 
    box-shadow: var(--shadow-sm); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

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

.logo-text { 
    font-family: var(--font-header); 
    letter-spacing: -1px; 
    font-weight: 800; 
    color: var(--brand-primary); 
    font-size: 1.8rem; 
}

.logo-text span { color: var(--brand-accent); font-weight: 300; margin-left: 5px; }
.tagline { font-size: 1.05rem; color: var(--text-muted); text-transform: none; letter-spacing: -0.2px; line-height: 1.3; font-weight: 400; }
.portal-tagline { font-size: 0.83rem; color: var(--text-muted); text-transform: none; margin-bottom: 5px; }
.portal-tagline { font-size: 0.83rem; color: var(--text-muted); text-transform: none; margin-bottom: 5px; }

.nav-list { display: flex; gap: 25px; }
.nav-link { color: var(--rich-black); font-size: 0.95rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--brand-accent); }

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

.news-ticker { 
    background: var(--brand-accent); 
    color: white; 
    padding: 12px 0; 
    font-size: 0.85rem; 
    font-weight: 600; 
    position: relative;
    overflow: hidden;
}

.ticker-label { background: rgba(0,0,0,0.2); padding: 4px 12px; margin-right: 15px; border-radius: var(--radius-sm); }

/* Countdown Timer */
.countdown-container {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.timer-box {
    background: var(--pure-white);
    color: var(--brand-accent);
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.timer-value {
    font-size: 0.85rem;
    font-weight: 800;
}

.timer-label {
    font-size: 0.45rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0;
}

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

.main-news-column {
    display: flex;
    flex-direction: column;
}

.sidebar-news {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.hero-news { 
    background: var(--pure-white); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    transition: var(--transition);
}

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

.featured-image-container { 
    position: relative; 
    height: 450px; 
    overflow: hidden; 
    background: #E2E8F0; 
}

.news-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.hero-news:hover .news-img { transform: scale(1.03); }

.news-badge { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    background: var(--brand-accent); 
    color: white; 
    padding: 5px 15px; 
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    font-size: 0.8rem; 
}

@keyframes blink {
    0% { background-color: #C4170C; box-shadow: 0 4px 10px rgba(196, 23, 12, 0.4); }
    50% { background-color: #ff2b1c; box-shadow: 0 0 20px rgba(255, 43, 28, 0.9); }
    100% { background-color: #C4170C; box-shadow: 0 4px 10px rgba(196, 23, 12, 0.4); }
}

.live-blink {
    animation: blink 1.2s ease-in-out infinite;
}

.news-content { padding: 25px 30px; }
.category { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
.news-title { font-size: 2.2rem; margin: 12px 0; line-height: 1.05; font-family: var(--font-header); color: var(--brand-primary); letter-spacing: -0.2px; }

@media (max-width: 768px) {
    .container article .news-title {
        font-size: 2.2rem !important;
    }
}
.news-excerpt { color: var(--gray-medium); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.3; }
.read-more { color: var(--brand-accent); font-weight: 700; font-size: 0.9rem; }

.sidebar-news { position: sticky; top: 100px; height: fit-content; }
.side-title { 
    border-bottom: 3px solid var(--brand-primary); 
    padding-bottom: 15px; 
    margin-bottom: 25px; 
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.side-card { 
    background: var(--pure-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    overflow: hidden; /* Ensures image doesn't bleed out of radius */
    align-items: stretch; /* Makes children fill height */
    height: 100px; /* Fixed height for consistent look */
}

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

.side-img-container { 
    flex-shrink: 0;
    width: 100px; /* Wider thumbnails for better impact */
    height: 100%;
    background: #E2E8F0;
}

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

.side-card-content { 
    padding: 15px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-category { font-size: 0.65rem; font-weight: 700; color: var(--brand-accent); text-transform: uppercase; display: block; margin-bottom: 5px; }
.side-card h4 { font-size: 1rem; cursor: pointer; line-height: 1.2; font-weight: 600; color: var(--rich-black); margin: 0; }
.side-card:hover h4 { color: var(--brand-accent); }

.main-footer { background: var(--rich-black); color: white; padding: 80px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-links h3, .footer-contact h3 { font-size: 1.25rem; margin-bottom: 30px; color: var(--brand-accent); text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 15px; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--pure-white); padding-left: 10px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; padding-top: 30px; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* Article Detail Page Styles */
.article-header { padding: 60px 0 30px; border-bottom: 1px solid var(--gray-light); margin-bottom: 40px; }
.article-meta { color: var(--gray-medium); font-size: 0.8rem; margin-top: 15px; display: block; text-transform: none; letter-spacing: 0; }
.article-title { font-size: 2.8rem; line-height: 1; margin-bottom: 20px; color: var(--brand-primary); font-family: var(--font-header); letter-spacing: -0.5px; font-weight: 800; }

.article-hero { width: 100%; height: 500px; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-lg); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.5; color: var(--text-main); }
.article-body p { margin-bottom: 25px; }

.pull-quote { 
    font-family: var(--font-accent); 
    font-style: italic; 
    font-size: 1.8rem; 
    color: var(--brand-primary); 
    border-left: 5px solid var(--brand-accent); 
    padding: 20px 40px; 
    margin: 40px 0; 
    background: var(--bg-light);
    line-height: 1.4;
}

.article-image-full { margin: 40px 0; text-align: center; }
.article-image-full img { width: 100%; border-radius: var(--radius-md); }
.caption { 
    font-size: 0.75rem !important; 
    color: var(--gray-medium) !important; 
    padding: 5px 0 !important; 
    font-style: italic !important; 
    text-align: center !important; 
    display: block !important; 
    width: 100% !important; 
    margin: 0 !important;
}

/* Responsive Design System */
@media (max-width: 1024px) {
    :root { --container-width: 98%; }
    .container { padding: 0 10px; }
    .news-grid { gap: 15px; }
    .news-title { font-size: 2rem; }
}

@media (max-width: 968px) {
    .main-nav { display: none; } /* Hide desktop nav */
    .mobile-menu-btn { display: block; } /* Show hamburger */
    
    .main-header { padding: 10px 0; }
    .header-content { position: relative; }
    .logo-text { font-size: 1.3rem; }
    
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    .hero-news { margin-bottom: 10px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .footer-about, .footer-links, .footer-contact { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    .section-padding { padding: 20px 0; }
    .featured-image-container { height: 220px; }
    .news-title { font-size: 1.4rem; letter-spacing: -0.5px; }
    .news-content { padding: 12px; }
    
    .article-header { padding: 20px 0 10px; margin-bottom: 15px; }
    .article-title { font-size: 1.9rem; margin-bottom: 15px; }
    .article-hero { height: 180px; margin-bottom: 15px; }
    .article-body { font-size: 1.05rem; padding: 0; }
    .article-body p { margin-bottom: 12px; }
    .pull-quote { font-size: 1.1rem; padding: 12px 18px; margin: 15px 0; border-left-width: 3px; }
    
    .side-card { height: 75px; padding: 8px; gap: 8px; }
    .side-img-container { width: 60px; height: 100%; }
    .side-card h4 { font-size: 0.85rem; line-height: 1.2; }
}

/* Mobile Menu State */
.main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 20px;
}

.main-nav.mobile-active .nav-list {
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-primary);
}
/* Social Sharing Redesign - Premium Look */
.share-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-medium);
    letter-spacing: 0.5px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--gray-light);
    padding: 0;
    outline: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.share-btn.whatsapp { color: #25D366; }
.share-btn.telegram { color: #0088cc; }
.share-btn.copy { color: var(--rich-black); }

.share-btn.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-btn.telegram:hover { background: #0088cc; color: white; border-color: #0088cc; }
.share-btn.copy:hover { background: var(--rich-black); color: white; border-color: var(--rich-black); }

/* Article Side Sharing (Floating) */
.article-share-sidebar {
    position: fixed;
    left: calc(50% - 500px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

@media (max-width: 1200px) {
    .article-share-sidebar {
        position: static;
        flex-direction: row;
        transform: none;
        justify-content: center;
        margin: 20px 0;
        border-top: 1px solid var(--gray-light);
        padding-top: 20px;
    }
}

/* Carousel System - Premium Dossiê */
.carousel-container { position: relative; width: 100%; max-width: 900px; margin: 40px auto; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); background: var(--pure-white); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.counselor-card { min-width: 100%; display: grid; grid-template-columns: 1fr 1.5fr; background: var(--pure-white); }
.counselor-img-side { height: 500px; overflow: hidden; }
.counselor-img-side img { width: 100%; height: 100%; object-fit: cover; }
.counselor-info-side { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.counselor-badge { display: inline-block; padding: 4px 12px; background: var(--brand-accent); color: white; font-weight: 800; font-size: 0.7rem; margin-bottom: 20px; border-radius: var(--radius-sm); width: fit-content; text-transform: uppercase; }
.counselor-name { font-size: 2.2rem; line-height: 1.1; margin-bottom: 10px; color: var(--brand-primary); }
.counselor-cpf { font-family: monospace; color: var(--gray-medium); font-size: 0.9rem; margin-bottom: 25px; display: block; border-left: 3px solid var(--gray-light); padding-left: 15px; }
.counselor-desc { color: var(--text-main); line-height: 1.5; font-size: 1.1rem; }

.carousel-nav { position: absolute; bottom: 30px; right: 50px; display: flex; gap: 15px; }
.nav-arrow { background: var(--brand-primary); color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: none; font-size: 1.2rem; }
.nav-arrow:hover { background: var(--brand-accent); transform: scale(1.1); }
.nav-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 768px) {
    .counselor-card { grid-template-columns: 1fr; }
    .counselor-img-side { height: 300px; }
    .counselor-info-side { padding: 30px; }
    .carousel-nav { 
        position: absolute; 
        top: 235px; 
        right: 15px; 
        bottom: auto; 
        padding: 5px; 
        display: flex;
        gap: 8px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
        border-radius: 30px;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        box-shadow: none;
    }
    .counselor-name { font-size: 1.6rem; }
}
