/* =========================================================================
   1. GRADE DE CURSOS (HOME / LISTAGEM)
   ========================================================================= */
.senac-toggle-container { display: flex; justify-content: center; margin-bottom: 30px; }
.senac-toggle-wrapper { position: relative; display: inline-flex; background-color: #e2e8f0; border-radius: 99px; padding: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.senac-toggle-input { display: none; }
.senac-toggle-label { position: relative; display: flex; align-items: center; gap: 8px; z-index: 2; padding: 12px 30px; font-size: 15px; font-weight: 700; color: #718096; cursor: pointer; transition: color 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.senac-toggle-input:checked + .senac-toggle-label { color: #ffffff; }
.senac-toggle-input:focus-visible + .senac-toggle-label { outline: 2px solid #004587; outline-offset: 2px; border-radius: 99px; }
.senac-toggle-glider { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background-color: #f58220; border-radius: 99px; box-shadow: 0 4px 10px rgba(245, 130, 32, 0.3); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease, box-shadow 0.4s ease; z-index: 1; }
#toggle-tecnico:checked ~ .senac-toggle-glider { transform: translateX(100%); background-color: #004587; box-shadow: 0 4px 10px rgba(0, 69, 135, 0.3); }

/* Tooltip CSS */
.senac-tooltip-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; color: inherit; opacity: 0.7; }
.senac-tooltip-icon:hover { opacity: 1; }
.senac-tooltip-text { visibility: hidden; opacity: 0; position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); width: 220px; background-color: #1a202c; color: #fff; text-align: center; border-radius: 6px; padding: 8px 12px; z-index: 1000; font-size: 12px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: normal; transition: visibility 0.2s, opacity 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); pointer-events: none;}
.senac-tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border-width: 6px; border-style: solid; border-color: #1a202c transparent transparent transparent; }
.senac-tooltip-icon:hover .senac-tooltip-text { visibility: visible; opacity: 1; }

.senac-filtro-bar { display: grid; grid-template-columns: 3fr 2fr 2fr 2fr; align-items: center; background-color: #ffffff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); border: 1px solid #edf2f7; margin-bottom: 25px; padding: 12px; gap: 12px; }
.senac-search-wrapper, .senac-multi-select-wrapper { position: relative; height: 48px; display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 8px; background-color: #fff; width: 100%; box-sizing: border-box; transition: border-color 0.3s ease; }
.senac-input { width: 100%; box-sizing: border-box; padding: 0 50px 0 16px; border: none; background: transparent; font-size: 14px; color: #2d3748; outline: none; height: 100%; border-radius: 8px; }
.senac-search-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background-color: #004587; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; transition: background-color 0.3s; }
.senac-search-wrapper:focus-within { border-color: #004587; }
.senac-search-wrapper:focus-within .senac-search-icon { background-color: #f58220; }
.senac-search-icon svg { width: 14px; height: 14px; }

.senac-multi-select-header { background-color: transparent; border: none; border-radius: 8px; padding: 0 16px; font-size: 14px; color: #4a5568; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: color 0.3s ease; height: 100%; width: 100%; box-sizing: border-box; }
.senac-multi-select-header:focus-visible { outline: none; color: #004587; font-weight: bold;}
.senac-multi-select-header::after { content: "▼"; font-size: 10px; color: #a0aec0; transition: transform 0.3s ease; }
.senac-multi-select-wrapper.open { border-color: #004587; }
.senac-multi-select-wrapper.open .senac-multi-select-header { color: #004587; }
.senac-multi-select-wrapper.open .senac-multi-select-header::after { transform: rotate(180deg); }
.senac-multi-select-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 100; max-height: 250px; overflow-y: auto; display: none; padding: 8px; }
.senac-multi-select-wrapper.open .senac-multi-select-dropdown { display: block; }

.senac-checkbox-label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: 14px; color: #4a5568; border-radius: 6px; transition: all 0.2s ease; margin: 0; }
.senac-checkbox-label:hover:not(.disabled), .senac-checkbox-label:focus-within:not(.disabled) { background-color: #f8fafc; }
.senac-checkbox-label input[type="checkbox"] { margin: 0; cursor: pointer; width: 18px; height: 18px; accent-color: #f58220; }
.senac-checkbox-label.disabled { opacity: 0.4; cursor: not-allowed; }
.senac-checkbox-label.disabled input[type="checkbox"] { cursor: not-allowed; }

.senac-contador-wrap { display: flex; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #edf2f7; }
.senac-contador-title { font-family: 'Poppins', sans-serif; font-size: 1.25rem; color: #2d3748; font-weight: 600; margin: 0; }
.senac-highlight { color: #f58220; font-weight: 800; font-size: 1.5rem; margin-right: 5px; }

@media (max-width: 1024px) {
    .senac-filtro-bar { grid-template-columns: 1fr 1fr 1fr; background: transparent; box-shadow: none; border: none; gap: 12px; padding: 0; }
    .senac-search-wrapper, .senac-multi-select-wrapper { box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
    .senac-search-wrapper { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .senac-toggle-label { padding: 10px 15px; font-size: 13px; }
    .senac-filtro-bar { grid-template-columns: 1fr; }
    .senac-multi-select-dropdown { position: relative; max-height: none; box-shadow: none; border-top: none; border-radius: 0 0 8px 8px; }
    .senac-search-wrapper, .senac-multi-select-wrapper { height: 46px; }
    .senac-tooltip-text { display: none; }
}

/* =========================================================================
   2. SINGLE PAGE - DETALHES DO CURSO
   ========================================================================= */
.senac-single-wrap { font-family: 'Roboto', sans-serif; color: #333; padding-bottom: 80px; }
.senac-hero-section { position: relative; background-size: cover; background-position: center; color: #fff; padding-inline: 100px; }
.senac-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,61,104,0.95) 0%, rgba(0,35,60,0.85) 100%); z-index: 1; }
.senac-hero-content { position: relative; z-index: 2; margin: 0 auto; padding-block: 60px 80px; max-width: 1440px; }
.senac-breadcrumbs { font-size: 13px; color: #b0c4de; margin-bottom: 15px; }
.senac-breadcrumbs a { color: #b0c4de; text-decoration: none; transition: color 0.2s; }
.senac-breadcrumbs a:hover { color: #fff; }
.badge-tipo { background: #d06616; color: #fff; padding: 4px 12px; border-radius: 4px; display: inline-block; font-size: 12px; margin-bottom: 15px; font-weight: bold; text-transform: uppercase;}
.senac-hero-title { font-size: 3rem; font-weight: 800; color: #ffffff; margin: 0 0 20px 0; line-height: 1.2; max-width: 800px; }
.senac-hero-excerpt { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; color: #e6f0f9; max-width: 700px; }
.senac-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: #c9dfef; }
.meta-item { background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 8px;}
.senac-main-container { padding-inline: 100px; }
.senac-control-width { max-width: 1440px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 2.4fr 1fr; gap: 50px; position: relative; z-index: 5; }
.senac-content-left { background: #ffffff; border-radius: 20px; padding: 50px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); margin-top: 80px; }
.senac-section { margin-bottom: 50px; }
.senac-section-title { font-size: 1.6rem; color: #003d68; margin-top: 0; margin-bottom: 25px; font-weight: 700; border-bottom: 2px solid #f4f7f6; padding-bottom: 10px; }
.senac-text-content { font-size: 16px; line-height: 1.8; color: #4a5568; }
.senac-list { list-style: none; padding: 0; margin: 0; }
.senac-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.senac-list li::before { content: "•"; color: #f58220; font-weight: bold; position: absolute; left: 0; top: 0; }
.cronograma-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.senac-list-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.senac-list-grid li { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #eee; display: flex; flex-direction: column;}
.senac-list-grid .label { font-size: 12px; color: #888; text-transform: uppercase; margin-bottom: 5px;}
.senac-sticky-card { background: #ffffff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); position: sticky; top: 100px; margin-top: -250px; }

.senac-card-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center; display: block; }
.senac-sticky-card picture.senac-card-img { display: block; height: auto; aspect-ratio: 4/3; width: 100%; }
.senac-sticky-card picture.senac-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.senac-card-body { padding: 35px 30px; }

.senac-btn-buy { display: block; width: 100%; background-color: #f58220; color: #ffffff !important; text-align: center; padding: 16px; border-radius: 99px; font-size: 18px; font-weight: 700; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3); margin-bottom: 30px; border: none;}
.senac-btn-buy:hover:not(:disabled) { background-color: #e06d11; transform: translateY(-2px); }
.senac-btn-buy.disabled { background-color: #ccc; box-shadow: none; cursor: not-allowed; }

.senac-btn-buy.senac-btn-whatsapp { background-color: #25D366; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.senac-btn-buy.senac-btn-whatsapp:hover:not(:disabled) { background-color: #128C7E; }

.senac-btn-toggle-content { display: inline-block; background: transparent; color: #004587; border: 2px solid #004587; padding: 12px 30px; border-radius: 99px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; margin: 20px 0 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.senac-btn-toggle-content:hover { background: #004587; color: #fff; }

@media (max-width: 1024px) {
    .senac-hero-content { padding: 40px 0 180px 0; }
    .senac-control-width { grid-template-columns: 1fr; margin-top: -150px; padding: 0; display: flex; flex-direction: column; }
    .senac-content-right { order: 1; width: 100%; }
    .senac-content-left { order: 2; width: 100%; padding: 30px 20px; margin-top: 0; }
    .senac-sticky-card { position: relative; top: 0; margin-top: 0; }
}
@media (max-width: 600px) {
    .senac-hero-section, .senac-main-container { padding: 20px; }
}

/* =========================================================================
   3. CARROSSEL DE CURSOS DA UNIDADE
   ========================================================================= */
.senac-carousel-wrapper { position: relative; display: flex; align-items: center; width: 100%; margin-bottom: 40px; }
.senac-carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; width: 100%; padding: 10px 5px; scrollbar-width: none; -ms-overflow-style: none; }
.senac-carousel-track::-webkit-scrollbar { display: none; }
.senac-carousel-item { flex: 0 0 calc(25% - 18px); min-width: 280px; scroll-snap-align: start; }
.senac-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: #004587; color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: background 0.3s, transform 0.2s; }
.senac-carousel-nav:hover { background: #f58220; transform: translateY(-50%) scale(1.05); }
.senac-carousel-nav.prev { left: -22px; }
.senac-carousel-nav.next { right: -22px; }
.senac-carousel-nav.hidden { display: none !important; }

@media (max-width: 1200px) { .senac-carousel-item { flex: 0 0 calc(33.333% - 16px); } }
@media (max-width: 900px) { 
    .senac-carousel-item { flex: 0 0 calc(50% - 12px); } 
    .senac-carousel-nav.prev { left: -10px; } 
    .senac-carousel-nav.next { right: -10px; } 
}
@media (max-width: 600px) { 
    .senac-carousel-item { flex: 0 0 85%; } 
    .senac-carousel-nav { display: none !important; } 
}