/* === CONFIGURAÇÕES GLOBAIS E RESET === */
body, html { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #fff; color: #333; scroll-behavior: smooth; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* === LAYOUT PRINCIPAL E NAVEGAÇÃO === */
.main-nav { position: fixed; top: 0; left: 0; width: 80px; height: 100vh; background-color: transparent; z-index: 1000; display: flex; flex-direction: column; justify-content: flex-start; padding: 20px 0; transition: background-color 0.4s ease; }
.main-nav.scrolled { background-color: #1a1a1a; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.nav-logo { text-align: center; margin-bottom: 40px; }
.nav-logo-icon { max-width: 40px; height: auto; }
.main-nav ul { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.main-nav ul li a { display: block; color: #888; padding: 20px 0; font-size: 1.5rem; text-align: center; transition: all 0.3s; }
.main-nav ul li a:hover { color: #007bff; background-color: #f1f1f1; }
.page-content { margin-left: 80px; }

/* === BOTÃO DE LOGIN FLUTUANTE === */
.floating-login-btn { position: fixed; top: 25px; right: 25px; z-index: 1001; width: 50px; height: 50px; background-color: #007bff; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.floating-login-btn:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }

/* === SEÇÃO BANNER SLIDER (SWIPERJS) - VERSÃO FINAL CORRIGIDA === */
#inicio { padding: 0; }
.banner-slider { position: relative; width: 100%; height: 100vh; }
#inicio .swiper { width: 100%; height: 100%; }
.swiper-slide { background-size: cover; background-position: center; }
.slide-content-wrapper { display: flex; align-items: center; width: 100%; height: 100%; padding: 0 10%; box-sizing: border-box; }
.slide-content { position: relative; z-index: 2; color: white; max-width: 55%; text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7); }
.slide-content h1 { font-size: 4rem; font-weight: 700; margin: 0 0 1rem 0; line-height: 1.1; }
.slide-content p { font-size: 1.3rem; margin-bottom: 2rem; font-weight: 400; }
.btn-slide { padding: 15px 30px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s, transform 0.3s; }
.btn-slide:hover { background-color: #0056b3; transform: translateY(-3px); }
.slide-content.align-left { text-align: left; margin-right: auto; }
.slide-content.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.slide-content.align-right { text-align: right; margin-left: auto; }
#inicio .swiper-button-next, #inicio .swiper-button-prev { color: #ffffff; --swiper-navigation-size: 30px; background-color: rgba(0, 0, 0, 0.25); width: 50px; height: 50px; border-radius: 50%; transition: background-color 0.3s; }
#inicio .swiper-button-next:hover, #inicio .swiper-button-prev:hover { background-color: rgba(0, 0, 0, 0.5); }
#inicio .swiper-pagination-bullet { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.6); opacity: 1; transition: background-color 0.3s; }
#inicio .swiper-pagination-bullet-active { background-color: #ffffff; }
.swiper-fade .swiper-slide { pointer-events: none; transition-property: opacity; }
.swiper-fade .swiper-slide-active { pointer-events: auto; }

/* === ESTILOS GERAIS PARA SEÇÕES === */
.site-section { padding: 100px 0; border-bottom: 1px solid #eee; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 60px; font-weight: 700; position: relative; padding-bottom: 20px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: #007bff; }
.gray-bg { background-color: #f8f9fa; }

/* === SEÇÃO SOBRE MIM (#sobre) === */
#sobre .sobre-content { text-align: center; max-width: 800px; margin: 0 auto; }
.sobre-texto { font-size: 1.1rem; line-height: 1.8; color: #555; }

/* === SEÇÕES COM ABAS (Acadêmico, etc.) === */
.tabs-container { max-width: 900px; margin: 0 auto; }
.tabs-nav { display: flex; flex-wrap: wrap; border-bottom: 2px solid #eee; margin-bottom: 30px; }
.tab-btn { padding: 12px 22px; cursor: pointer; border: none; background-color: transparent; font-size: 1rem; font-weight: 500; color: #555; position: relative; transition: color 0.3s; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: #007bff; }
.tab-btn.active { color: #007bff; font-weight: bold; border-bottom-color: #007bff; }
.tab-panel { display: none; animation: fadeIn 0.5s; line-height: 1.8; color: #444; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === SEÇÃO SERVIÇOS (LAYOUT DE LISTA) === */
.servicos-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espaçamento entre cada item de serviço */
}

.servico-item {
    display: flex;
    align-items: center; /* Alinha o ícone verticalmente com o texto */
    text-align: left;
    gap: 110px; /* CORREÇÃO: Garante um bom espaçamento entre o ícone e o texto */
}

.servico-icon {
    font-size: 2.5rem; /* Aumenta um pouco o ícone para mais destaque */
    color: #007bff;
    flex-shrink: 0; /* Impede que o ícone seja espremido */
    width: 50px; /* Define uma largura fixa para o container do ícone */
    text-align: center;
}

.servico-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.servico-info p {
    margin: 0;
    line-height: 1.7;
    color: #666;
}

/* Mantém o layout responsivo para telas pequenas */
@media (max-width: 600px) {
    .servico-item {
        flex-direction: column;
        text-align: center;
        gap: 20px; /* Ajusta o espaçamento para o modo vertical */
    }
}

/* === SEÇÃO GALERIA (#galeria) E LIGHTBOX === */
.gallery-filters { text-align: center; margin-bottom: 40px; }
.filter-btn { background: none; border: 1px solid #ccc; padding: 10px 20px; margin: 5px; cursor: pointer; border-radius: 20px; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { background-color: #007bff; color: white; border-color: #007bff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-item { position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 123, 255, 0.7); color: white; display: flex; justify-content: center; align-items: center; font-size: 2rem; opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 80%; animation: zoomIn 0.3s; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }

/* === SEÇÃO BLOG (Homepage - #blog) === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.post-card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.post-card-content { flex-grow: 1; padding: 25px; }
.post-card a { text-decoration: none; color: inherit; }
.post-card-image { height: 200px; background-size: cover; background-position: center; }
.post-date { font-size: 0.8rem; color: #888; text-transform: uppercase; }
.post-card-content h3 { font-size: 1.3rem; margin: 10px 0; line-height: 1.4; }
.read-more { font-weight: bold; color: #007bff; }
.read-more i { margin-left: 5px; transition: margin-left 0.3s; }
.post-card:hover .read-more i { margin-left: 10px; }

/* === SEÇÃO VÍDEOS (#videos) === */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.video-item h4 { text-align: center; margin-top: 15px; font-weight: 500; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* === SEÇÃO DOWNLOADS (#downloads) === */
.download-list { display: flex; flex-direction: column; gap: 15px; }
.download-item { display: flex; align-items: center; background-color: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #eee; transition: box-shadow 0.3s; }
.download-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.07); }
.download-icon { font-size: 2rem; color: #007bff; margin-right: 20px; }
.download-info { flex-grow: 1; }
.download-info h4 { margin: 0 0 5px 0; font-size: 1.2rem; }
.download-info p { margin: 0; color: #666; }
.btn-download { padding: 10px 20px; background-color: #28a745; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; white-space: nowrap; transition: background-color 0.3s; }
.btn-download:hover { background-color: #218838; }

/* === SEÇÃO INSTAGRAM (#instagram) === */
#instagram { padding-bottom: 0; }
.instagram-feed { width: 100%; max-width: 1200px; margin: 0 auto; }
.instagram-feed iframe { width: 100% !important; border: 0; }

/* === FORMULÁRIO DE CONTATO (#contato) === */
.contato-wrapper { max-width: 800px; margin: 0 auto; background: #f8f9fa; padding: 40px; border-radius: 8px; border: 1px solid #eee; }
.contact-form .form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.contact-form .form-group { flex: 1; min-width: 250px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); outline: none; }
.contact-form .captcha-group { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.contact-form .captcha-group label { font-weight: bold; }
.contact-form .captcha-group input { width: 80px; margin-bottom: 20px; }
#form-status { margin-top: 20px; text-align: center; font-weight: bold; }
.status-success { color: #155724; }
.status-error { color: #721c24; }
.status-sending { color: #555; }
.btn-submit { width: 100%; padding: 15px; border: none; background-color: #007bff; color: white; font-size: 1.1rem; font-weight: bold; border-radius: 8px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: background-color 0.3s, transform 0.2s; }
.btn-submit:hover { background-color: #0056b3; transform: translateY(-2px); }

/* === PÁGINA DE BLOG COMPLETA (blog.php) === */
.blog-page-body .page-content, .single-post-body .page-content { margin-left: 80px; }
.blog-header { background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%); text-align: center; padding: 80px 40px; border-bottom: 1px solid #dee2e6; }
.blog-header h1 { font-size: 3.5rem; margin: 0; color: #1a1a1a; }
.blog-header p { font-size: 1.2rem; color: #666; margin-top: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }
.blog-content-area { padding: 80px 0; }
.blog-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 50px; }
.blog-list-container { display: flex; flex-direction: column; gap: 50px; margin-bottom: 60px; }
.post-list-item { display: flex; gap: 30px; }
.post-list-image { display: block; width: 300px; height: 200px; flex-shrink: 0; background-size: cover; background-position: center; border-radius: 5px; }
.post-list-content h2 { margin-top: 0; margin-bottom: 10px; }
.post-list-content h2 a { text-decoration: none; color: #1a1a1a; }
.post-list-content h2 a:hover { color: #007bff; }
@media (max-width: 768px) { .post-list-item { flex-direction: column; } .post-list-image { width: 100%; } }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid #eee; }
.pagination a { text-decoration: none; color: #555; border: 1px solid #ddd; padding: 10px 15px; border-radius: 5px; transition: all 0.3s; font-weight: 500; }
.pagination a:hover { background-color: #f1f1f1; border-color: #ccc; }
.pagination a.active { background-color: #007bff; color: white; border-color: #007bff; cursor: default; }

/* === PÁGINA DE POST INDIVIDUAL (post.php) === */
.single-post-body { background-color: #f8f9fa; }
.post-full-header { height: 55vh; width: 100%; background-size: cover; background-position: center; }
.post-full-content { max-width: 800px; margin: -120px auto 0 auto; padding: 50px 60px; background-color: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); position: relative; z-index: 10; }
.post-title-full { font-size: 2.8rem; margin: 0; line-height: 1.2; color: #1a1a1a; }
.post-meta-full { margin: 15px 0 40px 0; color: #888; font-size: 0.9rem; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.post-meta-full span { margin-right: 15px; }
.post-body { font-size: 1.1rem; line-height: 1.8; color: #333; }
.post-body h3 { font-size: 1.8rem; margin-top: 2.5em; margin-bottom: 1em; color: #1a1a1a; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: #007bff; text-decoration: none; border-bottom: 1px solid #007bff; }
.post-body a:hover { color: #0056b3; }
.back-link-container { text-align: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.btn-back { display: inline-block; padding: 12px 25px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s, transform 0.3s; }
.btn-back:hover { background-color: #0056b3; transform: translateY(-2px); }
.btn-back i { margin-right: 8px; }

/* === RODAPÉ (NOVO DESIGN) === */
.site-footer { background-color: #1a1a1a; color: #888; padding: 60px 0 20px 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.2rem; margin-top: 0; margin-bottom: 20px; }
.footer-col p, .footer-col ul { line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #888; text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: #fff; }
.social-links { margin-top: 20px; }
.social-links a { font-size: 1.5rem; margin-right: 20px; color: #888; transition: color 0.3s, transform 0.3s; display: inline-block; }
.social-links a:hover { color: #007bff; transform: translateY(-2px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #333; }

/* === MODAL DE LOGIN (Acesso do Aluno) === */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 40, 50, 0.7); backdrop-filter: blur(5px); z-index: 2000; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s, visibility 0s; }
.modal-overlay.modal-hidden { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.modal-content { background: #fff; padding: 0; padding-top: 50px; border-radius: 12px; width: 90%; max-width: 400px; position: relative; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(1); transition: transform 0.3s ease-out; }
.modal-overlay.modal-hidden .modal-content { transform: scale(0.95); }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #ccc; transition: color 0.3s, transform 0.3s; }
.modal-close:hover { color: #333; transform: rotate(90deg); }
.modal-icon { width: 80px; height: 80px; border-radius: 50%; background-color: #007bff; color: white; font-size: 2.5rem; display: flex; justify-content: center; align-items: center; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); border: 5px solid #fff; }
.modal-body { padding: 20px 40px 40px 40px; }
.modal-content h3 { margin-top: 0; margin-bottom: 5px; font-size: 1.8rem; font-weight: 600; color: #333; }
.modal-content p { margin-top: 0; margin-bottom: 30px; color: #666; }
.modal-content .form-group { margin-bottom: 1.5rem; text-align: left; }
.modal-content .form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #666; font-weight: 500; }
.modal-content .form-group input { font-size: 1.1rem; border: 2px solid #ddd; transition: border-color 0.3s, box-shadow 0.3s; width: 100%; padding: 15px; border-radius: 8px; box-sizing: border-box; }
.modal-content .form-group input:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); outline: none; }

/* === BOTÃO FLUTUANTE DE APPS (PADRÃO LATERAL) === */
.floating-apps-btn {
    position: fixed;
    top: 95px; /* abaixo do botão de login */
    right: 25px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}
.floating-apps-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    background-color: #218838;
}

/* === GRID DE APPS NO MODAL === */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.app-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.app-card:hover {
    background-color: #e9f2ff;
    border-color: #007bff;
    transform: translateY(-3px);
}
.app-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}
.app-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #343a40;
}
/* === SEÇÃO APLICATIVOS (#apps) === */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.app-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.app-icon i {
    font-size: 3rem;
    color: #007bff;
}

.app-info h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.btn-app {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-app:hover {
    background-color: #0056b3;
}

.no-apps {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}
