/* ============================================================
   Blog Milton Figueiredo — style.css
   Paleta: #373737 | #777777 | #ffffff | #4d4d4d | #f5f5f5
   Fonte: DM Sans
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #373737;
    background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- CSS Variables ----------------------------------------- */
:root {
    --black:  #373737;
    --gray:   #777777;
    --white:  #ffffff;
    --dark:   #4d4d4d;
    --light:  #f5f5f5;
    --container: 1200px;
    --gap: 2rem;
    --radius: 2px;
}

/* --- Layout: Content + Sidebar ----------------------------- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
}

@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 2rem;
    }
}

.page-content {
    min-width: 0;
    width: 100%;
}

/* --- Header ------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #e8e8e8;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
}

@media (max-width: 900px) {
    .header-inner {
        gap: 1rem;
        padding: 0 1rem;
        justify-content: space-between;
    }
    .site-logo { order: 1; }
    .search-trigger { order: 2; margin-left: auto; margin-right: -0.8rem; }
    .nav-toggle { order: 3; }
}

.site-logo img { height: 40px; width: auto; }

/* Nav */
.site-nav { margin-left: auto; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover { color: var(--dark); }

.nav-link--cta {
    background: var(--black);
    color: var(--white);
    padding: 0.45rem 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-link--cta:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-arrow {
    font-size: 0.6rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid #e8e8e8;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 200;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--black);
    transition: background 0.3s ease;
}

.nav-dropdown-link:hover { background: var(--light); }

/* Search trigger */
.search-trigger {
    background: none;
    border: none;
    color: var(--black);
    font-size: 1rem;
    padding: 0.4rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-trigger:hover { color: var(--dark); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.4rem;
    width: 32px;
    height: 32px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .site-nav  { display: none; }
    .nav-toggle { display: flex; }
}

/* Mobile nav */
.mobile-nav {
    background: var(--white);
    border-top: 1px solid #e8e8e8;
    padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav-list { display: flex; flex-direction: column; gap: 0; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link--cta {
    color: var(--black);
    font-weight: 800;
}

.mobile-sub-list { padding: 0.25rem 0 0.5rem 1rem; }

.mobile-sub-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--gray);
}

/* --- Search Overlay ---------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(55,55,55,0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box {
    background: var(--white);
    width: 100%;
    max-width: 640px;
    margin: 1.5rem;
    padding: 1.5rem;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px solid var(--black);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--black);
    padding: 0.5rem 0;
    background: transparent;
}

.search-input::placeholder { color: #bbb; }

.search-submit {
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.1rem;
    padding: 0.5rem 0.25rem;
}

.search-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.search-close:hover { color: var(--black); }

/* --- Banners ----------------------------------------------- */
.banner-exclusivo {
    margin: 1.6rem auto 0;
    text-align: center;
    max-width: 970px;
    padding: 0 1rem;
    width: 100%;
}

.banner-exclusivo img,
.banner-padrao img {
    max-width: 100%;
    height: auto;
}

.banner-padrao {
    margin: 2rem 0;
    text-align: center;
}

.banner-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-link:hover { transform: scale(1.01); opacity: 0.95; }

.sidebar-banner {
    margin: 1.5rem 0;
    text-align: center;
}

/* --- Post Card --------------------------------------------- */
.post-card { display: block; }

.thumb-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.thumb-wrapper:hover img { transform: scale(1.03); }

.thumb-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(55,55,55,0.0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.thumb-wrapper:hover::after { background: rgba(55,55,55,0.12); }

.post-type-icon {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.6rem;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 400;
}

.post-meta .cat-link {
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.post-meta .cat-link:hover { color: var(--dark); }

.post-meta .sep { color: #ddd; }

.post-title {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--black);
    transition: color 0.3s ease;
}

.post-card:hover .post-title { color: var(--dark); }

/* --- Breadcrumbs ------------------------------------------- */
.breadcrumbs {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.breadcrumb-link {
    color: var(--gray);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover { color: var(--black); }

.breadcrumb-sep { color: #ccc; font-size: 0.7rem; }

.breadcrumb-current { color: var(--black); font-weight: 700; }

/* --- Pagination -------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 2.5rem 0;
}

.page-link, .page-current, .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.page-link:hover { background: var(--light); border-color: var(--black); }

.page-current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.page-dots { border: none; color: var(--gray); min-width: auto; }

.page-prev, .page-next { font-size: 0.75rem; }

/* --- Sidebar ----------------------------------------------- */
.site-sidebar { position: sticky; top: 80px; }

.sidebar-block { margin-bottom: 2.5rem; }

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--black);
    margin-bottom: 1rem;
}

.sidebar-empty { font-size: 0.85rem; color: var(--gray); }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.tab-btn:hover { color: var(--black); }

.tab-btn--active {
    color: var(--black);
    border-bottom-color: var(--black);
}

.tab-panel { display: none; }
.tab-panel--active { display: block; }

/* Most read list */
.mostread-list { display: flex; flex-direction: column; gap: 0.75rem; }

.mostread-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mostread-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--black);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.mostread-link {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--black);
    transition: color 0.3s ease;
}

.mostread-link:hover { color: var(--dark); }

/* Editorias */
.editorias-list { display: flex; flex-direction: column; gap: 0; }

.editoria-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.editoria-link i { font-size: 0.6rem; color: var(--gray); }
.editoria-link:hover { color: var(--dark); }

/* Newsletter */
.newsletter-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }

.form-field { display: flex; flex-direction: column; }

.form-input {
    border: 1px solid #e0e0e0;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--black);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: var(--radius);
}

.form-input:focus { border-color: var(--black); }

.newsletter-btn { width: 100%; }

.newsletter-feedback {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* --- Buttons ----------------------------------------------- */
.btn-primary {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
    border-radius: var(--radius);
}

.btn-primary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
    letter-spacing: 0.07em;
}

/* --- Footer ------------------------------------------------ */
.site-footer {
    background: var(--black);
    color: var(--white);
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
}

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-about { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

.footer-heading {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-list { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-link {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--white); }

.footer-social { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.footer-social-link i { width: 14px; text-align: center; }
.footer-social-link:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- Back to Top ------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--black);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 300;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--dark); }

/* --- Cookie Notice ----------------------------------------- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    z-index: 400;
    flex-wrap: wrap;
}

.cookie-text { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

.cookie-link { color: var(--white); text-decoration: underline; }

.cookie-accept {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 0.5rem 1.25rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.cookie-accept:hover { background: var(--light); }

/* --- Static Page (privacidade) ----------------------------- */
.static-page__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--black);
}

.static-page__body h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 2rem 0 0.6rem;
    color: var(--black);
}

.static-page__body p {
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.7;
}

.static-page__body a {
    color: var(--black);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.static-page__body a:hover { color: var(--dark); }

.static-page__updated {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* --- Author Profile (sobre / milton-figueiredo) ------------ */
.author-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 700px) {
    .author-profile { grid-template-columns: 1fr; }
    .author-profile__photo { max-width: 220px; }
}

.author-profile__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.author-profile__name {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--black);
}

.author-profile__bio {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.author-profile__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* --- Anuncie Form ------------------------------------------ */
.anuncie-page__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

.anuncie-page__intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 680px;
}

.anuncie-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; gap: 1.25rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 600px) {
    .form-row--2 { grid-template-columns: 1fr; }
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    margin-bottom: 0.4rem;
}

.form-label span { color: var(--gray); }

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23373737' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }

.form-textarea { resize: vertical; min-height: 120px; }

.anuncie-form__submit { align-self: flex-start; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(55,55,55,0.75);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-box {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.modal-text {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.modal-redirect {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.modal-redirect strong { color: var(--black); }

/* --- Listing Header ---------------------------------------- */
.listing-header { margin-bottom: 2rem; }

.listing-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
}

.listing-desc {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 680px;
    line-height: 1.65;
}

.listing-empty {
    font-size: 0.95rem;
    color: var(--gray);
    padding: 2rem 0;
}

/* --- Post Grid --------------------------------------------- */
.post-grid { display: grid; gap: 2.5rem; }
.post-grid--2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 700px) {
    .post-grid--2 { grid-template-columns: 1fr; }
}

.post-card__thumb-link { display: block; }
.post-card__body { margin-top: 0.75rem; }

.thumb-placeholder {
    aspect-ratio: 16/9;
    background: var(--light);
}

/* --- Post List (busca — 1 por linha) ----------------------- */
.post-list { display: flex; flex-direction: column; gap: 1.75rem; }

.post-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 600px) {
    .post-list-item { grid-template-columns: 1fr; }
}

.post-list-item__thumb { display: block; flex-shrink: 0; }
.post-list-item__body  { padding-top: 0.15rem; }

.busca-fallback { margin-top: 2rem; }

.busca-fallback__heading {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.listing-title em { font-style: normal; color: var(--gray); }

/* --- Post Single ------------------------------------------- */
.post-single {
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.post-single__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--black);
}

.post-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.post-single__author-meta { color: var(--gray); }

.post-single__thumb {
    margin: 0 0 2rem;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-single__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-single__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--black);
}

.post-single__content h2 { font-size: 1.3rem; font-weight: 800; margin: 2rem 0 0.75rem; }
.post-single__content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.post-single__content p  { margin-bottom: 1.25rem; }

.post-single__content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto !important;
    margin: 1.5rem 0;
}

.post-single__content iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

.post-single__content table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.post-single__content a {
    color: var(--black);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-single__content a:hover { color: var(--dark); }

/* --- Share ------------------------------------------------- */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebebeb;
    flex-wrap: wrap;
}

.post-share__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.post-share__list { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 0.875rem;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.share-btn:hover { background: var(--dark); transform: translateY(-2px); }

/* --- Author Block ------------------------------------------ */
.author-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--light);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .author-block        { flex-direction: column; }
    .author-block__photo { width: 64px; height: 64px; }
}

.author-block__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.author-block__name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.4rem;
}

.author-block__bio {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.author-block__social { display: flex; gap: 0.5rem; }

.author-block__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.author-block__social a:hover { background: var(--dark); }

/* --- Related Posts Carousel -------------------------------- */
.related-posts {
    margin-top: 3rem;
    max-width: 100%;
    overflow: hidden;
}

.related-posts__heading {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--black);
    margin-bottom: 1.5rem;
}

.related-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.related-carousel__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.related-card {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    min-width: 0;
}

@media (max-width: 900px) {
    .related-card {
        flex-basis: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    .carousel-btn--prev { left: 0; }
    .carousel-btn--next { right: 0; }
}

@media (max-width: 600px) {
    .related-card {
        flex-basis: 100%;
        max-width: 100%;
    }
    .carousel-btn { display: none; }
}

.related-card__thumb-link { display: block; margin-bottom: 0.75rem; }

.related-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    color: var(--black);
}

.related-card__title a { transition: color 0.3s ease; }
.related-card__title a:hover { color: var(--dark); }

.related-card__cta {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s ease;
}

.related-card__cta:hover { gap: 0.55rem; }

.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    color: var(--black);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.carousel-btn:hover:not(:disabled) { background: var(--black); color: var(--white); border-color: var(--black); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn--prev { left: 4px; }
.carousel-btn--next { right: 4px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.carousel-dot--active { background: var(--black); }

/* --- Home Slider ------------------------------------------- */
.home-slider {
    margin-bottom: 2.5rem;
    position: relative;
}

.home-slider__wrapper {
    position: relative;
    overflow: hidden;
}

.home-slider__track {
    position: relative;
    width: 100%;
}

.home-slide {
    display: none;
    width: 100%;
}

.home-slide--active { display: block; }

.home-slide__link { display: block; position: relative; }

.home-slide .thumb-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
}

.home-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,30,30,0.72) 0%, rgba(30,30,30,0.0) 55%);
    pointer-events: none;
}

.home-slide__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 1.75rem;
    color: #fff;
}

.home-slide__category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.4rem;
}

.home-slide__title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-slide__date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.home-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--black);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
    cursor: pointer;
}

.home-slider__btn:hover { background: #fff; }
.home-slider__btn--prev { left: 0.75rem; }
.home-slider__btn--next { right: 0.75rem; }

.home-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0 0;
}

.home-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.home-slider__dot--active { background: var(--black); }

/* --- Home Cascata + Cards ---------------------------------- */
.home-cascata { }

.home-block {
    display: grid;
    gap: 1.75rem;
    margin-bottom: 0;
}

.home-block--4 { grid-template-columns: repeat(2, 1fr); }
.home-block--8 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 901px) {
    .home-block--4 { grid-template-columns: repeat(4, 1fr); }
    .home-block--8 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .home-block--4 { grid-template-columns: 1fr; }
    .home-block--8 { grid-template-columns: 1fr 1fr; }
}

.home-card { display: flex; flex-direction: column; }
.home-card--small { display: flex; flex-direction: column; }

.home-card__thumb-link { display: block; }
.home-card--small .thumb-wrapper { aspect-ratio: 16/9; }

.home-card__body { margin-top: 0.6rem; }

.home-card .cat-link {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.home-card .cat-link:hover { color: var(--black); }

.home-card .post-title { font-size: 0.95rem; }
.home-card .post-title--sm { font-size: 0.85rem; }
.home-card .post-title a { color: var(--black); transition: color 0.3s ease; }
.home-card .post-title a:hover { color: var(--dark); }

.home-card .post-meta__date {
    display: block;
    font-size: 0.72rem;
    color: var(--gray);
    margin-top: 0.3rem;
}

/* --- Mobile adjustments ------------------------------------ */
@media (max-width: 600px) {
    .home-slider__btn { display: none; }
    .home-slide__info { padding: 1rem 1rem 1.25rem; }
}

@media (max-width: 900px) {
    .nav-dropdown { display: none !important; }
}

/* --- Utility ----------------------------------------------- */
[hidden] { display: none !important; }

/* --- Home Row Divider -------------------------------------- */
.home-row-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 2rem 0;
    width: 100%;
    display: block;
}

/* --- Home Card — Row Spacing ------------------------------- */
.home-block--4 { row-gap: 2rem; }
.home-block--8 { row-gap: 2rem; }

/* --- Home Card — Hover Effect ------------------------------ */
.home-card,
.home-card--small {
    padding: 0.65rem;
    margin: -0.65rem;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.home-card:hover,
.home-card--small:hover {
    background: #f7f7f7;
    transform: translateY(-2px);
}

.home-card:hover .post-title a,
.home-card--small:hover .post-title a {
    color: var(--dark);
}
