/* Reset e Custom Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f3f5;
}
::-webkit-scrollbar-thumb {
    background: #0f2c59;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #173d73;
}

:root {
    --primary-color: #0f2c59; 
    --secondary-color: #8a9ba8; 
    --light-bg: #f8fafc; 
    --text-color: #333333;
    --accent-color: #28a745; 
    --card-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(15, 44, 89, 0.08);
    --shadow-lg: 0 15px 35px rgba(15, 44, 89, 0.15);
}

body {
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Top-bar */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left {
    display: flex; 
    align-items: center; 
    gap: 15px;
    color: #ffffff;
}

.btn-contrast-toggle {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-contrast-toggle:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.top-bar-socials {
    display: flex;
    gap: 20px;
}

.top-bar a {
    text-decoration: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-bar a.whatsapp-link:hover { color: #25D366; }
.top-bar a.instagram-link:hover { color: #E1306C; }

/* Header com Logo e Endereço */
header {
    background: rgba(232, 240, 248, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
    flex-wrap: wrap;
    gap: 15px;
}

.header-brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: fit-content;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-container img {
    max-height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.02);
}

.header-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
    max-width: 320px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.header-address i {
    font-size: 19px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-address:hover {
    background-color: rgba(15, 44, 89, 0.06);
    transform: translateY(-1px);
}

.header-address:hover i {
    transform: scale(1.15);
}

.header-address strong {
    color: var(--primary-color);
    display: block;
    font-size: 11.5px;
    font-weight: 700;
}

/* Menu de Navegação */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s, transform 0.2s;
    cursor: pointer;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-portal-nav {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600 !important;
    background: transparent;
    transition: all 0.3s ease !important;
}

.btn-portal-nav:hover {
    background-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 15px rgba(15, 44, 89, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hidden { display: none !important; }

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

/* Carrossel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 44, 89, 0.65);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: #ffffff;
    width: 24px;
    border-radius: 10px;
}

/* Secção Quem Somos */
.about-section-home {
    background-color: #e8f0f8;
    padding: 80px 10%;
    text-align: center;
    border-bottom: 1px solid #cbd5e1;
}

.about-card {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 45px;
    border-radius: var(--card-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.about-card h2 {
    font-size: 34px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.about-card h2::after {
    content: '';
    width: 45px;
    height: 3px;
    background-color: var(--accent-color); 
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-card p {
    font-size: 16.5px;
    line-height: 1.85;
    color: #4a5568;
    margin-top: 18px;
}

/* Missão, Visão e Valores */
.mvv-section-home {
    padding: 80px 10%;
    background-color: #ffffff;
}

.mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.mvv-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--card-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mvv-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.mvv-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.mvv-box:hover::before {
    transform: scaleX(1);
}

.mvv-icon-box {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a498b 100%);
    width: 75px;
    height: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(15, 44, 89, 0.2);
}

.mvv-box:hover .mvv-icon-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, #218838 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.mvv-box h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mvv-box p {
    font-size: 14.5px;
    color: #555;
    line-height: 1.7;
}

.valores-home-list {
    list-style: none;
    text-align: left;
    margin-top: 5px;
}

.valores-home-list li {
    font-size: 13.5px;
    color: #555;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-color);
    line-height: 1.6;
}

.valores-home-list strong { color: var(--primary-color); }

/* Fundadores */
.founders-section {
    padding: 80px 10%;
    background-color: var(--light-bg);
    text-align: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.founders-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.founders-section h2::after {
    content: '';
    width: 45px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.founders-section > p {
    color: #666;
    margin-bottom: 50px;
    font-size: 17px;
    margin-top: 15px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.founder-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 380px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.founder-img-container {
    width: 100%;
    height: 100%;
    display: block;
}

.founder-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.founder-card:hover .founder-img-container img {
    transform: scale(1.08);
    filter: blur(4px) brightness(0.4);
}

.founder-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 89, 0.85);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    transform: translateY(30px);
    overflow-y: auto;
}

.founder-card:hover .founder-info-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.founder-info-overlay .founder-name {
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.founder-info-overlay .founder-title {
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.founder-info-overlay .founder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.founder-info-overlay .founder-badge-tag {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.founder-info-overlay .founder-bio {
    font-size: 14.5px;
    line-height: 1.7;
    color: #e2e8f0;
    text-align: center;
}

.founder-info-overlay .founder-bio p {
    margin-bottom: 12px;
}
.founder-info-overlay .founder-bio p:last-child {
    margin-bottom: 0;
}

/* Áreas de Atuação */
.pillars {
    padding: 90px 10%;
    background-color: #e8f0f8;
    text-align: center;
    color: var(--text-color);
    border-bottom: 1px solid #cbd5e1;
}

.pillars h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillars > p {
    color: #4a5568;
    margin-bottom: 60px;
    font-size: 17px;
}

.grid-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 5px solid var(--accent-color);
    text-align: center;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pillar-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-card p {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.6;
}

/* Programas Educacionais da Home */
.courses-section-home {
    padding: 90px 10%;
    background-color: var(--light-bg);
    text-align: center;
}

.courses-section-home h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.courses-section-home h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.courses-section-home > p {
    color: #666;
    margin-bottom: 45px;
    font-size: 18px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    margin-top: 25px;
}

/* Botões Estilo Pílula */
.btn-all-courses, .btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 44, 89, 0.25);
    border: none;
}

.btn-all-courses { margin-bottom: 10px; }
.btn-back-home { margin-bottom: 30px; }

.btn-all-courses:hover, .btn-back-home:hover {
    background-color: #173d73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 44, 89, 0.35);
}

/* Blocos de Cursos */
.home-courses-block {
    max-width: 1100px;
    margin: 0 auto 50px;
    text-align: left;
}

.home-courses-title {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-color);
    width: fit-content;
}

.home-courses-title i { color: var(--accent-color); }

.grid-anhanguera.grid-home {
    grid-template-columns: repeat(3, 1fr);
}

/* Capas dos Cards */
.card-anhanguera .card-cover {
    margin: -28px -22px 18px -22px;
    height: 170px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-color: #e8f0f8;
}

.card-anhanguera .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.card-anhanguera:hover .card-cover img {
    transform: scale(1.05);
}

/* Sub-páginas e Grelha Geral */
#view-todos-cursos {
    background-color: #f8fafc;
    padding-bottom: 80px;
}

.subpage-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid-anhanguera {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 25px;
}

.card-anhanguera {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.card-anhanguera:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 44, 89, 0.12);
    border-color: #cbd5e1;
}

.card-anhanguera .card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 52px;
}

.card-anhanguera .card-category {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-anhanguera .card-pill-tag {
    display: inline-block;
    border: 1px solid #cbd5e1;
    color: var(--primary-color);
    background: #f8fafc;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    align-self: flex-start;
}

.card-anhanguera .card-info-item {
    font-size: 13px;
    color: #334155;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.card-anhanguera .card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-anhanguera .card-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.card-anhanguera .btn-pill-outline {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--accent-color);
    background: #ffffff;
    color: var(--accent-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.card-anhanguera .btn-pill-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.card-anhanguera .btn-link-simple {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    transition: color 0.2s;
    text-decoration: none;
}

.card-anhanguera .btn-link-simple:hover {
    color: var(--accent-color);
}

/* Detalhe do Curso */
.course-detail-container {
    padding: 50px 10%;
    max-width: 1280px;
    margin: 0 auto;
}

.course-header-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.course-title-area h1 {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
}

.course-subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.badge-spec {
    background: #f0f4f8;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
}

.course-side-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.course-side-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.course-side-body {
    padding: 25px;
}

.course-side-body h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.course-side-list {
    list-style: none;
    margin-bottom: 25px;
}

.course-side-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-side-list li i {
    color: var(--accent-color);
}

.btn-cta-course {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cta-course:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.course-description-box {
    background: #ffffff;
    padding: 35px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.course-description-box h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.course-description-box p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 18px;
}

.course-description-box p:last-child {
    margin-bottom: 0;
}

/* Matriz Curricular */
.curriculum-section {
    margin-top: 40px;
}

.curriculum-section h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.grid-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
}

.module-item-card {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.module-item-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.module-number {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

/* WhatsApp Flutuante */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-floating::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    z-index: -1;
    animation: pulseFlutuante 2s infinite;
}

.whatsapp-text-tooltip {
    position: absolute;
    right: 75px; 
    background-color: #25D366;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    transform: translateX(15px); 
}

.whatsapp-floating:hover .whatsapp-text-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes pulseFlutuante {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Banner de Cookies LGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111827;
    color: #ffffff;
    padding: 16px 10%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1500;
    box-sizing: border-box;
    border-top: 2px solid var(--accent-color);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #e2e8f0;
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-cookie-reject {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cookie-reject:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-cookie-accept {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    padding: 9px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Modal Políticas */
.politicas-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    padding: 35px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.politicas-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover { color: var(--primary-color); }

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.politicas-body {
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.7;
    font-size: 14px;
    color: #4a5568;
}

.tab-content h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.tab-content h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.tab-content p { margin-bottom: 12px; }

/* Modal Formulário */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
}

.hero-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 35px 35px 35px;
    border-radius: var(--card-radius);
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.btn-close-modal {
    position: absolute; top: 12px; right: 20px;
    font-size: 28px; font-weight: 700; color: #888;
    cursor: pointer; transition: color 0.2s ease; line-height: 1;
}

.btn-close-modal:hover { color: #dc3545; }

.hero-form h3 {
    margin-bottom: 20px; color: var(--primary-color);
    font-size: 22px; font-weight: 600; text-align: center;
}

.hero-form input, .hero-form select {
    width: 100%; padding: 14px; margin-bottom: 16px;
    border: 1px solid #cbd5e1; border-radius: 6px;
    font-size: 14px; background: #ffffff; transition: all 0.3s ease;
}

.hero-form input:focus, .hero-form select:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.1);
}

.hero-form button {
    width: 100%; padding: 14px;
    background-color: var(--accent-color); color: white;
    border: none; border-radius: 6px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.hero-form button:hover {
    background-color: #218838; transform: translateY(-1px);
}

/* Rodapé */
footer {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 60px 10% !important;
    text-align: center !important;
    font-size: 14px !important;
    border-top: 4px solid var(--accent-color) !important;
    margin-top: 0px !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

footer h3, footer p {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 8px auto !important;
    color: #ffffff !important;
}

footer p { opacity: 0.85; }

.footer-address {
    margin: 18px auto !important;
    display: inline-flex !important;
    justify-content: center !important;
}

.footer-address a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13.5px;
    transition: all 0.3s ease;
    max-width: 900px;
}

.footer-address a i {
    color: var(--accent-color);
    font-size: 18px;
    flex-shrink: 0;
}

.footer-address a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Alto Contraste */
body.high-contrast, body.high-contrast .pillars, body.high-contrast #view-todos-cursos, body.high-contrast #view-curso-detalhes {
    background: #000000 !important;
    background-color: #000000 !important;
}
body.high-contrast header, body.high-contrast .top-bar, body.high-contrast .hero-form,
body.high-contrast .pillar-card, body.high-contrast footer, body.high-contrast .mvv-box,
body.high-contrast .courses-section-home, body.high-contrast .founder-card, body.high-contrast .founders-section,
body.high-contrast .about-section-home, body.high-contrast .about-card,
body.high-contrast .founder-img-container, body.high-contrast .course-side-card,
body.high-contrast .course-description-box, body.high-contrast .module-item-card, body.high-contrast .card-anhanguera,
body.high-contrast .hero-carousel, body.high-contrast .carousel-slide {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.high-contrast a, body.high-contrast h1, body.high-contrast h2,
body.high-contrast h3, body.high-contrast h4, body.high-contrast h5,
body.high-contrast nav a, body.high-contrast strong,
body.high-contrast .module-title, body.high-contrast .card-anhanguera .card-title,
body.high-contrast .home-courses-title {
    color: #00f0ff !important;
}

body.high-contrast p, body.high-contrast li, body.high-contrast span {
    color: #ffffff !important;
}

body.high-contrast button, body.high-contrast .btn-portal-nav,
body.high-contrast .btn-contrast-toggle, body.high-contrast .badge-spec,
body.high-contrast .btn-cta-course, body.high-contrast .btn-all-courses, body.high-contrast .btn-back-home, body.high-contrast .btn-pill-outline {
    background-color: #000000 !important;
    color: #00f0ff !important;
    border: 2px solid #00f0ff !important;
}

/* Responsividade */
@media (max-width: 1100px) {
    .grid-anhanguera { grid-template-columns: repeat(2, 1fr); }
    .grid-anhanguera.grid-home { grid-template-columns: repeat(2, 1fr); }
    .course-header-grid { grid-template-columns: 1fr; }
    .header-address { display: none; }
}

@media (max-width: 900px) {
    .top-bar { flex-direction: column; gap: 15px; text-align: center; }
    .mobile-menu-btn { display: block; }
    nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: #e8f0f8;
        position: absolute;
        top: 100%; left: 0; padding: 20px 10%;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        gap: 15px; border-top: 1px solid #cbd5e1;
        border-bottom: 3px solid var(--primary-color);
        z-index: 999;
    }
    nav.active { display: flex; animation: slideDownMenu 0.3s ease-out forwards; }
    .grid-modules { grid-template-columns: 1fr; }
    .whatsapp-text-tooltip { display: none !important; }
}

@media (max-width: 650px) {
    .grid-anhanguera, .grid-anhanguera.grid-home { grid-template-columns: 1fr; }
    .hero-carousel, .carousel-slide img { height: 220px; }
    .founder-card { height: 340px; }
}
