/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-display: swap;
}

img {
    max-width: 100%;
    height: auto;
    content-visibility: auto; /* Optimization for off-screen images */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Color Variables */
:root {
    --primary-color: #0A2A66;
    --primary-dark: #071C47;
    --primary-light: #0A5CBF;
    --secondary-color: #0A5CBF;
    --accent-color: #288038;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F4F6FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    /* Cor lisa, sem gradientes */
    --gradient: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(10, 42, 102, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    z-index: 1002;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    flex-shrink: 0;
    margin-right: 32px;
}

.nav-logo .logo {
    height: 56px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- Nav dropdowns --- */
.nav-item.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Fixed-height row holding just the label + arrow, kept separate from
   .nav-dropdown below it so the arrow's absolute position never shifts
   as the accordion panel grows/shrinks on mobile. */
.nav-item-head {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    color: var(--text-dark);
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle i {
    transition: transform 0.25s ease;
}

.nav-item.has-dropdown:hover .dropdown-toggle,
.nav-item.dropdown-open .dropdown-toggle {
    color: var(--primary-color);
}

.nav-item.has-dropdown:hover .dropdown-toggle i,
.nav-item.dropdown-open .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 15px;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
}

/* Hover bridge to the dropdown panel */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.dropdown-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li + li {
    margin-top: 2px;
}

/* Temporarily disabled nav-dropdown entries — kept in the markup, hidden here. */
.nav-item-disabled {
    display: none;
}

.iso-docs-disabled {
    display: none;
}

.nav-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
}

.nav-dropdown a:hover {
    background: rgba(10, 42, 102, 0.08);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1003;
}

.hamburger:hover {
    background: rgba(10, 42, 102, 0.1);
}

.hamburger:active {
    background: rgba(10, 42, 102, 0.2);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hero.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: none;
    border-radius: 50%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 1s ease 0.4s both;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.btn-hero {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
}

.btn-hero i {
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: fadeInRight 1s ease 0.6s both;
    padding: 20px;
}

.hero-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section - New Card Layout */
.about-new {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-intro-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 42, 102, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.about-intro-card h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-intro-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-description-card {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 42, 102, 0.15);
    margin-bottom: 50px;
}

.about-description-card p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 42, 102, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(10, 42, 102, 0.15);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 42, 102, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.about-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(10, 42, 102, 0.15);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.about-service-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* About Section - Old (mantido para compatibilidade) */
.about {
    background: var(--gradient);
    background-image: url('../assets/2.pg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: hwb(204 41% 6%);
    padding: 120px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: start;
    gap: 20px;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.feature h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-light);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Services Section */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .service-card {
        padding: 30px 20px;
    }

    .service-card h3,
    .service-card p,
    .service-card li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Cartão de serviço em destaque, largura total (ex: Bolsas de Estudo) */
.service-featured {
    margin-bottom: 50px;
    background: var(--primary-color);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.25);
}

.service-featured-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
}

.service-featured-content {
    flex: 1;
}

.service-featured-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.service-featured-content h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.service-featured-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    line-height: 1.7;
}

.service-featured-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-featured-content li {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
    position: relative;
    padding-left: 22px;
}

.service-featured-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

.service-featured .service-cta {
    margin-top: 0;
    justify-content: flex-start;
}

@media screen and (max-width: 768px) {
    .service-featured {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }

    .service-featured .service-cta {
        justify-content: center;
    }
}

.services-gallery {
    padding: 60px 20px;
    background-color: #f7f6fb;
    text-align: center;
}

.services-gallery .gallery-title {
    font-size: 2.2rem;
    color: #6251c0;
    margin-bottom: 50px;
    font-weight: 600;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: all 0.3s ease;
    max-width: 300px;
    flex: 1 1 250px;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 200px;
    /* todas as imagens iguais */
    object-fit: contain;
    /* como é PNG, mantém proporção e transparência */
    border-radius: 15px;
    background: #fff;
    /* fundo branco para não ficar estranho se PNG tiver transparência */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.2);
}

/* Projects Section */
.projects {
    background: var(--bg-light);
}

/* All project cards full-width */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.2);
}

.project-image {
    background: var(--gradient);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Cartão de projecto em destaque (ex: ISO 21001), com galeria de media */
.project-card-featured {
    position: relative;
    border: 2px solid #2563eb;
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nota de estado do projecto (Concluído / Em Curso) */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-status-done {
    background: #dcfce7;
    color: #15803d;
}

.project-status-progress {
    background: #fef3c7;
    color: #b45309;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn-project-secondary,
.btn-project-media {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-project-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-project-secondary:hover {
    background: var(--bg-light);
}

.btn-project-media {
    background: #2563eb;
    color: #fff;
    border: none;
}

.btn-project-media:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* === MODAL DE GALERIA (fotos + vídeos) === */
.media-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.media-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.media-modal-container {
    background: #fff;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.media-modal-overlay.active .media-modal-container {
    transform: translateY(0);
}

.media-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    background: #0a2540;
    color: #fff;
    flex-shrink: 0;
}

.media-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-modal-header h3 i {
    color: #60a5fa;
}

.media-modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.media-modal-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 14px 26px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.media-modal-body {
    padding: 26px;
    overflow-y: auto;
}

.media-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.media-group-title:not(:first-child) {
    margin-top: 30px;
}

.media-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.media-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: var(--bg-light);
    cursor: pointer;
    padding: 0;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.25);
    color: #fff;
    font-size: 1.4rem;
}

.media-thumb-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-light);
}

.media-thumb-placeholder i {
    font-size: 1.6rem;
}

/* Enquanto não houver ficheiro real, mostra o aviso "Em breve" */
.media-thumb-empty img {
    display: none;
}

.media-thumb-empty .media-thumb-play {
    display: none;
}

.media-thumb-empty .media-thumb-placeholder {
    display: flex;
}

.media-viewer {
    display: none;
    padding: 26px;
    overflow-y: auto;
}

.media-viewer.active {
    display: block;
}

.media-viewer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 0;
}

.media-viewer-fase {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin: 0 0 12px;
}

.media-viewer-fase:empty {
    display: none;
}

.media-viewer-stage {
    position: relative;
    background: #0a2540;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-stage img,
.media-viewer-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-viewer-stage.media-viewer-empty::after {
    content: 'Ficheiro ainda não disponível';
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}

.media-viewer-caption {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.media-viewer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.media-viewer-nav-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.media-viewer-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.media-viewer-counter {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .media-modal-container {
        max-height: 94vh;
    }

    .media-modal-body {
        padding: 18px;
    }

    .media-group-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .media-viewer {
        padding: 18px;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

/* lista de contactos com etiqueta (Geral, Móvel, Célia...) */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    color: var(--text-light);
    line-height: 1.6;
    padding: 4px 0;
}

.contact-list li + li {
    border-top: 1px solid #eef0f4;
}

.contact-label {
    flex-shrink: 0;
    min-width: 96px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
}

.contact-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 42, 102, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-logo img {
    height: 72px;
    width: auto;
}

.footer-logo h3 {
    color: white;
    font-size: 1.4rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6FCF86;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a.social-fb {
    background: #1877F2;
}

.social-links a.social-ig {
    background: #E1306C;
}

.social-links a:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9CA3AF;
}

.footer-legal {
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid #4B5563;
    font-size: 0.88rem;
    color: #9CA3AF;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Page Header */
.page-header {
    background: var(--gradient);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 102, 0.45);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Mission Vision Values */
.mission-vision {
    padding: 100px 0;
    background: var(--bg-light);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mvv-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    text-align: center;
}

.mvv-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.mvv-icon i {
    font-size: 2rem;
    color: white;
}

.mvv-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mvv-card p {
    color: var(--text-light);
}

.mvv-card ul {
    list-style: none;
    text-align: left;
}

.mvv-card li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Team Section */
.team {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-member {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 140px;
    height: 140px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.member-photo i {
    font-size: 3.2rem;
    color: white;
}

.member-photo a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-photo a:hover,
.member-photo a:focus-visible {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.team-member h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.member-role {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Project Details */
.project-details {
    margin: 20px 0;
}

.project-details h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.project-details ul {
    list-style: none;
    margin-bottom: 15px;
}

.project-details li {
    color: var(--text-light);
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.project-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Form Enhancements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-contact a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--accent-color);
}

.social-links-contact a.social-fb i {
    color: #1877F2;
}

.social-links-contact a.social-ig i {
    background: #E1306C;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-grid {
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.map-grid .map-placeholder {
    padding: 40px 30px;
}

.map-grid .map-placeholder i {
    font-size: 2.8rem;
}

.map-placeholder {
    background: white;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(10, 42, 102, 0.1);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Service CTA */
.service-cta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Botão de info no canto do cartão — abre o modal com a descrição completa */
.service-info-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.service-info-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* === MODAL DE INFORMAÇÃO DO SERVIÇO === */
.service-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.service-info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-info-container {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-info-overlay.active .service-info-container {
    transform: translateY(0);
}

.service-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    background: var(--primary-color);
    color: #fff;
    flex-shrink: 0;
}

.service-info-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.service-info-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.service-info-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.service-info-body {
    padding: 28px;
    overflow-y: auto;
}

.service-info-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-info-body ul {
    list-style: none;
    margin-bottom: 6px;
}

.service-info-body li {
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 22px;
    line-height: 1.5;
}

.service-info-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-info-body .service-cta {
    justify-content: flex-start;
    margin-top: 26px;
}

/* Hero Enhancements */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    color: #FFD700;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    opacity: 0.85;
}

/* Trusted Companies Section */
.trusted-companies {
    background: #f8f9fa;
    padding: 80px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trusted-header {
    text-align: center;
    margin-bottom: 50px;
}

.trusted-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.trusted-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.trusted-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 42, 102, 0.12);
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-wrapper:hover img {
    filter: grayscale(0%);
}

.logo-wrapper.abbrev {
    background: var(--primary-color);
    border: none;
}

.abbrev-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.logo-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.4;
    max-width: 180px;
}

.growth-percentage {
    position: absolute;
    bottom: -30px;
    right: 0;
    background: rgba(10, 42, 102, 0.85), ;
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Value Proposition */
.value-proposition {
    padding: 100px 0;
    background: var(--bg-light);
}

.value-content {
    text-align: center;
}

.value-text {
    margin-bottom: 60px;
}

.value-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Impact Numbers */
.impact-numbers {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.number-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.number-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.number-icon i {
    font-size: 2rem;
    color: white;
}

.number-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.number-suffix {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.8;
}

.number-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.number-detail {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: transform 0.3s ease;
}

.service-highlight:hover {
    transform: translateY(-5px);
}

.service-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-benefits {
    list-style: none;
    margin-bottom: 25px;
}

.service-benefits li {
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--accent-color);
}

/* Industries */
.industries {
    padding: 100px 0;
    background: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
}

.industry-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.industry-icon i {
    font-size: 1.8rem;
    color: white;
}

.industry-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.industry-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.industry-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.industry-stats span {
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Methodology - New Design */
.methodology-new {
    padding: 100px 0;
    background: var(--bg-light);
}

.guarantee-card {
    background: var(--primary-color);
    padding: 40px 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    box-shadow: 0 15px 50px rgba(10, 42, 102, 0.2);
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-icon i {
    font-size: 2.5rem;
    color: white;
}

.guarantee-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.guarantee-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.method-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.method-step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.08);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.method-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.15);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-light);
    line-height: 1;
}

.step-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.step-icon-circle i {
    font-size: 2rem;
    color: white;
}

.method-step-card h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.method-step-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.step-duration-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Methodology - Old (mantido para compatibilidade) */
.methodology {
    padding: 100px 0;
}

.method-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.method-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-text p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-highlight {
    display: flex;
    align-items: start;
    gap: 20px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.method-highlight i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.method-highlight h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-highlight p {
    color: var(--text-light);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-step {
    display: flex;
    align-items: start;
    gap: 25px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(10, 42, 102, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.method-step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.method-step p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.step-duration {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Testimonials Home */
.testimonials-home {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.1);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.quote-icon i {
    font-size: 1.5rem;
    color: white;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
}

.result-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Final CTA */
.final-cta {
    background: var(--gradient);
    color: white;
    padding: 100px 0;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-benefit i {
    color: #4ADE80;
    font-size: 1.2rem;
}

.cta-benefit span {
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-action {
    text-align: center;
}

.cta-urgency {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.cta-urgency i {
    color: #FFA500;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.cta-guarantee {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.cta-guarantee i {
    color: #4ADE80;
    margin-right: 8px;
}

.cta-contact p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.phone-number {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.phone-number:hover {
    opacity: 0.8;
}

/* Mobile Menu Styles */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .hamburger {
        padding: 8px;
    }
}

/* No forced hyphenation */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
li,
a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    /* Garantir padding em todos os containers */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Garantir que todo texto tenha espaço */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    p,
    span,
    li {
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hamburger {
        display: flex !important;
        z-index: 1003;
        position: relative;
        order: 2;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .nav-container {
        position: relative;
        width: 100%;
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-menu.active .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 15px 20px;
        display: block;
        border-radius: 10px;
        margin: 0 20px;
        transition: all 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--gradient);
        color: white;
        transform: translateY(-2px);
    }

    /* Label stays centered like every other nav item on mobile. */
    .nav-item.has-dropdown {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item-head {
        width: 100%;
    }

    .nav-item.has-dropdown .nav-link {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    /* No accordion on mobile — the arrow is removed and every submenu is
       shown right away once the hamburger menu opens. */
    .dropdown-toggle {
        display: none;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(10, 42, 102, 0.05);
        width: 90%;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 8px 10px;
        text-align: center;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown a {
        padding: 12px 14px;
        font-size: 1rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hamburger {
        transition: all 0.3s ease;
    }

    .hamburger.active {
        transform: rotate(90deg);
    }

    .hamburger .bar {
        transition: all 0.3s ease;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Navbar background on mobile */
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-illustration {
        padding: 10px;
    }

    .hero-svg {
        max-width: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }

    .about-text {
        padding: 0 10px;
    }

    .about-text h2,
    .about-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        padding: 0 10px;
    }

    .stat {
        padding: 20px 15px;
    }

    .stat-number,
    .stat-label {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Garantir padding em todos os cards */
    .service-card,
    .project-card,
    .value-item,
    .industry-card,
    .number-card {
        margin: 0 5px 20px 5px;
        padding: 30px 20px;
    }

    .service-card h3,
    .service-card p,
    .project-card h3,
    .project-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 5px;
    }

    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .page-header {
        padding: 120px 20px 80px;
    }

    .page-header h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .page-header p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .mvv-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .mvv-card h3,
    .mvv-card p,
    .mvv-card li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }

    .feature {
        padding: 0 10px;
    }

    .feature h4,
    .feature p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* New About Cards - Responsive */
    .about-intro-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .about-intro-card h2 {
        font-size: 1.8rem;
    }

    .about-description-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-service-card {
        padding: 30px 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .trust-logos {
        justify-content: center;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .service-highlight {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
    }

    .service-highlight h3,
    .service-highlight p,
    .service-highlight li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .method-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .method-text h2,
    .method-text p,
    .method-highlight h4,
    .method-highlight p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* New Methodology - Responsive */
    .guarantee-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .guarantee-icon {
        width: 70px;
        height: 70px;
    }

    .guarantee-icon i {
        font-size: 2rem;
    }

    .guarantee-content h3 {
        font-size: 1.5rem;
    }

    .guarantee-content p {
        font-size: 1rem;
    }

    .method-steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .method-step-card {
        padding: 35px 25px;
    }

    .step-number {
        font-size: 2.5rem;
        top: 15px;
        right: 15px;
    }

    .method-step-card h4 {
        font-size: 1.2rem;
    }

    .testimonial-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testimonial-card p,
    .testimonial-card h3,
    .testimonial-card h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .cta-text h2 {
        font-size: 2.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .cta-text p,
    .cta-benefit span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .trusted-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .abbrev-text {
        font-size: 1.5rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .method-content {
        gap: 40px;
    }

    .cta-content {
        gap: 40px;
    }

    .testimonial-card {
        padding: 40px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 15px;
        justify-content: center;
    }

    .hero-stat {
        min-width: 130px;
        padding: 18px 24px;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    .hero-stat .stat-label {
        font-size: 0.85rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .hero-svg {
        max-width: 280px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .service-highlight {
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .value-text h2 {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .value-text p,
    .value-item h4,
    .value-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .method-text h2 {
        font-size: 2rem;
    }

    .hamburger .bar {
        width: 30px;
    }

    .trusted-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .abbrev-text {
        font-size: 1.3rem;
    }

    .logo-caption {
        font-size: 0.75rem;
    }

    .trusted-header h3 {
        font-size: 1.5rem;
    }

    /* New About Cards - Mobile Small */
    .about-intro-card h2 {
        font-size: 1.5rem;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card .stat-number {
        font-size: 2rem;
    }

    /* New Methodology - Mobile Small */
    .guarantee-card {
        padding: 25px 15px;
    }

    .guarantee-content h3 {
        font-size: 1.3rem;
    }

    .guarantee-content p {
        font-size: 0.95rem;
    }

    .method-step-card {
        padding: 30px 20px;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-icon-circle {
        width: 70px;
        height: 70px;
    }

    .step-icon-circle i {
        font-size: 1.8rem;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Above everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-cta {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(10, 42, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    animation: pulseCTA 2s infinite;
}

@keyframes pulseCTA {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(10, 42, 102, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(10, 42, 102, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(10, 42, 102, 0.3);
    }
}

.modal-cta:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: white;
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 20px;
}

@media (max-width: 480px) {
    .modal-cta {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* --- Webinar Section --- */
.webinar-section {
    position: relative;
    padding: 100px 0;
    background: url('../assets/fundo.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    overflow: hidden;
}

.webinar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 38, 113, 0.95);
    /* Deep blue with 95% opacity */
    z-index: 1;
}

.webinar-section .container {
    position: relative;
    z-index: 2;
}

.webinar-header {
    margin-bottom: 60px;
}

.webinar-main-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: #FFD700;
    /* Vibrant yellow */
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.webinar-subtitle-1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.webinar-subtitle-2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.webinar-edition-title {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.webinar-edition-info {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 15px;
}

.team-lead {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.speaker-card-lead {
    width: 100%;
    max-width: 320px;
}

.webinar-editions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 80px;
}

.webinar-edition-status {
    max-width: 320px;
}

.webinar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.webinar-status-badge.is-done {
    background: rgba(255, 255, 255, 0.15);
    color: #6FCF86;
    border: 1px solid rgba(111, 207, 134, 0.5);
}

/* 4 speakers laid out 2x2 (the avatar floats above each card, so rows need
   extra gap to not overlap the row above) */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 30px;
    margin-top: 100px;
    margin-bottom: 60px;
    padding: 0 10px;
}

.speaker-card {
    background: #F8F9FA;
    border-radius: 20px;
    padding: 80px 20px 30px;
    position: relative;
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    animation: fadeInUp 1s ease both;
    cursor: pointer;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.bio-hint {
    margin-top: auto;
    font-size: 0.8rem;
    color: #1d2671;
    font-weight: 700;
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.speaker-card:hover .bio-hint {
    opacity: 1;
    color: #c33764;
}

.speaker-card:nth-child(1) {
    animation-delay: 0.1s;
}

.speaker-card:nth-child(2) {
    animation-delay: 0.3s;
}

.speaker-card:nth-child(3) {
    animation-delay: 0.5s;
}

.speaker-card:nth-child(4) {
    animation-delay: 0.7s;
}

.speaker-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: #ffffff;
}

.speaker-card:hover .speaker-avatar-wrapper {
    transform: translateX(-50%) translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.4);
}

.speaker-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #FFD700 50%);
    border-bottom-right-radius: 20px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.speaker-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.speaker-avatar-wrapper {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 8px;
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(29, 38, 113, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speaker-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.speaker-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d2671;
    margin-bottom: 5px;
    line-height: 1.2;
}

.speaker-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.speaker-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
    text-align: center;
}

.btn-webinar {
    display: inline-block;
    margin-top: 20px;
    background: var(--accent-color);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(40, 128, 56, 0.35);
    border: 2px solid var(--accent-color);
}

.btn-webinar:hover {
    background: #1F6B2E;
    border-color: #1F6B2E;
    color: #fff;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 40px rgba(40, 128, 56, 0.5);
}

@media (max-width: 768px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 100px 0;
    }

    .webinar-main-title {
        font-size: 2.5rem;
    }
}

/* --- Bio Modal Styles --- */
.bio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bio-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bio-modal-container {
    background: white;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bio-modal-overlay.active .bio-modal-container {
    transform: translateY(0);
}

.bio-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: 0.2s;
    z-index: 2;
}

.bio-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.bio-modal-content {
    padding: 40px;
}

.bio-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.bio-modal-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1d2671;
    flex-shrink: 0;
}

.bio-modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-modal-info h3 {
    font-size: 1.4rem;
    color: #1d2671;
    margin-bottom: 5px;
}

.bio-modal-info span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.bio-modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 20px;
}

.bio-modal-footer {
    text-align: right;
}

.bio-modal-btn {
    background: #1d2671;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.bio-modal-btn:hover {
    background: #c33764;
    transform: translateY(-2px);
}

@media (max-width: 500px) {
    .bio-modal-header {
        flex-direction: column;
        text-align: center;
    }
    .bio-modal-content {
        padding: 30px 20px;
    }
}

/* --- Process-step photo gallery modal --- */
.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-container {
    background: white;
    width: 100%;
    max-width: 720px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: max-width 0.35s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-modal-overlay.active .gallery-modal-container {
    transform: translateY(0);
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: 0.2s;
    z-index: 2;
}

.gallery-modal-close:hover {
    background: white;
    color: #0f172a;
}

.gallery-modal-header {
    padding: 22px 60px 18px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.gallery-modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.gallery-modal-photo-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--bg-light);
}

.gallery-modal-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Clicking the photo enlarges it (see toggleGalleryZoom in the ISO page script) */
.gallery-modal-container.zoomed {
    max-width: 1100px;
}

.gallery-modal-container.zoomed .gallery-modal-photo-wrapper {
    aspect-ratio: auto;
    height: 80vh;
}

.gallery-modal-container.zoomed .gallery-modal-photo-wrapper img {
    object-fit: contain;
    cursor: zoom-out;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery-modal-nav:hover {
    background: white;
}

.gallery-modal-nav.prev {
    left: 14px;
}

.gallery-modal-nav.next {
    right: 14px;
}

.gallery-modal-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.gallery-modal-caption {
    padding: 18px 28px 26px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== */
/* Scholarships Page     */
/* ==================== */
.scholarships-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.lang-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(10, 42, 102, 0.08);
}

.lang-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(10, 42, 102, 0.25);
}

.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
    animation: fadeInUp 0.5s ease both;
}

.scholarship-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.scholarship-intro h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Small uppercase label above a section title (e.g. "Educação Global") */
.section-eyebrow {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scholarship-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.scholarship-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scholarship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.2);
}

/* Top accent bar shared by every "info card" style on this page */
.scholarship-card::before,
.program-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

/* Circular icon badge shared by every "info card" style on this page */
.card-icon-badge {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-badge i {
    font-size: 1.4rem;
    color: white;
}

.scholarship-card .card-icon-badge {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
}

.scholarship-card .card-icon-badge i {
    font-size: 1.6rem;
}

.scholarship-card h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.scholarship-card p,
.scholarship-card li {
    color: var(--text-light);
    line-height: 1.7;
}

.scholarship-card ul {
    list-style: none;
}

.scholarship-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.scholarship-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.scholarship-cta {
    text-align: center;
}

.btn-scholarship {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-scholarship:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.4);
}

/* --- Scholarships page header --- */
.scholarships-header {
    background: var(--bg-white);
    color: var(--text-dark);
}

.scholarships-header::before {
    display: none;
}

/* Language switcher pinned to the top-right corner of the header */
.scholarships-header .lang-toggle {
    position: absolute;
    top: 18px;
    right: 24px;
    margin-bottom: 0;
    gap: 8px;
    z-index: 3;
}

.scholarships-header .lang-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
}

.scholarships-hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.scholarships-hero-row .scholarships-logo {
    display: block;
    width: 170px;
    max-width: 35vw;
    height: auto;
    flex-shrink: 0;
}

.hero-slideshow {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 160px;
    overflow: hidden;
}

/* Slides cross-fade right-to-left */
.hero-slide {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 4px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-slide-text {
    color: var(--text-light);
    line-height: 1.6;
}

.hero-slide-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
    z-index: 2;
}

.hero-slide-nav:hover {
    background: rgba(10, 42, 102, 0.1);
}

.hero-slide-nav.prev {
    left: 0;
}

.hero-slide-nav.next {
    right: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

@media (max-width: 768px) {
    .scholarships-hero-row {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .scholarships-hero-row .scholarships-logo {
        width: 130px;
        max-width: 55vw;
    }

    .hero-slideshow {
        width: 100%;
        min-height: 240px;
    }
}

/* --- "Our International Partner" closing note --- */
.partner-intro-block {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 30px;
}

/* --- Mission & Vision cards --- */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mission-vision-card {
    background: var(--gradient);
    color: white;
    padding: 35px 30px;
    border-radius: 20px;
}

.mission-vision-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-vision-card p {
    font-style: italic;
    line-height: 1.7;
    opacity: 0.95;
}

/* --- "Why choose" checklist --- */
.why-choose-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 60px;
}

.why-choose-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.6;
}

.why-choose-list li:last-child {
    border-bottom: none;
}

.why-choose-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

/* --- Core values grid --- */
/* 8 values laid out 4-4 on desktop so the grid reads as two even rows
   instead of wrapping unevenly. */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.08);
    text-align: center;
}

.value-card h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Study program categories --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.program-category {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.08);
    position: relative;
    overflow: hidden;
}

/* Icon badge, sized up for the grid */
.program-category .card-icon-badge {
    width: 70px;
    height: 70px;
    margin-bottom: 22px;
}

.program-category .card-icon-badge i {
    font-size: 1.6rem;
}

.program-category h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.program-category p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Bolsas: barra de filtros (país + área) --- */
.bolsas-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 45px;
}

.bolsas-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.bolsas-filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bolsas-filter-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
}

.bolsas-filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Bolsas/destinos --- */
/* auto-fit stretches a single leftover grid item to fill the whole row (e.g.
   filtering down to one country) — cap it so it doesn't blow up in size. */
.bolsa-card {
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.bolsa-card::before {
    display: none;
}

.bolsa-card:hover {
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.18);
}

.bolsa-banner {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--bg-light);
}

.bolsa-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bolsa-flag {
    position: absolute;
    right: 20px;
    bottom: -18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bolsa-flag .fi {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.bolsa-card-body {
    padding: 30px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bolsa-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 18px 0;
}

.bolsa-prazo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.bolsa-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bolsa-apply-btn:hover {
    transform: translateY(-3px);
    background: #003c8c;
    box-shadow: 0 10px 20px rgba(10, 42, 102, 0.3);
}

.bolsas-empty-state {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

/* --- "Not sure which scholarship?" panel --- */
.bolsas-help-cta {
    background: rgba(10, 42, 102, 0.05);
    border: 1px solid rgba(10, 42, 102, 0.15);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    margin-bottom: 60px;
}

.bolsas-help-cta h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.bolsas-help-cta h4 i {
    color: var(--primary-color);
    margin-right: 6px;
}

.bolsas-help-cta p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.7;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-portal:hover {
    transform: translateY(-3px);
    background: #003c8c;
    box-shadow: 0 10px 20px rgba(10, 42, 102, 0.3);
}

/* --- Student testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.08);
    position: relative;
}

.testimonial-card p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-card h6 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-card span {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* --- Card hover lift --- */
.scholarships-section .value-card,
.scholarships-section .program-category,
.scholarships-section .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scholarships-section .value-card:hover,
.scholarships-section .program-category:hover,
.scholarships-section .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 42, 102, 0.15);
}

/* --- Filter selects glow on focus instead of just swapping border colour --- */
.bolsas-filter-group select:focus {
    box-shadow: 0 0 0 4px rgba(10, 42, 102, 0.12);
}

@media (max-width: 768px) {
    .scholarship-grid {
        grid-template-columns: 1fr;
    }

    .scholarships-section {
        padding: 70px 0;
    }

    .mission-vision-grid,
    .programs-grid,
    .values-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .bolsas-filter-group {
        min-width: 100%;
    }
}
/* Transition CEMOQE -> KNOWLEDGE */
.transition-banner {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
}
.transition-banner a {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
    font-weight: 600;
}

.footer-logo img[src*="knowledge-logo"] {
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
}

.footer-logo img[src*="knowledge-logo"] {
    height: auto;
    width: 140px;
    max-width: 100%;
}
@media (max-width: 768px) {
    .nav-logo {
        margin-right: 0;
    }
    .nav-logo .logo {
        height: auto;
        max-height: 40px;
        max-width: 60vw;
    }
}
.kn-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.kn-area {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    scroll-margin-top: 100px;
}
.kn-area h3 {
    margin: 12px 0 8px;
}
.kn-area > p {
    color: var(--text-light);
    margin-bottom: 12px;
}
.kn-area ul {
    padding-left: 20px;
    margin: 0 0 12px;
}
.kn-area li {
    margin-bottom: 6px;
}
.kn-chain {
    font-weight: 600;
    color: var(--primary-color);
}
.kn-note {
    color: var(--text-light);
    font-style: italic;
}

/* Faixa de transição: fixa por cima do menu */
:root { --banner-h: 40px; }
body.has-banner { padding-top: var(--banner-h); }
body.has-banner .navbar { top: var(--banner-h); }
.transition-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--banner-h);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
}
@media (max-width: 768px) {
    .transition-banner { font-size: 0.8rem; }
    .tb-extra { display: none; }
    body.has-banner .nav-menu {
        top: calc(80px + var(--banner-h));
        height: calc(100vh - 80px - var(--banner-h));
    }
}

/* Campo isca anti-spam: fora do ecrã (sem display:none, que alguns robôs ignoram) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Páginas legais (política de privacidade) */
.legal-content { padding: 60px 0 80px; }
.legal-content .container { max-width: 820px; }
.legal-content h2 { margin: 32px 0 10px; color: var(--primary-color); font-size: 1.25rem; }
.legal-content p, .legal-content li { line-height: 1.7; color: var(--text-dark); }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--primary-color); text-decoration: underline; }
.legal-updated { color: var(--text-light); font-size: 0.9rem; }
.footer-bottom a.footer-legal { color: inherit; text-decoration: underline; }

/* Tema KNOWLEDGE: botão de ação verde (cor do logótipo) com texto branco */
.btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(40, 128, 56, 0.35);
}

.btn-primary:hover {
    background: #1F6B2E;
    color: #fff;
    box-shadow: 0 8px 25px rgba(40, 128, 56, 0.5);
}

/* verde em texto sobre fundo claro precisa de mais contraste */
.service-link:hover,
.social-links-contact a:hover {
    color: #1F6B2E;
}
