/* ==========================================
   ARTICLES HUB - ESPECÍFICO (OPTIMIZADO)
   ========================================== */

/* --- Layout Base da Página --- */
.cv-wrapper {
    padding-top: 130px !important;
}

.articles-hero {
    margin-bottom: 2rem !important;
}

/* --- Artigo Individual - Hero Section --- */
.article-title-main {
    font-family: 'Domine', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1rem;
}

.article-meta-header {
    padding-bottom: 2rem;
}

.article-meta-header .read-time,
.article-meta-header .author-badge {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-meta-header .read-time {
    color: var(--accent-green);
}

.article-meta-header .author-badge {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Artigo Individual - Corpo do Texto --- */
.article-body {
    font-size: 1.1rem;
}

.article-content-panel {
    /* Usa o background branco da secção pai, mantendo apenas o conteúdo centralizado */
    background: transparent;
    color: var(--dark-navy);
    padding: 3rem;
    max-width: 940px;
    margin: 0 auto;
}

.article-content-panel .article-body {
    color: inherit;
}

/* --- Corpo do artigo com fundo branco em toda a largura --- */
#article-content {
    background: #ffffff;
}

.article-paragraph {
    margin-bottom: 2rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
}

.article-paragraph:last-child {
    margin-bottom: 0;
}

.article-image-wrapper {
    text-align: center;
}

.article-image-wrapper img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Artigo em Destaque (Topo) --- */
.featured-article {
    background: #ffffff;
    border: 1px solid #eeeeee;
    margin-bottom: 0 !important;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    transition: all 0.4s ease;
}

.featured-article:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.featured-img-wrapper {
    height: 450px;
    overflow: hidden;
    background: var(--dark-navy);
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: 0.6s ease;
}

.featured-article:hover .featured-img-wrapper img {
    opacity: 1;
    transform: scale(1.02);
}

.featured-content {
    padding: 3rem;
}

/* --- Separadores e Ajustes de Grid --- */
.articles-separator {
    padding: 3rem 0 2rem 0;
    /* Mais espaço para respirar */
    background-color: transparent;
}

#works {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* NOTA: .article-card e elementos de UI (.meta-tag, .read-time)
   foram movidos para o style.css para serem reutilizados no index.html */

/* --- Responsividade Específica --- */
@media (max-width: 991.98px) {
    .cv-wrapper {
        padding-bottom: 60px;
    }

/* --- Project Template Styles --- */
.project-section-title {
    font-family: 'Domine', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-section-title:first-child {
    margin-top: 0;
}

.project-info {
    font-size: 1.1rem;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-tech-list {
    list-style: none;
    padding: 0;
    color: var(--dark-navy);
}

.project-tech-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-tech-list li:before {
    content: "• ";
    color: var(--accent-green);
    font-weight: bold;
}
.project-team-list {
    list-style: none;
    padding: 0;
    color: var(--dark-navy);
}

.project-team-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-team-list li:before {
    content: "• ";
    color: var(--accent-green);
    font-weight: bold;
}
    .featured-img-wrapper {
        height: 300px;
    }

    .featured-content {
        padding: 2rem;
    }

    .articles-separator {
        padding: 1.5rem 0 1rem 0;
    }

    .article-title-main {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .article-meta-header {
        padding-bottom: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }

    .article-content-panel {
        padding: 2.5rem;
    }

    #article-content {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* --- Project hero video fixes (global) --- */
#project-hero {
    background: transparent !important;
}

#project-hero .work-img-container {
    position: relative;
    z-index: 100;
    background-color: transparent !important;
}

#project-hero .work-img-container .ratio {
    background: transparent !important;
}

#project-hero .work-img-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: transparent !important;
}

#project-hero .work-img-container iframe::before {
    content: none !important;
}
