* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    background: #25D366;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.portal-links {
    display: flex;
    gap: 10px;
}

.portal-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.portal-btn:hover {
    background: rgba(255,255,255,0.3);
}

.navbar {
    padding: 15px 0;
    background: white;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #25D366;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #333;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #25D366;
}

.cta-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Hero Carousel Section */
.hero-carousel {
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.carousel-slide .hero-text h1 {
    font-size: 1.0rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-slide .hero-text h2 {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 30px;
    font-weight: bold;
}

.carousel-slide .hero-cta {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.carousel-slide .matricula-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-slide .matricula-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.carousel-slide .gratuita {
    font-size: 3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.carousel-slide .curso-info {
    font-size: 1.5rem;
}

.carousel-slide .promocao-text {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.carousel-slide .btn-matricula {
    display: block;
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s;
}

.carousel-slide .btn-matricula:hover {
    transform: translateY(-2px);
}

.carousel-slide .hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFD700;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 30px;
}

.about > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.video-placeholder {
    background: #333;
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-placeholder:hover {
    transform: scale(1.05);
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #25D366;
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: white;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.course-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-info span {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.duration {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.level {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

.mode {
    background: #e8f5e8 !important;
    color: #388e3c !important;
}

/* Internship Section */
.internship {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.internship h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.internship p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.students-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cta-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
}

.qr-code {
    text-align: center;
}

.qr-code p {
    margin-bottom: 20px;
    color: #666;
}

.qr-placeholder {
    background: #333;
    color: white;
    padding: 50px;
    border-radius: 15px;
    font-size: 4rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .carousel-container {
        height: 500px;
    }
    
    .carousel-slide .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .carousel-slide .hero-text h1 {
        font-size: 1rem;
    }
    
    .carousel-slide .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        margin-top: 100px;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .carousel-slide .hero-text h1 {
        font-size: 1.0rem;
    }
    
    .carousel-slide .hero-text h2 {
        font-size: 2rem;
    }
    
    .carousel-slide .gratuita {
        font-size: 2rem;
    }
    
    .about h2,
    .courses h2,
    .internship h2 {
        font-size: 2rem;
    }
    
    .course-card {
        padding: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

}

/* --- H1 fixo no topo do banner do carrossel --- */
.carousel-slide {
  position: relative; /* referência para o h1 absoluto */
}

.carousel-slide .hero-content {
  /* cria espaço para o h1 que fica absoluto no topo */
  padding-top: clamp(80px, 12vw, 140px);
}

.carousel-slide .hero-text h1 {
  position: absolute;
  top: 20px;                 /* distância do topo do slide */
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);   /* limita a largura para caber sempre */
  margin: 0;
  text-align: center;
  line-height: 1.25;
  z-index: 2;
  /* tamanho de fonte responsivo, sem estourar */
  font-size: clamp(1.1rem, 2.2vw + 0.6rem, 2.2rem);
  /* ajuda a quebrar frases longas */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Mobile: aproxima um pouco do topo e ajusta o espaço */
@media (max-width: 768px) {
  .carousel-slide .hero-text h1 { top: 10px; }
  .carousel-slide .hero-content { padding-top: clamp(60px, 12vw, 100px); }
}

/* Modal */
.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); 
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content .whatsapp-locais a {
  display: block;
  margin: 10px 0;
  color: #25D366;
  font-weight: bold;
  text-decoration: none;
}

.modal-content .whatsapp-locais a:hover {
  text-decoration: underline;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
