/* Artigos Page - Clone exato do site original */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #00CEB1;
    --primary-dark: #00a088;
    --text-dark: #011120;
    --text-muted: rgba(1, 17, 32, 0.75);
    --white: #ffffff;
    --black: #000000;
    --bg-body: #F9F8F8;
    --bg-hero: #eeeeee;
    --border-teal: #23D2BA;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ===================== HEADER ===================== */
#masthead {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.main-header-bar {
    background: #000000;
    padding: 20px 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 350px;
    height: auto;
}

.logo {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1201px) {
    .logo {
        margin-left: 25px;
    }
}

.logo-tagline {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    margin-top: -5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-list li {
    padding: 0;
}

.nav-list a {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    padding: 0 18px;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-list a:hover {
    transform: scale(1.2);
}

.nav-list a.current {
    text-decoration: none;
}

/* Publique Button - Teal Pill */
.nav-list a.nav-btn-teal {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
}

.nav-list a.nav-btn-teal:hover {
    transform: scale(1.2);
}

/* ===================== MAIN CONTENT ===================== */
#content {
    background-color: var(--bg-body);
}

#primary {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================== HERO SECTION ===================== */
.ast-archive-description {
    background-color: var(--bg-hero);
    padding: 90px 120px 60px;
    text-align: center;
    margin-top: 40px;
}

.page-title {
    font-size: 51.4px;
    font-weight: 300;
    font-style: italic;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
}

/* ===================== SEARCH WRAPPER ===================== */
.search-wrapper {
    padding: 30px 0;
    background-color: var(--bg-body);
}

/* ===================== CONTAINER ===================== */
.ast-container {
    padding: 60px 120px 80px;
    background-color: var(--white);
    margin-bottom: 40px;
}

/* ===================== SEARCH FORM ===================== */
.sr-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.search-field {
    flex: 1;
    padding: 13.5px 15px;
    font-size: 16px;
    font-family: var(--font-main);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    padding-left: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    height: 51px;
    transition: box-shadow 0.4s ease;
}

.search-field::placeholder {
    color: #999;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(0, 206, 177, 0.3);
    animation: glowFade 1.2s ease forwards;
}

@keyframes glowFade {
    0% {
        box-shadow: 0 0 7px rgba(0, 206, 177, 0.35);
    }

    100% {
        box-shadow: none;
    }
}

.src-submit {
    padding: 0 35px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    white-space: nowrap;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.src-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================== ARTICLES LIST ===================== */
.articles-list {
    margin-bottom: 40px;
}

.ast-article-post {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ast-article-post:first-child {
    padding-top: 0;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.entry-title a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-title u {
    text-decoration: underline;
    color: black;
}

.entry-meta {
    font-size: 18px;
    color: var(--text-muted);
}

.cat-links a {
    color: var(--primary-color);
    font-size: 18px;
    transition: color 0.3s;
}

.cat-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.edition-link {
    margin-left: 5px;
}

.edition-link::before {
    content: "\2022";
    margin-right: 5px;
    color: var(--primary-color);
}

.edition-link a {
    color: #3366cc;
    font-size: 18px;
    transition: color 0.3s;
}

.edition-link a:hover {
    color: #1a3d7c;
    text-decoration: underline;
}

.entry-content {
    margin-bottom: 12px;
}

.entry-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

.more-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color);
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s;
}

.page-nav:hover {
    background-color: var(--primary-color);
    color: var(--black);
}

/* ===================== FOOTER ===================== */
#main-footer {
    background-color: #000000;
    color: var(--white);
    padding: 100px 30px 45px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col .footer-title {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #f9f8f8;
    font-family: inherit;
    display: block;
}

.footer-col p {
    font-size: 18px;
    line-height: 1.85;
    color: var(--white);
    margin-bottom: 1.75em;
}

.footer-col p:last-child {
    margin-bottom: 0;
}

.footer-col b,
.footer-col strong {
    font-weight: 700;
}

.teal-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===================== MOBILE MENU ===================== */
.menu-toggle {
    display: none;
    background-color: var(--primary-color);
    width: 45px;
    height: 45px;
    border: none;
    align-items: center;
    justify-content: center;
    color: #f9f8f8;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 920px) {
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .header-inner {
        padding: 0 20px;
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center;
    }

    .logo img {
        width: 253px !important;
        max-width: 80vw !important;
        height: auto !important;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f9f8f8;
        flex-direction: column;
        display: none;
        border-top: 1px solid #dddddd;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        padding: 0;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 0 20px;
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid #dddddd;
        color: rgba(1, 17, 32, 0.75);
        font-size: 16.4px;
        font-weight: 400;
        text-align: left;
    }

    .nav-list a.nav-btn-teal {
        background-color: transparent;
        color: rgba(1, 17, 32, 0.75);
        padding: 0 20px;
        border-radius: 0;
        font-weight: 400;
    }

    .nav-list a.nav-btn-teal:hover {
        background-color: transparent;
        transform: none;
        color: var(--primary-color);
    }

    .nav-list a:hover {
        color: var(--primary-color);
        transform: none;
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .ast-archive-description {
        padding: 80px 40px 50px;
    }

    .ast-container {
        padding: 40px 40px 60px;
    }

    .search-wrapper {
        padding: 30px 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    #main-footer {
        padding: 75px 25px 25px;
    }

    .page-title {
        font-size: 48px;
        font-weight: 400;
    }
}

@media (max-width: 768px) {
    .ast-archive-description {
        padding: 60px 20px 40px;
    }

    .ast-container {
        padding: 30px 20px 40px;
    }

    .search-wrapper {
        padding: 20px 20px;
    }

    .page-title {
        font-size: 48px;
        font-weight: 400;
    }

    .sr-form {
        flex-direction: column;
    }

    .search-field,
    .src-submit {
        width: 100%;
    }

    .entry-title {
        font-size: 26px;
    }

    .entry-meta,
    .cat-links a {
        font-size: 16px;
    }

    /* Mobile Metadata Stack */
    .entry-meta .cat-links {
        display: block;
        margin-bottom: 4px;
    }

    .entry-meta .edition-link {
        margin-left: 0;
    }

    .entry-meta .edition-link::before {
        content: none;
        margin-right: 0;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .pagination {
        gap: 3px;
    }

    .page-numbers {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .ast-archive-description {
        padding: 50px 15px 30px;
    }

    .ast-container {
        padding: 20px 15px 30px;
    }

    .search-wrapper {
        padding: 15px 15px;
    }

    .page-title {
        font-size: 2.9rem;
        font-weight: 400;
    }

    .ast-article-post {
        padding: 25px 0;
    }

    .entry-title {
        font-size: 26px;
    }

    .entry-content p {
        font-size: 14px;
    }
}