:root {
    --blue: rgb(10,77,140);
    --transluid-blue: rgba(10,77,140,0.85);
    --hovereffect-blue: rgba(10,77,140,0.12);

    --orange: rgb(255,152,0);
    --hovereffect-orange: rgba(255, 153, 0, 0.42);

    --textcolordark: rgb(51,51,51);
    --textcolorlight: #fff;

    --backgroundblue: rgb(240,246,252);

    --shadowcolor: rgba(10,77,140,0.08);
}

/* ============================= */
/* RESET & FONT */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--textcolordark);
    top: 0 !important;
}
/* ============================= */
/* NAVBAR */
/* ============================= */
header {
    background: var(--transluid-blue);
    backdrop-filter: blur(6px);
    padding: 28px 40px;
    position: sticky;
    top: 20px;
    width: 92%;
    margin: auto;
    border-radius: 30px;
    box-sizing: content-box;
    z-index: 100;
}

html, body {
    top: 0 !important;
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    line-height: normal;
}

/* Logo */
.logo {
    color: var(--textcolorlight);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
    justify-self: start;
}

.logo:hover {
    color: var(--orange);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    justify-self: center;
    transform: translateX(19px);
}

.nav-links a {
    color: var(--textcolorlight);
    text-decoration: none; /* remove sublinhado */
    font-weight: 500;
    transition: color 0.3s; /* suaviza a transicao de cor */
    line-height: normal;
}

/* Hover links */
.nav-links a:hover {
    color: var(--orange); /* alaranjado ao passar o mouse */
}

/* Dropdown idiomas */
.translate-widget {
    display: flex;
    align-items: center;
    justify-self: end;
}

#blogLanguageSelect {
    padding: 5px 32px 5px 10px;
    border-radius: 12px;
    border: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230a4d8c' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;

    color: var(--blue);
    font-weight: 500;
    cursor: pointer;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

#blogLanguageSelect:hover {
    background-color: var(--backgroundblue);
}

@media (max-width: 1100px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        justify-self: auto;
        transform: none;
    }
}


/* =========================
   HERO
========================= */
.blog-hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.blog-hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.blog-hero p {
    color: #666;
    font-size: 18px;
}

/* =========================
   BLOG GRID (INDEX/BLOG)
========================= */
.blog-section {
    width: 85%;
    margin: auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: black;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 15px;
    font-size: 16px;
}

.date {
    padding: 0 15px 20px;
    color: #777;
    font-size: 14px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.load-more {
    display: block;
    margin: 70px auto;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    background: #e8e8e8;
    font-size: 16px;
    cursor: pointer;
}

.load-more:hover {
    background: #ddd;
}

/* =========================
   ARTICLE PAGE (POST1)
========================= */
.article-container {
    width: 75%;
    margin: 120px auto;
}

.article-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.article-header .subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

.article-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 50px;
}

.article-image.is-hidden {
    display: none;
}

.article-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.article-content h2 {
    margin: 10px 0 20px;
    font-size: 28px;
}

.article-content ul {
    margin: 0 0 20px;
    padding-left: 24px;
    list-style: disc;
    list-style-position: outside;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    text-align: left;
}

/* SIDEBAR */
.article-sidebar {
    font-size: 14px;
}

.sidebar-block {
    margin-bottom: 40px;
}

.sidebar-block h4 {
    margin-bottom: 10px;
}

.share-buttons a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #0a4d8c;
    font-weight: 500;
}

/* POST NAVIGATION */
.post-navigation {
    width: 75%;
    margin: 10px auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.post-nav-btn {
    display: inline-block;
    text-decoration: none;
    background: #0a4d8c;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.post-nav-btn:hover {
    background: #083a68;
    transform: translateY(-2px);
}

.post-nav-spacer {
    width: 1px;
    height: 1px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1000px) {
    .posts-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .article-container {
        width: 90%;
        margin: 80px auto;
    }
    .blog-hero h1 {
        font-size: 36px;
    }
    .blog-hero p {
        font-size: 16px;
    }

    .post-navigation {
        width: 90%;
        flex-direction: column;
        align-items: stretch;
    }

    .post-nav-btn {
        text-align: center;
    }

    .post-nav-spacer {
        display: none;
    }
}

/* Layout Lado a Lado para Entrevistas */
.side-by-side-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tamanho do Logo */
.post-image-side {
    flex: 0 0 300px; /* Largura fixa para o logo */
}

.post-image-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

/* Coluna de Texto */
.post-content-side {
    flex: 1;
}

.post-title-main {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.post-subtitle-main {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* Estilização das Áreas (Tags) */
.areas-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.areas-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.areas-tags p {
    background: #eef2f7;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0;
    color: #0a4d8c;
    font-weight: bold;
}

/* Responsividade para Telemóveis */
@media (max-width: 768px) {
    .side-by-side-layout {
        flex-direction: column;
        align-items: center;
    }
    .post-image-side {
        flex: 0 0 auto;
        width: 200px;
        margin-bottom: 20px;
    }
}