:root {
    --primary-color: #003366; /* Deep blue for trust/education */
    --accent-color: #25D366; /* WhatsApp Green */
    --secondary-color: #C5A059; /* Gold for "Imperial" feel */
    --text-color: #333;
    --light-bg: #f4f7f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn i {
    text-decoration: none !important;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #002244;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--accent-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), 
                url('https://images.unsplash.com/photo-1506377585622-bedcbb027afc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-btns .btn {
    margin: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Courses Section */
.courses {
    background: var(--light-bg);
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #666;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.course-card p {
    margin-bottom: 30px;
    flex-grow: 1;
    color: #555;
    font-size: 0.95rem;
}

.course-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s;
}

.course-link:hover {
    gap: 15px;
    color: var(--secondary-color);
}

.course-card.highlighted {
    background: var(--primary-color);
    color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    margin-top: 0;
}

.course-card.highlighted::before {
    background: var(--accent-color);
}

.course-card.highlighted h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.course-card.highlighted p {
    margin-bottom: 30px;
    margin-right: 0;
    font-size: 0.95rem;
    opacity: 1;
    color: var(--white);
}

.course-card.highlighted .btn-whatsapp {
    width: 100%;
    min-width: unset;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.course-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0; /* Removido gap para evitar espaços brancos entre as metades */
    background: var(--white);
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px;
}

.contact-info h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.location {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.location i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s;
    text-decoration: none !important;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.contact-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none !important;
}

.whatsapp-float i {
    text-decoration: none !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe57;
}

/* Footer */
footer {
    background: #001a33;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Subpage Styles */
.subpage header {
    position: relative;
    margin-bottom: 0;
}

.page-hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.course-details {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.details-main h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.details-main p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.info-box {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    position: sticky;
    top: 100px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.info-box ul {
    list-style: none;
    margin-bottom: 30px;
}

.info-box ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-box ul li i {
    width: 30px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.exam-section, .period {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.exam-section h2, .period h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Course & Modules Section */
.main-course-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.course-description h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.course-description p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.module-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.module-item:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.module-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.module-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.module-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.module-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placement-test-cta {
    background: var(--primary-color);
    padding: 40px 60px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.placement-test-cta h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.placement-test-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header & Nav */
    nav {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

    .header-actions .whatsapp-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        margin: 0;
        width: 100%;
    }

    /* About Section */
    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Course & Modules Section */
    .main-course-wrapper {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .placement-test-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 30px;
    }

    /* Contact Section - FIXED FOR MOBILE */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-info {
        padding: 40px 20px;
        text-align: center;
        width: 100%;
    }

    .location {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .contact-form {
        padding: 40px 20px;
        width: 100%;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    /* Floating WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    /* Subpages */
    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-box {
        position: static;
        padding: 30px;
    }

    /* Thank You Page */
    .thank-you-card {
        padding: 40px 20px;
    }

    .thank-you-card h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
