/* ==========================================================================
   Tema Qóculos - Blog
   Variaveis de cor baseadas no Figma (teal/turquesa).
   ========================================================================== */
:root {
    --qo-teal:        #14b8b8;
    --qo-teal-dark:   #0f8a8a;
    --qo-teal-deep:   #0a6b6b;
    --qo-ink:         #1e1e1e;
    --qo-white:       #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--qo-ink);
    background-color: #0498a8;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Header (sobreposto ao banner, fundo transparente)
   ========================================================================== */
.qo-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0.5rem 0;
}

.qo-logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--qo-white);
    letter-spacing: 0.5px;
}
.qo-logo-accent {
    color: var(--qo-white);
    position: relative;
}

.qo-header .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.qo-header .nav-link:hover {
    color: var(--qo-white);
}
.qo-header .nav-link-active {
    color: #5EF8FF;
    font-weight: 700;
}

/* Botao COMPRAR (contorno arredondado) */
.qo-btn-comprar {
    color: var(--qo-white);
    border: 2px solid var(--qo-white);
    border-radius: 999px;
    padding: 0.45rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.qo-btn-comprar:hover {
    background: var(--qo-teal);
    border-color: var(--qo-teal);
    color: var(--qo-white);
}
.qo-btn-comprar .qo-btn-icon {
    height: 0.9em;
    width: auto;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* ==========================================================================
   Banner principal (hero)
   ========================================================================== */
.qo-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-image: url("/blog/assets/img/banner_main_ outlet_oculos_sorocaba.jpg");
    background-size: cover;
    background-position: center;
    color: var(--qo-white);
}

/* Overlay em gradiente teal por cima da foto, como no Figma */
.qo-hero-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(
        100deg,
        rgba(10, 107, 107, 0.92) 0%,
        rgba(15, 138, 138, 0.75) 45%,
        rgba(20, 184, 184, 0.35) 100%
    );*/
}

.qo-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.qo-hero-title {
    font-size: clamp(3.5rem, 9vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.qo-hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

/* Hero sem a barra "Temas em Alta" (paginas de post): mais curto e sem o vao. */
.qo-hero-compact {
    min-height: 380px;
}
.qo-hero-compact .qo-hero-subtitle {
    margin-bottom: 0;
}

/* ==========================================================================
   Barra "Temas em Alta" (glassmorphism sobre o banner)
   ========================================================================== */
.qo-temas {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.qo-temas-label {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--qo-white);
    flex-shrink: 0;
}

.qo-temas-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: clamp(1rem, 3vw, 3rem);
    flex-wrap: wrap;
    flex: 1;
}

.qo-tema {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--qo-white);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.qo-tema:hover,
.qo-tema-active {
    /* muda so a cor do icone e da legenda (que herdam esta cor); fundo intacto */
    color: var(--qo-teal);
    transform: translateY(-3px);
}
.qo-tema-icon {
    font-size: 52px;
    line-height: 1;
}

.qo-tema-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .qo-temas {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
        padding: 1.25rem 1.5rem;
    }
    .qo-temas-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 1.5rem 1rem;
    }
    .qo-tema-icon {
        font-size: 40px;
    }
}

/* ==========================================================================
   Conteudo da home (fundo teal, cards de posts + sidebar)
   ========================================================================== */
.qo-content {
    /*background: linear-gradient(180deg, var(--qo-teal-dark) 0%, var(--qo-teal-deep) 100%);*/ 
    padding: 3.5rem 0 4rem;
}

/* --- Grid de cards --- */
.qo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 575px) {
    .qo-grid { grid-template-columns: 1fr; }
}

.qo-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--qo-white);
}

.qo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.qo-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--qo-white);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.25);
}

/* Cor por categoria (mockado; virar coluna `color` no banco depois) */
.qo-cat-saude-visual { background: var(--qo-teal); }
.qo-cat-moda         { background: #8b3fb0; }
.qo-cat-marcas       { background: #e0a80d; }
.qo-cat-dicas        { background: #4caf50; }
.qo-cat-curiosidades { background: #e8567f; }

.qo-card-date {
    font-size: 0.8rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.qo-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.qo-card-title a {
    color: var(--qo-white);
    text-decoration: none;
}
.qo-card-title a:hover { text-decoration: underline; }

.qo-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.qo-card-more {
    align-self: flex-end;
    color: var(--qo-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 2px solid var(--qo-white);
    padding-bottom: 2px;
}
.qo-card-more:hover { color: var(--qo-white); opacity: 0.8; }

/* --- Paginacao --- */
.qo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.qo-page {
    color: var(--qo-white);
    text-decoration: none;
    font-weight: 700;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.qo-page:hover { background: rgba(255, 255, 255, 0.2); color: var(--qo-white); }
.qo-page-active {
    background: var(--qo-white);
    color: var(--qo-teal-dark);
}
.qo-page-dots { color: var(--qo-white); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.qo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qo-side-card {
    background: var(--qo-white);
    color: var(--qo-ink);
    border-radius: 20px;
    padding: 1.75rem;
}

/* --- Franchising --- */
.qo-franchising-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.qo-franchising-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--qo-ink);
    margin: 0;
}
.qo-franchising-logo {
    background: var(--qo-teal);
    color: var(--qo-white);
    font-weight: 800;
    font-size: 1.2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.qo-franchising-text {
    font-size: 0.85rem;
    color: #555;
    margin: 0.75rem 0 1.25rem;
}
.qo-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.qo-social a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: var(--qo-teal);
    color: var(--qo-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}
.qo-social a:hover { background: var(--qo-teal-dark); }

/* --- Ultimas publicacoes --- */
.qo-side-heading {
    color: var(--qo-white);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    text-align: right;
    margin-bottom: 1.25rem;
}
.qo-latest {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.qo-latest-item { text-align: right; }
.qo-latest-date {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.2rem;
}
.qo-latest-title {
    color: var(--qo-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.25;
}
.qo-latest-title:hover { color: var(--qo-white); text-decoration: underline; }

/* --- Newsletter --- */
.qo-newsletter-lead {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--qo-ink);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.qo-newsletter-cta {
    color: var(--qo-teal);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.qo-newsletter-note {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 1rem;
}
.qo-newsletter-note a { color: #888; }
.qo-newsletter-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.qo-newsletter-input:focus {
    outline: none;
    border-color: var(--qo-teal);
}
.qo-newsletter-btn {
    background: var(--qo-teal);
    color: var(--qo-white);
    border: none;
    border-radius: 999px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}
.qo-newsletter-btn:hover { background: var(--qo-teal-dark); }

/* ==========================================================================
   Pagina de post (card branco com capa + conteudo)
   ========================================================================== */
.qo-post {
    background: var(--qo-white);
    border-radius: 20px;
    overflow: hidden;
    color: var(--qo-ink);
}

.qo-post-cover {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.qo-post-body {
    padding: 2rem 2.5rem 2.5rem;
}

.qo-post-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qo-post-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--qo-ink);
    margin: 0;
}

.qo-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.qo-post-lead {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.qo-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    flex-shrink: 0;
}
.qo-post-author img {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    object-fit: cover;
}

.qo-post-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 1.5rem 0;
}

.qo-post-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}
.qo-post-content p { margin-bottom: 1rem; }
.qo-post-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.qo-post-content li { margin-bottom: 0.5rem; }
.qo-post-content strong { color: var(--qo-ink); }

/* ==========================================================================
   Pagina de categoria (mesmo layout da home, com titulo da categoria)
   ========================================================================== */
.qo-cat-heading {
    color: var(--qo-white);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.qo-cat-empty {
    color: var(--qo-white);
    opacity: 0.9;
}

.qo-side-banner {
    display: block;
    margin-bottom: 1.5rem;
}
.qo-side-banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ==========================================================================
   Footer (estrutura do institucional, com as cores do blog)
   ========================================================================== */
.qo-footer {
    margin-top: 3rem;
    background: var(--qo-white);
}
.qo-footer-cols {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}
.qo-footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}
.qo-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.qo-footer-title {
    color: var(--qo-ink);
    font-weight: 600;
}
.qo-footer-list a,
.qo-footer-contact a {
    color: inherit;
    text-decoration: none;
}
.qo-footer-list a:hover,
.qo-footer-contact a:hover {
    color: var(--qo-teal);
}
.qo-footer-help {
    padding-left: 2rem;
    border-left: 2px solid #e5e7eb;
}
.qo-footer-contact {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.qo-footer-contact i {
    margin-right: 0.35rem;
}

.qo-footer-bar {
    background: #0498a8;
    color: var(--qo-white);
    padding: 1.5rem 1rem;
    text-align: center;
}
.qo-footer-bar-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.qo-footer-copy {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.qo-footer-social {
    display: flex;
    gap: 0.5rem;
    font-size: 1.25rem;
}
.qo-footer-social a {
    color: var(--qo-white);
}
.qo-footer-legal {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .qo-footer-help {
        padding-left: 0;
        border-left: 0;
    }
}

/* Menu mobile: fundo para o nav colapsado (senao fica transparente sobre o hero) */
@media (max-width: 991.98px) {
    .qo-header .navbar-collapse {
        background: var(--qo-teal-deep);
        border-radius: 16px;
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
    }
}
