/* ============================================================
   PREMIUM SINGLE — Modicas
   Landing page de ofertas com foco em conversão
============================================================ */

/* ------------------------------------------------------------
   CONTAINER GERAL
------------------------------------------------------------ */
.single-oferta {
    width: 100%;
    max-width: var(--max-w); /* agora segue o mesmo eixo da home */
    margin: 0 auto;
    padding: var(--sp-7) var(--sp-4) var(--sp-9); /* mesmo espaçamento da home */
}

/* ============================================================
   HERO — TITULO + SUBTITULO + BREADCRUMBS
============================================================ */
.oferta-hero {
    text-align: center;
    margin-bottom: 36px;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 10px 0 12px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.hero-breadcrumbs {
    margin-bottom: 10px;
}


/* ============================================================
   GRID PRINCIPAL (FOTO/VÍDEO + CTA)
============================================================ */
.oferta-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

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



/* ----------------------------
   COLUNA ESQUERDA (MÍDIA)
----------------------------- */
.grid-media {
    width: 100%;
}

.media-thumb img,
.lazy-video-thumb {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Video */
.lazy-video {
    position: relative;
    cursor: pointer;
}
.lazy-video-thumb {
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}
.lazy-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    font-size: 32px;
    color: #fff;
    backdrop-filter: blur(4px);
}


/* ----------------------------
   CTA LATERAL (DESKTOP)
----------------------------- */
.grid-cta {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cta-badge {
    background: #eef6ff;
    color: var(--color-primary);
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 999px;
    margin-bottom: 14px;
    display: inline-block;
}

.cta-desc {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 18px;
}

.cta-main-btn {
    display: block;
    background: var(--color-primary);
    color: #fff;
    padding: 14px 18px;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}
.cta-main-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.cta-coupon {
    font-size: 1rem;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 16px;
    text-align: center;
}
.cta-coupon strong {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
.cta-benefits li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}



/* ============================================================
   TOC — RESUMO DO CONTEUDO
============================================================ */
.toc-box {
    background: #fafafa;
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.toc-box h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}
.toc-box ul {
    padding-left: 18px;
}
.toc-box a {
    text-decoration: underline;
    color: var(--color-primary);
}



/* ============================================================
   CONTEÚDO PRINCIPAL
============================================================ */
.oferta-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
}

.oferta-content h2 {
    margin-top: 36px;
    font-size: 1.55rem;
    font-weight: 700;
}

.oferta-content h3 {
    margin-top: 28px;
    font-size: 1.3rem;
}



/* ============================================================
   CTA FINAL (forte para conversão)
============================================================ */
.cta-final-section {
    text-align: center;
    margin-top: 50px;
}

.cta-final-box {
    background: #f8fbff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.cta-final-box h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.cta-final-box p {
    margin-bottom: 22px;
    color: var(--color-text-light);
}

.cta-final-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}
.cta-final-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}



/* ============================================================
   FOOTER DO POST
============================================================ */
.oferta-footer {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    color: var(--color-text-light);
}

.footer-tags {
    margin-bottom: 10px;
}

.footer-tags a {
    color: var(--color-primary);
}

.footer-categories a {
    color: var(--color-primary-dark);
}




/* ============================================================
   CTA STICKY (mobile)
============================================================ */
.sticky-cta-mobile {
    display: none;
}

@media (max-width: 680px) {
    .sticky-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: 14px;
        text-align: center;
        z-index: 999;
    }
    .sticky-cta-mobile a {
        color: #fff;
        font-size: 1.15rem;
        font-weight: 700;
    }
}

.lazy-video {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.lazy-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-breadcrumbs {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.hero-breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

.hero-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================================
   CORREÇÃO GLOBAL: texto sempre branco nos CTAs
============================================================ */

/* Botões principais */
.cta-main-btn,
.cta-final-btn,
.sticky-cta-mobile a {
    color: #fff !important;
}

/* Garante que qualquer texto interno também fique branco */
.cta-main-btn *,
.cta-final-btn *,
.sticky-cta-mobile a * {
    color: #fff !important;
}

/* HOVER – mantém branco em todos os estados */
.cta-main-btn:hover,
.cta-main-btn:hover *,
.cta-final-btn:hover,
.cta-final-btn:hover *,
.sticky-cta-mobile a:hover,
.sticky-cta-mobile a:hover * {
    color: #fff !important;
}

/* ============================================================
   ALINHAMENTO EM LINHA — Tags e Categorias (estilo versão antiga)
============================================================ */
.oferta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

/* título "Tags:" e "Categoria:" */
.footer-tags strong,
.footer-categories strong {
    font-weight: 700;
    color: var(--color-text);
}

/* links */
.footer-tags a,
.footer-categories a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.footer-tags a:hover,
.footer-categories a:hover {
    text-decoration: underline;
}

/* MOBILE — voltar empilhado */
@media (max-width: 640px) {
    .oferta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================================
   LARGURA DE LEITURA — SINGLE OFERTA (desktop)
   Aperta somente o texto e o bloco do título/subtítulo
============================================================ */
@media (min-width: 1024px) {

  /* Título + subtítulo */
  .premium-single .hero-inner {
    max-width: 760px !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Conteúdo do post */
  .premium-single .oferta-content {
    max-width: 760px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Caixa da imagem com proporção fixa 16:9 (igual ao player) */
.media-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #fff; /* fundo neutro atrás da imagem */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Imagem deve aparecer INTEIRA (contain), sem cortes */
.media-thumb img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;  /* <-- AQUI é o segredo */
    object-position: center center;

    background-color: #fff; /* evita fundo preto */
    padding: 0; 
}
