/* =============================================================================
   SEDES - Agendamento Eletrônico de RG / CIN
   Prefeitura Municipal de Uauá - BA
   Design Padrão Municipal (OSPU / SIEP)
   ============================================================================= */

:root {
    --primary: #0f3d68;
    --primary-dark: #0a2744;
    --primary-light: #1e5c94;
    --accent-gold: #f2c029;
    --accent-gold-hover: #dfad17;
    --accent-blue: #2563eb;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

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

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

/* =============================================================================
   TOPO / HEADER OFICIAL
   ============================================================================= */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid rgba(242, 192, 41, 0.3);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-brasao {
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.logo-secretaria {
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.75rem;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.brand-badge {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

/* Navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-header-action {
    background: var(--accent-gold);
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 2px 6px rgba(242, 192, 41, 0.35);
    transition: all 0.2s ease;
}

.btn-header-action:hover {
    background: var(--accent-gold-hover) !important;
    transform: translateY(-1px);
}

.btn-admin-login {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-size: 0.82rem !important;
}

.btn-admin-login:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Menu Hambúrguer (Mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
}

/* =============================================================================
   CORPO PRINCIPAL (CONTAINER)
   ============================================================================= */
main.site-content {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* Mensagens Flash */
.flash-wrapper {
    margin-bottom: 1.5rem;
}

.flash-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.flash-alert.danger {
    background: var(--danger-bg);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.flash-alert.success {
    background: var(--success-bg);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.flash-alert.warning {
    background: var(--warning-bg);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.flash-alert.info {
    background: var(--info-bg);
    color: #075985;
    border-left: 4px solid var(--info);
}

/* Cards & Painéis */
.card-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(242, 192, 41, 0.35);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Formulários */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30, 92, 148, 0.15);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Grid & Layout Helpers */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

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

/* Tabelas Responsivas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    text-align: left;
}

.table-custom th {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background: #f8fafc;
}

/* Badges de Status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-agendado {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-atendido {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-cancelado {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-faltou {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-prioridade {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 700;
}

/* =============================================================================
   RODAPÉ OFICIAL (PADRÃO OSPU / SIEP)
   ============================================================================= */
.main-footer {
    background: var(--primary-dark);
    color: #ffffff;
    border-top: 3px solid var(--accent-gold);
    margin-top: auto;
    padding-top: 3rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-brand strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.footer-brand span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-credits {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-credits strong {
    color: #ffffff;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

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

.footer-col ul li {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: color 0.2s;
}

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

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ============================================================================= */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1.25rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        border-bottom: 2px solid var(--accent-gold);
        gap: 0.5rem;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .btn-header-action {
        width: 100%;
        text-align: center;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0.6rem 1rem;
    }
    
    .brand-text h1 {
        font-size: 0.98rem;
    }
    
    .brand-text p {
        font-size: 0.7rem;
    }
    
    main.site-content {
        padding: 1.25rem 1rem 2rem;
    }
}

/* =============================================================================
   ADMIN SHELL & SIDEBAR (ESTILO CDL MODERNO)
   ============================================================================= */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 45;
}

.admin-sidebar {
    background: #071a3d;
    color: #cbd5e1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sidebar-brand-text h2 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-brand-text p {
    font-size: 0.72rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.sidebar-sec {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60a5fa;
    padding: 16px 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link:hover i {
    color: var(--accent-gold);
}

.sidebar-link.active {
    background: #0f3d68;
    color: #ffffff;
    font-weight: 600;
    border-left: 3px solid var(--accent-gold);
}

.sidebar-link.active i {
    color: var(--accent-gold);
}

.sidebar-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-footer {
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-btn-public {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.sidebar-btn-public:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ADMIN MAIN & TOPBAR */
.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.admin-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
}

.admin-topbar-title h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.admin-topbar-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(15, 61, 104, 0.3);
}

.admin-user-info {
    text-align: right;
    line-height: 1.2;
}

.admin-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.role-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-badge.master {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.role-badge.administrador {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.role-badge.operador {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.admin-content-area {
    padding: 1.75rem 2rem;
    flex: 1;
}

.admin-panel-footer {
    padding: 14px 24px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-menu-toggle {
        display: block;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        max-width: 85vw;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 0 0 40px rgba(0,0,0,0.5);
    }
    body.menu-open .admin-sidebar {
        transform: translateX(0);
    }
    body.menu-open .admin-overlay {
        display: block;
    }
    .admin-content-area {
        padding: 1.25rem 1rem;
    }
    .admin-user-info {
        display: none;
    }
}

/* =============================================================================
   HERO SLIDER & CMS NOTÍCIAS (PORTAL PÚBLICO)
   ============================================================================= */
.hero-slider-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
    background: #071e35;
}

.hero-slider-track {
    position: relative;
    min-height: 380px;
}

.hero-slide {
    display: none;
    min-height: 380px;
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    background-size: cover !important;
    background-position: center !important;
    align-items: center;
    position: relative;
}

.hero-slide.active {
    display: flex;
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

.hero-slide-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-slide-badge {
    background: rgba(242, 192, 41, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(242, 192, 41, 0.4);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.hero-slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-slide-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-slide-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.slider-nav-btn:hover {
    background: rgba(242, 192, 41, 0.9);
    color: #071e35;
    border-color: var(--accent-gold);
}

.slider-nav-btn.prev { left: 14px; }
.slider-nav-btn.next { right: 14px; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    width: 28px;
    border-radius: 9999px;
    background: var(--accent-gold);
}

@media (max-width: 768px) {
    .hero-slide {
        padding: 2.5rem 1.25rem;
        min-height: 340px;
    }
    .hero-slide-title {
        font-size: 1.55rem;
    }
    .hero-slide-desc {
        font-size: 0.9rem;
    }
    .slider-nav-btn {
        display: none;
    }
}

/* CARDS DE NOTÍCIAS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.news-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e2e8f0;
}

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

.news-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.6rem;
    width: fit-content;
}

.news-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.news-card-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

/* =============================================================================
   ESTILOS DE IMPRESSÃO (COMPROVANTE)
   ============================================================================= */
@media print {
    .main-header, .main-footer, .no-print, .btn, .flash-wrapper {
        display: none !important;
    }
    
    body, html, main.site-content {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .card-box {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        padding: 1rem !important;
    }
}
