/* Edições Page - CSS baseado no site original */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #00CEB1;
    --primary-dark: #00a088;
    --text-dark: #011120;
    --text-light: #F9F8F8;
    --white: #ffffff;
    --black: #000000;
    --bg-light: #F9F8F8;
    --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-light);
    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;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================== HEADER ===================== */
#main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    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);
}

/* 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);
}

/* ===================== HERO SECTION ===================== */
#hero-edicoes {
    min-height: 510px;
    background-color: #000;
    background-image: url('/images/03.jpg');
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/03.jpg');
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), -webkit-image-set(url("/images/03.webp") type("image/webp"), url("/images/03.jpg") type("image/jpeg"));
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), image-set(url("/images/03.webp") type("image/webp"), url("/images/03.jpg") type("image/jpeg"));
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 250px 35px 200px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #F9F8F8;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: #F9F8F8;
}

/* ===================== MAIN CONTENT AREA ===================== */
.main-content {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    text-align: center;
}

.search-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 13.5px 20px;
    font-size: 16px;
    font-family: var(--font-main);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    background-color: var(--white);
    color: var(--text-dark);
    height: 51px;
    transition: box-shadow 0.4s ease;
}

.search-input: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;
    }
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 0 25px;
    height: 51px;
    /* Match input height */
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================== EDITIONS GRID ===================== */
.editions-section {
    padding: 40px 0;
}

.year-heading {
    font-size: 80px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 60px 0 40px;
    letter-spacing: -2px;
}

.year-heading:first-of-type {
    margin-top: 0;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.edition-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.edition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.edition-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 210 / 297;
    object-fit: cover;
}

.edition-card-content {
    padding: 15px;
    text-align: center;
    background: var(--white);
}

.edition-card-content a {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.edition-card-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* More Editions CTA */
.more-editions-cta {
    grid-column: 1 / -1;
    margin: 40px 0;
    background: linear-gradient(135deg, #011120 0%, #00CEB1 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.more-editions-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-30%) translateY(-30%);
    }

    50% {
        transform: translateX(30%) translateY(30%);
    }
}

.more-editions-content {
    position: relative;
    z-index: 1;
}

.more-editions-content i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.more-editions-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.more-editions-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

.more-editions-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    background-color: #ffffff;
    color: #011120;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.more-editions-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================== CATEGORIES SECTION ===================== */
.categories-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.categories-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    display: block;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 128px;
    height: 128px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.category-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #007a6a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.category-card p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
}

/* ===================== CURRENT EDITION SECTION ===================== */
.current-edition-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.current-edition-section figure {
    margin: 0;
    max-width: 50%;
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-edition-section img {
    border: none;
    border-radius: 15px;
    /* Added rounded corners */
    max-width: 100%;
    height: auto;
    width: 382px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 206, 177, 0.2);
    /* Subtle green glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.current-edition-section img:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15), 0 0 7px rgba(0, 206, 177, 0.5);
    /* Stronger glow on hover */
}

.wp-caption-text {
    font-size: 18px;
    color: rgba(1, 17, 32, 0.75);
    margin-top: 15px;
    text-align: center;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .current-edition-section {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .current-edition-section figure {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===================== TAGS SECTION ===================== */
.tags-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.tags-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 2.5s ease-out, color 2.5s ease-out, transform 0.3s;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: var(--black);
    transform: scale(1.05);
    transition: background-color 0.15s ease-in, color 0.15s ease-in, transform 0.3s;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.cta-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    padding: 18px 35px;
    /* Reduced side padding from 50px to 35px */
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-main);
    background-color: var(--primary-color);
    color: var(--black);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: #00e5c8;
    transform: scale(1.05);
}

/* ===================== TAGS SECTION ===================== */
.tags-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-body);
}

.tags-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.tag-link {
    display: inline-block;
    padding: 14px 30px;
    /* Increased size (~10% larger than standard) */
    font-size: 16px;
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    transition: all 2.5s ease;
}

.tag-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    /* Change background for clear hover state */
    color: var(--white);
    /* Ensure text is visible on teal background */
    transition: all 0.3s easebox;
}

/* ===================== 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) {
    .editions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    #main-footer {
        padding: 75px 25px 25px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .year-heading {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .editions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .year-heading {
        font-size: 50px;
        margin: 40px 0 30px;
    }

    .search-form {
        flex-direction: column;
        padding: 0 20px;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .categories-section h3,
    .tags-section h3,
    .cta-section h3 {
        font-size: 20px;
    }

    .container {
        padding: 0 20px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    #hero-edicoes {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .editions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .year-heading {
        font-size: 40px;
    }
}