* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Material Symbols - carregar localmente (coloque os arquivos em /public/fonts/) */
@font-face {
    font-family: 'Material Symbols Outlined';
    /* Usar a fonte variável fornecida no pacote local (TTF). */
    src: url('/fonts/Material_Symbols_Outlined/MaterialSymbolsOutlined-VariableFont_FILL,GRAD,opsz,wght.ttf') format('truetype'),
         url('/fonts/Material_Symbols_Outlined/static/MaterialSymbolsOutlined-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    /* Variation defaults for the variable font */
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.info-icon {
    margin-right: 8px;
    color: #00A859;
    font-size: 18px;
}

/* --- Material-like theme variables & utility classes (lightweight) --- */
:root {
    --md-primary: #00A859;
    --md-primary-variant: #008c50;
    --md-on-primary: #ffffff;
    --md-surface: #ffffff;
    --md-background: #f8f9fa;
    --md-text: #333333;
    --md-muted: #6b7280;
    --md-radius: 12px;
    --md-radius-sm: 8px;
    --md-elevation-1: 0 1px 3px rgba(0,0,0,0.12);
    --md-elevation-2: 0 6px 20px rgba(0,0,0,0.12);
    --md-font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', sans-serif;
}

/* Typography alignment with Material guidelines (light) */
body {
    font-family: var(--md-font-family);
    color: var(--md-text);
    background-color: var(--md-background);
}

.md-card {
    background: var(--md-surface);
    border-radius: var(--md-radius);
    box-shadow: var(--md-elevation-1);
    padding: 16px;
}

.md-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--md-text);
    transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.md-btn:active { transform: translateY(1px); }

.md-btn--raised {
    background: linear-gradient(90deg, var(--md-primary), var(--md-primary-variant));
    color: var(--md-on-primary);
    box-shadow: var(--md-elevation-2);
}

.md-btn--outline {
    border: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}

.md-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.md-input input,
.md-input select,
.md-input textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--md-radius-sm);
    border: 1px solid #e6e6e6;
    background: #ffffff;
    font-size: 14px;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.md-input input:focus,
.md-input select:focus,
.md-input textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 4px 14px rgba(0,168,89,0.12);
}

.md-modal .modal-content,
.modal-content {
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-elevation-2);
    background: var(--md-surface);
}

.modal-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--md-primary), var(--md-primary-variant));
    color: var(--md-on-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body { padding: 20px; }

.btn-inscrever, .btn-primary, .md-btn--primary {
    composes: md-btn md-btn--raised; /* note: for clarity; ignored by browsers */
    background: linear-gradient(90deg, var(--md-primary), var(--md-primary-variant));
    color: var(--md-on-primary);
    border-radius: 8px;
    padding: 10px 18px;
}

.btn-secondary { padding: 10px 18px; border-radius: 8px; }

.form-error { color: #d32f2f; display: none; font-size: 13px; }
.form-error.show { display: block; }

.modal-header .material-symbols-outlined,
.btn-inscrever .material-symbols-outlined { font-size: 20px; color: rgba(255,255,255,0.95); }

/* End theme block */

html {

/* Make existing .form-group inputs adopt Material-like look without changing markup */
.form-group label { margin-bottom: 6px; display: block; font-weight: 600; color: var(--md-text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--md-radius-sm);
    border: 1px solid #e6e6e6;
    background: #fff;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 4px 14px rgba(0,168,89,0.12);
}
.form-actions { display:flex; gap:12px; align-items:center; }

    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    /* Use system font stack to avoid external font dependencies (removes need for Google Fonts SRI)
       This improves privacy and removes the Subresource Integrity requirement for external CSS. */
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Header - Padrão Unimed Campos */
header {
    background: #ffffff;
    color: #333;
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #00A859;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 2px solid #00A859;
    padding-left: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 24px;
    font-weight: 700;
    color: #00A859;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    padding: 8px 4px;
    border-bottom: 3px solid transparent;
    position: relative;
}

nav a:hover {
    color: #00A859;
    border-bottom: 3px solid #00A859;
}

/* Menu Hamburger para Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #00A859;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(0, 168, 89, 0.2);
    padding-left: 30px;
}

/* Hero Section - Padrão Unimed Campos Moderno */
.hero {
    background: linear-gradient(135deg, #008c50 0%, #00A859 100%);
    color: #ffffff;
    padding: 100px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Quick Access Buttons */
.quick-access {
    background: #ffffff;
    padding: 50px 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.quick-access-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00A859 0%, #00C569 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-btn:hover::before {
    opacity: 1;
}

.quick-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.15);
    border-color: #00A859;
}


.quick-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fdfb;
    border-radius: 50%;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.quick-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--md-primary);
    display: inline-block;
}

.quick-btn:hover .quick-icon {
    background: linear-gradient(135deg, var(--md-primary) 0%, #00C569 100%);
    transform: scale(1.05);
}

.quick-btn:hover .quick-icon .material-symbols-outlined {
    color: #ffffff;
}

.quick-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.quick-btn:hover .quick-text {
    color: #00A859;
}

/* About Section */
.about-section {
    background: #ffffff;
    padding: 80px 30px;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 70px;
    align-items: center;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-logo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 168, 89, 0.1));
}

.about-content {
    color: #333;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: #555;
}

.about-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #00A859;
}

/* Últimas Novidades */
.news-section {
    background: #f8f9fa;
    padding: 80px 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Utility classes to replace inline styles (for CSP compliance) */
.center-pad-40 { text-align: center; padding: 40px; }
.center-pad-60 { text-align: center; padding: 60px 20px; }
.footer-meta { margin-top: 20px; font-size: 13px; opacity: 0.9; }
.footer-small { margin-top: 16px; font-size: 12px; opacity: 0.8; }
.text-muted { color: #666; }
.text-danger { color: #d32f2f; }
.btn-voltar-margin { margin-top: 20px; }
.full-width { width: 100%; }
.pdf-loading { width:100%; text-align:center; padding:24px; color:#666; }
.hidden { display:none; }
.news-image { position: relative; overflow: hidden; }
.news-image-img { width:100%; height:200px; object-fit:cover; display:block; }

/* Small typography utilities used by JS templates to avoid inline styles */
.text-lead { font-size: 18px; font-weight: 500; }
.muted-small { font-size: 14px; margin-top: 12px; }

/* Utility to disable body scroll when modals are open */
.no-scroll { overflow: hidden !important; }

/* Expandable details default hidden, toggled via .expandido class */
.edital-detalhes-expansivel { display: none; }
.edital-detalhes-expansivel.expandido { display: block; }

/* Responsive small grid used in dynamic lists to replace inline grid styles */
.responsive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }

/* Full-size iframe used by PDF modal */
.iframe-full { width: 100%; height: 100%; border: 0; display: block; }

/* Modal error message styling */
.modal-error { padding: 24px; color: #c00; text-align: center; }

/* Fallback gradient box for news items without image */
.news-image-gradient { height: 180px; background: linear-gradient(135deg, #00A859 0%, #00C569 100%); border-radius: 8px; }

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.15);
}

/* News / Notícia specific styles moved from individual page inline <style> blocks
   to support CSP by avoiding inline styles. These styles apply to the noticia.html layout. */
.noticia-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.noticia-header {
    margin-bottom: 30px;
}

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.noticia-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.noticia-titulo {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.noticia-resumo {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #00A859;
}

.noticia-imagem {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.noticia-conteudo {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.noticia-conteudo h1,
.noticia-conteudo h2,
.noticia-conteudo h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.noticia-conteudo h2 {
    font-size: 28px;
}

.noticia-conteudo h3 {
    font-size: 22px;
}

.noticia-conteudo p {
    margin-bottom: 20px;
}

.noticia-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.noticia-conteudo ul,
.noticia-conteudo ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.noticia-conteudo li {
    margin-bottom: 10px;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-voltar:hover {
    background: #e0e0e0;
    transform: translateX(-5px);
}

.loading { text-align: center; padding: 60px 20px; color: #666; }
.error { text-align: center; padding: 60px 20px; color: #d32f2f; }

.badge-destaque {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.news-image {
    height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
}

.news-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #00A859;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: #999;
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    color: #00A859;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #007a4a;
    gap: 8px;
}

/* Page Content (para páginas internas) */
.page-content {
    padding: 60px 30px;
    background: #f8f9fa;
}

.page-content .container {
    max-width: 1280px;
    margin: 0 auto;
}

.page-content .section {
    margin-bottom: 40px;
}

.page-content .section:last-child {
    margin-bottom: 0;
}

/* Active link no menu */
nav a.active {
    color: #00A859;
    border-bottom: 3px solid #00A859;
}

/* Section Layout */
.sections-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    padding: 48px;
    border: 1px solid #f0f0f0;
}

.section:hover {
    box-shadow: 0 8px 30px rgba(0, 168, 89, 0.12);
    transform: translateY(-4px);
    border-color: #00A859;
}

.section-header {
    background: transparent;
    color: #1a1a1a;
    padding: 0 0 28px 0;
    margin-bottom: 36px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00A859 0%, #00C569 100%);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a1a;
}

.section-header p {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    line-height: 1.6;
}

/* Tabs */
.tabs-container {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Open Sans', sans-serif;
}

.tab-button:hover {
    color: #00A859;
    background: #f8fdfb;
}

.tab-button.active {
    color: #00A859;
    border-bottom-color: #00A859;
    background: #f8fdfb;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    padding: 0;
}

.section-content h3 {
    font-size: 22px;
    color: #00A859;
    margin-bottom: 14px;
    margin-top: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #00A859 0%, #00C569 100%);
    border-radius: 2px;
}

.section-content h3:first-child {
    margin-top: 0;
}

.section-content p {
    color: #555;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
}

.section-content ul {
    list-style: none;
    margin-bottom: 24px;
    margin-left: 0;
    background: #f8fdfb;
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid #00A859;
}

.section-content li {
    padding: 12px 0;
    padding-left: 32px;
    color: #555;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
}

.section-content li:before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: #00A859;
    font-weight: bold;
    font-size: 18px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00A859 0%, #00C569 100%);
    color: white;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    margin-top: 12px;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(0, 168, 89, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, #008f4d 0%, #00b35d 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #00A859;
    border: 2px solid #00A859;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #00A859;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.3);
}

.btn-inscrever {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

.btn-inscrever:hover {
    background: linear-gradient(135deg, #FF8C42, #FFA45E);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

/* Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border-left: 5px solid #00A859;
    border-top: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00A859 0%, #00C569 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card h4 {
    color: #00A859;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.card p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.7;
}

.card:hover {
    border-left-width: 5px;
    box-shadow: 0 8px 24px rgba(0, 168, 89, 0.18);
    transform: translateY(-6px);
}

.card:hover::before {
    opacity: 1;
}

/* Footer - Padrão Unimed Campos Moderno */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 30px 32px;
    text-align: center;
    margin-top: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00A859 0%, #00C569 50%, #00A859 100%);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

footer h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 26px;
    font-weight: 700;
}

footer p {
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

footer a {
    color: #00C569;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #00E579;
    border-bottom: 1px solid #00E579;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #00C569;
}

/* Seção adicional - Badge */
.badge-green {
    display: inline-block;
    background: rgba(0, 168, 89, 0.1);
    color: #00A859;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }
    
    .page-content {
        padding: 20px 0;
    }
    
    .sections-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 8px;
    }

    .section {
        padding: 36px 28px;
    }

    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo-img {
        height: 42px;
    }

    .logo-subtitle {
        font-size: 11px;
        padding-left: 12px;
    }

    .hero {
        padding: 70px 20px;
        text-align: center;
    }

    .quick-access {
        padding: 40px 20px;
        margin-top: -25px;
    }

    .quick-access-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .quick-btn {
        padding: 22px 18px;
    }

    .quick-icon {
        width: 55px;
        height: 55px;
    }

    .quick-icon svg {
        width: 40px;
        height: 40px;
    }

    .quick-text {
        font-size: 14px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 17px;
    }
    
    /* Badge Inscrições Abertas Mobile */
    .badge-inscricoes-abertas {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
        font-size: 10px;
        padding: 5px 10px;
    }
    
    /* Cards de Estágio Mobile */
    .edital-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .edital-card-wrapper {
        flex-direction: column;
    }
    
    .edital-fases-sidebar {
        width: 100%;
        margin-top: 16px;
    }
    
    .fase-detalhe-header {
        flex-wrap: wrap;
    }
    
    .btn-pdf-fase-grande {
        width: 100%;
        margin-top: 8px;
    }
    
    .anexo-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-baixar-anexo {
        width: 100%;
        justify-content: center;
    }
    
    .edital-card h3 {
        font-size: 18px;
    }
    
    .edital-header {
        margin-bottom: 10px;
    }
    
    .edital-content {
        margin: 10px 0;
        padding: 10px;
    }
    
    .edital-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Botão Inscrever Mobile */
    .btn-inscrever,
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-logo img {
        max-width: 280px;
    }

    .about-content p {
        font-size: 15px;
        text-align: left;
    }

    .tabs-header {
        gap: 0;
    }

    .tab-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .news-section {
        padding: 60px 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-image {
        height: 160px;
    }

    .news-content h3 {
        font-size: 17px;
    }

    .page-content {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }

    .logo {
        gap: 12px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-subtitle {
        font-size: 10px;
        padding-left: 10px;
    }

    .hero {
        padding: 50px 16px;
        text-align: center;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
    }

    .quick-access {
        padding: 35px 16px;
        margin-top: -20px;
    }

    .quick-access-container {
        gap: 16px;
    }

    .quick-btn {
        padding: 20px 14px;
    }

    .quick-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .quick-icon svg {
        width: 35px;
        height: 35px;
    }

    .quick-text {
        font-size: 13px;
    }

    .about-section {
        padding: 50px 16px;
    }

    .about-logo img {
        max-width: 220px;
    }

    .about-content p {
        font-size: 14px;
    }

    .tabs-header {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .tab-button {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #00A859;
    }

    .sections-wrapper {
        padding: 40px 16px;
        gap: 30px;
    }

    .section {
        padding: 28px 20px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-content h3 {
        font-size: 19px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 50px 16px;
    }

    .news-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .news-image {
        height: 140px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 17px;
    }

    .page-content {
        padding: 40px 16px;
    }

    footer {
        padding: 48px 20px 28px;
    }

    footer h3 {
        font-size: 22px;
    }

    .btn {
        padding: 11px 24px;
        font-size: 13px;
    }
}

/* Cursos Cards */
.curso-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* remove left accent bar */
    border-left: none;
    /* ensure no left accent from other rules (override) */
    border-left-width: 0 !important;
    border-left-style: none !important;
    border-left-color: transparent !important;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 168, 89, 0.15);
}

.curso-image {
    flex-shrink: 0;
    width: 300px;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.curso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.curso-card:hover .curso-image img {
    transform: scale(1.08);
}

.curso-content {
    flex: 1;
    padding: 28px;
    padding-right: 180px; /* Espaço para o botão */
    display: flex;
    flex-direction: column;
    position: relative;
}

.curso-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.curso-card h3 {
    color: #00A859;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.curso-content > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.curso-detalhes {
    flex: 1;
}

.curso-info {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.curso-info:first-of-type {
    border-top: none;
    margin-top: 0;
}

.curso-info strong {
    color: #00A859;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.curso-info p {
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

.curso-actions {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-acessar-curso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.2);
    white-space: nowrap;
    min-width: 140px;
}

.btn-acessar-curso:hover {
    background: linear-gradient(135deg, #008f4a, #00b35e);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
    transform: scale(1.05);
}

.btn-material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f5f5f5;
    color: #00A859;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    white-space: nowrap;
    min-width: 120px;
}

.btn-material:hover {
    background: #e8e8e8;
    border-color: #00A859;
    transform: scale(1.05);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 168, 89, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #008F4C, #00A859);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.3);
}

/* ========== Estilos de Eventos ========== */
.evento-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #0066cc;
}

.evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.15);
}

.evento-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc, #0080ff);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.evento-card h3 {
    color: #0066cc;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.evento-card > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.evento-detalhes {
    margin-top: 20px;
    margin-bottom: 20px;
}

.evento-info {
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.evento-info:first-of-type {
    border-top: none;
    margin-top: 0;
}

.evento-info strong {
    color: #0066cc;
    font-weight: 600;
    margin-right: 8px;
}

.btn-evento-inscricao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0066cc, #0080ff);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    margin-top: 12px;
}

.btn-evento-inscricao:hover {
    background: linear-gradient(135deg, #0052a3, #0066cc);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

/* Editais Cards */
.edital-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* removed left accent */
    border-left: none;
    position: relative;
}

.edital-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.12);
}

/* Card com inscrições ativas - destaque especial */
.edital-card.inscricoes-ativas {
    /* Removed orange left border to match design request */
    border-left: none;
    background: #ffffff;
    /* keep a subtle orange-tinted shadow if desired, otherwise remove */
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.06);
}

.edital-card.inscricoes-ativas:hover {
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.18);
}

/* Badge de Inscrições Abertas */
.badge-inscricoes-abertas {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.edital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.edital-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FFEBEE;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #FFCDD2;
}

.pdf-icon-btn svg {
    width: 24px;
    height: 24px;
}

.pdf-icon-btn:hover {
    background: #D32F2F;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

.pdf-icon-btn:hover svg path {
    stroke: white;
}

.pdf-icon-btn:hover svg text {
    fill: white;
}

/* Botão Edital Completo com texto */
.btn-edital-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #D32F2F, #F44336);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.btn-edital-pdf:hover {
    background: linear-gradient(135deg, #C62828, #D32F2F);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.35);
}

.btn-edital-pdf svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-edital-pdf span {
    white-space: nowrap;
}

.edital-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-aberto {
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
}

.status-encerrado {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    color: white;
}

.status-publicado {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    color: white;
}

.edital-date {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

.edital-card h3 {
    color: #00A859;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.edital-tipo,
.edital-empresa {
    color: #666;
    font-size: 13px;
    margin: 4px 0;
    font-weight: 500;
}

.edital-content {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 2px solid #00A859;
}

.edital-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.edital-info {
    margin: 12px 0;
    padding: 10px 0;
    border-top: 1px solid #e8e8e8;
}

.edital-info:first-of-type {
    border-top: none;
}

.edital-info strong {
    color: #00A859;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.edital-info p {
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
    font-size: 13px;
}

.edital-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Layout com wrapper para fases à direita */
.edital-card-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8f5e9;
}

.edital-card-wrapper:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edital-main-content {
    flex: 1;
    min-width: 0;
}

.edital-fases-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f8faf9;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #e8f5e9;
}

.fases-titulo {
    color: #00A859;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #00A859;
}

.fases-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sem-fases {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 16px;
    font-style: italic;
}

.fase-item-card {
    background: white;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    /* removed left accent */
    border-left: none;
}

.fase-item-card:hover {
    box-shadow: 0 2px 6px rgba(0, 168, 89, 0.15);
    transform: translateX(2px);
}

.fase-numero-badge {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.fase-info-mini {
    flex: 1;
    min-width: 0;
}

.fase-info-mini strong {
    display: block;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fase-data-mini {
    display: block;
    font-size: 9px;
    color: #666;
    margin-top: 2px;
}

.fase-descricao-mini {
    display: block;
    font-size: 10px !important;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fase-info-mini .fase-descricao-mini {
    font-size: 10px !important;
}

/* Grid de Informações */
.edital-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8faf9;
    border-radius: 8px;
    border: 1px solid #e8f5e9;
}

.edital-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.edital-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 168, 89, 0.12);
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content strong {
    display: block;
    color: #00A859;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-content span {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* Seção de Detalhes Sempre Visível */
.edital-detalhes-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e8f5e9;
}

.detalhe-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8faf9;
    border-radius: 8px;
    /* removed left accent */
    border-left: none;
}

.detalhe-item:last-child {
    margin-bottom: 0;
}

.detalhe-item h4 {
    color: #00A859;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.detalhe-item p {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Ajustes no botão de inscrição */
.edital-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-inscrever {
    flex: 1;
    min-width: 200px;
}


.btn-pdf-fase {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #D32F2F, #F44336);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.btn-pdf-fase:hover {
    background: linear-gradient(135deg, #C62828, #D32F2F);
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
}

.btn-pdf-fase svg {
    width: 18px;
    height: 18px;
}

/* Área de Detalhes Expansível */
.edital-detalhes-expansivel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}

.edital-detalhes-expansivel.expandido {
    max-height: 3000px;
    opacity: 1;
    margin-top: 16px;
}

.detalhes-content {
    padding: 20px;
    background: #f8faf9;
    border-radius: 8px;
    border-top: 3px solid #00A859;
}

.detalhe-secao {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.detalhe-secao:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detalhe-secao h4 {
    color: #00A859;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.detalhe-secao p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.fases-detalhadas-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.fase-detalhe-expansivel {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #00A859;
}

.fase-detalhe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fase-numero-grande {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.fase-titulo-principal {
    flex: 1;
    min-width: 0;
}

.fase-titulo-principal h5 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 15px;
    font-weight: 700;
}

.fase-periodo {
    display: block;
    font-size: 12px;
    color: #666;
}

.btn-pdf-fase-grande {
    padding: 8px 16px;
    background: linear-gradient(135deg, #D32F2F, #F44336);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.btn-pdf-fase-grande:hover {
    background: linear-gradient(135deg, #C62828, #D32F2F);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.fase-descricao-completa {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.fase-descricao-completa p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 13px;
}

.fase-info-adicional {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff;
    border-left: 3px solid #e0e0e0;
    font-size: 13px;
}

.fase-info-adicional strong {
    color: #00A859;
    font-weight: 600;
}

/* Seção de Anexos das Fases */
.fase-anexos {
    margin-top: 16px;
    padding: 12px;
    background: #fff3e0;
    border-radius: 6px;
    border: 1px solid #ffe0b2;
}

.fase-anexos h6 {
    margin: 0 0 12px 0;
    color: #E65100;
    font-size: 13px;
    font-weight: 700;
}

.anexo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ffcc80;
    transition: all 0.3s ease;
}

.anexo-item:hover {
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.15);
    border-color: #ff9800;
}

.anexo-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.anexo-info svg {
    flex-shrink: 0;
}

.anexo-detalhes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.anexo-nome {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anexo-tamanho {
    font-size: 11px;
    color: #666;
}

.btn-baixar-anexo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.25);
}

.btn-baixar-anexo:hover {
    background: linear-gradient(135deg, #FF8C42, #FFA45E);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.35);
}

.btn-baixar-anexo svg {
    width: 18px;
    height: 18px;
}

.btn-detalhes-icon {
    margin-left: 6px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 300px;
}

.loading-container p {
    margin-top: 16px;
    color: #00A859;
    font-size: 16px;
    font-weight: 600;
}

.loader {
    border: 4px solid #e0e0e0;
    border-top: 4px solid #00A859;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: #00A859;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #00A859;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #00A859;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.2);
}

.edital-fases {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #e0e0e0;
}

.edital-fases h4 {
    color: #00A859;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fases-timeline {
    position: relative;
    padding-left: 40px;
}

.fase-item {
    position: relative;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.fase-item:last-child {
    margin-bottom: 0;
}

.fase-numero {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.fase-content {
    flex: 1;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

.fase-content strong {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 6px;
}

.fase-data {
    display: inline-block;
    color: #00A859;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.fase-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

/* Novos estilos para estágios */
.edital-card.destaque {
    border-left-color: #FFB300;
    background: linear-gradient(to right, #FFF9E6 0%, #ffffff 10%);
}

.edital-tipo,
.edital-empresa {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.status-andamento {
    background: linear-gradient(135deg, #FF9800, #FFB300);
    color: white;
}

.status-finalizado {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.btn-info {
    background: #2196F3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-info:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-body h3 {
    color: #00A859;
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* Status do Edital no Modal */
.edital-status-box {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.edital-status-box .status-badge {
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edital-status-box .status-aberto {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.edital-status-box .status-encerrado {
    background: linear-gradient(135deg, #F44336, #EF5350);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.edital-status-box .status-andamento {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.edital-status-box .status-finalizado {
    background: linear-gradient(135deg, #9E9E9E, #BDBDBD);
    color: white;
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

.edital-status-box .status-publicado {
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.periodo-inscricoes {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Informações do Edital no Modal */
.edital-info-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 24px;
}

.edital-info-modal .info-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    /* removed left accent */
    border-left: none;
}

.edital-info-modal .info-item strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

/* Botão Edital Completo */
.edital-pdf-section {
    text-align: center;
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border-radius: 12px;
    border: 2px dashed #00A859;
}

.btn-edital-completo {
    font-size: 16px;
    padding: 14px 32px;
    box-shadow: 0 4px 16px rgba(0, 168, 89, 0.3);
    transition: all 0.3s ease;
}

.btn-edital-completo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
}

/* Fases detalhadas */
.fases-detalhadas {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fase-detalhe {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #00A859;
    transition: all 0.3s ease;
}

.fase-detalhe:hover {
    background: #f0f7f4;
    transform: translateX(4px);
}

.fase-numero-grande {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.fase-info-completa {
    flex: 1;
}

.fase-titulo-com-pdf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fase-info-completa h4 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.pdf-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #FFEBEE;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #FFCDD2;
    flex-shrink: 0;
}

.pdf-icon-small:hover {
    background: #D32F2F;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.pdf-icon-small:hover svg path {
    stroke: white;
}

.pdf-icon-small:hover svg text {
    fill: white;
}

.fase-descricao {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fase-datas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fase-datas span {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.fase-info-extra {
    margin: 8px 0;
    padding: 10px 14px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
}

.fase-info-extra strong {
    color: #00A859;
}

.btn-download {
    display: inline-block;
    margin: 12px 0;
    padding: 10px 20px;
    background: #00A859;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #008f4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.fase-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.fase-status.status-pendente {
    background: #FFF3E0;
    color: #F57C00;
}

.fase-status.status-em_andamento {
    background: #E3F2FD;
    color: #1976D2;
}

.fase-status.status-concluida {
    background: #E8F5E9;
    color: #388E3C;
}

.fase-status.status-cancelada {
    background: #FFEBEE;
    color: #D32F2F;
}

/* PDF Modal - Visualizador de PDF em popup */
.pdf-modal-overlay {
    z-index: 2000;
}

.pdf-modal-content {
    background: white;
    border-radius: 12px;
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #00A859, #00cc6a);
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.pdf-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.pdf-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pdf-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #f5f5f5;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Responsivo - Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .edital-status-box {
        padding: 16px;
    }
    
    .edital-status-box .status-badge {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .edital-info-modal {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .edital-pdf-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .btn-edital-completo {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
    }
    
    .fase-detalhe {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .fase-numero-grande {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .fase-datas {
        flex-direction: column;
        gap: 8px;
    }
    
    .pdf-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .pdf-modal-header {
        padding: 12px 16px;
        border-radius: 0;
    }
    
    .pdf-modal-header h3 {
        font-size: 16px;
    }
    
    .pdf-modal-header .close-btn {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    /* Responsivo - Novo Layout Editais */
    .edital-card {
        padding: 12px 8px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .edital-header {
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .edital-card h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .edital-tipo,
    .edital-empresa {
        font-size: 12px;
        margin: 3px 0;
    }
    
    .edital-content {
        margin: 8px 0;
        padding: 10px 6px;
    }
    
    .edital-card-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .edital-fases-sidebar {
        width: 100%;
        padding: 10px 8px;
    }
    
    .fases-titulo {
        font-size: 12px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .edital-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 6px;
        margin: 12px 0;
    }
    
    .edital-info-item {
        padding: 8px 6px;
    }
    
    .edital-detalhes-section {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .detalhe-item {
        padding: 10px 6px;
        margin-bottom: 10px;
    }
    
    .detalhe-item h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .fase-item-card {
        flex-wrap: wrap;
        padding: 8px 6px;
        gap: 8px;
    }
    
    .fase-numero-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .fase-info-mini strong {
        white-space: normal;
        font-size: 11px;
    }
    
    .btn-pdf-fase {
        width: 28px;
        height: 28px;
    }
    
    .btn-edital-pdf {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .edital-actions {
        margin-top: 12px;
    }
    
    .btn-inscrever {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Responsivo - Cards de Curso */
    .curso-card {
        flex-direction: column;
    }
    
    .curso-image {
        width: 100%;
        height: 220px;
    }
    
    .curso-content {
        padding: 20px;
        padding-right: 20px; /* Remove o espaço extra em mobile */
    }
    
    .curso-card h3 {
        font-size: 20px;
    }
    
    .curso-actions {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #f0f0f0;
    }
    
    .btn-acessar-curso,
    .btn-material {
        flex: 1;
        min-width: auto;
    }
}

/* Responsivo - Cards de Curso em telas muito pequenas */
@media (max-width: 480px) {
    .curso-image {
        height: 180px;
    }
    
    .curso-content {
        padding: 16px;
    }
    
    .curso-card h3 {
        font-size: 18px;
    }

    /* Estilos responsivos para eventos */
    .evento-card {
        padding: 20px;
    }
    
    .evento-card h3 {
        font-size: 18px;
    }
    
    .btn-evento-inscricao {
        width: 100%;
        justify-content: center;
    }
}

/* Force-remove any remaining left-accent visuals on course/event cards.
   Covers border-left, pseudo-elements (::before/::after) and common accent children.
   This is intentionally specific and uses !important to override legacy rules or inline styles.
*/
.curso-card, .evento-card {
    border-left: none !important;
    border-left-width: 0 !important;
    border-left-style: none !important;
    border-left-color: transparent !important;
}

.curso-card::before, .curso-card::after,
.evento-card::before, .evento-card::after,
.curso-card .left-accent, .curso-card .accent, .curso-card .course-accent,
.evento-card .left-accent, .evento-card .accent {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* As a last resort, ensure no descendant shows a left border visual */
.curso-card * , .evento-card * {
    border-left: none !important;
}

/* Responsivo - Eventos em tablets */
@media (max-width: 768px) {
    .evento-card {
        padding: 24px;
    }
    
    .evento-card h3 {
        font-size: 20px;
    }
    
    .btn-evento-inscricao {
        width: 100%;
        text-align: center;
    }
}

/* Modal de Inscrição */
.modal-inscricao-content {
    max-width: 600px;
    width: 90%;
}

.inscricao-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #00A859;
}

.inscricao-info p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.form-inscricao {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00A859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Validação de campos */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-error {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-inscricao-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .form-actions .btn-inscrever {
        width: 100%;
    }
}

/* Modal de Sucesso */
.modal-sucesso-content {
    max-width: 500px;
    width: 90%;
}

.modal-header-sucesso {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px 24px;
    background: linear-gradient(135deg, #008c50, #00A859);
    color: white;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.sucesso-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header-sucesso h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.sucesso-mensagem {
    text-align: center;
    padding: 20px 0;
}

.sucesso-principal {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.sucesso-secundaria {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.sucesso-email {
    font-size: 15px;
    color: #00A859;
    background: #f0f7f4;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0 20px;
}

.sucesso-instrucoes {
    background: #fff9e6;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #FFB800;
    margin-top: 20px;
}

.sucesso-instrucoes p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-sucesso-content {
        width: 95%;
    }
    
    .modal-header-sucesso {
        padding: 30px 20px 20px;
    }
    
    .sucesso-icon {
        font-size: 48px;
    }
    
    .modal-header-sucesso h2 {
        font-size: 18px;
    }
}

/* Media Query para Tablets (portrait) */
@media (min-width: 481px) and (max-width: 768px) {
    .quick-access-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

/* Melhorias para touch em todos os dispositivos móveis */
@media (max-width: 768px) {
    button, .btn, .quick-btn, a {
        -webkit-tap-highlight-color: rgba(0, 168, 89, 0.2);
        touch-action: manipulation;
    }
    
    /* Aumentar área de toque dos botões */
    .btn, .quick-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Melhorar scroll em modais */
    .modal-content, .pdf-modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Espaçamento melhor para formulários mobile */
    input, select, textarea {
        font-size: 16px !important; /* Previne zoom no iOS */
        padding: 12px 16px;
    }
    
    /* Cards com melhor espaçamento */
    .news-card, .edital-card, .evento-card {
        margin-bottom: 20px;
    }
}
