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

:root {
    --primary-blue: #007BFF;
    --accent-red: #DC3545;
    --dark-blue-text: #2c3e50;
    --light-gray-bg: #f8f9fa;
    --white: #FFFFFF;
    --gray-text: #6c757d;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-blue-text);
    background-color: var(--light-gray-bg);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: var(--dark-blue-text);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 70px;
    max-height: 120px;
}

header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

header.header-visible {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
    position: relative;
}

.header-branding:hover {
    transform: scale(1.02);
}

.brand-title-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.symbol-right {
    height: 110px;
    width: auto;
    transition: transform 0.4s ease;
}

.symbol-right:hover {
    transform: rotate(5deg) scale(1.1);
}

.logo-military {
    height: 45px;
    width: auto;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.logo-military:hover {
    transform: rotate(-5deg) scale(1.1);
}

.header-branding h1 a {
    font-family: 'PT Serif', serif;
    font-size: 1.6rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-branding h1 a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    padding: 0.6rem 0;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 2px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile menu items - hidden by default */
.mobile-menu-items {
    display: none;
}

.search-container {
    position: relative;
    transition: transform 0.3s ease;
}

.search-container input {
    padding: 0.6rem 1rem;
    width: 180px;
    border-radius: 25px;
    border: none;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.search-container input:focus {
    width: 220px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    outline: none;
    background: rgba(255,255,255,1);
}

/* Estilo para o botão do Painel Administrativo */
.btn-admin {
    background-color: #0069d9;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none; 
}

.btn-admin:hover {
    background-color: var(--white);
    color: var(--dark-blue-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-login {
    background-color: #0069d9;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

.btn-login:hover {
    background-color: var(--white);
    color: var(--dark-blue-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-login.logged-in {
    background: rgba(255,255,255,0.95) !important;
    color: var(--dark-blue-text) !important;
    padding: 0.5rem 1rem !important;
    min-width: 180px;
    text-align: left;
    position: relative;
}

.btn-login.logged-in:hover {
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name-header {
    font-weight: 600;
    font-size: 0.85rem;
}

.user-type-header {
    font-size: 0.7rem;
    color: var(--gray-text);
    font-weight: 400;
}

.header-settings {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(0, 128, 255, 0.9);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.settings-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-toggle:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.settings-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(10px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.settings-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.settings-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-option label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--primary-blue);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    transform: translateX(25px);
}

.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(44, 62, 80, 0.8)), 
                url('https://images.pexels.com/photos/4226256/pexels-photo-4226256.jpeg') center/cover no-repeat;
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: transform 0.5s ease;
}

.hero:hover::before {
    transform: scale(1.05);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    transition: text-shadow 0.3s ease;
    font-family: 'PT Serif', serif;
}

.hero:hover h2 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0069d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-blue-text);
    border: 2px solid #bdc3c7;
    box-shadow: 0 4px 15px rgba(189, 195, 199, 0.3);
}

.btn-secondary:hover {
    background: var(--dark-blue-text);
    color: var(--white);
    border-color: var(--dark-blue-text);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

.courses-section {
    background: var(--white);
    padding: 4rem 0;
}

.courses-section h2 {
    color: var(--dark-blue-text);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-family: 'PT Serif', serif;
    position: relative;
}

.courses-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(189, 195, 199, 0.4);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

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

.image-container.no-padding-top {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.image-container.no-padding-top img {
    object-position: top;
}

.course-card .image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-card .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(44, 62, 80, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .image-container::after {
    opacity: 1;
}

.course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

.course-card .course-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
}

.course-card h3 {
    font-size: 1.4rem;
    color: var(--dark-blue-text);
    margin-bottom: 12px;
    transition: color 0.3s ease;
    font-family: 'PT Serif', serif;
    line-height: 1.3;
}

.course-card:hover h3 {
    color: var(--primary-blue);
}

.course-card .course-category {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 15px;
    background: var(--light-gray-bg);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(189, 195, 199, 0.5);
}

.course-card:hover .course-category {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

.course-card p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--gray-text);
    line-height: 1.6;
    flex-grow: 1;
}

.course-card .btn {
    align-self: center;
    margin-top: auto;
    width: 85%;
}

.special-cards-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.about-program {
    padding: 4rem 0;
    background: var(--light-gray-bg);
}

.program-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.program-image { flex: 1; }
.program-info { flex: 1; }

.program-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.small-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.program-header h2 {
    color: var(--dark-blue-text);
    font-size: 2.2rem;
    margin: 0;
    font-family: 'PT Serif', serif;
}

.main-image {
    width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.program-description {
    color: var(--dark-blue-text);
    line-height: 1.8;
}

.program-description p {
    margin-bottom: 1.5rem;
    font-size: 1.10rem;
}

.program-description strong {
    color: var(--dark-blue-text);
    font-weight: 600;
}

.custom-images-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.custom-images-container img {
    width: 350px;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0) scale(1);
    filter: brightness(0.95) saturate(1.1);
    border: 3px solid transparent;
}

.custom-images-container img:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    filter: brightness(1) saturate(1.2);
    border-color: rgba(0, 123, 255, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
    border: 1px solid rgba(189, 195, 199, 0.4);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header img {
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.modal-header h3 {
    font-family: 'PT Serif', serif;
    color: var(--dark-blue-text);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.modal-header p {
    color: var(--gray-text);
    font-size: 1rem;
}

.modal-content {
    margin-bottom: 2rem;
}

.modal-info {
    background: var(--light-gray-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.modal-info p {
    margin: 0.5rem 0;
    color: var(--dark-blue-text);
}

.modal-info strong {
    color: var(--dark-blue-text);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 150px;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

footer {
    background: var(--dark-blue-text);
    color: #bdc3c7;
    padding: 3rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3, 
.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'PT Serif', serif;
}

.footer-col ul { list-style: none; }

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-col a:hover {
    color: var(--primary-blue);
    padding-left: 8px;
    transform: translateX(5px);
}

.social-links { margin-top: 1.5rem; }

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
}

.partners-hero {
    background: var(--primary-blue);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.partners-hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.partners-content { padding: 4rem 0; background: var(--light-gray-bg); }
.register-company .btn { background: var(--accent-red); color: white; }
.register-company .btn:hover { background: #c82333; }

/* Estilos para o Carrossel de Parceiros */
.partners-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    background-color: #f8f9fa;
    margin-top: 3rem;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
}

.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 10%;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-carousel-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
}

.partners-carousel-track:hover {
    animation-play-state: paused;
}

.partners-carousel-track img {
    height: 80px; 
    margin: 0 2rem;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
    flex-shrink: 0; 
}

.partners-carousel-track img:hover {
    filter: grayscale(0%);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partners-carousel {
        padding: 1rem 0;
    }
    .partners-carousel-track img {
        height: 60px;
        margin: 0 1rem;
    }
    .partners-carousel-track {
        animation: scroll-left 5s linear infinite;
    }
}

@media (max-width: 1024px) {
    .header-content { gap: 1rem; }
    .header-left { gap: 1.5rem; }
    .main-nav ul { gap: 1.2rem; }
    .search-container input { width: 150px; }
    .search-container input:focus { width: 180px; }
    .program-content { gap: 2rem; }
    .custom-images-container img { width: 300px; }
}

/* ===========================
    Responsive Styles (max-width: 768px)
    =========================== */
@media (max-width: 768px) {
     /* Header */
     header {
          padding: 0.5rem 0;
          min-height: 60px;
          max-height: 80px;
     }
     .header-content {
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          gap: 1rem;
          min-height: 50px;
     }
     .header-left {
          flex-direction: row;
          gap: 1rem;
          flex: 1;
     }
     .header-branding {
          gap: 0.5rem;
     }
     .logo-military {
          height: 35px;
     }
     .symbol-right {
          height: 50px;
     }
     .header-branding h1 a {
          font-size: 1.3rem;
     }

     /* Mobile Menu Toggle */
     .mobile-menu-toggle {
          display: block;
          order: 3;
     }

     /* Main Navigation */
     .main-nav {
            position: fixed;
            top: 60px; /* Altura do header no mobile */
            left: 0;
            width: 100%;
            background: var(--dark-blue-text);
            transform: translateY(-150%); /* Inicia totalmente fora da tela */
            opacity: 0;
            visibility: hidden;
            transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
            z-index: 99;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            padding-bottom: 1rem;
    }
    .main-nav.active {
          transform: translateY(0); /* Desliza para a posição correta */
          opacity: 1;
          visibility: visible;
    }
     .main-nav ul {
          flex-direction: column;
          gap: 0;
          padding: 1rem 0;
     }
     .main-nav li {
          border-bottom: 1px solid rgba(255,255,255,0.1);
     }
     .main-nav li:last-child {
          border-bottom: none;
     }
     .nav-link {
          display: block;
          padding: 1rem 2rem;
          font-size: 1rem;
          border-bottom: none;
     }
     .nav-link::after {
          display: none;
     }
     .nav-link:hover {
          background: rgba(255,255,255,0.1);
     }

     /* Mobile menu items - show in mobile menu */
     .mobile-menu-items {
          display: block;
          padding: 1rem 0;
          border-top: 1px solid rgba(255,255,255,0.1);
     }
     
     .mobile-menu-items .btn {
          display: block;
          width: calc(100% - 4rem);
          margin: 0.5rem 2rem;
          text-align: center;
          padding: 1rem;
          border-radius: 8px;
          text-decoration: none;
          font-size: 1rem;
     }
     
     .mobile-menu-items .btn-login {
          background-color: var(--primary-blue);
          color: var(--white);
          border: 2px solid var(--primary-blue);
          min-width: auto;
     }
     
     .mobile-menu-items .btn-login.logged-in {
          background: rgba(255,255,255,0.95) !important;
          color: var(--dark-blue-text) !important;
          border: 2px solid rgba(255,255,255,0.95) !important;
          text-align: center !important;
          min-width: auto !important;
     }
     
     .mobile-menu-items .btn-admin {
          background-color: #0069d9;
          color: var(--white);
          border: 2px solid #0069d9;
     }
     /* Header Right & Actions */
     .header-right {
          order: 2;
     }
     .header-actions {
          gap: 0.5rem;
     }
     
     /* Hide desktop buttons in mobile */
     .header-actions .btn-login,
     .header-actions .btn-admin {
          display: none;
     }
     
     .search-container {
          display: none;
     }

     /* Hero Section */
     .hero {
          padding: 2rem 0;
     }
     .hero h2 {
          font-size: 1.8rem;
     }
     .hero p {
          font-size: 1rem;
     }

     /* Courses Section */
     .courses-section {
          padding: 3rem 0;
     }
     .courses-section h2 {
          font-size: 1.8rem;
          margin-bottom: 2rem;
     }
     .course-grid,
     .special-cards-container {
          grid-template-columns: 1fr;
          gap: 20px;
          max-width: 400px;
          margin: 0 auto;
     }

     /* About Program Section */
     .program-content {
          flex-direction: column;
          gap: 2rem;
     }
     .program-header {
          flex-direction: column;
          text-align: center;
          gap: 1rem;
     }
     .program-header h2 {
          font-size: 1.8rem;
     }

     /* Custom Images */
     .custom-images-container {
          flex-direction: column;
          align-items: center;
          gap: 1.5rem;
     }
     .custom-images-container img {
          width: 100%;
          max-width: 350px;
     }

     /* Footer */
     .footer-content {
          flex-direction: column;
          text-align: center;
          gap: 2rem;
     }
     .footer-col {
          min-width: 100%;
     }
     .social-links {
          justify-content: center;
     }

     /* Modal */
     .modal {
          padding: 2rem;
          margin: 1rem;
     }
     .modal-header h3 {
          font-size: 1.4rem;
     }
     .modal-actions {
          flex-direction: column;
          gap: 0.8rem;
     }
     .modal-actions .btn {
          max-width: none;
     }

     /* Header Settings & Menu */
     .header-settings {
          top: 10px;
          right: 10px;
     }
     .settings-menu {
          right: -10px;
          min-width: 180px;
     }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    .header-left {
        flex-direction: column;
        align-items: center;
    }
    .mobile-menu-toggle {
        margin-top: 0.5rem;
    }
    .main-nav ul {
        padding: 0;
    }
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 375px) {
    .header-content {
        gap: 0.5rem;
    }
    .header-left {
        gap: 0.5rem;
    }
    .main-nav ul {
        gap: 0.8rem;
    }
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .hero h2 {
        font-size: 1.4rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

#ver-perfil-container:empty {
    display: none;
}

/* Estilos do Banner de Cookies */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Azul escuro */
    color: #ecf0f1; /* Cinza claro */
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-consent-banner.active {
    transform: translateY(0);
}

.cookie-consent-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-consent-button {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-consent-button:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    .cookie-consent-button {
        flex-grow: 1;
    }
}