/*
Theme Name: Esporte Mais
Theme URI: https://esportesmais.com.br/
Author: Arthur Dias
Author URI: https://github.com/
Description: Tema WordPress para portal de notícias esportivas inspirado no Esportes Mais. Ideal para sites de futebol, basquete, vôlei, lutas, corrida e futsal. Totalmente responsivo, com suporte a menus, widgets, logo personalizado e postagens em destaque.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esporte-mais
Tags: sports, news, responsive, blog, portal, football, soccer
*/

/* ========================
   RESET & BASE
======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1565c0;
}

ul,
ol {
    list-style: none;
}

/* ========================
   VARIABLES
======================== */
:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --dark: #111111;
    --text: #333333;
    --text-light: #666666;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --blue-light: #64b5f6;
}

/* ========================
   CONTAINER
======================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================
   HEADER
======================== */
.site-header {
    background-color: #111111;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    gap: 1rem;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.site-logo-img,
.custom-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(220px, 48vw);
}

.site-description {
    display: none;
}

/* Search */
.header-search {
    position: relative;
    max-width: 320px;
    width: 100%;
    flex-shrink: 1;
}

.header-search .search-form {
    position: relative;
    width: 100%;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    background-color: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input[type="search"]::placeholder {
    color: #888888;
}

.header-search input[type="search"]:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-search button:hover {
    background-color: #64b5f6;
    border-color: #64b5f6;
    color: #111111;
}

/* Category icons */
.header-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.category-icon:hover {
    background-color: #333333;
    border-color: #64b5f6;
    transform: translateY(-2px);
}

.category-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

/* Menu toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
    background-color: #333333;
    border-color: #64b5f6;
}

/* ========================
   NAVIGATION (DROPDOWN)
======================== */
.main-navigation {
    display: none;
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 0.5rem 0;
}

.main-navigation.toggled {
    display: block;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background-color: #2a2a2a;
    color: #64b5f6;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    padding: 0.5rem 0;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    text-transform: none;
    border-radius: 0;
}

/* ========================
   MOBILE MENU / SIDEBAR
======================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background-color: #111111;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mobile-menu__title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-menu__close:hover {
    background-color: #444444;
}

.mobile-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__item:hover {
    background-color: #252525;
    border-color: #64b5f6;
}

.mobile-menu__item:hover .mobile-menu__label {
    color: #64b5f6;
}

.mobile-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #2a2a2a;
    border-radius: 6px;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.mobile-menu__label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.mobile-menu__separator {
    height: 1px;
    background-color: #2a2a2a;
    margin-bottom: 1.5rem;
}

.mobile-menu__cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #1565c0;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-menu__cta:hover {
    background-color: #0d47a1;
    color: #ffffff;
}

/* ========================
   HERO BENTO / TELÃO DESTAQUE
======================== */
.hero-bento {
    margin: 2rem 0;
}

.hero-bento__grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    min-height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-bento__main {
    position: relative;
    min-height: 420px;
}

.hero-bento__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}

.hero-bento__card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-bento__thumbnail {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bento__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-bento__card:hover .hero-bento__thumbnail img {
    transform: scale(1.08);
}

.hero-bento__overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.hero-bento__main .hero-bento__overlay {
    padding: 2rem;
}

.hero-bento__category {
    display: inline-block;
    align-self: flex-start;
    color: #64b5f6;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hero-bento__title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-bento__main .hero-bento__title {
    font-size: 2rem;
    max-width: 90%;
}

.hero-bento__title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.hero-bento__title a:hover {
    color: #64b5f6;
}

.hero-bento__quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    color: #64b5f6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hero-bento__quote i {
    font-size: 1rem;
}

.hero-bento__summary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
}

.hero-bento__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-bento__bullets li {
    position: relative;
    padding-left: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.4;
}

.hero-bento__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background-color: #64b5f6;
    border-radius: 50%;
}

/* ========================
   AD BANNER
======================== */
.ad-banner {
    background-color: var(--white);
    border: 1px dashed var(--border);
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.ad-banner span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* ========================
   AD SLOTS
======================== */
.ad-slot {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.ad-slot__label {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    border-bottom-right-radius: 8px;
}

.ad-slot__placeholder {
    padding: 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px dashed var(--border);
    border-radius: 0 0 8px 8px;
    margin: 0 1rem 1rem;
}

.ad-slot__placeholder p {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ad-slot__placeholder small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.ad-slot__code {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    overflow: hidden;
    min-height: 90px;
}

.ad-slot__code iframe,
.ad-slot__code ins {
    max-width: 100%;
}

.ad-slot--square .ad-slot__code {
    min-height: 250px;
}

.ad-slot--full .ad-slot__placeholder {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-slot--square .ad-slot__placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-slot--inline {
    margin: 1.5rem 0;
}

.ad-slot--inline .ad-slot__placeholder {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========================
   CATEGORY BLOCKS (2 COLUMNS)
======================== */
.category-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-block {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.category-block__header {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.category-block__header:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.category-block__featured {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.category-block__thumbnail {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 10;
}

.category-block__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-block__featured:hover .category-block__thumbnail img {
    transform: scale(1.05);
}

.category-block__author-avatar {
    position: absolute;
    left: 1rem;
    bottom: 5.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
    z-index: 2;
}

.category-block__author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-block__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.category-block__title a {
    color: #111111;
    transition: color 0.2s ease;
}

.category-block__title a:hover {
    color: var(--primary);
}

.category-block__meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.category-block__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-block__item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.category-block__item:last-child {
    border-bottom: none;
}

.category-block__item-thumb {
    width: 90px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.category-block__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-block__item:hover .category-block__item-thumb img {
    transform: scale(1.08);
}

.category-block__item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-block__item-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.category-block__item-title a {
    color: var(--text);
}

.category-block__item-title a:hover {
    color: var(--primary);
}

.category-block__item-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================
   SECTIONS
======================== */
.section {
    margin: 2.5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.section-title span {
    color: var(--primary);
}

.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.section-link:hover {
    color: var(--primary-dark);
}

/* ========================
   POST GRID
======================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.post-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.post-card .post-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 1rem;
}

.post-card .post-category {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-card .post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.post-card .post-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Compact grid used inside main content area */
.posts-grid--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ========================
   TOP 10 WIDGET
======================== */
.top-posts-widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.top-posts-widget .widget-title span {
    color: var(--primary);
}

.top-posts-list {
    counter-reset: top-posts;
    list-style: none;
}

.top-posts-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

.top-posts-item:last-child {
    border-bottom: none;
}

.top-posts-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.top-posts-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8eef5;
}

.top-posts-thumb img,
.top-posts-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-posts-thumb-placeholder {
    background: linear-gradient(135deg, #d7e3f4 0%, #eef3f9 100%);
}

.top-posts-content {
    flex: 1;
    min-width: 0;
}

.top-posts-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.top-posts-title:hover {
    color: var(--primary);
}

.top-posts-content .post-date {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ========================
   STANDINGS WIDGET (Sofascore)
======================== */
.standings-widget .widget-title span,
.round-widget .widget-title span {
    color: var(--primary);
}

.standings-embed {
    position: relative;
    width: 100%;
    max-height: 560px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.standings-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 1123px !important;
    border: 0;
    margin: 0;
}

.standings-credit {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    text-align: right;
    color: var(--text-light);
}

.standings-credit a {
    color: var(--text-light);
}

.standings-credit a:hover {
    color: var(--primary);
}

/* Legacy table styles (unused with Sofascore embed) */
.standings-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f0f7ff;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.standings-table-wrap {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.standings-table th {
    text-align: left;
    padding: 0.5rem 0.35rem;
    color: var(--text-light);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.standings-table td {
    padding: 0.55rem 0.35rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.standings-pos span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
}

.zone-libertadores .standings-pos span {
    background-color: #2e7d32;
}

.zone-pre .standings-pos span {
    background-color: #1565c0;
}

.zone-rebaixamento .standings-pos span {
    background-color: #c62828;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.standings-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ========================
   ROUND MATCHES CARD
======================== */
.round-matches {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.round-match {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem;
    transition: border-color 0.2s ease;
}

.round-match:hover {
    border-color: var(--primary);
}

.round-match.status-andamento {
    border-color: #c62828;
    background-color: #fff5f5;
}

.round-match__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}

.round-match__status {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--primary);
}

.round-match.status-andamento .round-match__status {
    color: #c62828;
}

.round-match.status-finalizado .round-match__status {
    color: var(--text-light);
}

.round-match__venue {
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.round-match__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
}

.round-match__team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
}

.round-match__team.away {
    justify-content: flex-end;
    text-align: right;
}

.round-match__team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.round-match__score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 56px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
}

.round-match__score span {
    color: var(--text-light);
    font-weight: 400;
}

.round-match__vs {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.round-empty {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 1rem 0;
}

/* ========================
   TWO COLUMN LAYOUT
======================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin: 2rem 0;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

.home-layout {
    align-items: start;
    grid-template-columns: 1fr 400px;
}

.home-layout .sidebar {
    position: sticky;
    top: 110px;
}

.standings-widget.widget {
    padding: 1rem;
}

/* ========================
   WIDGETS
======================== */
.widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    font-size: 0.9rem;
    color: var(--text);
}

.widget a:hover {
    color: var(--primary);
}

.widget .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ========================
   PAGINATION
======================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.pagination .current {
    background-color: var(--primary);
    color: var(--white);
}

/* ========================
   SINGLE POST (editorial)
======================== */
.single-layout {
    align-items: start;
    gap: 2.5rem;
}

.single-content-area {
    background: var(--white);
    padding: 1.75rem 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.single-article {
    max-width: 48rem;
}

.single-header {
    margin-bottom: 1.25rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.single-kicker {
    display: inline-block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}

.single-title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    color: #111;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-light);
}

.single-meta a {
    color: var(--text);
    font-weight: 600;
}

.single-meta a:hover {
    color: var(--primary);
}

.single-meta__sep {
    opacity: 0.55;
}

.single-featured {
    margin: 1.25rem 0 1rem;
}

.single-featured__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 2px;
}

.single-featured__caption {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.single-content-area > .ad-slot,
.single-article > .ad-slot {
    margin: 1rem 0 1.5rem;
}

.single-body {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #222;
}

.single-body h2,
.single-body h3,
.single-body h4 {
    margin: 1.75rem 0 0.85rem;
    line-height: 1.3;
    font-weight: 800;
}

.single-body p {
    margin-bottom: 1.15rem;
}

.single-body img {
    border-radius: 4px;
    margin: 1.25rem 0;
}

.single-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 0.35rem 0 0.35rem 1.1rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.12rem;
}

.single-body ul,
.single-body ol {
    margin: 1rem 0 1rem 1.4rem;
    list-style: disc;
}

.single-body ol {
    list-style: decimal;
}

.single-body a {
    color: var(--primary);
    text-decoration: underline;
}

.single-tags {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}

.single-tags a {
    color: var(--primary);
    font-weight: 600;
}

.single-sidebar .widget,
.single-sidebar .ad-slot {
    margin-bottom: 1.25rem;
}

.sidebar-block {
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
    margin-bottom: 1.25rem;
}

.sidebar-block__title {
    margin: 0;
    padding: 0.7rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-bottom: none;
}

.related-sidebar__list,
.categories-block__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.related-sidebar__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.related-sidebar__item:last-child {
    border-bottom: none;
}

.related-sidebar__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 3px;
    overflow: hidden;
    background: #e8eef5;
}

.related-sidebar__thumb img,
.related-sidebar__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-sidebar__placeholder {
    background: linear-gradient(135deg, #d7e3f4, #eef3f9);
}

.related-sidebar__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.related-sidebar__title:hover {
    color: var(--primary);
}

.related-sidebar__body time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.categories-block__list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.categories-block__list li:last-child a {
    border-bottom: none;
}

.categories-block__list li a:hover {
    color: var(--primary);
}

.categories-block__count {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ========================
   ARCHIVE / CATEGORY
======================== */
.archive-layout {
    align-items: start;
}

.archive-header {
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.archive-header__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.archive-header__title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
    margin: 0;
}

.archive-header__desc {
    margin-top: 0.5rem;
    color: var(--text-light);
}

.archive-header__count {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.archive-featured {
    margin-bottom: 1.75rem;
}

.archive-featured-card {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 320px;
}

.archive-featured-card__media {
    display: block;
    min-height: 320px;
    background: #111;
}

.archive-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-featured-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1.5rem;
}

.archive-featured-card__cat {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.65rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
}

.archive-featured-card__title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.archive-featured-card__title a {
    color: #111;
}

.archive-featured-card__title a:hover {
    color: var(--primary);
}

.archive-featured-card__excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.archive-featured-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.15rem;
}

.archive-featured-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
}

.archive-featured-card__cta:hover {
    color: #0d47a1;
}

.archive-list-header {
    margin-bottom: 1rem;
}

.archive-grid .post-card .post-title {
    font-size: 0.98rem;
}

.archive-grid .post-card .post-title a {
    color: var(--text);
}

.archive-sidebar .widget,
.archive-sidebar .ad-slot,
.archive-sidebar .sidebar-block {
    margin-bottom: 1.25rem;
}

/* ========================
   INSTITUTIONAL PAGES
======================== */
.page-hero {
    background: linear-gradient(135deg, #111 0%, #1a2330 55%, #0d47a1 120%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    margin-bottom: 2rem;
}

.page-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #90caf9;
    margin-bottom: 0.75rem;
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.page-hero__lead {
    max-width: 40rem;
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.page-shell {
    margin-bottom: 3rem;
}

.page-shell--split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.page-panel {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.page-panel h2 {
    font-size: 1.35rem;
    margin: 0 0 1rem;
}

.page-panel p {
    margin-bottom: 1rem;
}

.page-checklist,
.page-steps {
    margin: 1rem 0 1rem 1.25rem;
}

.page-checklist {
    list-style: disc;
}

.page-steps {
    list-style: decimal;
}

.page-panel--cta {
    background: #111;
    color: #fff;
    border-top: 4px solid var(--primary);
}

.page-panel--cta h2 {
    color: #fff;
}

.page-panel--cta p {
    color: rgba(255, 255, 255, 0.8);
}

.page-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0 1rem;
    padding: 0.85rem 1.4rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.page-cta-btn:hover {
    background: #0d47a1;
}

.page-cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ========================
   FOOTER
======================== */
.site-footer {
    background-color: #111111;
    color: #aaaaaa;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.footer-brand .site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1.5rem;
    line-height: 0;
}

.footer-brand .site-logo-img,
.footer-brand .custom-logo {
    height: 64px;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background-color: #333333;
    border-color: #64b5f6;
    color: #64b5f6;
}

.footer-nav__title {
    position: relative;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.footer-nav__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #e30613;
    border-radius: 2px;
}

.footer-nav__menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav__menu a {
    color: #aaaaaa;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav__menu a:hover {
    color: #64b5f6;
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background-color: #2a2a2a;
    border: 1px solid #333333;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-credit:hover {
    background-color: #333333;
    border-color: #64b5f6;
}

.footer-credit__text {
    font-size: 0.75rem;
    color: #888888;
}

.footer-credit__brand {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================
   COLUMNIST / AUTHOR PAGE
======================== */
.columnist-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
    align-items: center;
    background: linear-gradient(135deg, #111 0%, #1a2330 60%, #0d47a1 140%);
    color: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow);
}

.columnist-header__avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: block;
}

.columnist-header__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #90caf9;
}

.columnist-header__name {
    margin: 0 0 0.65rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
}

.columnist-header__bio {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 38rem;
}

.columnist-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.1rem;
}

.columnist-header__meta a {
    color: #90caf9;
    font-weight: 700;
}

.columnist-header__cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.columnist-header__cta:hover {
    background: #0d47a1;
    color: #fff;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.author-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.author-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #111111;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.author-cta:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* ========================
   404 / SEARCH
======================== */
.page-404,
.search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-404 h1,
.search-no-results h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-404 p,
.search-no-results p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr 280px;
    }

    .home-layout {
        grid-template-columns: 1fr 340px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .columnist-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .columnist-header__bio {
        margin-left: auto;
        margin-right: auto;
    }

    .columnist-header__meta {
        justify-content: center;
    }

    .author-header {
        flex-direction: column;
        text-align: center;
    }

    .single-content-area {
        padding: 1.25rem 1rem 1.75rem;
    }

    .single-title {
        font-size: 1.55rem;
    }

    .single-featured__img {
        max-height: 260px;
    }

    .single-body {
        font-size: 1.12rem;
    }

    .page-shell--split {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .archive-featured-card {
        grid-template-columns: 1fr;
    }

    .archive-featured-card__media {
        min-height: 220px;
        max-height: 260px;
    }

    .archive-featured,
    .archive-featured .hero-bento__card {
        min-height: 0;
    }

    .home-layout .sidebar {
        position: static;
    }

    .standings-embed {
        max-height: 420px;
    }

    .hero-bento__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-bento__main,
    .hero-bento__side .hero-bento__card {
        min-height: 280px;
    }

    .hero-bento__side {
        grid-template-rows: none;
        gap: 3px;
    }

    .author-avatar img {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .header-main {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .site-logo-img,
    .custom-logo {
        height: 42px;
        max-width: min(180px, 55vw);
    }

    .header-search {
        order: 3;
        max-width: 100%;
    }

    .header-categories {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        border-top: 1px solid #2a2a2a;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    .nav-menu.toggled {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid #333333;
        border-radius: 0;
    }

    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
        border: none;
        border-radius: 0;
    }

    .nav-menu li:hover > .sub-menu {
        display: none;
    }

    .nav-menu .sub-menu.open {
        display: block;
    }

    .sub-menu-toggle {
        display: none;
    }

    .nav-menu .sub-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: auto;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: var(--white);
        cursor: pointer;
        border-radius: 4px;
    }

    .nav-menu .sub-menu-toggle.toggled {
        transform: rotate(180deg);
    }

    .hero-bento__main .hero-bento__title {
        font-size: 1.5rem;
    }

    .hero-bento__title {
        font-size: 1.15rem;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .home-layout .sidebar {
        position: static;
        order: 2;
    }

    .posts-grid--compact {
        grid-template-columns: 1fr;
    }

    .category-blocks {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-title {
        font-size: 1.5rem;
    }

    .single-content-area {
        padding: 1rem;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ========================
   COMMENTS
======================== */
.comments-area {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 700;
    color: var(--dark);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.comment-form .form-submit input[type="submit"] {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: var(--primary-dark);
}

/* ========================
   ACCESSIBILITY
======================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ========================
   MOTION / EFFECTS
======================== */
.em-motion .em-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--em-delay, 0ms);
    will-change: opacity, transform;
}

.em-motion .em-reveal--in {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.em-motion .hero-bento.em-reveal {
    transform: none;
    opacity: 1;
}

.em-motion .hero-bento.em-reveal .hero-bento__main,
.em-motion .hero-bento.em-reveal .hero-bento__side .hero-bento__card {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-motion .hero-bento.em-reveal--in .hero-bento__main {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 80ms;
}

.em-motion .hero-bento.em-reveal--in .hero-bento__side .hero-bento__card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 180ms;
}

.em-motion .hero-bento.em-reveal--in .hero-bento__side .hero-bento__card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 280ms;
}

.em-motion .hero-bento__card {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.em-motion .hero-bento__card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.em-motion .post-card {
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.em-motion .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.em-motion .archive-featured-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.em-motion .archive-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.em-motion .main-navigation a {
    position: relative;
}

.em-motion .main-navigation .nav-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--primary, #1565c0);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.em-motion .main-navigation .nav-menu > li > a:hover::after,
.em-motion .main-navigation .nav-menu > li.current-menu-item > a::after,
.em-motion .main-navigation .nav-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.em-motion .btn,
.em-motion .button,
.em-motion .wp-block-button__link,
.em-motion .search-submit,
.em-motion .cta-button {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.em-motion .btn:hover,
.em-motion .button:hover,
.em-motion .wp-block-button__link:hover,
.em-motion .search-submit:hover,
.em-motion .cta-button:hover {
    transform: translateY(-2px);
}

.em-motion .btn:active,
.em-motion .button:active,
.em-motion .wp-block-button__link:active,
.em-motion .search-submit:active,
.em-motion .cta-button:active {
    transform: translateY(0);
}

.em-motion .site-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.em-motion .site-header {
    transition: box-shadow 0.3s ease;
}

.em-motion .standings-widget,
.em-motion .top-posts-widget,
.em-motion .sidebar-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.em-motion .standings-widget:hover,
.em-motion .top-posts-widget:hover,
.em-motion .sidebar-block:hover {
    transform: translateY(-2px);
}

.em-reduce-motion .em-reveal,
.em-reduce-motion .hero-bento .hero-bento__main,
.em-reduce-motion .hero-bento .hero-bento__side .hero-bento__card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .em-motion .em-reveal,
    .em-motion .hero-bento__card,
    .em-motion .post-card,
    .em-motion .btn,
    .em-motion .button {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .em-motion .main-navigation .nav-menu > li > a::after {
        display: none;
    }
}
