/*
Theme Name: Tema FAM - NH 3
Theme URI: https://famamericana.com.br
Author: Nicole Heguy
Author URI: https://nikkoin.art/
Description: Portal de Revistas Acadêmicas da FAM — Design moderno com submissões externas via OJS.
Version: 3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-fam-nh-3
Tags: academic, journal, magazine, custom-menu, featured-images
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    /* Font */
    --font-family: "Source Sans 3", sans-serif;

    /* Primary */
    --primary: #004488;
    --primary-dark: #1b3556;
    --primary-light: #e8f0fe;
    --primary-rgb: 0, 85, 164;

    /* Accent */
    --accent: #e53888;
    --accent-light: #fce4ef;

    /* Status */
    --success: #3eb288;
    --warning: #f9e20f;
    --danger: #e74c3c;
    --info: #45b7e5;

    /* Text */
    --text-color: #0f172a;
    --text-light: #334155;
    --text-muted: #64748b;

    /* Backgrounds */
    --bg-color: #ffffff;
    --bg-alt: #f1f3f8;
    --bg-hover: #e8ebf2;

    /* Borders */
    --border-color: #bcc3cf;
    --border-light: #d8dde6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap");

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-alt);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.site-main {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
    /* compensate fixed navbar */
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 23px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: #1b3556;
}

.navbar-scroll-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: #45b7e5;
    transition: opacity 0.3s ease;
    opacity: 0;
    width: 0;
    z-index: 1000;
}

.navbar-scrolled .navbar-scroll-indicator {
    opacity: 1;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
}

.logo img {
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(17%) sepia(90%) saturate(1654%)
        hue-rotate(194deg) brightness(98%) contrast(101%);
}

.navbar-scrolled .logo img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(83%) saturate(2%)
        hue-rotate(326deg) brightness(108%) contrast(100%);
}

/* Homepage-only navbar (not scrolled) */
.navbar-home .logo img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(83%) saturate(2%)
        hue-rotate(326deg) brightness(108%) contrast(100%);
}

.navbar-home:not(.navbar-scrolled) .nav-link {
    color: white;
}

.navbar-home:not(.navbar-scrolled) .nav-link::after {
    background-color: #f9e20f;
}

.navbar-home:not(.navbar-scrolled) .line {
    stroke: white;
}

.navbar-home:not(.navbar-scrolled) .inscreva-btn {
    background-color: var(--info);
    border-color: var(--info);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled .nav-link {
    color: white;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #45b7e5;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Nav Submenu (Dropdown) ── */
.has-submenu {
    position: relative;
}

.nav-arrow {
    font-size: 0.6em;
    margin-left: 3px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.has-submenu:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-xs) 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.has-submenu:hover > .nav-submenu,
.has-submenu:focus-within > .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-submenu li {
    margin: 0;
    width: 100%;
}

.nav-submenu-link {
    display: block;
    padding: var(--sp-sm) var(--sp-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-submenu-link:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.inscreva-btn {
    background-color: #e53888;
    color: white !important;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #e53888;
    text-decoration: none;
}

.inscreva-btn:hover {
    background-color: transparent;
    color: #000 !important;
}

.navbar-scrolled .inscreva-btn {
    background-color: white;
    color: #e53888 !important;
    border-color: white;
}

.navbar-scrolled .inscreva-btn:hover {
    background-color: #e53888;
    color: white !important;
    border-color: #e53888;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Menu Styles */
.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    user-select: none;
}

.hamRotate.active {
    transform: rotate(45deg);
}

.navbar-scrolled .line {
    stroke: white;
}

.line {
    fill: none;
    transition:
        stroke-dasharray 400ms,
        stroke-dashoffset 400ms;
    stroke: #000;
    stroke-width: 5.5;
    stroke-linecap: round;
}

.ham4 .top {
    stroke-dasharray: 40 121;
}

.ham4 .bottom {
    stroke-dasharray: 40 121;
}

.ham4.active .top {
    stroke-dashoffset: -68px;
}

.ham4.active .bottom {
    stroke-dashoffset: -68px;
}

.menu-toggle .ham {
    width: 50px;
    height: 50px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(
        180deg,
        var(--primary-dark) 0%,
        var(--primary) 100%
    );
    padding: var(--sp-3xl) 0;
    color: #fff;
    text-align: center;
    margin-top: calc(-1 * var(--header-height) - 8px);
    padding-top: 100px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--sp-md);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-logo {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;

    margin-top: 50px;
    margin-bottom: 70px;
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: var(--sp-md);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.section-header h2 i {
    color: var(--text-muted);
    font-size: 1.1rem;
    color: var(--accent);
}

.section-header .section-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header .section-link:hover {
    color: var(--primary-dark);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: var(--sp-lg);
}

.card-footer {
    padding: var(--sp-md) var(--sp-lg);
    border-top: 1px solid var(--border-light);
}

/* Intro Section (Front Page) */
.intro-section {
    padding: var(--sp-2xl) 0 0;
    margin-top: -70px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    align-items: stretch;
}

/* ── About Card ── */
.intro-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-xl) var(--sp-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.intro-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: var(--sp-xs);
}

.intro-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.intro-card p {
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
    text-indent: 10px;
}

/* ── CTA Card ── */
.intro-cta-card {
    border-radius: var(--radius-md);
    padding: var(--sp-xl) var(--sp-2xl);
    display: flex;
    border: 1px solid var(--info);
    position: relative;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.intro-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.intro-cta-content > i {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--sp-xs);
}

.intro-cta-content h3 {
    font-size: 1.2rem;
    font-weight: 700;

    margin: 0;
}

.intro-cta-content p {
    font-size: 0.9rem;

    line-height: 1.7;
    margin: 0;
    text-indent: 10px;
    height: 100%;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-lg);
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-top: var(--sp-sm);
    align-self: flex-start;
    width: 100%;
}

.btn-cta-white:hover {
    background: var(--info);
    color: white;
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .revistas-grid {
        grid-template-columns: 1fr;
    }
}

/* Revista Cards (Home) */
.revistas-section {
    padding: var(--sp-3xl) 0;
}

.revistas-section .revistas-grid {
    display: flex;
    flex: auto;
    gap: var(--sp-lg);
}

.revistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-md);
}

.revista-card {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.revista-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-md);
}

.revista-card:hover::before {
    transform: scaleX(1);
}

.revista-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--sp-xs);
}

.revista-card-header .count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: var(--bg-alt);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.revista-card-body {
    margin-top: var(--sp-md);
}

.revista-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--sp-lg);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm) var(--sp-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.5;
    font-family: var(--font-family);
    box-sizing: border-box;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-color);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover:not(:disabled) {
    background: #c42c72;
    color: #fff;
}

.btn-sm {
    padding: var(--sp-xs) var(--sp-md);
    font-size: 0.8rem;
}

.btn-lg {
    padding: var(--sp-md) var(--sp-xl);
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    padding: var(--sp-xs) var(--sp-sm);
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================================
   Articles Grid
   ============================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-md);
}

/* Article Card */
.article-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}

.article-card-thumb {
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.03);
}

.article-card-content {
    padding: var(--sp-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--sp-sm);
    line-height: 1.4;
}

.article-card-content h3 a {
    color: var(--text-color);
}

.article-card-content h3 a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--sp-sm);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-meta-edicao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
    margin-bottom: var(--sp-sm);
}

.article-meta-edicao:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--sp-md);
    flex: 1;
}

.article-card-content > a:last-child,
.read-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--primary);
}

.read-more-link:hover {
    color: var(--primary-dark);
    gap: 7px;
}

.article-card-content .badge {
    align-self: flex-start;
    margin-bottom: var(--sp-xs);
    font-size: 0.7rem;
}

/* Revista Overlay Card (used in grids for revista CPT items) */
.revista-overlay-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 380px;
    display: block;
    background: var(--bg-alt);
}

.revista-overlay-card img,
.revista-overlay-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transition: transform 0.5s ease;
}

.revista-overlay-card .overlay-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3.5rem;
}

.revista-overlay-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 65%,
        transparent 100%
    );
    padding: var(--sp-lg);
    color: #fff;
}

.revista-overlay-card .overlay .overlay-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--sp-sm);
}

.revista-overlay-card .overlay .badge-edition {
    display: inline-block;
    padding: 3px 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.revista-overlay-card .badge-category {
    position: absolute;
    top: var(--sp-lg);
    left: var(--sp-lg);
    z-index: 3;
    padding: 3px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    pointer-events: none;
}

.revista-overlay-card .overlay h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--sp-sm);
    line-height: 1.3;
}

.revista-overlay-card .overlay .meta {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.revista-overlay-card .overlay .meta i {
    margin-right: 4px;
}

.revista-overlay-card:hover img {
    transform: scale(1.05);
}

/* ============================================================
   Featured Article (Destaque)
   ============================================================ */
.featured-section {
    padding-top: var(--sp-xl);
    margin-bottom: var(--sp-2xl);
}

.featured-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    box-shadow: var(--shadow-md);
    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Image side */
.featured-card .featured-image {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
    min-height: 320px;
}

.featured-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.04);
}

/* When no image — placeholder */
.featured-card .featured-image:empty::after,
.featured-card:not(:has(.featured-image)) .featured-content {
    grid-column: 1 / -1;
}

/* Content side */
.featured-card .featured-content {
    padding: var(--sp-xl) var(--sp-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-sm);
}

.featured-card .featured-content .badge {
    align-self: flex-start;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-card .featured-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.featured-card .featured-content h2 a {
    color: var(--text-color);
    transition: color var(--transition);
}

.featured-card .featured-content h2 a:hover {
    color: var(--primary);
}

.featured-card .featured-content > p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .featured-content .article-meta {
    margin-top: var(--sp-sm);
    padding-top: var(--sp-md);
    border-top: 1px solid var(--border-light);
}

/* Full-width when no image */
.featured-card:not(:has(.featured-image)) {
    grid-template-columns: 1fr;
}

.featured-card:not(:has(.featured-image)) .featured-content {
    padding: var(--sp-2xl) var(--sp-3xl);
}

.featured-card:not(:has(.featured-image)) .featured-content h2 {
    font-size: 1.75rem;
}

/* ============================================================
   Revista Header (Category/Taxonomy pages)
   ============================================================ */
.revista-header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    padding: var(--sp-2xl) 0;
    color: #fff;
    text-align: center;
}

.revista-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--sp-sm);
}

.revista-header .description {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   Badges & Tags
   ============================================================ */
.badge {
    display: inline-block;
    padding: var(--sp-xs) var(--sp-sm);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 5px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-success {
    background: rgba(62, 178, 136, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(69, 183, 229, 0.1);
    color: var(--info);
}

.badge-muted {
    background: var(--bg-alt);
    color: var(--text-muted);
}

/* ============================================================
   Single Article / Revista
   ============================================================ */
.single-article {
    padding: var(--sp-2xl) 0;
}

.single-article .article-header {
    margin-bottom: var(--sp-2xl);
}

.single-article .article-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--sp-md);
}

.single-content-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.single-two-col {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--sp-2xl);
    align-items: start;
}

.revista-cover-large img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.revista-cover-large .cover-placeholder {
    width: 100%;
    height: 450px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 4rem;
}

.single-info-box {
    margin-top: var(--sp-xl);
    padding: var(--sp-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.single-info-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--sp-md);
    color: var(--primary);
}

.single-info-box p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-light);
}

.single-info-box p strong {
    color: var(--text-color);
}

/* Article Content Styling */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: var(--sp-md);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: var(--sp-xl) 0 var(--sp-md);
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content h4 {
    font-size: 1.1rem;
}

.article-content ul,
.article-content ol {
    margin: var(--sp-md) 0;
    padding-left: var(--sp-xl);
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: var(--sp-sm);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: var(--sp-lg) 0;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: var(--sp-md) var(--sp-lg);
    margin: var(--sp-lg) 0;
    background: var(--bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-light);
    font-style: italic;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
}

.article-tags a {
    padding: var(--sp-xs) var(--sp-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.article-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
}

.post-nav-card {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md);
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-fast);
    min-width: 0;
}

.post-nav-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow-sm);
    color: var(--text-color);
}

.post-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.post-nav-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background var(--transition-fast);
}

.post-nav-card:hover .post-nav-arrow {
    background: var(--primary);
    color: #fff;
}

.post-nav-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
}

.post-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-nav-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.post-nav-text small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-nav-next .post-nav-text small {
    justify-content: flex-end;
}

.post-nav-text span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.post-nav-card:hover .post-nav-text span {
    color: var(--primary-dark);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: var(--sp-sm) var(--sp-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.back-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-sm);
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: var(--sp-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--sp-xs);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: auto;
}

.form-hint {
    margin-top: var(--sp-xs);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
}

/* Form Messages */
.form-messages {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-lg);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.form-messages.success {
    background: rgba(62, 178, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(62, 178, 136, 0.2);
}

.form-messages.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ============================================================
   Contact / Submission Page
   ============================================================ */

.contato-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-2xl);
}

.info-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.processo-steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

.processo-steps li {
    counter-increment: step;
    padding: var(--sp-sm) 0;
    padding-left: var(--sp-2xl);
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.processo-steps li::before {
    content: counter(step);
    position: absolute;
    left: 10px;
    top: var(--sp-sm);
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.contato-form-section {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-xl);
}

.contato-form-section h2,
.info-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.contato-form-section h2 i,
.info-card h2 i {
    color: var(--accent);
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline-section {
    padding: var(--sp-2xl) 0;
}

.timeline {
    position: relative;
    padding-left: var(--sp-2xl);
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-year {
    margin-bottom: var(--sp-xl);
}

.timeline-year-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--sp-md);
    position: relative;
}

.timeline-year-label::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--sp-2xl) + 4px);
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-alt);
}

.timeline-item .timeline-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    border-radius: 20px 20px 0 0;
    width: 100%;
    background-color: #1b3556;
    margin-top: 120px;
    padding: 0 20px;
    box-sizing: border-box;
    height: fit-content;
    font-family: var(--font-family);
}

footer p {
    color: white;
}

footer {
    color: white;
}

.footer a {
    color: white;
    text-decoration: underline;
}

.footer {
    max-width: 1000px;
    margin: 0 auto;
}

.footer img {
    max-width: 200px;
}

.footer ul {
    padding-left: 18px;
    list-style: disc;
}

.footer .titulos_footer {
    margin-top: 10px;
    text-align: left;
    font-size: x-large;
    font-weight: bold;
}

footer .footer_design {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: 20px 0;
}

footer .primeiro {
    display: flex;
    justify-content: center;
    align-content: center;
    grid-area: 1 / 1 / 3 / 2;
    padding: 30px 0 10px 0;
}

footer .segundo {
    grid-area: 1 / 2 / 3 / 3;
    width: 260px;
    padding: 30px 0;
}

footer .terceiro {
    grid-area: 1 / 3 / 3 / 4;
    padding: 30px 0;
    width: 390px;
}

footer .quatro {
    display: flex;
    align-items: center;
}

footer .footer-c {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #f9e20f;
    padding: 10px 0;
    padding-bottom: 40px;
}

footer .creditos {
    color: white;
    font-size: 14px;
    text-align: center;
}

footer .creditos_eu {
    display: flex;
    align-items: baseline;
}

footer .creditos_eu p {
    font-size: 14px;
}

footer .creditos_eu img {
    width: 95px;
    margin-left: 6px;
    margin-top: 0px;
}

footer .footer-info p {
    margin: 0 0 10px 0;
    text-align: left;
}

footer .footer-info p i {
    color: #45b7e5;
    font-size: 12px;
    margin-right: 4px;
}

footer .footer-info-icons {
    display: flex;
    gap: 10px;
}

footer .footer-info-icons i {
    font-size: 17px;
    color: #f9e20f;
}

@media (max-width: 900px) {
    footer .footer-c {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    footer .creditos_eu {
        margin-top: -20px;
        justify-content: left;
    }
}

@media (max-width: 990px) {
    footer .footer_design {
        grid-template-columns: auto;
    }

    footer .primeiro {
        grid-area: 1 / 1 / 2 / 3;
        justify-content: start;
    }

    footer .segundo {
        grid-area: 2 / 1 / 3 / 2;
    }

    footer .terceiro {
        grid-area: 2 / 2 / 3 / 3;
    }
}

@media (max-width: 700px) {
    footer .footer_design {
        grid-template-rows: auto;
        height: 100%;
    }

    footer .primeiro {
        grid-area: 1 / 1 / 2 / 2;
        justify-content: start;
    }

    footer .segundo {
        grid-area: 2 / 1 / 3 / 2;
        padding-bottom: 10px;
        width: auto;
    }

    footer .terceiro {
        grid-area: 3 / 1 / 4 / 2;
        padding: 0 0 30px 0;
        width: auto;
    }

    footer .footer-c {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border-top: 1px solid #f9e20f;
    }
}

/* ============================================================
   404 Page
   ============================================================ */
.page-404 {
    text-align: center;
    padding: var(--sp-3xl) 0;
}

.page-404 .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: var(--sp-md);
}

.page-404 h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--sp-md);
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: var(--sp-xl);
}

.page-404 .actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-md);
}

/* ============================================================
   Search Form
   ============================================================ */
.search-form {
    display: flex;
    gap: var(--sp-sm);
    max-width: 500px;
}

.search-form .form-control {
    flex: 1;
}

.search-form .btn {
    flex-shrink: 0;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-small {
    font-size: 0.8rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--sp-sm);
}

.mt-2 {
    margin-top: var(--sp-md);
}

.mt-3 {
    margin-top: var(--sp-lg);
}

.mt-4 {
    margin-top: var(--sp-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--sp-sm);
}

.mb-2 {
    margin-bottom: var(--sp-md);
}

.mb-3 {
    margin-bottom: var(--sp-lg);
}

.mb-4 {
    margin-bottom: var(--sp-xl);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--sp-sm);
}

.gap-2 {
    gap: var(--sp-md);
}

.gap-3 {
    gap: var(--sp-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .featured-image {
        min-height: 240px;
        max-height: 300px;
    }

    .featured-card .featured-content {
        padding: var(--sp-lg) var(--sp-xl);
    }

    .featured-card .featured-content h2 {
        font-size: 1.3rem;
    }

    .single-two-col {
        grid-template-columns: 1fr;
    }

    .contato-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .logo {
        margin-top: 5px;
    }

    .navbar {
        padding: 15px 0;
    }

    .navbar-home .nav-link {
        color: black !important;
    }

    .navbar-container {
        position: relative;
    }

    .navbar-scrolled .nav-link {
        color: #e53888;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 75px;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        height: 0;
        overflow: hidden;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        gap: 0px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        transform: translateY(-10px);
        isolation: isolate;
    }

    .nav-menu.active {
        height: auto;
        max-height: 90vh;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateY(0);
        overflow-y: hidden;
        background-color: #ffffff !important;
        z-index: 999;
    }

    .nav-menu.active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        z-index: -1;
    }

    .nav-menu.active li:nth-child(1) .nav-link {
        transition-delay: 0.05s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(2) .nav-link {
        transition-delay: 0.1s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(3) .nav-link {
        transition-delay: 0.15s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(4) .nav-link {
        transition-delay: 0.2s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(5) .nav-link {
        transition-delay: 0.25s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(6) .nav-link {
        transition-delay: 0.3s;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        text-align: center;
        width: 100%;
        transition: all 0.4s ease;
        opacity: 0;
        transform: translateY(10px);
        position: relative;
        overflow: hidden;
        font-weight: 600;
        background-color: #ffffff;
    }

    .nav-link:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: rgba(69, 183, 229, 0.1);
        transition: all 0.3s ease;
        z-index: -1;
    }

    .nav-link:hover:before {
        width: 100%;
    }

    .nav-link:hover {
        color: #45b7e5;
        background-color: rgba(69, 183, 229, 0.05);
        transform: translateX(3px);
    }

    .nav-menu.active li:last-child {
        padding: 20px;
    }

    .nav-menu.active .nav-submenu li:last-child {
        padding: 0 !important;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }

    /* Mobile submenu */
    .nav-submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.03);
    }

    .has-submenu:hover > .nav-submenu {
        transform: none;
    }

    .nav-submenu-link {
        padding: 14px 20px 14px 40px !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--text-light) !important;
    }

    .nav-submenu-link:hover {
        color: var(--primary) !important;
    }

    .nav-arrow {
        font-size: 0.55em;
    }

    .menu-toggle {
        display: flex;
        z-index: 200;
        background-color: transparent;
        border-radius: 8px;
        width: 50px;
        height: 45px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .menu-toggle:active {
        transform: scale(0.95);
    }

    .navbar-scrolled .menu-toggle {
        background-color: transparent;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: #45b7e5;
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background-color: #e53888;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        background-color: #e53888;
    }

    .navbar-home:not(.navbar-scrolled) .logo img {
        filter: brightness(0) saturate(100%) invert(99%) sepia(83%) saturate(2%)
            hue-rotate(326deg) brightness(108%) contrast(100%) !important;
    }

    .navbar-scrolled .logo img {
        filter: brightness(0) saturate(100%) invert(99%) sepia(83%) saturate(2%)
            hue-rotate(326deg) brightness(108%) contrast(100%) !important;
    }

    .navbar-scrolled img {
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg)
            brightness(103%) contrast(103%) !important;
    }

    .navbar-scrolled .nav-menu {
        background-color: #1b3556;
    }

    .navbar-scrolled .nav-link {
        color: #444;
    }

    .navbar-scrolled .nav-link:hover {
        color: #45b7e5;
    }

    .navbar-scrolled .menu-toggle span {
        background-color: white;
    }

    .navbar-scrolled .menu-toggle.active span {
        background-color: #45b7e5;
    }

    .menu-toggle:hover span {
        background-color: #e53888;
    }

    .nav-menu.active:after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.15);
        z-index: -2;
        animation: fadeIn 0.3s forwards;
        pointer-events: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .navbar-scrolled .inscreva-btn {
        background-color: #e53888;
        color: white !important;
        border-color: #e53888;
    }

    .navbar-scrolled .inscreva-btn:hover {
        background-color: transparent;
        color: #000 !important;
        border-color: #e53888;
    }

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .revista-header h1 {
        font-size: 1.35rem;
    }

    .revistas-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-item.nav-next {
        text-align: left;
    }

    .page-404 .error-code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--sp-md);
    }

    .single-article .article-header h1 {
        font-size: 1.5rem;
    }

    .articles-grid {
        gap: var(--sp-md);
    }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-xl);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--sp-lg);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 600;
}

/* ============================================================
   Article Meta (single)
   ============================================================ */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--sp-sm);
}

.article-meta i {
    margin-right: 4px;
}

.article-revista-link {
    margin-top: var(--sp-md);
    padding: var(--sp-sm) var(--sp-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-revista-link a {
    color: var(--primary);
    font-weight: 600;
}

/* ══ Article Revista Banner (single.php) ══ */
.article-revista-banner {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: linear-gradient(
        135deg,
        var(--primary-light),
        rgba(var(--primary-rgb), 0.08)
    );
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: var(--radius-lg);
    margin: var(--sp-lg) 0;
}

.rev-banner-cover {
    flex-shrink: 0;
    width: 56px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: block;
}

.rev-banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rev-banner-info {
    flex: 1;
    min-width: 0;
}

.rev-banner-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.rev-banner-label i {
    margin-right: 3px;
    color: var(--primary);
}

.rev-banner-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rev-banner-title:hover {
    text-decoration: underline;
}

.rev-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rev-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.rev-banner-meta a {
    color: var(--text-muted);
    font-weight: 500;
}

.rev-banner-meta a:hover {
    color: var(--primary);
}

.rev-banner-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

@media (max-width: 640px) {
    .article-revista-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .rev-banner-cover {
        margin: 0 auto;
    }

    .rev-banner-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.article-featured-image {
    margin: var(--sp-xl) 0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-xl);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
}

.article-navigation a {
    flex: 1;
    min-width: 0;
    padding: var(--sp-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.article-navigation a:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.article-navigation .nav-next {
    text-align: right;
}

.article-navigation a small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--sp-xs);
}

.article-navigation a span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Single Revista — Detail Page
   ============================================================ */
.revista-detail {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--sp-2xl);
    align-items: start;
}

.revista-cover img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.revista-cover-placeholder {
    width: 100%;
    height: 420px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: var(--sp-sm);
}

.revista-cover-placeholder i {
    font-size: 3rem;
}

.revista-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--sp-md);
}

.revista-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--sp-lg);
}

.revista-meta-table th,
.revista-meta-table td {
    padding: var(--sp-sm) var(--sp-md);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.revista-meta-table th {
    font-weight: 700;
    color: var(--text-light);
    width: 120px;
    white-space: nowrap;
}

.revista-meta-table td {
    color: var(--text-color);
}

.revista-description {
    margin-bottom: var(--sp-lg);
    min-height: 80px;
}

.revista-articles-list {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: var(--sp-sm) var(--sp-lg);
    margin-top: var(--sp-lg);
}

.revista-articles-list h3 {
    font-size: 1rem;
    margin-bottom: var(--sp-md);
    color: var(--text-color);
}

.revista-articles-list h3 i {
    color: var(--accent);
    margin-right: 4px;
}

.revista-articles-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.revista-articles-list li {
    border-bottom: 1px solid var(--border-light);
}

.revista-articles-list li:last-child {
    border-bottom: none;
}

.revista-articles-list a {
    display: block;
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.article-link-row {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-xs) 0;
    border-top: 1px solid var(--border-light);
}

.article-link-row .article-link-info {
    flex: 1;
    min-width: 0;
    display: block;
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.article-pdf-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    background-color: var(--primary);
    color: white;
}

.article-pdf-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.article-pdf-action {
    margin-top: var(--sp-md);
}

.article-link-title {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.article-link-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.revista-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-xl);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
}

.revista-navigation a {
    flex: 1;
    min-width: 0;
    padding: var(--sp-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.revista-navigation a:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.revista-navigation .nav-next {
    text-align: right;
}

.revista-navigation a small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--sp-xs);
}

.revista-navigation a span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   Categoria Articles (single-revista — nav-card style)
   ============================================================ */
.categoria-articles {
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
}

.categoria-articles-title {
    font-size: 1.05rem;
    margin-bottom: var(--sp-md);
    color: var(--text-color);
}

.categoria-articles-title em {
    color: var(--primary);
    font-style: normal;
}

.categoria-articles-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.categoria-article-card {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md);
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-fast);
    min-width: 0;
}

.categoria-article-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow-sm);
}

.categoria-article-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
}

.categoria-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categoria-article-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.categoria-article-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.categoria-article-text small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.categoria-article-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.categoria-article-card:hover .categoria-article-name {
    text-decoration: underline;
}

.categoria-article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.categoria-article-pdf {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.categoria-articles-more {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    margin-top: var(--sp-md);
}

@media (max-width: 640px) {
    .categoria-article-card {
        padding: var(--sp-sm);
    }

    .categoria-article-thumb,
    .categoria-article-icon {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-xl);
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--sp-3xl) var(--sp-xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--sp-md);
    opacity: 0.3;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-year-group {
    margin-bottom: var(--sp-2xl);
    margin-top: var(--sp-xl);
}

.timeline-year-marker {
    position: relative;
    margin-bottom: var(--sp-lg);
}

.timeline-year-marker span {
    display: inline-block;
    position: relative;
    left: -40px;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: var(--sp-xs) var(--sp-lg);
    border-radius: var(--radius-md);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: var(--sp-md);
    align-items: flex-start;
}

.timeline-dot {
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -40px;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.timeline-card {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-md) var(--sp-lg);

    transition: all var(--transition-fast);
}

.timeline-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-sm);
}

.timeline-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.timeline-card h3 a {
    color: var(--text-color);
}

.timeline-card h3 a:hover {
    color: var(--primary);
}

.timeline-card p {
    margin: var(--sp-xs) 0 0;
}

.timeline-item h3 {
    margin-top: 10px;
}

/* ============================================================
   Search Form
   ============================================================ */
.search-form-inner {
    display: flex;
    gap: 0;
}

.search-form-inner .search-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
    flex: 1;
}

.search-form-inner .search-submit {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--sp-sm) var(--sp-md);
}

/* ============================================================
   Info Cards (Contato)
   ============================================================ */
.info-card {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--sp-md);
    color: var(--primary);
}

/* Revistas Grid (archive) — definido na seção principal acima */

.revista-cover-placeholder-sm {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

/* ============================================================
   Responsive: New Additions
   ============================================================ */
@media (max-width: 768px) {
    .revista-detail {
        grid-template-columns: 1fr;
    }

    .article-navigation,
    .revista-navigation {
        flex-direction: column;
    }

    .article-navigation .nav-next,
    .revista-navigation .nav-next {
        text-align: left;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-year-marker span {
        left: -30px;
    }

    .timeline-dot {
        margin-left: -46px;
    }
}

/* ============================================================
   WordPress Admin Bar Fix
   ============================================================ */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.page-header {
    margin-top: var(--sp-lg);
}

.page-header P {
    margin-top: -15px;
}

.contato-intro {
    margin-top: var(--sp-xl);
}

/* ══ Archive Articles Section ══ */
.archive-articles-section {
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--border-light);
}

.archive-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-lg);
    margin-top: var(--sp-md);
}

/* ============================================================
   Archive Toolbar (Filter / Search / Toggle)
   ============================================================ */
.archive-toolbar {
    margin-bottom: var(--sp-xl);
    padding-top: var(--sp-xl);
}

.archive-toolbar-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

/* ── Search ── */
.archive-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.archive-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.archive-search-input {
    padding-left: 36px !important;
    border-color: var(--border-light);
    background: var(--bg-alt);
    font-size: 0.875rem;
    height: 40px;
    border-radius: var(--radius-md);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.archive-search-input:focus {
    background: var(--bg-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* ── Separator ── */
.archive-toolbar-sep {
    width: 1px;
    height: 28px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ── View Toggle ── */
.archive-view-toggle {
    display: flex;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.archive-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    width: 100%;
}

.archive-toggle-btn:hover {
    color: var(--text-color);
}

.archive-toggle-btn.active {
    background: var(--bg-color);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.archive-toggle-btn i {
    font-size: 0.75rem;
}

.archive-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-alt);
    color: var(--text-muted);
    line-height: 1;
}

.archive-toggle-btn.active .archive-toggle-count {
    background: var(--primary-light);
    color: var(--primary);
}

/* ── Category Select ── */
.archive-cat-select-wrap {
    flex-shrink: 0;
    min-width: 180px;
}

.archive-cat-select {
    height: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0 var(--sp-md);
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
    appearance: auto;
}

.archive-cat-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* ── Archive Views ── */
.archive-view {
    margin-top: var(--sp-md);
}

.archive-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: var(--sp-lg) 0 var(--sp-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.archive-section-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

.archive-filterable {
    transition: opacity var(--transition-fast);
}

/* ── Infinite Scroll Loader ── */
.archive-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-xl) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.archive-loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: archiveSpin 0.7s linear infinite;
}

@keyframes archiveSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .archive-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--sp-sm);
    }

    .archive-toolbar-sep {
        height: 0px;
    }

    .archive-search-wrap {
        min-width: 100%;
    }

    .archive-view-toggle {
        justify-content: center;
    }

    .archive-cat-pills {
        justify-content: center;
    }
}
