html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 120, 212, 0.7), rgba(0, 120, 212, 0.7)), url('https://images.unsplash.com/photo-1620121692029-d088224ddc74?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    max-width: 90%;
}

.hero h1 {
    font-size: 4.5em;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.8em;
    margin: 15px 0;
}

.hero button {
    background: #0078D4;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .hero button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services, .courses, .blog, .testimonials, .faq, .contact {
    padding: 80px 20px;
    text-align: center;
}

.services, .courses, .blog {
    background: #f9f9f9;
}

.testimonials, .faq {
    background: #fff;
}

.contact {
    background: #0078D4;
    color: white;
}

h2 {
    font-size: 2.5em;
    color: #0078D4;
    margin-bottom: 40px;
}

.contact h2 {
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item, .course-item, .blog-item {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

    .service-item:hover, .course-item:hover, .blog-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
    }

    .service-item i, .course-item i {
        font-size: 3em;
        color: #0078D4;
        margin-bottom: 15px;
    }

    .blog-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }

    .blog-item h3, .course-item h3 {
        font-size: 1.4em;
        margin: 10px 0;
    }

    .blog-item p, .course-item p {
        color: #666;
        font-size: 0.9em;
    }

    .blog-item button, .course-item button {
        background: #0078D4;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .blog-item button:hover, .course-item button:hover {
            background: #005BA1;
        }

.testimonials h2 {
    font-size: 2.5em;
    color: #0078D4;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-item {
    max-width: 320px;
    text-align: left;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
}

    .testimonial-item img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        margin-bottom: 10px;
    }

.faq-item {
    max-width: 700px;
    margin: 0 auto 15px;
    text-align: left;
}

    .faq-item h3 {
        font-size: 1.3em;
        color: #0078D4;
    }

.contact form {
    max-max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact input, .contact textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
}

.contact button {
    background: white;
    color: #0078D4;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .contact button:hover {
        background: #f4f4f4;
    }

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

    footer a {
        color: #0078D4;
        margin: 0 10px;
        font-size: 1.5em;
        transition: color 0.3s;
    }

        footer a:hover {
            color: #00A1F1;
        }

.chatbot {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #0078D4;
    color: white;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9em;
}

    .chatbot:hover {
        background: #005BA1;
    }

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel .blog-item {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
/* Media Queries para maior responsividade */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero button {
        padding: 10px 20px;
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .carousel .blog-item {
        flex: 0 0 250px;
    }

    .contact form {
        max-width: 90%;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .chatbot {
        padding: 10px;
        font-size: 0.8em;
    }
}