/* ============================================================
   FONTE NIKEA
   Ficheiros: public/build/fonts/NIKEA.woff2 e NIKEA.woff
   ============================================================ */

@font-face {
    font-family: 'NIKEA';
    src: url('../fonts/NIKEA.woff2') format('woff2'),
         url('../fonts/NIKEA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Palavra SKILLIUM */
.skillium-title {
    font-family: 'NIKEA', sans-serif !important;
    letter-spacing: 3px;
}

/* Palavra NOTÍCIAS */
.section-title {
    font-family: 'NIKEA', sans-serif !important;
    letter-spacing: 2px;
}

/* ===== NAVBAR desktop — item activo em NIKEA ===== */
.navbar-home .nav-link.active-nav {
    font-family: 'NIKEA', sans-serif !important;
    letter-spacing: 1.5px;
}

/* ===== Menu mobile — item activo em NIKEA ===== */
.mobile-menu-item a.active-mobile {
    font-family: 'NIKEA', sans-serif !important;
    letter-spacing: 2px;
}

.mobile-menu-item a.active-mobile::after {
    width: 80%;
    background: #f5a623;
}

/* ============================================================
   home.css — Estilos da página inicial (front-end)
   Localização: public/build/css/home.css
   ============================================================ */

/* ===== FONT FACE (NIKEA) ===== */
@font-face {
    font-family: 'Nikea';
    src: url('../fonts/NIKEA.woff2') format('woff2'),
         url('../fonts/NIKEA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* ===== NAVBAR ===== */
.navbar-home {
    background-color: rgba(33, 27, 27, 0);
    padding: 14px 0;
    transition: backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.35s ease;
    z-index: 10002;
    position: fixed;
    width: 100%;
    top: 0;
}

.navbar-home.scrolled {
    background-color: rgba(33, 27, 27, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 8px 0;
}

.navbar-home .nav-link {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 4px !important;
    position: relative;
    transition: color 0.2s;
}

.navbar-home .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5a623;
    transition: width 0.25s ease;
}

.navbar-home .nav-link:hover::after {
    width: 100%;
}

.navbar-home .nav-link:hover {
    color: #f5a623 !important;
}

.navbar-home .nav-link.active-nav {
    color: #f5a623 !important;
}

.navbar-home .nav-link.active-nav::after {
    width: 100%;
}

.footer-logo,
.navbar-brand img {
    filter: brightness(0) invert(1);
    max-height: 56px;
    width: auto;
}


/* ===== BOTÃO LOGIN ===== */
.btn-login-nav {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-login-nav:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

/* ===== HAMBURGER ANIMADO ===== */
.navbar-toggler-custom {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.navbar-toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* Estado aberto: barras tornam-se um X */
.navbar-toggler-custom.open .navbar-toggler-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler-custom.open .navbar-toggler-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-custom.open .navbar-toggler-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== MENU MOBILE — OVERLAY DE TELA INTEIRA ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #1a1010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.mobile-menu-logo {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translate(-50%, -12px);
    height: 40px;
    width: auto;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.05s;
}

.mobile-menu.open .mobile-menu-logo {
    opacity: 0.9;
    transform: translate(-50%, 0);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.mobile-menu-item {
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Stagger: cada item entra com um pequeno atraso, controlado via JS (--delay) */
.mobile-menu.open .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--delay, 0ms);
}

.mobile-menu-item a {
    display: block;
    padding: 10px 0;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.mobile-menu-item a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: #f5a623;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.mobile-menu-item a:hover,
.mobile-menu-item a.active-mobile {
    color: #fff;
}

.mobile-menu-item a.active-mobile::after,
.mobile-menu-item a:hover::after {
    width: 60%;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--actions-delay, 480ms);
}

.mobile-menu.open .mobile-menu-actions {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-login {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    padding: 10px 32px;
}

.mobile-menu-lang .lang-btn {
    border-color: rgba(255,255,255,0.3);
}

/* Trava o scroll do body por trás quando o menu mobile está aberto */
body.mobile-menu-active {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .navbar-toggler-custom { display: flex; }
    .navbar-home .navbar-brand { flex-shrink: 0; }
    .navbar-home .container-fluid { justify-content: space-between; }
    .navbar-collapse { display: none !important; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.lang-btn:hover { border-color: #f5a623; color: #f5a623; }

.lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.lang-code { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

.lang-arrow { transition: transform 0.2s ease; opacity: 0.8; }

.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(33, 27, 27, 0.97);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 12px;
    padding: 6px;
    list-style: none;
    margin: 0;
    min-width: 140px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 9999;
    animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-switcher.open .lang-dropdown { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.lang-option:hover { background: rgba(245, 166, 35, 0.15); color: #f5a623; }

.lang-option img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

/* ===== HERO CAROUSEL (Swiper) ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    min-height: 560px;
}

.hero-slide {
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 80px 60px 100px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Padrão decorativo de fundo, combinado com o gradiente do slide */
.hero-slide-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 480px auto;
    background-position: center;
    background-repeat: repeat;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.35;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 40px;
    position: relative;
    z-index: 2;
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* aqui é o Swiper que faz a movimentação dos slides do hero */
.swiper-slide-active .hero-content {
    animation: slideInFromLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.swiper-slide-active .hero-image-wrapper {
    animation: slideInFromRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-content {
    flex: 1;
    opacity: 0;
    max-width: 60%;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(1.3rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 16px;
    text-transform: uppercase;
    padding-top: 120px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 500;
    margin: 0 0 28px;
    max-width: 480px;
}

.btn-hero {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.btn-hero:hover {
    background: #f5a623;
    color: #fff;
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 30%;
    width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    z-index: 1;
}

.hero-image {
    max-height: 350%;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: contain;
    margin-top: -45px;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 150px;
    display: block;
}

/* ===== SWIPER PAGINAÇÃO ===== */
.hero-pagination {
    bottom: 100px !important;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(168, 167, 167, 0.5);
    opacity: 1;
    transition: background 0.3s, transform 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.4);
}

/* ===== TAGUSVALLEY VIDEO SECTION ===== */
.tagus-video-section {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Vídeo de fundo, a cobrir toda a secção */
.tagus-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tagus-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Camada preta com opacidade progressiva: mais clara no topo,
   mais escura na base — guia o olhar até à secção Skillium */
.tagus-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 16, 16, 0.35) 0%,
        rgba(26, 16, 16, 0.55) 40%,
        rgba(26, 16, 16, 0.8) 75%,
        rgba(26, 16, 16, 0.95) 100%
    );
    pointer-events: none;
}

.tagus-video-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px;
    width: 100%;
}

.tagus-video-text {
    max-width: 560px;
}

.tagus-video-icon {
    width: 56px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.tagus-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.tagus-video-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 12px 0 20px;
}

.tagus-video-text h2 span {
    font-family: 'Nikea', sans-serif;
}

.tagus-video-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 460px;
}

.tagus-video-btn {
    display: inline-block;
}

/* Degradê preto final extra, reforça a transição para a secção Skillium */
.tagus-video-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    z-index: 1;
    background: linear-gradient(180deg, rgba(26,16,16,0) 0%, #1a1010 100%);
    pointer-events: none;
}

/* Nota: .skillium-eyebrow e .skillium-title estão definidos
   dentro do bloco "PROGRAMS SECTION (SKILLIUM)" acima, já que o
   cabeçalho Skillium agora vive dentro dessa secção. */

/* ===== MISSION SECTION ===== */
.mission-section {
    background-color: #211B1B;
    padding: 40px 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.mission-center {
    width: 100%;
}

.mission-left h2,
.mission-center h2 {
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0;
}

.mission-left h2 span,
.mission-center h2 span { color: #f5a623; }

.mission-right p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0;
}

/* ===== PROGRAMS SECTION (SKILLIUM) ===== */
.programs-container {
    background-color: #211B1B !important;
    padding: 50px 60px 90px !important;
    max-width: 100% !important;
    border-radius: 0 0 60px 60px;
}

div.container:has(.program-card) {
    background-color: #211B1B !important;
    padding: 50px 60px 90px !important;
    max-width: 100% !important;
    border-radius: 0 0 60px 60px;
}

/* Cabeçalho "SKILLIUM" dentro da secção de programas */
.skillium-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.skillium-tagus-icon {
    width: 100px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    opacity: 0.95;
}

.skillium-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f5a623;
    border: 1px solid rgba(245,166,35,0.4);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.skillium-title {
    font-family: 'Nikea', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
    line-height: 1;
}

.skillium-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
}

.program-card {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.program-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Overlay: título sempre visível; descrição e botão aparecem no hover */
.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.88) 100%);
}

.overlay-title {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.overlay-desc,
.btn-conhecer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

.program-card:hover .overlay-desc,
.program-card:hover .btn-conhecer {
    max-height: 100px;
    opacity: 1;
}

.overlay-desc {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

.btn-conhecer {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: transparent;
    margin-top: 0;
}

.program-card:hover .btn-conhecer {
    margin-top: 6px;
}

.btn-conhecer:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
    transform: translateY(-1px);
}

/* ===== CARROSSEL DE PROGRAMAS COM DESTAQUE CENTRAL ===== */
.prog-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 40px;
}

.prog-track-wrap {
    flex: 1;
    overflow: hidden;
    /* Altura fixa para conter os items absolutos */
    position: relative;
    height: 400px;
}

.prog-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cada item — posicionado pelo JS via transform */
.prog-item {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    transform-origin: center center;
    /* Transição suave em todas as propriedades de posição/tamanho */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.prog-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Hover: imagem a cores + leve zoom */
.prog-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Overlay de texto — sempre visível na base */
.prog-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.88) 100%);
}

.prog-title {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Descrição e botão: ocultos por defeito, aparecem no hover */
.prog-desc {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.prog-btn {
    display: inline-block;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border: 2px solid #fff;
    color: #fff;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: transparent;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease,
                background 0.2s, border-color 0.2s, color 0.2s;
}

.prog-item:hover .prog-desc {
    max-height: 80px;
    opacity: 1;
    margin: 8px 0 0;
}

.prog-item:hover .prog-btn {
    max-height: 60px;
    opacity: 1;
    margin-top: 10px;
}

.prog-btn:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

/* ── Setas: apenas ícone grande, sem bolinha ── */
.prog-arrow {
    flex-shrink: 0;
    width: 48px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.prog-arrow:hover {
    color: #f5a623;
    transform: scale(1.15);
}

/* Gradiente nas bordas laterais do carrossel */
.prog-track-wrap::before,
.prog-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 6;
    pointer-events: none;
}

.prog-track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #211B1B 0%, transparent 100%);
}

.prog-track-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #211B1B 0%, transparent 100%);
}

/* ===== PROGRAM TABS (logos dos programas) ===== */
.programs-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.programs-tabs img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

/* Carrossel infinito — ativa-se automaticamente via Blade quando há > 2 logos */
.programs-tabs--marquee {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
}

.programs-tabs-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
}

/* ===== ARROW DIVIDER ===== */
.arrow-divider {
    background-color: #f0f0f0;
    text-align: center;
    line-height: 0;
    margin-top: 0;
    margin-bottom: -8px;
}

.arrow-divider svg { display: inline-block; }

/* ===== COUNTERS SECTION ===== */
.counters-section {
    background-color: #f0f0f0;
    padding: 100px 60px;
}

.counters-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.counter-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    flex: 1;
    min-width: 200px;
    padding: 40px 20px;
    position: relative;
}

.counter-item + .counter-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: rgba(0,0,0,0.1);
}

.counter-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.counter-item .counter-icon {
    font-size: 36px;
    color: #f5a623;
    margin-bottom: 20px;
    display: block;
}

.counter-item .counter-number {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 300;
    color: #1a1a1a;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
}

.counter-item .counter-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,0,0,0.4);
    margin-top: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== NEWS SECTION ===== */
.news-section {
    background-color: #f4f4f4;
    padding: 80px 60px;
    position: relative;
    margin: 0;
    border: none;
}

/* Barra "Agenda" */
.agenda-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 8px;
    background: transparent;
}

.agenda-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.12);
}

.agenda-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f5a623;
    white-space: nowrap;
}

.section-title {
    font-family: 'Nikea', sans-serif;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CARROSSEL DE NOTÍCIAS ===== */
.news-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-carousel {
    flex: 1;
    overflow: hidden;
}

.news-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card horizontal: imagem à esquerda, conteúdo à direita */
.news-card-h {
    flex: 0 0 calc((100% - 2 * 20px) / 3);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card-h:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    color: inherit;
}

.news-card-h:hover .news-card-h-img img {
    transform: scale(1.06);
}

.news-card-h:hover .news-card-h-more {
    color: #f5a623;
    gap: 8px;
}

.news-card-h-img {
    position: relative;
    overflow: hidden;
}

.news-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card-h-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.news-card-h-body {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.news-card-h-body .news-tag {
    margin-bottom: 4px;
}

.news-card-h-body h3 {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 2px 0 2px;
}

.news-card-h-body p {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-h-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.news-card-h-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.news-card-h-date i {
    font-size: 13px;
}

.news-card-h-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.news-card-h-more i {
    font-size: 15px;
}

/* Setas de navegação */
.news-arrow {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    color: #1a1a1a;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-arrow:hover {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

.news-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Dots */
.news-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.news-dot.active {
    background: #f5a623;
    width: 22px;
    border-radius: 5px;
}

/* ===== TAGS / TÓPICOS ===== */
.news-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
}

.news-tag--inovacao         { background: rgba(245,166,35,0.15); color: #f5a623; }
.news-tag--tecnologia       { background: #3b82f6; color: #fff; }
.news-tag--empreendedorismo { background: #10b981; color: #fff; }
.news-tag--educacao         { background: #8b5cf6; color: #fff; }
.news-tag--robotica         { background: #ef4444; color: #fff; }


/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9998;
    max-width: 420px;
    width: calc(100% - 64px);
    background: #1a1010;
    border-radius: 20px;
    border: 1px solid rgba(245,166,35,0.2);
    box-shadow: 8px 8px 0px rgba(245,166,35,0.3),
                0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.cookie-banner.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 24px;
}

.cookie-text {
    flex: 1;
    padding-right: 16px;
}

.cookie-text h4 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.cookie-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0 0 16px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito', sans-serif;
    border: 2px solid transparent;
}

.cookie-btn--rejeitar {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

.cookie-btn--rejeitar:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.cookie-btn--aceitar {
    background: #f5a623;
    border-color: #f5a623;
    color: #1a1a1a;
}

.cookie-btn--aceitar:hover {
    background: #e09010;
    transform: translateY(-1px);
}

.cookie-ilustracao {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-ilustracao img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Remove fundo preto das imagens */
    mix-blend-mode: screen;
}

.cookie-banner:hover .cookie-ilustracao img {
    transform: rotate(-8deg) scale(1.05);
}

/* ===== RESPONSIVE: tablet ===== */
@media (max-width: 991.98px) {
    .hero-slide { padding: 90px 30px 100px; min-height: 480px; }
    .hero-image-wrapper { right: 20px; width: 45%; }
    .hero-image { max-height: 250%; }
    .hero-content { max-width: 55%; }
    .tagus-video-section { min-height: 520px; }
    /* Carrossel de programas: em tablet o JS usa larguras inline, só ajustamos a altura do container */
    .prog-track-wrap { height: 340px; }
    .tagus-video-inner { padding: 60px 30px; }
    .programs-container, div.container:has(.program-card) { padding: 60px 30px !important; }
    .mission-section { flex-direction: column; padding: 30px 30px 0; gap: 20px; }
    .programs-container { padding: 30px 20px !important; }
    div.container:has(.program-card) { padding: 30px 20px !important; }
    .program-card { height: 260px; }
    .skillium-header { margin-bottom: 40px; }
    .news-card-h { flex: 0 0 calc((100% - 20px) / 2); grid-template-columns: 1fr; min-height: auto; }
    .news-card-h-img { height: 220px; }
    .news-section { padding: 60px 30px; }
    .counters-section { padding: 60px 30px; }
    .counters-grid { gap: 0; }
    .partners-section { padding: 30px; }
    .mvv-grid { grid-template-columns: 1fr; }
    .historia-inner { grid-template-columns: 1fr; gap: 40px; }
    .sobre-hero, .equipa-hero { padding: 100px 30px 120px; }
    .mvv-section, .historia-section { padding: 60px 30px; }
}

/* ===== RESPONSIVE: mobile ===== */
@media (max-width: 767.98px) {
    .mobile-menu { gap: 36px; }
    .mobile-menu-item a { font-size: 22px; }

    /* Mobile: carrossel de programas vira lista vertical, um item por baixo do outro */
    .prog-carousel { flex-direction: column; gap: 0; padding: 10px 0 30px; }
    .prog-arrow { display: none; }

    .prog-track-wrap {
        overflow: visible;
        height: auto !important; /* a altura passa a ser dada pelo conteúdo empilhado */
    }
    .prog-track {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 8px 20px;
    }

    .prog-item {
        position: relative !important; /* mantém no fluxo normal, mas preserva o contexto de posicionamento para o .prog-overlay */
        top: auto !important;   /* anula o "top: 50%" da regra base (offset, não centragem, em position:relative) */
        left: auto !important;  /* idem para "left: 50%" — sem isto o card era empurrado para a direita */
        width: 100% !important;
        height: 220px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        filter: none !important;
        border-radius: 16px !important; /* retangular, cantos só levemente arredondados (igual ao .program-card) */
    }
    /* Sem overrides de grayscale/opacity aqui: mantém o comportamento por
       defeito (P&B em repouso, cor + info ao tocar/passar o rato) — igual ao desktop. */
    .prog-overlay {
        text-align: center;
    }

    /* Logos dos programas: lado a lado, mesmo com pouco espaço */
    .programs-tabs {
        flex-wrap: nowrap;
        gap: 24px;
    }
    .programs-tabs img {
        max-width: 130px;
    }

    /* Carrossel infinito no mobile (só ativo quando > 2 logos, via .programs-tabs--marquee) */
    .programs-tabs--marquee {
        mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    }
    .programs-tabs--marquee .programs-tabs-track {
        animation: marquee 18s linear infinite;
    }

    .hero-swiper,
    .hero-slide {
        min-height: 600px;
    }

    .hero-slide {
        padding: 80px 20px 90px;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding-top: 20px;
        text-align: center;
    }

    .hero-content h1 {
        padding-top: 0;
    }

    .hero-image-wrapper {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 70%;
        height: 200px;
        margin: 0 auto;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        opacity: 1 !important;
        z-index: 1;
    }

    .hero-image {
        max-height: 100%;
        width: 100%;
        margin-top: 0;
        object-fit: contain;
        object-position: bottom center;
        filter: grayscale(100%);
    }

    .hero-wave svg { height: 60px; }

    .tagus-video-section { min-height: 460px; }
    .tagus-video-inner { padding: 40px 20px; }
    .programs-container, div.container:has(.program-card) { padding: 40px 20px !important; }

    .mission-section { padding: 20px 20px 0; gap: 16px; }
    .program-card { height: 200px; }
    .skillium-header { margin-bottom: 32px; }
    .news-card-h { flex: 0 0 100%; }
    .news-card-h-img { height: 180px; }
    .news-card-h-body { padding: 22px 20px; }
    .news-card-h-body h3 { font-size: 18px; }
    .news-card-h-body p { font-size: 13px; -webkit-line-clamp: unset; }
    .news-arrow { width: 38px; height: 38px; font-size: 18px; }
    .news-section { padding: 40px 20px; }
    .counters-section { padding: 40px 20px; }
    .counter-item + .counter-item::before { display: none; }
    .counter-item { min-width: 140px; padding: 24px 16px; }
    .partners-section { padding: 20px; }
    .partners-logos { gap: 20px; }
    .sobre-hero, .equipa-hero { padding: 90px 20px 100px; min-height: auto; }
    .mvv-section { padding: 40px 20px; }
    .historia-section { padding: 40px 20px; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== RESPONSIVE: muito pequeno ===== */
@media (max-width: 399px) {
    .hero-slide { padding: 70px 16px 80px; }
    .hero-content h1 { font-size: 1.7rem; }
    .program-card { height: 160px; }
}

/* ===== cookies ===== */
@media (max-width: 767.98px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
    }
}
/* ===== NOTÍCIA EM DESTAQUE (grid) ===== */
.news-section--featured {
    background-color: #fff;
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card-featured {
    grid-column: 1 / -1;
    background: #f4f4f4;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 320px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.news-card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-featured .news-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.news-card-featured .news-body h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

.news-card-featured .news-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.news-card-featured .news-body a {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f5a623;
    text-decoration: none;
}

.news-card-small {
    background: #f4f4f4;
    border-radius: 16px;
    min-height: 140px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .news-card-featured { grid-template-columns: 1fr; min-height: auto; }
    .news-card-featured img { height: 220px; }
}

@media (max-width: 767px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}