:root {
    /* Brand Colors */
    --primary-dark: #010404;
    --light-gray: #E6E8E6;
    --green-1: #6FB03A;
    --green-2: #58AE69;
    --teal-blue: #31A8A8;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--green-1), var(--teal-blue));

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    /* Fallback for BioSans */
    --font-secondary: 'Montserrat', sans-serif;
    --font-impact: 'Bebas Neue', cursive;

    /* Shapes */
    --shape-radius: 24px 0 24px 0;
    /* Top-Left and Bottom-Right rounded, Top-Right and Bottom-Left square */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-dark);
    color: var(--light-gray);
    font-family: var(--font-secondary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Grids */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.grid-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(111, 176, 58, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(49, 168, 168, 0.15) 0%, transparent 50%);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.course-desc {
    font-size: 1rem;
    color: var(--light-gray);
    line-height: 1.5;
    margin-bottom: 20px;
}

.course-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    margin-top: 0;
}

.course-details.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.course-details h4 {
    color: var(--green-2);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.course-details ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.course-details ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.4;
}

.course-details ul li::before {
    content: "•";
    color: var(--teal);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Course Highlights */
.course-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.highlight-item {
    background: rgba(49, 168, 168, 0.1);
    border: 1px solid var(--teal-blue);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--green-2);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.highlight-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333333;
}

/* Faculty Carousel */
.faculty-group {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    margin-bottom: 25px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.carousel-btn {
    background: var(--primary-dark);
    border: 1px solid var(--green-2);
    color: var(--green-2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--green-2);
    color: var(--primary-dark);
}

.prev-btn {
    margin-right: 10px;
}

.next-btn {
    margin-left: 10px;
}

.faculty-avatars {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.faculty-avatars::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.faculty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 0 0 160px;
}

.faculty-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal-blue);
    background: rgba(255, 255, 255, 0.08);
}

.faculty-card img {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid var(--green-2);
}

.faculty-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faculty-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.faculty-title {
    font-size: 0.7rem;
    color: #555;
    line-height: 1.2;
}

/* Header */
.header {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.logo {
    height: 55px;
    /* Reduced from 80px */
    object-fit: contain;
}

.logo-divider {
    height: 40px;
    width: 2px;
    background-color: var(--teal);
}

.logo-anhanguera {
    height: 70px;
    /* Increased back to 70px for better visibility */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 100px 0;
    /* Fallback padding */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-title {
    font-size: 4.0rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.gradient-highlight {
    background: var(--brand-gradient);
    color: var(--primary-dark);
    padding: 5px 20px;
    display: inline-block;
    border-radius: var(--shape-radius);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 40px auto;
    color: #a0a0a0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-bottom-actions .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.hero-bottom-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.hero-bottom-actions .scroll-down-arrow {
    margin-top: 0;
}


.btn-primary {
    background: var(--brand-gradient);
    color: var(--primary-dark);
    border-radius: var(--shape-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(111, 176, 58, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(49, 168, 168, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--green-2);
    border: 1px solid var(--green-2);
    border-radius: var(--shape-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: rgba(88, 174, 105, 0.1);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--shape-radius);
    padding: 60px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--brand-gradient);
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.text-accent {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    /* Cor clara */
    color: #333;
    /* Texto escuro */
}

.course-alpa .faculty-name {
    color: #e74c3c !important; /* Vermelho */
}

.course-grac .faculty-name {
    color: #95A617 !important; /* Verde GRAC */
}

/* Modal Customizado de Confirmação */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 4, 4, 0.85); /* brand dark with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.custom-modal {
    background-color: var(--primary-dark);
    border: 1px solid var(--green-2);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-modal-title {
    color: var(--green-1);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.custom-modal-text {
    color: var(--light-gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.custom-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.sticky-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-dark);
}

.about-section .section-title {
    color: #ffffff;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 40px;
}

/* Cards */
.course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: var(--shape-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(111, 176, 58, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-content {
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.course-logo {
    width: 200px;
    /* Increased size */
    height: auto;
    max-height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.course-category {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--green-2);
    margin-bottom: 15px;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-desc {
    color: #555555;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.course-price {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 25px;
}

.course-price strong {
    color: var(--green-2);
    font-size: 1.25rem;
}

.price-note {
    font-size: 0.85rem;
    color: #666666;
    font-weight: normal;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.text-center {
    text-align: center;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .card-content {
        padding: 30px 20px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 30px 20px;
    }

    .card-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 15px;
    }

    .course-logo {
        width: 160px;
        /* slightly smaller on mobile */
    }

    .course-info {
        text-align: center;
        width: 100%;
    }

    /* Ensure details and highlights are readable on mobile */
    .course-details {
        text-align: left;
        /* lists are hard to read when centered */
    }

    .btn-more {
        width: 100%;
        /* easier to tap */
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .course-title {
        font-size: 1.35rem;
    }

    /* Stack highlights to prevent text overflow on very small screens */
    .course-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        align-items: center;
        text-align: center;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .faculty-card {
        flex: 0 0 140px;
        /* Slightly narrower cards on small phones */
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: #121616;
    /* Solid dark color to prevent transparency issues */
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.3s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--teal);
    text-decoration: none;
}

.modal-content h2 {
    color: var(--teal);
    margin-bottom: 10px;
}

.modal-content p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    background-color: rgba(255, 255, 255, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--teal);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1.1rem;
}

/* =========================================
   PROVA STYLES
   ========================================= */
.prova-body {
    background-color: var(--primary-dark);
    min-height: 100vh;
}

.prova-header {
    background: rgba(14, 20, 26, 0.95);
    border-bottom: 1px solid rgba(111, 176, 58, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--primary-color);
    box-shadow: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.time-warning {
    color: #ff4757;
    border-color: #ff4757;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.prova-main {
    padding: 40px 0;
}

.prova-container {
    background: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.progress-section {
    margin-bottom: 30px;
}

.progress-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--brand-gradient);
    width: 0%;
    transition: width 0.4s ease;
}

.question-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.question-support-text {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
    color: #e2e8f0;
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.option-label.selected {
    background: rgba(111, 176, 58, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(111, 176, 58, 0.1);
}

.option-input {
    display: none;
    /* Hide standard radio */
}

.option-letter {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
    min-width: 20px;
}

.option-text {
    line-height: 1.5;
    font-size: 1rem;
}

.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.btn-nav {
    min-width: 150px;
}

.btn-finish {
    background: linear-gradient(135deg, #f39c12, #d35400) !important;
}

.btn-finish:hover {
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.4) !important;
}

/* =========================================
   MATRICULA STYLES
   ========================================= */
.results-hero {
    position: relative;
    text-align: center;
    padding: 120px 20px 60px 20px;
    /* Mais padding no topo para compensar o header absolute */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.results-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.results-hero .container>p:first-of-type {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cbd5e1;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(111, 176, 58, 0.3);
}

.stat-value {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a0aec0;
    margin-top: 5px;
}

.dynamic-price {
    font-size: 1.8rem;
    color: var(--green-1);
    text-shadow: 0 0 10px rgba(111, 176, 58, 0.4);
    font-weight: 700;
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #e74c3c;
    font-size: 1rem;
    font-weight: 500;
}


.stat-highlight {
    border: 1px solid var(--green-1) !important;
    box-shadow: 0 0 20px rgba(111, 176, 58, 0.5);
    background: rgba(111, 176, 58, 0.1);
}

.stat-highlight .stat-value {
    text-shadow: 0 0 15px rgba(111, 176, 58, 0.8);
    color: var(--green-1) !important;
}

.scroll-down-arrow {
    display: inline-block;
    margin-top: 40px;
    color: var(--green-1);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-down-arrow:hover {
    color: var(--light-gray);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}