/* ==========================================================================
   1. RESET, VARIÁVEIS E ESTILOS GLOBAIS
   ========================================================================== */
:root {
    --primary-color: #570707;
    /* Azul UFPE */
    --secondary-color: #f39d12;
    /* Amarelo/Laranja para destaque */
    --dark-color: #5c2323;
    --light-color: #913030;
    --text-color: #000000;
    --white-color: #ffffff;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--light-color);
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
/* --- Botões --- */
.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-primary-dark {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* --- Cards --- */
.card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Grid Genérico --- */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   3. HEADER E FOOTER
   ========================================================================== */
#main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

#main-header.scrolled {
    padding: 0.5rem 0;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white-color);
    font-weight: 700;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-size: 1rem;
    line-height: 1.2;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    padding-bottom: 5px;
}

nav ul li a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

#main-footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

#main-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--white-color);
    display: block;
}

.footer-col p a {
    color: var(--white-color);
    display: block;
}

.footer-col p {
    color: var(--white-color);
    margin:10px;
}

.footer-col .social-icons {
    margin-top: 20px;
}

.footer-col .social-icons a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid #794242;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* --- Hero de Página Interna --- */
.page-hero {
    background: linear-gradient(rgba(230, 178, 178, 0.9), rgba(136, 81, 81, 0.9));
    padding: 140px 0 80px;
    color: var(--white-color);
    text-align: center;
}

.page-hero h1 {
    color: s var(--white-color);
    font-size: 3rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 1rem auto 0;
}


/* ==========================================================================
   4. ESTILOS PÁGINA PRINCIPAL (index.html)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(230, 178, 178, 0.9), rgba(136, 81, 81, 0.9)), url('https://via.placeholder.com/1920x1080/2c3e50/ffffff?text=Campus+UFPE') no-repeat center center/cover;
    color: var(--white-color);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .btn-secondary {
    color: var(--white-color);
    border-color: var(--white-color);
}

.pillars .pillar-card {
    text-align: center;
    padding: 20px;
}

.pillars .pillar-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stats {
    background: var(--dark-color);
    color: var(--white-color);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stats .stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
}

.testimonial {
    text-align: center;
}

.testimonial img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial cite span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
}

/* ==========================================================================
   5. ESTILOS PÁGINA O CURSO e sub-páginas
   ========================================================================== */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.periodo-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.periodo-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.periodo-card ul {
    list-style: none;
}

.depoimentos-grid .testimonial {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

/* ==========================================================================
   6. ESTILOS PÁGINA VIDA ACADÊMICA e sub-páginas
   ========================================================================== */
.landing-section .card {
    text-align: center;
}

.landing-section .card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.landing-section .card a {
    font-weight: 600;
}

.post-list .post-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-color);
    padding-bottom: 40px;
}

.post-list .post-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-list .post-item .post-content span {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.calendario-timeline {
    position: relative;
    padding: 20px 0;
}

.calendario-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--light-color);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 60px;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    font-weight: 600;
}

.timeline-item .timeline-date {
    font-weight: bold;
}

.estagio-item {
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
}

.estagio-item .tags span {
    display: inline;
    flex-wrap: wrap;
    background: var(--light-color);
    padding: 1px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
    color: var(--white-color);
}


/* ==========================================================================
   7. ESTILOS PÁGINA CONTATO
   ========================================================================== */
#contact-page .container {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.map-container {
    height: 300px;
    background: var(--light-color);
    border-radius: 8px;
    text-align: center;
    padding-top: 120px;
}

/* ==========================================================================
   8. MEDIA QUERIES PARA RESPONSIVIDADE
   ========================================================================== */

/* Desktop (notebooks e monitores) */
@media (min-width: 1024px) and (max-width: 1919px) {
    .modal-content {
        top: 10% !important;
        position: relative !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 992px) {

    .grid-2-cols,
    .grid-3-cols,
    .grid-4-cols {
        grid-template-columns: 1fr 1fr;
    }

    #main-footer .container,
    #contact-page .container {
        grid-template-columns: 1fr;
    }

    .about-section .container {
        flex-direction: column;
    }

    .post-list .post-item {
        flex-direction: column;
    }

    .post-list .post-item img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    /* Adicionar menu hamburguer no futuro */
    .grid-2-cols,
    .grid-3-cols,
    .grid-4-cols {
        grid-template-columns: 1fr;
    }

    .stats .container {
        flex-wrap: wrap;
    }

    .stats .stat-item {
        flex-basis: 50%;
        margin-bottom: 30px;
    }
}

/* --- AJUSTES PARA O MAPA NA PÁGINA DE CONTATO --- */
.map-container {
    height: 300px;
    /* Você pode ajustar essa altura se quiser */
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(100deg, #e0e0e0 8%, #f5f5f5 18%, #e0e0e0 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === Estilo dos Skeleton Cards === */
.card.skeleton-card {
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    width: 100%;
}

.skeleton-title {
    height: 20px;
    width: 80%;
}

.skeleton-tag {
    height: 20px;
    width: 60px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 20px;
}

/* Search Section */
.search-section {
    padding: 40px 0 20px;
    background: #f9f9f9;
}

.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.search-bar input {
    width: 300px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    top:0;
    left: 0;
    border-radius: 8px;
    width: 85%;
    max-width: 500px;
    top: 2%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.habilidades-baloes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.habilidades-baloes .badge {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: var(--light-color);
    color: var(--white-color);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.habilidades-baloes .badge.selected {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.tag-balao {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    margin: 2px;
    font-size: 0.8em;
    cursor: default;
    position: relative;
    top: 40px;
}

.tag-balao.ativo {
    display: inline;
    flex-wrap: wrap;
    background: var(--primary-color);
    cursor: pointer;
    position: relative;
    left: 15%;
    margin: 10px;
}

.tag-balao.ativo::after {
    content: "×";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8em;
    background: #fff;
    color: #28a745;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    cursor: pointer;
}

.habilidades-baloes .badge:hover {
    opacity: 0.8;
}

.badge {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 2px;
    border: 1px solid #007bff;
    display: inline-block;
}

.badge.selecionado {
    background: #007bff;
    color: #fff;
}

.paginacao {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

.paginacao button {
  border: 1px solid #aaa;
  background: #f9f9f9;
  padding: 6px 10px;
  border-radius: 4px;
  margin: 2px;
  transition: 0.2s;
}

/* Botões que não têm a classe 'ativo' e não têm a classe 'pagina' */
.paginacao button:not(.ativo):not(.botaoPaginacao):hover {
    background: #e6e6e6;
    cursor: pointer;
}


.paginacao button:disabled {
  opacity: 0.5;
  
}

.numero {
  display: flex;
  gap: 5px;
  font-size:10px;
  display: inline-block; /* necessário para vertical-align funcionar */
  vertical-align: bottom; /* alinha o span em relação à linha de base */
}
.numero:not(button) {
  font-weight: bold;
}

.numero .ativo {
  background-color: #0b0b0b;
  color: #fff;
  border: 2px solid #333;
  font-weight: bold;
  font-size: 20px;
}
