/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc; /* Primary blue color */
    --secondary-color: #0055aa; /* Darker blue for hover states */
    --accent-color: #3385ff; /* Lighter blue for accents */
    --light-bg: #f5f7fa; /* Light background color */
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gray-light: #e9ecef;
    --gray-medium: #dee2e6;
    --gray-dark: #adb5bd;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Header Styles */
.header-main {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.logo-text {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    display: none;
}

.notification-icon a {
    color: #333;
    font-size: 18px;
}

.login-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-button i {
    font-size: 12px;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text h2 span {
    font-size: 1.8rem;
    font-weight: 500;
}

.percentage {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    position: relative;
}

.percentage::after {
    content: "%";
    font-size: 2.5rem;
    position: absolute;
    top: 10px;
}

.discount-tag {
    font-size: 1.2rem;
    background-color: var(--white);
    color: var(--primary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    margin-top: 10px;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.institutions-info {
    color: var(--white);
    font-size: 1.1rem;
    text-align: right;
    margin-bottom: 1rem;
}

.hero-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Navigation */
.education-categories {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-prompt {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.categories-menu {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
}

.category-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.category span {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.category.active .category-icon,
.category:hover .category-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.category.active span,
.category:hover span {
    color: var(--primary-color);
}

/* Search Form */
.search-form-wrapper {
    background-color: var(--white);
    padding: 20px 0 30px;
}

.search-form {
    display: flex;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

#search-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    margin-top: auto;
}

#search-button:hover {
    background-color: var(--secondary-color);
}

/* Institutions Section */
.institutions {
    padding: 40px 0;
}

.section-header .location {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.institutions-carousel {
    position: relative;
    margin-top: 30px;
    padding: 0 30px;
}

.institutions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.institutions-grid::-webkit-scrollbar {
    display: none;
}

.institution-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: calc(20% - 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.institution-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.institution-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.institution-logo img {
    max-height: 100%;
}

.institution-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.discount-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 0.8rem;
    color: var(--text-light);
}

.price span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Courses Section */
.courses {
    padding: 40px 0;
    background-color: var(--light-bg);
}

.section-header .sort-options {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.sort-active {
    color: var(--primary-color);
    font-weight: 600;
}

.courses-carousel {
    position: relative;
    margin-top: 30px;
    padding: 0 30px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none; /* Escondido por padrão em desktops */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.courses-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.courses-grid::-webkit-scrollbar {
    display: none;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    min-width: 220px;
    flex: 0 0 auto;
    text-align: center;
}

.course-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.course-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.course-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 40px;
}

/* About Section */
.about {
    padding: 40px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-text h2 sup {
    font-size: 60%;
    top: -0.5em;
}

.feature-text {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.highlight-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Promo Banner */
.promo-banner {
    padding: 40px 0;
    background-color: var(--primary-color);
}

.promo-banner h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
}

.promo-content {
    display: flex;
    gap: 30px;
}

.promo-video {
    flex: 1;
}

.video-placeholder {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    max-width: 60%;
}

.video-title h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

.promo-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 140px;
}

.feature-card h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 15px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 0;
    background-color: var(--light-bg);
}

.testimonials-carousel {
    position: relative;
    margin-top: 30px;
    padding: 0 30px;
}

.testimonials-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
    flex: 0 0 auto;
    position: relative;
}

.testimonial-course {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 10px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    padding: 40px 0;
    background-color: var(--white);
}

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 200px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-icon {
    margin-bottom: 15px;
}

.step-icon img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.step-description {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Study Options Section */
.study-options {
    padding: 40px 0;
}

.options-carousel {
    position: relative;
    margin-top: 30px;
    padding: 0 30px;
}

.study-options-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.study-options-grid::-webkit-scrollbar {
    display: none;
}

.option-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.option-header {
    margin-bottom: 20px;
}

.option-header h3 {
    font-size: 1rem;
    color: var(--white);
    padding: 10px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.option-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.find-scholarship-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.find-scholarship-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 40px 0 20px;
    border-top: 1px solid var(--gray-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.contact-info, .business-hours, .social-media {
    flex: 1;
}

.contact-info p, .business-hours p, .social-media p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-desktop {
    display: block;
    margin-bottom: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 140px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-accordion {
    display: none;
    margin-bottom: 30px;
    border-top: 1px solid var(--gray-light);
}

.accordion-item {
    border-bottom: 1px solid var(--gray-light);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.accordion-header i {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    padding-bottom: 15px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content ul li {
    margin-bottom: 10px;
}

.accordion-content ul li a {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
}

.accordion-content ul li a:hover {
    color: var(--primary-color);
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.chat-bot {
    margin-top: 20px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
}

.social-icon-link i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.social-icon-link:hover i {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Estilos para a nova seção de categorias e busca */
.study-categories-wrapper {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.search-prompt {
    text-align: center;
    margin-bottom: 15px;
}

.search-prompt-button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.study-categories {
    display: flex;
    align-items: center;
    justify-content: center; /* Centralizado em desktops */
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
}

.study-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    min-width: 70px;
    margin-right: 5px;
}

.category-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-item.active .category-circle {
    background-color: var(--primary-color); /* Azul do tema do site */
    color: white;
    border: none;
}

.category-item i {
    font-size: 24px;
}

.category-item span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.study-categories-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.category-nav {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: none;  /* Por padrão, escondidos em desktops */
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #666;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
    flex-shrink: 0;
}

.category-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

/* MODIFICAÇÃO PRINCIPAL: Layout Horizontal do Formulário com Botão na Mesma Linha */
.search-form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* Layout horizontal para desktop - TODOS OS ELEMENTOS NA MESMA LINHA */
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: end;
}

.form-field {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0; /* Remove margin bottom para alinhamento horizontal */
}

.form-field label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-select i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* BOTÃO NA MESMA LINHA - MODIFICAÇÃO PRINCIPAL */
.search-button-orange {
    flex-shrink: 0;
    padding: 14px 20px;
    background-color: var(--primary-color); /* Azul do tema do site */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    height: fit-content;
    margin-top: 0; /* Remove margin-top para ficar alinhado */
    min-width: 150px; /* Largura mínima para o botão */
}

.search-button-orange:hover {
    background-color: var(--secondary-color);
}

/* Desktop/Mobile Utility Classes */
.desktop-only {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        margin-bottom: 20px;
        text-align: center;
        padding-right: 0;
    }
    
    .hero-right {
        align-items: center;
    }
    
    .institutions-info {
        text-align: center;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .institution-card {
        width: calc(33.33% - 14px);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .promo-content {
        flex-direction: column;
    }
    
    /* Estilos responsivos para a seção de categorias */
    .study-categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-item {
        min-width: 70px;
    }
    
    .category-circle {
        width: 50px;
        height: 50px;
    }
    
    .category-item i {
        font-size: 20px;
    }
    
    .category-item span {
        font-size: 12px;
    }
    
    /* Mostrar os botões de navegação apenas em telas móveis */
    .category-nav {
        display: flex;
    }
    
    /* Mostrar botões de navegação dos carrosséis em telas móveis */
    .carousel-control {
        display: flex;
    }
    
    /* Ajustar o layout do slider para mostrar os botões de navegação */
    .study-categories-slider {
        justify-content: flex-start;
    }
    
    .study-categories {
        justify-content: flex-start;
    }
    
    /* Configurações de largura fixa para cartões em mobile */
    .institution-card {
        min-width: 180px;
        flex: 0 0 auto;
        width: auto;
    }
    
    .option-card {
        min-width: 160px;
        flex: 0 0 auto;
    }
    
    /* MODIFICAÇÃO: Formulário volta para vertical em mobile */
    .search-form-container {
        flex-direction: column;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .form-field {
        width: 100%;
        min-width: auto;
        margin-bottom: 15px;
    }
    
    .search-button-orange {
        width: 100%;
        margin-top: 10px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .institution-card {
        /* em mobile é um carrossel, então usamos min-width em vez de width */
        width: auto; 
        min-width: 180px;
        flex: 0 0 auto;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
    }
    
    .study-options-grid {
        flex-wrap: nowrap; /* permitir rolar em vez de quebrar para a próxima linha */
    }
    
    .option-card {
        min-width: 160px;
        flex: 0 0 auto;
        width: auto;
    }
    
    /* Alternar entre versão desktop e mobile para o footer */
    .footer-desktop {
        display: none; /* Esconder a versão desktop em telas menores */
    }
    
    .footer-accordion {
        display: block; /* Mostrar a versão acordeão em telas menores */
    }
    
    /* Melhoria das seções de carrossel para mobile */
    .institutions-grid {
        flex-wrap: nowrap; /* forçar visualização em linha única */
    }
    
    .search-form-container {
        padding: 15px;
    }
    
    .form-field {
        margin-bottom: 15px;
    }
    
    .form-field label {
        font-size: 13px;
    }
    
    .custom-select select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-button-orange {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .percentage {
        font-size: 4rem;
    }
    
    .percentage::after {
        font-size: 2rem;
    }
    
    /* Não definir width:100% para os cards de instituições em telas pequenas */
    /* em vez disso, manter os cards no formato de carrossel */
    .institution-card {
        min-width: 160px;
    }
    
    .option-card {
        min-width: 140px;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Ajuste do modal para telas menores */
    .modal-container {
        width: 95%;
        max-width: 400px;
    }
    
    .search-form-container {
        padding: 12px;
        margin: 0 10px;
    }
    
    .form-field {
        margin-bottom: 12px;
    }
    
    .custom-select select {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-button-orange {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Estilos para o Modal de Login */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    padding: 0 32px 32px;
}

.modal-content h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

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

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
}

.login-options {
    margin-top: 24px;
}

.login-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.separator {
    display: block;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    position: relative;
    margin: 20px 0;
}

.separator::before,
.separator::after {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background-color: #eee;
    position: absolute;
    top: 50%;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.social-login-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.social-button.facebook {
    color: white;
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-button.facebook:hover {
    background-color: #0d6efd;
}

.social-button.google {
    color: #444;
    background-color: white;
    border-color: #ddd;
}

.social-button.google:hover {
    background-color: #f8f9fa;
}

.social-button.apple {
    color: white;
    background-color: #000;
    border-color: #000;
}

.social-button.apple:hover {
    background-color: #333;
}

.social-button i,
.social-button img {
    margin-right: 8px;
}





/* --- LOADER PARA PAGINAS EM AJAX --- */


/* --- Estilos para o Loader --- */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    flex-direction: column;
    gap: 15px;
    color: #666;
}
.loader-spinner {
    border: 4px solid #f3f3f3; /* Cinza claro */
    border-top: 4px solid #007bff; /* Azul primário */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}









