#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #d9ebff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 30px;
}

#loading-screen.hidden {
    display: none;
}

.loading-logo-wrapper {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.loading-text {
    color: #0E4194;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .loading-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: 160px;
        height: 160px;
    }
}

.elementor-28681 .elementor-element.elementor-element-4e01da8 {

    --display: initial;
}

:root {
    --primary-color: #DFDF6F;
    --secondary-color: #4B736E;
    --white: #FFFFFF;
    --dark-bg: #314358;
    --dark-footer: #2a3847;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Unbounded', 'Oswald', 'Work Sans', Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: #333;
    line-height: 1.6;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    background-color: var(--dark-bg);
    z-index: 1000;
}

.navbar-brand.logo img {
    height: 75px;
    width: auto;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 20px !important;
}

.nav-link:hover {
    color: #D7DE76 !important;
}


nav.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav.mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(49, 67, 88, 0.1);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.mobile-menu a:hover {
    color: rgba(49, 67, 88, 0.5);
}

nav.mobile-menu a:last-child {
    border-bottom: none;
}

body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a3847 100%);
    padding: 80px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero .highlight {
    color: #DFDF6F;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    color: #D1EEFB;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    background-color: var(--dark-bg);
    /* padding: 60px 20px; */
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-banner {
    background-color: #D1EEFB;
    border-left: 4px solid #DFDF6F;
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 0;
}

.info-banner h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-banner p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.steps-section {
    background-color: rgba(75, 115, 110, 0.1);
    padding: 25px;
    border-radius: 0;
    margin-top: 20px;
}

.steps-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.steps-list {
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.steps-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.main-title {
    text-align: center;
    color: #DFDF6F;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Filter Section Styles */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.filter-group {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--filter-order) * 0.1s + 1.4s);
    opacity: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--filter-order) * 0.1s + 1.4s);
    opacity: 0;
}

.filter-title {
    margin-bottom: 10px;
    color: white;
    font-size: 1.1rem;
}

.filter-wrapper {
    position: relative;
    width: 100%;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #DFDF6F;
    border-radius: 0;
    background-color: white;
    font-size: 1rem;
    color: var(--dark-bg);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.filter-select:hover {
    border-color: #DFDF6F;
    background-color: #f9f9f9;
}

.filter-select:focus {
    outline: none;
    border-color: #DFDF6F;
    box-shadow: 0 0 0 2px rgba(223, 223, 111, 0.2);
}

.filter-select option {
    padding: 10px;
    background-color: white;
    color: var(--dark-bg);
}

/* Course Section Styles */
.course-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.course-section#presencial {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.course-section:not(.hidden) {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.city-section {
    margin-bottom: 2rem;
    background-color: var(--secondary-color);
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: block;
    position: relative;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
    opacity: 0;
}

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

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

.city-section[style*="display: none"] {
    display: none !important;
}

.city-title {
    color: #DFDF6F;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DFDF6F;
    position: relative;
    padding-right: 100px;
    font-weight: 700;
}

/* Course Card Styles */
.courses-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    margin: 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: auto;
    touch-action: pan-x;
    position: relative;
}

.courses-carousel>* {
    pointer-events: auto;
}

.course-card {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
    border: none;
}

.course-card {
    scroll-snap-align: start;
    touch-action: pan-x;
    animation: slideIn 0.5s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 0.1s + 0.3s);
    opacity: 0;
}

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

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

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-card h4 {
    color: var(--dark-bg);
    margin-bottom: 5px;
    font-size: 1.1rem;
    line-height: 1.35;
    min-height: 4.05em;
    max-height: 4.05em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    line-clamp: 3;
}

.course-card .date {
    color: #000;
    margin-bottom: 5px;
    font-size: 0.95rem;
    font-weight: 600;
}

.course-card .apply-btn {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    touch-action: manipulation;
    transform: translateY(0);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
}

.course-card .apply-btn:hover {
    background-color: #DFDF6F;
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.course-card .course-type {
    display: inline-block;
    background-color: #DFDF6F;
    color: var(--dark-bg);
    padding: 4px 8px;
    border-radius: 0;
    font-size: 0.9rem;
    margin: 8px 0;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.carousel-navigation {
    display: flex;
    position: absolute;
    top: 10px;
    right: 20px;
    gap: 10px;
    pointer-events: none;
    z-index: 9999;
    /* Aumentado para garantir prioridade */
}

.carousel-button {
    background: #DFDF6F;
    border: none;
    border-radius: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    color: var(--dark-bg);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.4s ease-out forwards;
    animation-delay: 0.3s;
    z-index: 10000;
}

.carousel-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.carousel-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #cccccc;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.carousel-button:hover {
    background-color: #c9c95f;
    transform: scale(1.1);
}

.carousel-button:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: center;
    }

    .filter-group {
        width: 100%;
        max-width: 100%;
    }

    .course-card {
        flex: 0 0 280px;
    }

    .carousel-navigation {
        top: 20px;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-footer);
    color: white;
    padding: 50px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: -50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 60px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-section {
    color: white;
    text-align: initial;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #DFDF6F;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section a {
    color: #D1EEFB;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #DFDF6F;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 18px;
}

.social-links a:hover {
    background-color: #DFDF6F;
    color: var(--dark-bg);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-color);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #D1EEFB;
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .header-container {
        flex-direction: row;
        gap: 20px;
        justify-content: space-between;
    }

    .logo img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .desktop-menu {
        display: none;
    }

    nav.mobile-menu {
        display: none;
    }

    .hero h1 {
        font-size: 28px;
    }

    .filter-section {
        flex-direction: column;
        align-items: center;
    }

    .filter-group {
        width: 100%;
        max-width: 100%;
    }

    .course-card {
        flex: 0 0 260px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .course-card {
        flex: 0 0 260px;
    }

    .course-card h4 {
        font-size: 1rem;
    }

    .date {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .courses-carousel {
        overflow-x: hidden;
    }

    .course-card {
        touch-action: none;
    }
}

@media (min-width: 768px) {
    .course-card {
        min-width: 340px;
        max-width: 340px;
    }
}

/* Hidden Class */
.hidden {
    display: none;
}

.no-courses-message {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 0;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-courses-message p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.no-courses-message.hidden {
    display: none;
}

.courses-carousel .no-courses-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 280px;
    height: 200px;
    background: var(--secondary-color);
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0 10px;
}

.courses-carousel .no-courses-message p {
    color: white;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

.program-info {
    margin-bottom: 40px;
    padding: 5px;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.program-description {
    margin: 50px 0 15px;
    line-height: 1.5;
    color: #6A6A6F;
    font-size: 0.95rem;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.program-description p {
    margin-bottom: 15px;
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.program-description p:nth-child(1) {
    animation-delay: 0.2s;
}

.program-description p:nth-child(2) {
    animation-delay: 0.4s;
}

.program-steps {
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--secondary-color);
    font-size: 1rem;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.steps-list {
    margin-bottom: 0;
    list-style: none;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.steps-list li {
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 25px;
    font-weight: bold;
    color: #000;
}

.steps-list li::before {
    content: "->";
    position: absolute;
    left: 0;
    color: black;
    margin-top: 2px;
}

.date {
    color: #000;
    font-weight: bold;
    margin: 5px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

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

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