/* ============================================================
   app.css — Design System SOTA do Blog Público
   Combina Modelo 1 + Modelo 2 + Modelo 3
   Font: Inter (Google Fonts)
   Cores: #0ea5e9 → #0284c7 (gradient indigo-purple)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --c-primary:     #0ea5e9;
    --c-secondary:   #0284c7;
    --c-gradient:    linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --c-primary-rgb: 14, 165, 233;
    --c-secondary-rgb: 2, 132, 199;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f8;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ============================================================
   PAGE LOADER
   ============================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   NAVBAR MODERNA
   ============================================================ */
.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.12);
    padding: 0;
}

.navbar-modern .container {
    max-width: 1200px;
}

.navbar-modern .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.75rem 0;
}

.navbar-modern .navbar-brand i {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.navbar-modern .navbar-toggler {
    border: 1.5px solid rgba(14, 165, 233, 0.3);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    color: #0ea5e9;
}

.navbar-modern .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Search box pill */
.search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.3rem 0.4rem 0.3rem 1rem;
    transition: all 0.2s ease;
    max-width: 360px;
    width: 100%;
}

.search-box:focus-within {
    border-color: #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    min-width: 0;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: 50px;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.search-box button:hover {
    opacity: 0.85;
}

/* Nav links */
.navbar-modern .navbar-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    padding: 0.4rem 0.875rem;
    border-radius: 50px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.navbar-modern .navbar-nav .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.navbar-modern .navbar-nav .nav-link.nav-dashboard {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

.navbar-modern .navbar-nav .nav-link.nav-dashboard:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

.navbar-modern .navbar-nav .nav-link.nav-logout {
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

.navbar-modern .navbar-nav .nav-link.nav-logout:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert {
    border-radius: 14px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ============================================================
   HERO SECTION (full width, gradient + wave SVG)
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 5rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,160L48,144C96,128,192,96,288,112C384,128,480,192,576,202.7C672,213,768,171,864,149.3C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'/%3E%3C/svg%3E") no-repeat top center / cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23667eea' fill-opacity='0.15' d='M0,40L60,45.3C120,51,240,61,360,58.7C480,56,600,40,720,37.3C840,35,960,45,1080,50.7C1200,56,1320,56,1380,56L1440,56L1440,80L1380,80C1320,80,1200,80,1080,80C960,80,840,80,720,80C600,80,480,80,360,80C240,80,120,80,60,80L0,80Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #ffffff;
    color: #0ea5e9;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    color: #0284c7;
    text-decoration: none;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Newsletter mini no Hero */
.newsletter-mini {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.newsletter-mini-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.newsletter-mini-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
}

.newsletter-mini-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-mini input[type="email"] {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.65rem 1.25rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

.newsletter-mini input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-mini input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-mini button {
    background: #ffffff;
    color: #0ea5e9;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.newsletter-mini button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #0284c7;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: #ffffff;
    border-radius: 50px 50px 0 0;
    padding: 3rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 -8px 40px rgba(14, 165, 233, 0.1);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   CATEGORY PILLS (glassmorphism)
   ============================================================ */
.categories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem 0;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0ea5e9;
    border-color: transparent;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   SECTION LIGHT (glassmorphism container)
   ============================================================ */
.section-light {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   MODERN CARDS
   ============================================================ */
.modern-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(14, 165, 233, 0.2);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.modern-card:hover .card-image {
    transform: scale(1.06);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a5b4fc;
}

/* Card overlay on hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85) 0%, rgba(2, 132, 199, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: background 0.2s ease;
}

.card-overlay-text:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
}

/* Category badge over image */
.card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.card-category:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.775rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.card-meta i {
    color: #0ea5e9;
}

.card-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* Author avatar com iniciais */
.author-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

/* Btn-read pill */
.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

.btn-read:hover {
    opacity: 0.88;
    transform: translateX(2px);
    color: white;
    text-decoration: none;
}

/* ============================================================
   ARTICLE LIST ITEMS (seção destaque - coluna direita)
   ============================================================ */
.article-list-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

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

.article-list-item:hover {
    text-decoration: none;
}

.article-list-item:hover .list-title {
    color: #0ea5e9;
}

.list-image {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.list-image-placeholder {
    width: 80px;
    height: 65px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 1.25rem;
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0ea5e9;
    margin-bottom: 0.25rem;
}

.list-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.list-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================
   MINI CARDS (artigos populares / recentes)
   ============================================================ */
.mini-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.mini-card:hover {
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.12);
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.mini-image {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.mini-image-placeholder {
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 1rem;
}

.mini-content {
    flex: 1;
    min-width: 0;
}

.mini-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.2rem;
}

.mini-meta {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* ============================================================
   DESTAQUE CARD GRANDE (primeiro artigo)
   ============================================================ */
.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(14, 165, 233, 0.25);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.featured-image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4);
}

.featured-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(15, 23, 42, 0.1) 100%
    );
}

.featured-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 1.75rem;
}

.featured-category {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.featured-category:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.featured-views {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================================
   NEWSLETTER SECTION STANDALONE
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.35);
}

.newsletter-section::before {
    content: '📬';
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 8rem;
    opacity: 0.08;
    pointer-events: none;
}

.newsletter-section h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.newsletter-input-wrap {
    display: flex;
    gap: 0.75rem;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.7rem 1.25rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    background: #ffffff;
    color: #0ea5e9;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #0284c7;
}

/* ============================================================
   FOOTER MODERNO — 4 colunas
   ============================================================ */
.footer-modern {
    background: #1a1a2e;
    color: #cbd5e1;
    padding: 4rem 0 0;
    margin-top: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

.footer-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand-name i {
    background: linear-gradient(135deg, #0ea5e9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social icons circulares */
.footer-social {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}

/* Footer links */
.footer-link {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.3rem 0;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #a78bfa;
    text-decoration: none;
    transform: translateX(4px);
}

/* Footer newsletter */
.footer-newsletter-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.footer-newsletter-input::placeholder {
    color: #475569;
}

.footer-newsletter-input:focus {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter-btn {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s ease;
}

.footer-newsletter-btn:hover {
    opacity: 0.88;
}

.footer-newsletter-message {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-newsletter-message .alert {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    padding-bottom: 2rem;
    font-size: 0.825rem;
    color: #475569;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.auth-card-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.auth-header-sub {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.75);
}

.auth-card-body {
    padding: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.45);
}

.auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-link a {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: block;
}

.article-hero-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
}

.article-header {
    margin-bottom: 1.75rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
}

.article-category-badge:hover {
    opacity: 0.88;
    color: white;
    text-decoration: none;
}

.article-author {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-views {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.views-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.1));
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.article-content p {
    margin-bottom: 1.25em;
}

.article-content img {
    border-radius: 16px;
    max-width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
}

.article-content a {
    color: #0ea5e9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content blockquote {
    border-left: 4px solid #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5em 0;
    font-style: italic;
    color: #475569;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
}

.article-content code:not(pre code) {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 0.1em 0.4em;
    border-radius: 5px;
    font-size: 0.875em;
}

.article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-back-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb-pub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb-pub a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-pub a:hover {
    color: #0ea5e9;
}

.breadcrumb-pub .sep {
    color: #cbd5e1;
}

.breadcrumb-pub .current {
    color: #334155;
    font-weight: 500;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.category-header-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.search-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.search-hero-query {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.search-results-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
}

/* ============================================================
   PAGINATION MODERNA
   ============================================================ */
.pub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pub-pagination a,
.pub-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.875rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pub-pagination a {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.pub-pagination a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    text-decoration: none;
}

.pub-pagination .current,
.pub-pagination span.active {
    background: #ffffff;
    color: #0ea5e9;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.pub-pagination .disabled {
    color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: #64748b;
}

/* ============================================================
   HERO FEATURED CARD
   ============================================================ */
.hero-featured-card {
    display: block;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 16 / 10;
}

.hero-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.5) 0%, rgba(118,75,162,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.hero-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.hero-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.hero-featured-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-featured-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================================
   RELATED ARTICLES & COMMENTS (article page)
   ============================================================ */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf5;
}

.related-title,
.comments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #f8f9ff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.12);
}

.related-card-img {
    height: 120px;
    overflow: hidden;
    background: #e8edf5;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

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

.related-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    font-size: 2rem;
    color: rgba(255,255,255,0.4);
}

.related-card-body {
    padding: 0.75rem;
}

.related-card-cat {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 0.25rem;
}

.related-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.related-card:hover .related-card-title {
    color: #0ea5e9;
}

.related-card-views {
    font-size: 0.7rem;
    color: #94a3b8;
}

/* Comments */
.comments-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf5;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 50px;
    padding: 0 6px;
    vertical-align: middle;
}

.comment-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: #f8f9ff;
    border-radius: 14px;
    padding: 0.875rem 1rem;
    border: 1px solid #e8edf5;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.comment-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.comment-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.comment-form-placeholder {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   ARTICLE CARDS — news-style horizontal (search, category pages)
   ============================================================ */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.05);
    overflow: hidden;
}

.articles-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.article-card:last-child {
    border-bottom: none;
}

.articles-grid-2col .article-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.articles-grid-2col .article-card:nth-child(odd) {
    border-right: 1px solid #f1f5f9;
}

.article-card:hover {
    background: #f8f9ff;
}

.article-card-img-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    background: #f1f5f9;
    margin: 0.875rem 0 0.875rem 0.875rem;
    border-radius: 10px;
    position: relative;
}

.article-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-img-wrap img {
    transform: scale(1.06);
}

.article-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.3rem;
}

.article-card-body {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.article-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card-title {
    color: #0ea5e9;
}

.article-card-excerpt {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.article-card-views {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    transition: gap 0.15s ease, color 0.15s ease;
}

.btn-read-more:hover {
    color: #0284c7;
    gap: 0.45rem;
    text-decoration: none;
}

/* ============================================================
   CATEGORY HEADER
   ============================================================ */
.category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.category-header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.category-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
}

.category-header-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ============================================================
   SEARCH HERO PAGE WRAPPER
   ============================================================ */
.search-page-wrap,
.category-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.article-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

/* ============================================================
   RESPONSIVIDADE — TABLET (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-modern .navbar-collapse {
        padding: 0.75rem 0 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.5rem;
    }

    .search-box {
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .navbar-modern .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
    }

    /* Hero */
    .hero-section {
        padding: 3rem 0 5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Hero featured card stacks below text */
    .hero-featured-card {
        aspect-ratio: 16 / 9;
    }

    /* Articles grid */
    .articles-grid-2col {
        grid-template-columns: 1fr;
    }

    .articles-grid-2col .article-card:nth-child(odd) {
        border-right: none;
    }

    .articles-grid-2col .article-card:nth-last-child(-n+2) {
        border-bottom: 1px solid #f1f5f9;
    }

    .articles-grid-2col .article-card:last-child {
        border-bottom: none;
    }

    /* Related grid */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-modern .row > [class*="col-"] {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .footer-link:hover {
        transform: none;
    }
}

/* ============================================================
   RESPONSIVIDADE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-modern .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero */
    .hero-section {
        padding: 2.5rem 0 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Stats */
    .stats-section {
        padding: 1.75rem 0;
        border-radius: 28px 28px 0 0;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Sections */
    .section-light {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .section-title {
        font-size: 1rem;
    }

    /* Featured */
    .featured-card {
        min-height: 240px !important;
    }

    /* Article page */
    .article-hero,
    .article-hero-placeholder {
        height: 220px;
        border-radius: 16px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-page-wrap {
        padding: 1.25rem 1rem 3rem;
        border-radius: 0;
        box-shadow: none;
    }

    /* Category header */
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .category-header-title {
        font-size: 1.35rem;
    }

    /* Search/category wraps */
    .search-page-wrap,
    .category-page-wrap {
        padding: 1.25rem 1rem 3rem;
    }

    /* Search hero */
    .search-hero {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .search-hero-title {
        font-size: 1.15rem;
    }

    /* Article cards */
    .article-card-img-wrap {
        width: 90px;
        height: 72px;
        margin: 0.75rem 0 0.75rem 0.75rem;
        border-radius: 8px;
    }

    .article-card-title {
        font-size: 0.85rem;
    }

    /* Related articles */
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .related-card-img {
        height: 90px;
    }

    /* Comments */
    .comment-item {
        gap: 0.625rem;
    }

    .comment-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }

    .comment-content {
        padding: 0.75rem;
    }

    /* Footer */
    .footer-modern {
        padding: 3rem 0 1.5rem;
    }

    /* Page wrappers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Pagination */
    .pub-pagination {
        gap: 0.25rem;
    }
}

/* ============================================================
   RESPONSIVIDADE — MOBILE (≤ 640px) — Footer compacto + Hero limpo
   ============================================================ */
@media (max-width: 640px) {
    /* Footer compacto */
    .footer-modern {
        padding: 1.75rem 0 0.75rem;
    }

    .footer-social {
        justify-content: center;
        margin-top: 0.75rem;
    }

    .footer-description {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .footer-hr {
        margin: 1rem 0 0.75rem;
    }

    /* Hero: menos altura */
    .hero-section {
        padding: 2rem 0 3rem;
    }
}

/* ============================================================
   RESPONSIVIDADE — MOBILE PEQUENO (≤ 576px)
   ============================================================ */
@media (max-width: 576px) {
    /* Hero */
    .hero-section {
        padding: 2rem 0 3.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }

    .hero-featured-card {
        aspect-ratio: 4 / 3;
    }

    .hero-featured-title {
        font-size: 0.95rem;
    }

    /* Stats */
    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Modern cards (home grid) */
    .modern-card {
        border-radius: 14px;
    }

    /* Featured */
    .featured-card {
        min-height: 200px !important;
    }

    .featured-title {
        font-size: 0.95rem;
    }

    /* Article list items */
    .article-list-item {
        padding: 0.5rem 0;
    }

    .list-image,
    .list-image-placeholder {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    .list-title {
        font-size: 0.82rem;
    }

    /* Related */
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card-img {
        height: 140px;
    }

    /* Auth */
    .auth-card {
        margin: 0 0.5rem;
        border-radius: 18px;
    }

    /* Pagination */
    .pub-pagination a,
    .pub-pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 0.5rem;
        font-size: 0.78rem;
    }

    /* Back button */
    .article-back-btn {
        margin: 0 1rem 2rem;
    }
}
