/* ==========================================================================
   STMC Theme — Clean Editorial
   Sindicato dos Trabalhadores do Serviço Público Municipal de Campinas
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary — Vermelho institucional */
    --stmc-red: #C62828;
    --stmc-red-dark: #8B1A1A;
    --stmc-red-light: #EF5350;
    --stmc-red-bg: #FFF5F5;

    /* Neutrals */
    --stmc-white: #ffffff;
    --stmc-gray-50: #F9FAFB;
    --stmc-gray-100: #F3F4F6;
    --stmc-gray-200: #E5E7EB;
    --stmc-gray-300: #D1D5DB;
    --stmc-gray-400: #9CA3AF;
    --stmc-gray-500: #6B7280;
    --stmc-gray-600: #4B5563;
    --stmc-gray-700: #374151;
    --stmc-gray-800: #1F2937;
    --stmc-gray-900: #111827;

    /* Bootstrap overrides */
    --bs-primary: #C62828;
    --bs-primary-rgb: 198, 40, 40;
    --bs-link-color: #C62828;
    --bs-link-hover-color: #8B1A1A;

    /* Typography — Inter only */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py: 4.5rem;
    --section-py-sm: 3rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

    /* Radius — zerado a pedido do cliente (cantos quadrados) */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--stmc-gray-800);
    background-color: var(--stmc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--stmc-gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

a {
    color: var(--stmc-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--stmc-red-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--stmc-gray-600);
}

/* ---------- Sections ---------- */
.section-block {
    padding: var(--section-py) 0;
}

.section-block-alt {
    padding: var(--section-py) 0;
    background-color: var(--stmc-gray-50);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--stmc-gray-900);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--stmc-red);
    display: inline-block;
}

.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--stmc-red);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.section-link:hover {
    color: var(--stmc-red-dark);
    gap: 0.5rem;
    text-decoration: none;
}

/* ---------- Bootstrap Overrides ---------- */

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--stmc-red);
    --bs-btn-border-color: var(--stmc-red);
    --bs-btn-hover-bg: var(--stmc-red-dark);
    --bs-btn-hover-border-color: var(--stmc-red-dark);
    --bs-btn-active-bg: #7B1515;
    --bs-btn-active-border-color: #7B1515;
    --bs-btn-disabled-bg: var(--stmc-red);
    --bs-btn-disabled-border-color: var(--stmc-red);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-outline-primary {
    --bs-btn-color: var(--stmc-red);
    --bs-btn-border-color: var(--stmc-red);
    --bs-btn-hover-bg: var(--stmc-red);
    --bs-btn-hover-border-color: var(--stmc-red);
    --bs-btn-active-bg: var(--stmc-red-dark);
    --bs-btn-active-border-color: var(--stmc-red-dark);
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* Cards */
.card {
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: box-shadow var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-img-top {
    object-fit: cover;
}

.card-stmc .card-body {
    padding: 1.25rem;
}

.card-stmc .card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.card-stmc .card-title a {
    color: var(--stmc-gray-900);
    transition: color var(--transition-fast);
}

.card-stmc .card-title a:hover {
    color: var(--stmc-red);
    text-decoration: none;
}

.card-stmc .card-text {
    font-size: 0.875rem;
    color: var(--stmc-gray-500);
    line-height: 1.6;
}

.card-stmc .card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stmc-gray-400);
    letter-spacing: 0.02em;
}

/* Text truncation utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navbar override */
.navbar {
    box-shadow: var(--shadow-sm);
}

/* Badge */
.badge-stmc {
    background-color: var(--stmc-red);
    color: var(--stmc-white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: var(--radius-sm);
}

/* ---------- Utility Classes ---------- */
.bg-stmc-red { background-color: var(--stmc-red) !important; }
.bg-stmc-red-dark { background-color: var(--stmc-red-dark) !important; }
.bg-stmc-gray-50 { background-color: var(--stmc-gray-50) !important; }
.bg-stmc-gray-100 { background-color: var(--stmc-gray-100) !important; }
.bg-stmc-gray-900 { background-color: var(--stmc-gray-900) !important; }

.text-stmc-red { color: var(--stmc-red) !important; }
.text-stmc-red-dark { color: var(--stmc-red-dark) !important; }
.text-stmc-gray { color: var(--stmc-gray-500) !important; }

/* ---------- Photo / Video Overlay ---------- */
.media-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.media-thumb img,
.media-thumb .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.media-thumb:hover img,
.media-thumb:hover .placeholder-img {
    transform: scale(1.03);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.75));
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: var(--stmc-white);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.media-thumb:hover .media-overlay {
    opacity: 1;
}

.media-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(198, 40, 40, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(4px);
}

.media-thumb:hover .media-play-icon {
    background: var(--stmc-red);
    transform: translate(-50%, -50%) scale(1.08);
}

/* ---------- Top Bar ---------- */
/* ---------- Home Banner ---------- */
.home-banner {
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.home-banner-link {
    display: block;
    line-height: 0;
}

.home-banner-link picture {
    display: block;
    width: 100%;
}

.home-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.home-campaign-banner {
    background: linear-gradient(180deg, var(--stmc-white) 0%, #fef2f2 100%);
    padding: 2.5rem 0 0;
    line-height: 0;
}

.home-campaign-banner picture {
    display: block;
    width: 100%;
}

.home-campaign-banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 32px rgba(198, 40, 40, 0.12);
}

/* ---------- Topbar Affiliations ---------- */
.topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.topbar-affiliations {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.topbar-affiliation {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.topbar-affiliation:hover {
    opacity: 1;
}

.topbar-affiliation-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* ---------- Top Institutional Bar ---------- */
.stmc-topbar {
    background-color: var(--stmc-gray-900);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.stmc-topbar a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.stmc-topbar a:hover {
    color: var(--stmc-white);
    text-decoration: none;
}

.stmc-topbar .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.stmc-topbar .social-icon:hover {
    background: var(--stmc-red);
    color: var(--stmc-white);
}

/* ---------- Main Navbar ---------- */
.stmc-navbar {
    background-color: var(--stmc-white);
    box-shadow: var(--shadow-sm);
    border-bottom: none;
    padding: 0;
}

.stmc-navbar .navbar-brand {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
}

.stmc-navbar .navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
    background: #fff;
}

.stmc-navbar .navbar-brand:hover img {
    transform: scale(1.02);
}

.stmc-navbar .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--stmc-gray-700);
    padding: 1rem 0.75rem;
    transition: color var(--transition-fast);
    position: relative;
}

.stmc-navbar .nav-link::after {
    /* Remove the default dropdown caret override — keep Bootstrap's */
}

.stmc-navbar .nav-link:hover,
.stmc-navbar .nav-link:focus {
    color: var(--stmc-red);
}

.stmc-navbar .nav-link.active {
    color: var(--stmc-red);
    font-weight: 600;
}

.stmc-navbar .dropdown-menu {
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.25rem;
    min-width: 220px;
}

.stmc-navbar .dropdown-item {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    color: var(--stmc-gray-600);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.stmc-navbar .dropdown-item:hover,
.stmc-navbar .dropdown-item:focus {
    background-color: var(--stmc-gray-50);
    color: var(--stmc-gray-900);
}

.stmc-navbar .navbar-search .form-control {
    font-size: 0.8125rem;
    border-radius: 2rem;
    padding: 0.375rem 1rem;
    border-color: var(--stmc-gray-200);
    background-color: var(--stmc-gray-50);
}

.stmc-navbar .navbar-search .form-control:focus {
    border-color: var(--stmc-red);
    background-color: var(--stmc-white);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.stmc-navbar .navbar-search .btn {
    border-radius: 0 2rem 2rem 0;
}

/* Highlight CTA button */
.stmc-navbar .nav-link-highlight {
    background-color: var(--stmc-red);
    color: var(--stmc-white) !important;
    border-radius: 2rem;
    margin: 0.625rem 0.25rem;
    padding: 0.4rem 1.125rem !important;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background-color var(--transition-fast);
}

.stmc-navbar .nav-link-highlight:hover {
    background-color: var(--stmc-red-dark);
    color: var(--stmc-white) !important;
}

/* ---------- Hero Carousel ---------- */
.hero-carousel {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-carousel .carousel-item img {
    transition: transform 6s ease;
}

.hero-carousel .carousel-item.active img {
    transform: scale(1.04);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--stmc-white);
    background: transparent;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.hero-carousel .carousel-indicators .active {
    background: var(--stmc-white);
    opacity: 1;
    transform: scale(1.2);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-carousel .carousel-control-prev { left: 1rem; }
.hero-carousel .carousel-control-next { right: 1rem; }

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-featured {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
}

.hero-featured .placeholder-img {
    min-height: 420px;
}

.hero-featured-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.82));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--stmc-white);
}

.hero-featured-caption h2 {
    color: var(--stmc-white);
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-featured-caption p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.hero-mini {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stmc-gray-200);
    transition: box-shadow var(--transition-base);
    display: flex;
    gap: 0;
    height: 130px;
    background: var(--stmc-white);
}

.hero-mini:hover {
    box-shadow: var(--shadow-md);
}

.hero-mini-img {
    width: 140px;
    min-width: 140px;
    overflow: hidden;
}

.hero-mini-img img,
.hero-mini-img .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 130px;
}

/* Capas de noticias seguem o formato vertical do feed do Instagram (4:5). */
.hero-mini-img.noticia-instagram-img {
    width: 104px;
    min-width: 104px;
    aspect-ratio: 4 / 5;
    background: var(--stmc-gray-100);
}

.hero-mini-img.noticia-instagram-img img {
    object-fit: cover;
}

.hero-mini-body {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-mini-body .mini-date {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stmc-gray-400);
}

.hero-mini-body h6 {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0.25rem 0 0;
    color: var(--stmc-gray-900);
}

.hero-mini-body h6 a {
    color: inherit;
}

.hero-mini-body h6 a:hover {
    color: var(--stmc-red);
    text-decoration: none;
}

/* ---------- Alert / Manchete bar ---------- */
.stmc-alert-bar {
    background: linear-gradient(135deg, #8b0000 0%, var(--stmc-red) 50%, #ff2d2d 100%);
    color: var(--stmc-white);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 0;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 4px 16px rgba(196, 18, 48, 0.4);
    position: relative;
    z-index: 10;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ---------- Manchete Hero ---------- */
.manchete-hero {
    background: var(--stmc-white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid var(--stmc-red);
    animation: slideDown 0.5s ease-out;
    position: relative;
    z-index: 10;
}

.manchete-hero .container {
    position: relative;
}

.manchete-hero-link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--stmc-gray-900);
    min-height: 160px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.manchete-hero-link:hover {
    color: var(--stmc-gray-900);
}

.manchete-hero-img {
    flex: 0 0 35%;
    max-width: 35%;
    overflow: hidden;
    position: relative;
}

.manchete-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.manchete-hero-link:hover .manchete-hero-img img {
    transform: scale(1.04);
}

.manchete-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fce4e4);
    color: var(--stmc-red-light);
    font-size: 3.5rem;
}

.manchete-hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.manchete-hero-title {
    color: var(--stmc-gray-900);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    max-width: 700px;
}

.manchete-hero-subtitle {
    color: var(--stmc-gray-600);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manchete-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--stmc-red);
    background: transparent;
    padding: 0.4rem 0;
    border: none;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.manchete-hero-link:hover .manchete-hero-cta {
    color: var(--stmc-red-dark);
    gap: 0.625rem;
}

.manchete-no-photo .manchete-hero-img {
    display: none;
}

.manchete-no-photo .manchete-hero-body {
    padding: 2.5rem 2rem;
    text-align: center;
    align-items: center;
}

.manchete-no-photo .manchete-hero-title {
    font-size: 2rem;
    max-width: 100%;
}

.manchete-no-photo .manchete-hero-subtitle {
    max-width: 800px;
    font-size: 1.0625rem;
}

.badge-manchete {
    background: var(--stmc-white);
    color: var(--stmc-red);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    animation: badgePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255,255,255,0.35);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255,255,255,0.35); }
    50%      { box-shadow: 0 0 24px rgba(255,255,255,0.6); }
}

.stmc-alert-bar .manchete-titulo {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stmc-alert-bar i {
    opacity: 0.9;
}

.stmc-alert-bar a {
    color: var(--stmc-white);
    text-decoration: none;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.stmc-alert-bar a:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* ---------- Footer ---------- */
.stmc-footer {
    background-color: var(--stmc-gray-900);
    color: var(--stmc-gray-400);
    font-size: 0.8125rem;
    padding-top: 3.5rem;
}

.stmc-footer h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stmc-white);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stmc-footer a {
    color: var(--stmc-gray-400);
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.stmc-footer a:hover {
    color: var(--stmc-white);
    text-decoration: none;
}

.stmc-footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: var(--stmc-gray-500);
}

.stmc-footer-bottom a {
    color: var(--stmc-gray-400);
}

.stmc-footer-bottom a:hover {
    color: var(--stmc-white);
}

.stmc-footer-bottom .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--stmc-gray-400);
    font-size: 0.875rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.stmc-footer-bottom .social-icon:hover {
    background: var(--stmc-red);
    color: var(--stmc-white);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Section entrance ---------- */
.section-block,
.section-block-alt {
    animation: fadeInUp 0.45s ease-out both;
}

/* ---------- Card hover lift ---------- */
.card-stmc {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-stmc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Card highlight (Palavra da Diretoria) ---------- */
.card-highlight {
    border-left: 4px solid var(--stmc-red);
}

/* ---------- Card boletim destaque ---------- */
.card-boletim-destaque {
    border: none;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stmc-white) 0%, #fef2f2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-left: 4px solid var(--stmc-red);
}

.card-boletim-destaque:hover {
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.12);
    transform: translateY(-2px);
}

.boletim-destaque-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.boletim-destaque-capa {
    flex-shrink: 0;
    width: 300px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boletim-destaque-capa img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.5rem;
}

.boletim-destaque-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--stmc-red) 0%, var(--stmc-red-dark) 100%);
    color: var(--stmc-white);
    font-size: 3rem;
}

.boletim-destaque-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-date-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--stmc-white);
    background: var(--stmc-red);
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    letter-spacing: 0.03em;
}

@media (max-width: 575.98px) {
    .boletim-destaque-layout {
        flex-direction: column;
    }

    .boletim-destaque-capa {
        width: 100%;
        max-height: 280px;
    }
}

/* ---------- Newsletter card ---------- */
.card-newsletter {
    background: linear-gradient(135deg, var(--stmc-gray-900) 0%, #2d3748 100%);
    border: none;
    color: var(--stmc-white);
}

.card-newsletter .card-body h5 {
    color: var(--stmc-white);
}

.card-newsletter .card-body p {
    color: rgba(255, 255, 255, 0.7);
}

.card-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--stmc-white);
}

.card-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.card-newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--stmc-red-light);
    color: var(--stmc-white);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}

/* ---------- Date badge ---------- */
.card-date-badge {
    background: linear-gradient(135deg, var(--stmc-red), var(--stmc-red-light));
    color: var(--stmc-white);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Agenda date circle ---------- */
.agenda-date {
    background: linear-gradient(135deg, var(--stmc-red), #E53935);
    color: var(--stmc-white);
    border-radius: var(--radius-lg);
    min-width: 70px;
    text-align: center;
    padding: 0.625rem 0.5rem;
}

/* ---------- Agenda Home Destaque ---------- */
.agenda-home-card {
    border: 1px solid var(--stmc-gray-200);
    background: var(--stmc-white);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.agenda-home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--stmc-red), #E53935);
}

.agenda-home-card:hover {
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.1);
    transform: translateY(-2px);
    border-color: rgba(198, 40, 40, 0.2);
}

.agenda-home-date {
    background: linear-gradient(135deg, var(--stmc-red), #E53935);
    color: var(--stmc-white);
    border-radius: var(--radius-lg);
    min-width: 80px;
    text-align: center;
    padding: 0.875rem 0.75rem;
}

.agenda-home-date .agenda-day {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-home-date .agenda-month {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.agenda-home-info h5 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--stmc-gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.agenda-home-info p {
    font-size: 0.8125rem;
    color: var(--stmc-gray-600);
    line-height: 1.5;
    margin-bottom: 0;
}

.agenda-home-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fce4e4 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(198, 40, 40, 0.1);
}

.agenda-home-header h2 {
    color: var(--stmc-gray-900);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.agenda-home-header p {
    color: var(--stmc-gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ---------- Separator ---------- */
.section-separator {
    height: 4px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, var(--stmc-red), var(--stmc-red-light), var(--stmc-gray-200));
}

/* ---------- Sponsors / Parceiros ---------- */
.section-parceiros {
    background: linear-gradient(180deg, var(--stmc-white) 0%, var(--stmc-red-bg) 100%);
}

.sponsor-item {
    background: var(--stmc-white);
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--stmc-red-light);
}

.sponsor-item img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* ---------- Card link wrapper (clickable cards) ---------- */
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

.card-link-wrapper .card-title {
    color: var(--stmc-gray-900);
    transition: color var(--transition-fast);
}

.card-link-wrapper:hover .card-title {
    color: var(--stmc-red);
}

/* ---------- Empresas Conveniadas ---------- */
.section-convenios {
    background: linear-gradient(180deg, var(--stmc-gray-50) 0%, var(--stmc-white) 100%);
}

.convenio-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stmc-white);
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    height: 120px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.convenio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--stmc-red-light);
}

.convenio-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter var(--transition-base);
}

.convenio-card:hover img {
    filter: grayscale(0%);
}

/* ---------- Lightbox ---------- */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    animation: lightboxZoom 0.25s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
}

/* ==========================================================================
   ARTIGO / NOTÍCIA DETALHE
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.artigo-detalhe-breadcrumb {
    background: var(--stmc-gray-50);
    border-bottom: 1px solid var(--stmc-gray-200);
    padding: 0.875rem 0;
}

.artigo-detalhe-breadcrumb .breadcrumb {
    font-size: 0.8125rem;
    font-weight: 500;
}

.artigo-detalhe-breadcrumb .breadcrumb-item a {
    color: var(--stmc-gray-500);
    transition: color var(--transition-fast);
}

.artigo-detalhe-breadcrumb .breadcrumb-item a:hover {
    color: var(--stmc-red);
}

.artigo-detalhe-breadcrumb .breadcrumb-item.active {
    color: var(--stmc-gray-700);
    font-weight: 600;
}

.artigo-detalhe-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--stmc-gray-300);
}

/* ---------- Article Container ---------- */
.artigo-detalhe {
    padding: 2.5rem 0 4rem;
    animation: fadeInUp 0.45s ease-out both;
}

/* ---------- Header ---------- */
.artigo-detalhe-header {
    margin-bottom: 2rem;
}

.artigo-detalhe-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.artigo-detalhe-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--stmc-red), var(--stmc-red-light));
    color: var(--stmc-white);
    padding: 0.25rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.artigo-detalhe-badge--artigo {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
}

.artigo-detalhe-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--stmc-gray-500);
    display: inline-flex;
    align-items: center;
}

.artigo-detalhe-titulo {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--stmc-gray-900);
    margin-bottom: 0.75rem;
}

.artigo-detalhe-resumo {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--stmc-gray-600);
    border-left: 4px solid var(--stmc-red);
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.artigo-detalhe-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
}

.artigo-detalhe-fonte,
.artigo-detalhe-leituras {
    display: inline-flex;
    align-items: center;
}

/* ---------- Author (Articulista) ---------- */
.artigo-detalhe-autor {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--stmc-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stmc-gray-200);
}

.artigo-detalhe-autor-foto {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--stmc-gray-200);
    flex-shrink: 0;
}

.artigo-detalhe-autor-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--stmc-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stmc-gray-400);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.artigo-detalhe-autor-nome {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--stmc-gray-900);
    display: block;
}

.artigo-detalhe-autor-desc {
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
    display: block;
    line-height: 1.4;
}

/* ---------- Featured Image ---------- */
.artigo-detalhe-img {
    margin: 0 0 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.artigo-detalhe-img img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.artigo-detalhe-img figcaption {
    background: var(--stmc-gray-50);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.artigo-detalhe-creditos {
    font-style: italic;
    color: var(--stmc-gray-400);
}

/* ---------- Article Body ---------- */
.artigo-detalhe-corpo {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--stmc-gray-700);
    margin-bottom: 2rem;
}

.artigo-detalhe-corpo p {
    margin-bottom: 1.25rem;
    color: var(--stmc-gray-700);
}

.artigo-detalhe-corpo h2,
.artigo-detalhe-corpo h3,
.artigo-detalhe-corpo h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.artigo-detalhe-corpo img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.artigo-detalhe-corpo blockquote {
    border-left: 4px solid var(--stmc-red);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--stmc-red-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--stmc-gray-600);
}

.artigo-detalhe-corpo a {
    color: var(--stmc-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.artigo-detalhe-corpo a:hover {
    color: var(--stmc-red-dark);
}

.artigo-detalhe-corpo ul,
.artigo-detalhe-corpo ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.artigo-detalhe-corpo li {
    margin-bottom: 0.5rem;
}

.artigo-detalhe-corpo table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.artigo-detalhe-corpo table th,
.artigo-detalhe-corpo table td {
    border: 1px solid var(--stmc-gray-200);
    padding: 0.625rem 0.875rem;
}

.artigo-detalhe-corpo table th {
    background: var(--stmc-gray-50);
    font-weight: 700;
}

.artigo-detalhe-corpo iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

/* ---------- Tags ---------- */
.artigo-detalhe-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--stmc-gray-200);
    border-bottom: 1px solid var(--stmc-gray-200);
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
}

.artigo-detalhe-tag {
    background: var(--stmc-gray-100);
    color: var(--stmc-gray-700);
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.artigo-detalhe-tag:hover {
    background: var(--stmc-red-bg);
    color: var(--stmc-red);
}

/* ---------- Photo Gallery ---------- */
.artigo-detalhe-galeria {
    margin-bottom: 2rem;
}

.artigo-detalhe-galeria h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--stmc-red);
    display: inline-block;
}

.artigo-detalhe-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.artigo-detalhe-galeria-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.artigo-detalhe-galeria-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.artigo-detalhe-galeria-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.artigo-detalhe-galeria-item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--stmc-gray-500);
    background: var(--stmc-gray-50);
}

/* ---------- Share Buttons ---------- */
.artigo-detalhe-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.artigo-detalhe-share-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--stmc-gray-700);
    display: inline-flex;
    align-items: center;
}

.artigo-detalhe-share-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.artigo-detalhe-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--stmc-white);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.artigo-detalhe-share-btn:hover {
    color: var(--stmc-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.artigo-detalhe-share-btn svg {
    flex-shrink: 0;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0d65d9;
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #333333;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1fb855;
}

.share-telegram {
    background: #0088CC;
}

.share-telegram:hover {
    background: #006da3;
}

.share-linkedin {
    background: #0A66C2;
}

.share-linkedin:hover {
    background: #084d94;
}

.share-copy {
    background: var(--stmc-gray-600);
    border: none;
    cursor: pointer;
}

.share-copy:hover {
    background: var(--stmc-gray-700);
}

.share-copy--copied {
    background: #16a34a !important;
}

.share-native {
    background: var(--stmc-red);
    border: none;
    cursor: pointer;
}

.share-native:hover {
    background: var(--stmc-red-dark);
}

/* ---------- Sidebar ---------- */
.artigo-detalhe-sidebar {
    position: sticky;
    top: 5.5rem;
    background: var(--stmc-white);
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.artigo-detalhe-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--stmc-gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--stmc-red);
}

.artigo-detalhe-sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--stmc-gray-100);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.artigo-detalhe-sidebar-item:last-child {
    border-bottom: none;
}

.artigo-detalhe-sidebar-item:hover {
    color: inherit;
}

.artigo-detalhe-sidebar-item:hover h6 {
    color: var(--stmc-red);
}

.artigo-detalhe-sidebar-img {
    width: 72px;
    min-width: 72px;
    height: 54px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.artigo-detalhe-sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artigo-detalhe-sidebar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--stmc-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stmc-gray-300);
    font-size: 1.25rem;
}

.artigo-detalhe-sidebar-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artigo-detalhe-sidebar-date {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stmc-gray-400);
}

.artigo-detalhe-sidebar-body h6 {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.125rem 0 0;
    color: var(--stmc-gray-800);
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Skeleton Loading ---------- */
.artigo-detalhe-skeleton {
    max-width: 720px;
    margin: 2rem auto;
}

.skeleton-bar {
    background: linear-gradient(90deg, var(--stmc-gray-100) 25%, var(--stmc-gray-200) 50%, var(--stmc-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* ==========================================================================
   LISTAGEM (Notícias / Artigos)
   ========================================================================== */

.listagem-section {
    padding: 2.5rem 0 4rem;
    animation: fadeInUp 0.45s ease-out both;
}

/* ---------- Header ---------- */
.listagem-header {
    margin-bottom: 2rem;
}

.listagem-titulo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--stmc-gray-900);
    margin-bottom: 0.5rem;
}

.listagem-subtitulo {
    font-size: 1rem;
    color: var(--stmc-gray-500);
    line-height: 1.6;
    max-width: 600px;
}

/* ---------- Filtros ---------- */
.listagem-filtros {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--stmc-gray-200);
}

.listagem-busca {
    position: relative;
    max-width: 420px;
}

.listagem-busca .form-control {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
    border-color: var(--stmc-gray-200);
    background: var(--stmc-gray-50);
    transition: all var(--transition-fast);
}

.listagem-busca .form-control:focus {
    border-color: var(--stmc-red);
    background: var(--stmc-white);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.listagem-busca-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--stmc-gray-400);
    font-size: 0.875rem;
    pointer-events: none;
}

.listagem-busca-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--stmc-gray-400);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.listagem-busca-clear:hover {
    color: var(--stmc-red);
    background: var(--stmc-red-bg);
}

.listagem-canais {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listagem-canal-btn {
    background: var(--stmc-gray-100);
    border: 1px solid var(--stmc-gray-200);
    color: var(--stmc-gray-600);
    padding: 0.35rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.listagem-canal-btn:hover {
    border-color: var(--stmc-red);
    color: var(--stmc-red);
    background: var(--stmc-red-bg);
}

.listagem-canal-btn.active {
    background: var(--stmc-red);
    border-color: var(--stmc-red);
    color: var(--stmc-white);
}

/* ---------- Contador ---------- */
.listagem-contador {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--stmc-gray-500);
    margin-bottom: 1.25rem;
}

/* ---------- Cards ---------- */
.listagem-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listagem-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.listagem-card-img.noticia-instagram-img {
    height: auto;
    aspect-ratio: 4 / 5;
    background: var(--stmc-gray-100);
}

.listagem-card-img.noticia-instagram-img img {
    object-fit: cover;
}

.listagem-card:hover .listagem-card-img img {
    transform: scale(1.04);
}

.listagem-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--stmc-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stmc-gray-300);
    font-size: 2.5rem;
}

.listagem-card-fonte {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stmc-gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ---------- Loading skeleton ---------- */
.listagem-loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.listagem-skeleton-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--stmc-gray-200);
    padding-bottom: 1rem;
}

.listagem-skeleton-card .skeleton-img {
    height: 200px;
    width: 100%;
    border-radius: 0;
    margin-bottom: 1rem;
}

.listagem-skeleton-card .noticia-instagram-skeleton {
    height: auto;
    aspect-ratio: 4 / 5;
}

.listagem-skeleton-card .skeleton-title {
    height: 1.25rem;
    width: 80%;
    margin: 0 1rem 0.75rem;
}

.listagem-skeleton-card .skeleton-text {
    height: 0.875rem;
    width: 95%;
    margin: 0 1rem 0.5rem;
}

.listagem-skeleton-card .skeleton-text.short {
    width: 60%;
}

/* ---------- Vazio ---------- */
.listagem-vazio {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--stmc-gray-400);
}

.listagem-vazio i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.listagem-vazio h3 {
    color: var(--stmc-gray-600);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.listagem-vazio p {
    color: var(--stmc-gray-400);
    margin-bottom: 1.25rem;
}

/* ---------- Paginação ---------- */
.listagem-paginacao {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.listagem-paginacao .pagination {
    gap: 0.25rem;
}

.listagem-paginacao .page-link {
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stmc-gray-600);
    border-color: var(--stmc-gray-200);
    padding: 0.5rem 0.875rem;
    transition: all var(--transition-fast);
    min-width: 40px;
    text-align: center;
}

.listagem-paginacao .page-link:hover {
    background: var(--stmc-red-bg);
    border-color: var(--stmc-red);
    color: var(--stmc-red);
}

.listagem-paginacao .page-item.active .page-link {
    background: var(--stmc-red);
    border-color: var(--stmc-red);
    color: var(--stmc-white);
}

.listagem-paginacao .page-item.disabled .page-link {
    color: var(--stmc-gray-300);
    background: var(--stmc-gray-50);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .listagem-loading {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .listagem-section {
        padding: 2rem 0 3rem;
    }

    .listagem-titulo {
        font-size: 1.5rem;
    }

    .listagem-busca {
        max-width: 100%;
    }

    .listagem-card-img {
        height: 170px;
    }

    .listagem-loading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .listagem-titulo {
        font-size: 1.25rem;
    }

    .listagem-canais {
        gap: 0.375rem;
    }

    .listagem-canal-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

.skeleton-title {
    height: 2.5rem;
    width: 80%;
}

.skeleton-meta {
    height: 1rem;
    width: 40%;
}

.skeleton-img {
    height: 300px;
    width: 100%;
    margin-top: 1rem;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
}

.skeleton-text.short {
    width: 65%;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .artigo-detalhe {
        padding: 2rem 0 3rem;
    }

    .artigo-detalhe-titulo {
        font-size: 1.75rem;
    }

    .artigo-detalhe-resumo {
        font-size: 1rem;
    }

    .artigo-detalhe-corpo {
        font-size: 1rem;
    }

    .artigo-detalhe-sidebar {
        position: static;
        margin-top: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .artigo-detalhe-titulo {
        font-size: 1.5rem;
    }

    .artigo-detalhe-img img {
        max-height: 300px;
    }

    .artigo-detalhe-galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .artigo-detalhe-galeria-item img {
        height: 130px;
    }

    .artigo-detalhe-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .artigo-detalhe-share-btn span {
        display: none;
    }

    .artigo-detalhe-share-btn {
        padding: 0.625rem;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .artigo-detalhe-autor {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .artigo-detalhe-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .artigo-detalhe-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .artigo-detalhe-titulo {
        font-size: 1.375rem;
    }
}
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    max-width: 600px;
}

/* ---------- Video Modal ---------- */
.video-modal-content {
    width: 90vw;
    max-width: 960px;
    cursor: default;
    animation: lightboxZoom 0.25s ease;
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------- Lightbox thumb cursor ---------- */
.lightbox-thumb {
    cursor: pointer;
}

/* ---------- Galeria Home Grid (flexbox auto-fill) ---------- */
.galeria-home-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.galeria-home-item {
    flex: 1 0 180px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .galeria-home-item {
        flex: 1 0 calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
    }
}

/* ---------- Image fallback ---------- */
img[src] {
    background: linear-gradient(135deg, var(--stmc-gray-100) 0%, var(--stmc-gray-200) 100%);
}

/* ---------- Placeholder styling ---------- */
.placeholder-img {
    background: linear-gradient(135deg, var(--stmc-gray-100) 0%, var(--stmc-gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stmc-gray-400);
    font-size: 2rem;
    min-height: 200px;
}

.placeholder-img-sm {
    min-height: 130px;
}

.placeholder-img-lg {
    min-height: 300px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    :root {
        --section-py: 3rem;
    }

    .stmc-navbar .nav-link {
        padding: 0.6rem 1rem;
    }

    .stmc-navbar .nav-link-highlight {
        margin: 0.5rem 1rem;
        text-align: center;
        display: block;
    }

    .hero-featured {
        min-height: 280px;
    }

    .hero-featured .placeholder-img {
        min-height: 280px;
    }

    .hero-featured-caption h2 {
        font-size: 1.375rem;
    }

    .hero-carousel .carousel-item img {
        height: 280px !important;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .home-banner-img {
        width: 100%;
        height: auto;
    }

    .home-campaign-banner {
        padding: 1.5rem 0 0;
    }

    .manchete-hero-link {
        flex-direction: column;
        min-height: auto;
    }

    .manchete-hero-img {
        flex: none;
        max-width: 100%;
        height: 200px;
    }

    .manchete-hero-body {
        padding: 1.25rem 1.5rem;
    }

    .manchete-hero-title {
        font-size: 1.125rem;
    }

    .manchete-hero-placeholder {
        font-size: 2.5rem;
    }

    .manchete-no-photo .manchete-hero-body {
        padding: 1.75rem 1.5rem;
    }

    .manchete-no-photo .manchete-hero-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-py: 2.5rem;
    }

    .stmc-topbar .topbar-text {
        font-size: 0.625rem;
    }

    .hero-featured {
        min-height: 220px;
    }

    .hero-featured .placeholder-img {
        min-height: 220px;
    }

    .hero-featured-caption {
        padding: 1.25rem;
    }

    .hero-featured-caption h2 {
        font-size: 1.125rem;
    }

    .hero-carousel .carousel-item img {
        height: 220px !important;
    }

    .hero-mini {
        height: auto;
    }

    .hero-mini-img {
        width: 110px;
        min-width: 110px;
    }

}

/* ---------- Blazor error UI ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ==========================================================================
   GALERIA DE FOTOS — Cards
   ========================================================================== */

.galeria-card-img {
    position: relative;
}

.galeria-card-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--stmc-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

/* ==========================================================================
   GALERIA DE FOTOS — Detalhe
   ========================================================================== */

.galeria-detalhe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
}

.galeria-detalhe-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.galeria-detalhe-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.galeria-detalhe-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.galeria-detalhe-item:hover img {
    transform: scale(1.04);
}

.galeria-detalhe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.galeria-detalhe-item:hover .galeria-detalhe-overlay {
    opacity: 1;
}

.galeria-detalhe-item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--stmc-gray-500);
    background: var(--stmc-gray-50);
}

@media (max-width: 767.98px) {
    .galeria-detalhe-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .galeria-detalhe-item img {
        height: 150px;
    }
}

/* ==========================================================================
   AGENDA — Listagem
   ========================================================================== */

.agenda-grupo-titulo {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--stmc-gray-700);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--stmc-red);
    display: inline-block;
}

.agenda-card-periodo {
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
    font-weight: 500;
}

.agenda-card-texto {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   Busca – Resultados
   ═══════════════════════════════════════════ */

.busca-resultados {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.busca-resultado-item {
    display: block;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-lg, 0.75rem);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast, 0.2s);
}

.busca-resultado-item:hover {
    border-color: var(--stmc-red);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.busca-resultado-header {
    margin-bottom: 0.5rem;
}

.busca-tipo-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    background: var(--stmc-gray-100, #f0f2f5);
    color: var(--stmc-gray-600, #6b7280);
}

.busca-resultado-titulo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--stmc-gray-800, #1f2937);
    margin: 0 0 0.375rem;
    line-height: 1.4;
}

.busca-resultado-item:hover .busca-resultado-titulo {
    color: var(--stmc-red);
}

.busca-resultado-texto {
    font-size: 0.9rem;
    color: var(--stmc-gray-500, #6b7280);
    line-height: 1.6;
    margin: 0;
}

.busca-resultado-data {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--stmc-gray-400, #9ca3af);
    margin-bottom: 0.375rem;
}

.agenda-card-texto p:last-child {
    margin-bottom: 0;
}

.agenda-card-passado {
    opacity: 0.65;
}

.agenda-card-passado .agenda-date {
    background: linear-gradient(135deg, var(--stmc-gray-400), var(--stmc-gray-500));
}

/* ==========================================================================
   BOLETINS DO STMC — Cards
   ========================================================================== */

.boletim-card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--stmc-gray-100);
}

.boletim-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boletim-card-img:hover img {
    transform: scale(1.03);
}

.boletim-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--stmc-gray-100), var(--stmc-gray-200));
    color: var(--stmc-gray-400);
    font-size: 3rem;
}

/* ---------- Endereço & Atendimento ---------- */
.section-endereco {
    background: linear-gradient(135deg, #1a0a0a 0%, #3b1111 30%, #6b1a1a 65%, #8B1A1A 100%);
    padding: var(--section-py) 0;
    color: #fff;
}

.endereco-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.endereco-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--stmc-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.45);
}

.endereco-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
}

.endereco-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.endereco-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.endereco-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.endereco-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.endereco-info-item:hover .endereco-info-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.endereco-info-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.endereco-info-item div:not(.endereco-info-icon) {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.endereco-phone {
    font-size: 1.125rem !important;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.025em;
}

.endereco-horario-badge {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    background: var(--stmc-red);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
}

.endereco-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.endereco-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.endereco-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.endereco-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.endereco-btn-filled {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.endereco-btn-filled:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.endereco-map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.endereco-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

@media (max-width: 991.98px) {
    .endereco-map-wrapper {
        min-height: 300px;
    }
    .endereco-map-wrapper iframe {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .endereco-title {
        font-size: 1.375rem;
    }
    .endereco-actions {
        flex-direction: column;
    }
    .endereco-btn {
        text-align: center;
    }
    .endereco-map-wrapper,
    .endereco-map-wrapper iframe {
        min-height: 250px;
    }
}

/* ==========================================================================
   Contact / Report Form Pages
   ========================================================================== */

/* Form card */
.stmc-form-card {
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.stmc-form-card:hover {
    box-shadow: var(--shadow-md);
}

.stmc-form-card .form-control,
.stmc-form-card .input-group-text {
    font-size: 0.875rem;
    border-color: var(--stmc-gray-200);
}

.stmc-form-card .input-group-text {
    background-color: var(--stmc-gray-50);
    color: var(--stmc-gray-400);
    border-right: none;
}

.stmc-form-card .input-group .form-control {
    border-left: none;
}

.stmc-form-card .form-control:focus {
    border-color: var(--stmc-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.stmc-form-card .input-group:focus-within .input-group-text {
    border-color: var(--stmc-red);
    color: var(--stmc-red);
}

.stmc-form-card .form-label {
    font-size: 0.8125rem;
    color: var(--stmc-gray-700);
    margin-bottom: 0.375rem;
}

.stmc-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact info sidebar */
.stmc-info-list li {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--stmc-gray-100);
}

.stmc-info-list li:first-child {
    padding-top: 0;
}

.stmc-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stmc-info-list strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--stmc-gray-800);
    margin-bottom: 0.125rem;
}

.stmc-info-list span {
    font-size: 0.8125rem;
    color: var(--stmc-gray-500);
    line-height: 1.5;
}

.stmc-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--stmc-red-bg);
    color: var(--stmc-red);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

/* Social buttons (sidebar) */
.stmc-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--stmc-gray-100);
    color: var(--stmc-gray-500);
    font-size: 0.9375rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.stmc-social-btn:hover {
    background-color: var(--stmc-red);
    color: var(--stmc-white);
}

/* Privacy notice (report page) */
.stmc-privacy-notice {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-lg);
    color: #1E40AF;
}

.stmc-privacy-notice > i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.stmc-privacy-notice strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.stmc-privacy-notice span {
    font-size: 0.8125rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* Success icon */
.stmc-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #D1FAE5;
    color: #059669;
    font-size: 1.75rem;
}

/* Fade-in animation */
.stmc-fade-in {
    animation: stmcFadeIn 0.4s ease;
}

@keyframes stmcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .stmc-contact-info {
        margin-top: 0.5rem;
    }
}

/* ---------- Serviços Home ---------- */
.section-servicos-home {
    background: linear-gradient(180deg, var(--stmc-white) 0%, var(--stmc-gray-50) 100%);
}

.servico-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--stmc-white);
    border: 1px solid var(--stmc-gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: var(--stmc-gray-700);
    min-height: 100px;
}

.servico-home-card i {
    font-size: 1.5rem;
    color: var(--stmc-red);
    transition: transform var(--transition-base);
}

.servico-home-card span {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.servico-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--stmc-red-light);
    color: var(--stmc-red);
}

.servico-home-card:hover i {
    transform: scale(1.15);
}

/* ---------- Serviços + Filiação (seção unificada) ---------- */
.section-servicos-filiacao {
    background: linear-gradient(180deg, #fef2f2 0%, #fde8e8 40%, #fce4e4 70%, #f9d4d4 100%);
    padding: 0 0 5rem;
    position: relative;
    overflow: hidden;
}

.section-servicos-filiacao::before {
    content: '';
    position: absolute;
    top: 120px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198,40,40,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-servicos-filiacao::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(198,40,40,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.servicos-filiacao-top-bar {
    height: 5px;
    background: linear-gradient(90deg, var(--stmc-red-dark), var(--stmc-red), var(--stmc-red-light), var(--stmc-red));
    margin-bottom: 4rem;
}

.servicos-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--stmc-red), #d32f2f);
    color: var(--stmc-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

.servicos-destaque-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--stmc-gray-900);
    line-height: 1.15;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.servicos-destaque-subtitle {
    font-size: 1rem;
    color: var(--stmc-gray-600);
    max-width: 520px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.servicos-associados-title {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--stmc-red-dark);
    letter-spacing: -0.01em;
}

.servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.servicos-grid > .servico-destaque-card {
    flex: 0 1 calc((100% - 4rem) / 5);
    max-width: calc((100% - 4rem) / 5);
}

.servico-destaque-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.875rem;
    padding: 1.75rem 1rem;
    background: var(--stmc-white);
    border: 1px solid rgba(198, 40, 40, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--stmc-gray-700);
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.servico-destaque-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stmc-red), var(--stmc-red-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.servico-destaque-card:hover::after {
    transform: scaleX(1);
}

.servico-destaque-card-com-imagem {
    padding: 0;
    aspect-ratio: 1212 / 690;
    min-height: auto;
    background: #1f1f1f;
    border: 0;
    box-shadow: 0 12px 26px rgba(123, 21, 21, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    isolation: isolate;
}

.servico-destaque-card-com-imagem::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.22) 100%),
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 38%);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.servico-destaque-card-com-imagem::after {
    height: 4px;
    z-index: 2;
}

.servico-destaque-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    z-index: 0;
}

.servico-destaque-card-com-imagem .servico-destaque-icon,
.servico-destaque-card-com-imagem span {
    display: none;
}

.servico-destaque-card-com-imagem:hover {
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(123, 21, 21, 0.22), 0 4px 14px rgba(0, 0, 0, 0.14);
}

.servico-destaque-card-com-imagem:hover::before {
    opacity: 0.35;
}

.servico-destaque-card-com-imagem:hover .servico-destaque-img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.servico-destaque-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fce4e4);
    border: 2px solid rgba(198, 40, 40, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.servico-destaque-icon i {
    font-size: 1.5rem;
    color: var(--stmc-red);
    transition: all 0.3s ease;
}

.servico-destaque-card span {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    color: var(--stmc-gray-800);
}

.servico-destaque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(198, 40, 40, 0.15);
    border-color: rgba(198, 40, 40, 0.25);
}

.servico-destaque-card:hover .servico-destaque-icon {
    background: linear-gradient(135deg, var(--stmc-red), #d32f2f);
    border-color: var(--stmc-red);
}

.servico-destaque-card:hover .servico-destaque-icon i {
    color: var(--stmc-white);
    transform: scale(1.1);
}

.servico-destaque-card:hover span {
    color: var(--stmc-red);
}

/* ─── CTA Card (Filie-se) ─── */
.filiacao-cta-card {
    background: linear-gradient(135deg, #7b1515 0%, #C62828 30%, #d32f2f 60%, #e53935 100%);
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(198, 40, 40, 0.3);
}

.filiacao-cta-card-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(255,255,255,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.filiacao-cta-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--stmc-white);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.filiacao-cta-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 520px;
}

.filiacao-cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0;
}

.filiacao-cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.filiacao-cta-feature i {
    color: #a5d6a7;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.filiacao-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--stmc-white);
    color: var(--stmc-red-dark);
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--stmc-white);
}

.filiacao-cta-btn:hover {
    background: transparent;
    color: var(--stmc-white);
    border-color: var(--stmc-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.filiacao-cta-btn:active {
    transform: translateY(-1px);
}

.filiacao-cta-hint {
    margin-top: 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

/* Responsive: Serviços + Filiação */
@media (max-width: 991.98px) {
    .servicos-grid > .servico-destaque-card {
        flex-basis: calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
    }
    .filiacao-cta-card {
        padding: 2.5rem 2rem;
    }
    .filiacao-cta-title {
        font-size: 1.375rem;
    }
    .filiacao-cta-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .servicos-grid {
        gap: 0.75rem;
    }
    .servicos-grid > .servico-destaque-card {
        flex-basis: calc((100% - 0.75rem) / 2);
        max-width: calc((100% - 0.75rem) / 2);
    }
    .servico-destaque-card {
        padding: 1.25rem 0.75rem;
        min-height: 120px;
    }
    .servico-destaque-card-com-imagem {
        padding: 0;
        min-height: auto;
    }
    .servico-destaque-icon {
        width: 48px;
        height: 48px;
    }
    .servico-destaque-icon i {
        font-size: 1.25rem;
    }
    .servico-destaque-card span {
        font-size: 0.6875rem;
    }
    .servicos-destaque-title {
        font-size: 1.625rem;
    }
    .servicos-associados-title {
        font-size: 1rem;
    }
    .filiacao-cta-card {
        padding: 2rem 1.5rem;
    }
    .filiacao-cta-title {
        font-size: 1.25rem;
    }
    .filiacao-cta-text {
        font-size: 0.875rem;
    }
    .filiacao-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    .filiacao-cta-features {
        grid-template-columns: 1fr;
    }
    .servicos-filiacao-top-bar {
        margin-bottom: 2.5rem;
    }
}

/* ---------- Enquete ---------- */
.enquete-card,
.enquete-card-home {
    border-left: 4px solid var(--stmc-red);
}

.enquete-expirada {
    opacity: 0.7;
}

.enquete-opcoes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.enquete-opcao {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--stmc-gray-50);
    border: 2px solid var(--stmc-gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.enquete-opcao:hover {
    border-color: var(--stmc-red-light);
    background: #FFF5F5;
}

.enquete-opcao.selecionada {
    border-color: var(--stmc-red);
    background: #FFF0F0;
}

.enquete-opcao input[type="radio"],
.enquete-opcao input[type="checkbox"] {
    accent-color: var(--stmc-red);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.enquete-resultados {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.enquete-barra {
    height: 8px;
    background: var(--stmc-gray-100);
    border-radius: 0;
    overflow: hidden;
}

.enquete-barra-preenchida {
    height: 100%;
    background: linear-gradient(90deg, var(--stmc-red) 0%, var(--stmc-red-light) 100%);
    border-radius: 0;
    transition: width 0.6s ease;
    min-width: 2px;
}

/* ---------- LGPD ---------- */
.lgpd-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stmc-gray-700);
}

.lgpd-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--stmc-gray-100);
}

.lgpd-section:last-child {
    border-bottom: none;
}

.lgpd-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--stmc-gray-900);
    margin-bottom: 0.75rem;
}

.lgpd-section ul {
    padding-left: 1.25rem;
}

.lgpd-section ul li {
    margin-bottom: 0.375rem;
}

.lgpd-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FEE2E2;
    color: var(--stmc-red);
    font-size: 1.25rem;
}

/* ---------- Footer LGPD link ---------- */
.footer-lgpd-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-lgpd-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Responsive: Serviços Home ---------- */
@media (max-width: 575.98px) {
    .servico-home-card {
        padding: 1rem 0.5rem;
        min-height: 80px;
    }

    .servico-home-card i {
        font-size: 1.25rem;
    }

    .servico-home-card span {
        font-size: 0.6875rem;
    }
}

/* ====================================================================
   Sindicalização — Authorization notice
   ==================================================================== */
.stmc-auth-notice {
    border: 2px solid #C62828;
    border-radius: var(--radius-lg, 0.75rem);
    overflow: hidden;
    background-color: #FFF5F5;
}

.stmc-auth-notice-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #C62828;
    color: #fff;
    font-size: 0.9375rem;
}

.stmc-auth-notice-header i {
    font-size: 1.125rem;
}

.stmc-auth-notice-body {
    padding: 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #374151;
}

.stmc-auth-notice-body p {
    margin-bottom: 0.75rem;
}

.stmc-auth-notice-body strong {
    color: #C62828;
}

/* Blazor ValidationMessage → Bootstrap style */
.validation-message {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color, #dc3545);
}
