:root {
    --primary-blue: #004d99; 
    --secondary-yellow: #ffcc00; 
    --dark-blue: #0a2d5e; 
    --light-gray: #f8f8f8;
    --text-color: #333;
    --heading-color: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Containers */
.container {
    width: 90%; 
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px 0;
}

#main-header {
    background: #F4F4F3;
    color: #fff;
    padding: 10px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; 
}

.logo-link {
    display: flex; 
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo {
    height: 40px;
    width: auto;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: block; 
}

#main-nav {
    display: none; 
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px; 
    left: 0;
    background: var(--dark-blue);
    padding: 10px 0;
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

#main-nav.active {
    display: flex; 
}

#main-nav ul {
    list-style: none;
    text-align: center;
}

#main-nav ul li {
    margin: 10px 0;
}

#main-nav ul li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease;
    
}

#main-nav ul li a:hover {
    background-color: var(--secondary-yellow);
    border-radius: 20px;
}

.content-section {
    padding: 40px 0;
    text-align: center;
}

.content-section h2, .content-section h3 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.bg-light {
    background-color: var(--light-gray);
}


.hero {
    background: url('assets/background.png') no-repeat center center/cover; 
    color: #fff;
    text-align: center;
    padding: 80px 0 40px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.2rem; 
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.highlight-boxes {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-boxes .box {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.highlight-boxes .box i {
    color: var(--secondary-yellow);
    font-size: 1.5rem;
}

.btn-primary, .btn-secondary {
    display: block; 
    width: 100%; 
    padding: 12px 25px;
    margin-bottom: 15px; 
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-yellow);
    color: var(--dark-blue);
    border: 2px solid var(--secondary-yellow);
}

.btn-primary:hover {
    background: #e6b800; 
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.pulse-effect {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

#sobre ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left; 
}

#sobre ul li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--secondary-yellow);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#sobre ul li strong {
    color: var(--primary-blue);
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.course-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-card-content {
    padding: 20px;
}

.course-card-content h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.course-card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.btn-course-details {
    display: inline-block;
    background: var(--dark-blue);
    color: var(--secondary-yellow);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-course-details:hover {
    background: var(--primary-blue);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px 20px; 
    border-radius: 10px;
    width: 90%; 
    max-width: 500px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#modal-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

#modal-details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

#modal-details-list li {
    background: var(--light-gray);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #555;
}

#modal-whatsapp-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    background: #25d366; 
    border-color: #25d366;
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
}

#modal-whatsapp-btn:hover {
    background: #1da851;
    border-color: #1da851;
}

#contato address {
    font-style: normal;
    margin-bottom: 20px;
    font-size: 1rem;
}

#contato address a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #e0e0e0;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.map-route-btn {
    display: inline-block; 
    margin-top: 20px;
    width: auto; 
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--primary-blue);
    font-size: 2.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-yellow);
    transform: translateY(-5px);
}

.social-icons .fa-instagram:hover { color: #E4405F; }
.social-icons .fa-facebook-f:hover { color: #3b5998; }
.social-icons .fa-whatsapp:hover { color: #25D366; }


footer {
    background: var(--dark-blue);
    color: #c0c0c0;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--secondary-yellow);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .container {
        width: 85%;
    }

    .menu-toggle {
        display: none; 
    }

    #main-nav {
        display: flex; 
        position: static; 
        flex-direction: row;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    #main-nav ul {
        display: flex;
    }

    #main-nav ul li {
        margin: 0 10px;
    }

    #main-nav ul li a {
        padding: 5px 10px;
    }

    .hero h1 {
        font-size: 3.5rem; 
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .highlight-boxes {
        flex-direction: row; 
        justify-content: center;
    }

    .highlight-boxes .box {
        width: 30%; 
        padding: 20px;
        flex-direction: column; 
        gap: 5px;
    }

    .highlight-boxes .box i {
        font-size: 2rem;
    }

    .btn-primary, .btn-secondary {
        display: inline-block; 
        width: auto;
        margin: 0 10px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 992px) {
    .container {
        width: 80%;
    }

    .logo {
        height: 50px; 
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .hero .subtitle {
        font-size: 1.5rem;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr); 
    }

    .modal-content {
        padding: 40px;
    }
}