/* ==========================================================================
   Home Page & CTA Section Styles
   ========================================================================== */

/* Processos CTA */
.processos-cta-card {
    background: linear-gradient(135deg, var(--color-highlight) 0%, #3d428a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.processos-cta-card .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.processos-cta-card p {
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
}

.datajud-badge-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.datajud-badge-mini img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.cta-action-side {
    position: relative;
    z-index: 2;
}

.cta-action-side .btn, 
.cta-action-side .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    background: var(--color-secondary) !important;
    color: var(--color-primary) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-bg-icon {
    position: absolute;
    right: -40px;
    top: -40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Join CTA (Sindicalize-se) */
.join-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.join-cta-card .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.join-cta-card p {
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Transparency CTA */
.transparency-cta-card {
    background: linear-gradient(135deg, rgba(27, 79, 41, 0.95) 0%, rgba(42, 115, 62, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.transparency-cta-card .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.transparency-cta-card p {
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Convenios Slider Styles */
#convenios-slider {
    margin-bottom: 2rem;
}

.slider-slide {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
}

.slider-slide.active {
    display: block;
}

.slider-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.slider-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.slider-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.slider-desc {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0.9;
}

.view-all-link-small {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link-small:hover {
    color: var(--color-highlight);
    transform: translateX(3px);
}

/* ──────────────────────────────────────────────────────────
   Mural Home Section (Premium Bulletin Style)
   ────────────────────────────────────────────────────────── */
.mural-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.mural-home-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px -5px rgba(0,0,0,0.06);
}

.mural-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.12);
    border-color: transparent;
}

html.dark-theme .mural-home-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.mural-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.3s;
}

.mural-home-card.accent-green::before { background: #10b981; }
.mural-home-card.accent-red::before { background: #ef4444; }
.mural-home-card.accent-blue::before { background: #3b82f6; }

.mural-home-card:hover::before {
    height: 6px;
}

.mhc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mhc-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accent-green .mhc-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.accent-red .mhc-badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.accent-blue .mhc-badge { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.mhc-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.mhc-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
    min-height: 2.9rem; /* Garante alinhamento em 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mhc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: auto;
}

html.dark-theme .mhc-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.mhc-link {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
}

.mhc-footer i {
    font-size: 0.8rem;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mural-home-card:hover .mhc-footer i {
    transform: translateX(5px);
}

.mhc-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.accent-green .mhc-icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.accent-red .mhc-icon-box { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.accent-blue .mhc-icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.mural-home-card:hover .mhc-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.mhc-excerpt {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b; /* Slate 500 para elegância */
    font-style: italic;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Travado para manter a grade simétrica */
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.mural-home-card:hover .mhc-excerpt {
    opacity: 1;
    color: var(--color-text-main);
}

/* ==========================================================================
   Social Networks Section
   ========================================================================== */

.social-networks-section {
    position: relative;
    background-color: var(--color-surface);
}

.social-networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-net-card {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-net-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Sidebar vertical grid — garante espaço suficiente para o hover não sobrepor */
.sidebar-access-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sidebar-access-grid .social-net-card {
    margin: 0;
}
.sidebar-access-grid .social-net-card:hover {
    transform: translateY(-3px);
}

html.dark-theme .social-net-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
}

.social-net-card.disabled-link {
    cursor: not-allowed;
    filter: grayscale(100%);
}

.social-net-card.disabled-link:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.social-net-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-right: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Specific Network Colors */
.social-net-instagram .social-net-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-net-youtube .social-net-icon {
    background: #FF0000;
}

.social-net-twitter .social-net-icon {
    background: #000000;
}
html.dark-theme .social-net-twitter .social-net-icon {
    background: #ffffff;
    color: #000000;
}

.social-net-whatsapp .social-net-icon {
    background: #25D366;
}

.social-net-icon-normas {
    background: var(--color-primary);
}

.social-net-icon-processos {
    background: #2563eb;
}

.social-net-icon-convenios {
    background: #b5974a;
}

.social-net-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
    font-family: var(--font-sans);
}

.social-net-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Transmission Form Container */
.transmissao-form-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
}

.transmissao-form-container.active {
    display: block !important;
    animation: fadeInGlobal 0.4s ease;
}

.transmissao-form-container h3 {
    color: var(--color-primary);
    font-weight: 700;
}

html.dark-theme .transmissao-form-container h3 {
    color: var(--color-text-main);
}


/* ==========================================================================
   Institutional Services Grid (Consolidated)
   ========================================================================== */
.institutional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .institutional-grid {
        grid-template-columns: 1fr;
    }
}

.inst-card {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--color-text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.inst-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-soft);
}

html.dark-theme .inst-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inst-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

/* Colors for Inst Cards */
.inst-card-success .inst-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.inst-card-primary .inst-icon { background: rgba(27, 79, 41, 0.1); color: var(--color-primary); }
.inst-card-info .inst-icon { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

/* DataJud Full-Width Card */
.inst-card-datajud {
    grid-column: 1 / -1;
    background: #2d3748;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2rem;
    padding: 1.75rem 2rem;
    justify-content: space-between;
}
.inst-card-datajud:hover {
    background: #374151;
    border-color: #fbbd08 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px);
}
.inst-card-datajud .inst-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.inst-card-datajud .inst-content p { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin: 0; }
.inst-card-datajud .datajud-icon {
    background: rgba(251,189,8,0.12);
    color: #fbbd08;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 14px;
}
.datajud-logo-badge { flex-shrink: 0; opacity: 1; }
html.dark-theme .inst-card-datajud { background: #1e2433; border-color: rgba(255,255,255,0.08); }

.inst-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--color-primary);
    font-family: var(--font-sans);
}

html.dark-theme .inst-content h3 {
    color: var(--color-text-main);
}

.inst-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Extracted front-page styles */
.front-hero-overlay {
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); 
    z-index: 1;
}

.front-hero-content {
    position: relative; 
    z-index: 2;
}

.front-placeholder-mini {
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f8fafc; 
    color: #cbd5e1; 
    border-radius: 8px;
}

.front-datajud-span {
    font-size: 9px; 
    font-weight: 700; 
    color: rgba(255,255,255,0.5); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.front-datajud-img {
    height: 26px; 
    filter: brightness(0) invert(1); 
    opacity: 0.95;
}
