:root {
    --bt-orange: #FF4D00;
    --bt-orange-glow: rgba(255, 77, 0, 0.4);
    --bt-black: #0A0A0A;
    --bt-deep-gray: #121212;
    --bt-surface: #F4F4F6;
    --bt-surface-dark: #1A1A1A;
    --bt-text-white: #F5F5F7;
    --bt-text-dark: #111111;
    --bt-text-gray: #666666;
    --bt-glass: rgba(18, 18, 18, 0.95);
    --bt-border: rgba(0, 0, 0, 0.08);
    --bt-border-dark: rgba(255, 255, 255, 0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Layout Core */
.layout-wrapper { display: flex; min-height: 100vh; }

/* Sidebar Premium Glassmorphism */
.sidebar-menu {
    width: 220px; 
    background: #111111;
    border-right: none;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    position: fixed; 
    height: 100vh; 
    display: flex; 
    flex-direction: column;
    padding: 2rem 1.5rem; 
    z-index: 100;
    overflow-y: auto;
}

.sidebar-menu .logo {
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-size: 1.9rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    margin-bottom: 3rem;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}
.sidebar-menu .logo span { color: var(--bt-orange); }

.nav-links { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.nav-links a { 
    display: flex; 
    align-items: center; 
    gap: 1rem;
    color: #999; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    padding: 0.9rem 1rem; 
    border-radius: 10px; 
    transition: all 0.3s;
    letter-spacing: 0.05em;
}
.nav-links a i { width: 20px; transition: transform 0.3s; }
.nav-links a:hover { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
}
.nav-links a:hover i { transform: translateX(3px); }
.nav-links a.active { 
    background: var(--bt-orange); 
    color: white; 
    box-shadow: 0 10px 20px var(--bt-orange-glow);
}

/* Main Content Area */
.main-wrapper {
    flex: 1; 
    margin-left: 220px; 
    display: flex; 
    flex-direction: column;
    background: #F8F8F8;
}

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

/* Mobile Navigation */
.mobile-nav { 
    display: none; 
    padding: 1.25rem 2rem; 
    background: var(--bt-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bt-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Destaques Grid */
.section-title {
    font-size: 1.1rem; 
    font-weight: 800; 
    color: var(--bt-orange); 
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--bt-orange);
    display: inline-block;
}

.destaques-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 1.5rem; 
    height: 520px; 
    margin-bottom: 4rem;
}

/* Article Cards */
.article-card {
    position: relative; 
    overflow: hidden; 
    border-radius: 20px; 
    cursor: pointer;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    transition: transform 0.4s, border-color 0.4s;
}
.article-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255, 77, 0, 0.3);
}

.article-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.8;
}
.article-card:hover img { transform: scale(1.08); opacity: 1; }

.article-card .overlay {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 2.5rem; 
    color: white;
}

.card-main .ct-tag {
    background: var(--bt-orange); 
    color: white; 
    padding: 0.35rem 0.8rem; 
    font-size: 0.7rem; 
    font-weight: 900; 
    border-radius: 4px;
    display: inline-block; 
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.card-main .ct-title { font-size: clamp(1.3rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.5rem; word-break: break-word; hyphens: auto; }
.card-side .ct-title { font-size: clamp(0.9rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.25; }

/* News List Item */
.news-list { display: grid; gap: 1.5rem; }
.list-item { 
    display: flex; 
    gap: 2rem; 
    background: #FFFFFF;
    border-radius: 20px; 
    overflow: hidden; 
    height: 220px; 
    cursor: pointer; 
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.list-item:hover { 
    background: #F9F9FB;
    border-color: var(--bt-orange);
    box-shadow: 0 8px 24px rgba(255,77,0,0.1);
}
.list-item img { width: 380px; height: 100%; object-fit: cover; transition: 0.4s;}
.list-item:hover img { filter: grayscale(0); }

.item-content { padding: 2rem 2.5rem 2rem 0; display: flex; flex-direction: column; justify-content: center;}
.item-content .date { 
    font-size: 0.75rem; 
    color: var(--bt-orange); 
    font-weight: 800; 
    margin-bottom: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.item-content h3 { font-size: clamp(1rem, 2.2vw, 1.6rem); font-weight: 700; color: #111; margin-bottom: 1rem; line-height: 1.2; transition: 0.3s;}
.list-item:hover h3 { color: var(--bt-orange); }
.item-content p { font-size: 1rem; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pagina de Noticia */
.reading-container { width: 100%; max-width: 900px !important; margin: 2rem auto; }
.article-content h1 { font-size: clamp(1.8rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 1.5rem; color: #111; line-height: 1.1; letter-spacing: -0.04em;}
.article-content .meta { color: #999; font-weight: 600; margin-bottom: 3rem; font-size: 0.9rem; display: flex; align-items: center; gap: 1rem;}
.article-content .meta::before { content: ''; width: 40px; height: 2px; background: var(--bt-orange); }

.article-content p { font-size: 1.2rem; line-height: 1.85; margin-bottom: 1.8rem; color: #333; }
.noticia-corpo h2, .noticia-corpo h3 { color: #111; font-weight: 700; margin: 2.5rem 0 1rem; }
.noticia-corpo img { border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

/* Related Grid */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.related-card { 
    background: #FFFFFF;
    border-radius: 16px; 
    overflow: hidden; 
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
}
.related-card:hover { transform: translateY(-5px); border-color: var(--bt-orange); box-shadow: 0 8px 24px rgba(255,77,0,0.1); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card-body { padding: 1.25rem; }
.related-card-body h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; color: #111; }

/* Footer */
.footer { background: #0A0A0A; border-top: 1px solid rgba(255,255,255,0.05); padding: 4rem 2rem; color: #666; text-align: center; font-size: 0.9rem; }

/* ============================================
   RESPONSIVO - Tablet
   ============================================ */
@media(max-width: 1100px) {
    .sidebar-menu { width: 80px; padding: 2rem 0.75rem; }
    .sidebar-menu .logo b, .nav-links span, .sidebar-menu .logo-icon { display: none; }
    .sidebar-menu .logo { font-size: 1.2rem; justify-content: center; }
    .main-wrapper { margin-left: 80px; }
    .list-item img { width: 240px; }
}

/* ============================================
   RESPONSIVO - Mobile Grande (992px)
   ============================================ */
@media(max-width: 992px) {
    .sidebar-menu { 
        transform: translateX(-100%); 
        width: 260px;
        padding: 2rem 1.5rem;
    }
    .sidebar-menu.open { 
        transform: translateX(0); 
        box-shadow: 8px 0 40px rgba(0,0,0,0.3);
    }
    .main-wrapper { margin-left: 0; }
    .mobile-nav { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        background: #111;
        color: white; 
    }
    .mobile-nav .logo { font-size: 1.4rem; font-weight: 900; color: white; }
    .mobile-nav .logo span { color: var(--bt-orange); }
    .hamburger-icon { color: var(--bt-orange); cursor: pointer; }
    .destaques-grid { 
        grid-template-columns: 1fr; 
        height: auto;
        gap: 1rem;
    }
    /* Card principal: limitar altura e deixar overlay cobrir tudo */
    .article-card.card-main {
        min-height: 300px;
        height: 300px;
    }
    .card-main .overlay {
        padding: 1.25rem 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    }
    .card-main .ct-title { 
        font-size: clamp(1.15rem, 4vw, 1.6rem);
        line-height: 1.25;
    }
    .card-side .ct-title {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    }
}

/* ============================================
   RESPONSIVO - Mobile (768px)
   ============================================ */
@media(max-width: 768px) {
    body { background-color: #F8F8F8; }
    
    .container { padding: 1.25rem 1rem; }
    
    /* Seção destaques */
    .destaques { margin-bottom: 1rem; }
    .destaques-grid { gap: 0.75rem; }
    
    /* Card principal no mobile */
    .article-card.card-main {
        height: 260px;
        min-height: 260px;
        border-radius: 16px;
    }
    .card-main .overlay {
        padding: 1rem 1.25rem;
        background: linear-gradient(to top, rgba(0,0,0,1) 20%, rgba(0,0,0,0.7) 60%, transparent 100%);
    }
    .card-main .ct-title {
        font-size: 1.2rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-side { border-radius: 12px; }
    .card-side .ct-title { font-size: 0.9rem !important; line-height: 1.3; }
    
    /* Lista de notícias mobile */
    .news-list { gap: 1rem; }
    .list-item { 
        flex-direction: column; 
        height: auto;
        border-radius: 16px;
    }
    .list-item img { 
        width: 100%; 
        height: 180px;
        border-radius: 0;
    }
    .item-content { 
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .item-content h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
    .item-content p { font-size: 0.9rem; }
    
    /* Artigo */
    .article-content h1 { font-size: 2rem; }
    .reading-container { padding: 0 !important; }
    
    /* Related grid: 1 coluna */
    .related-grid { grid-template-columns: 1fr !important; gap: 1rem; }
    
    /* Section title */
    .section-title { font-size: 0.9rem; margin-bottom: 1rem; }
}

/* ============================================
   RESPONSIVO - Mobile Pequeno (480px)
   ============================================ */
@media(max-width: 480px) {
    .card-main .ct-title {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-side .ct-title {
        font-size: 0.85rem !important;
    }
    .article-card.card-main {
        height: 240px !important;
        min-height: 240px !important;
    }
    .card-main .overlay {
        padding: 0.9rem 1rem !important;
    }
    .card-main .ct-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.5rem;
    }
    .item-content h3 { font-size: 1rem !important; }
    .article-content h1 { font-size: 1.6rem !important; }
}
