/* ==========================================================
   Página: Infraestrutura da Qualidade
   Template: shaper_helixultimate
   Escopo: .page-relatorios
   ========================================================== */

/* ---------- Remove topo padrão do tema/joomla nesta página ---------- */
.page-relatorios #sp-title,
.page-relatorios .sp-page-title,
.page-relatorios .page-header,
.page-relatorios .category-desc {
    display: none !important;
}

.page-relatorios #sp-main-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------- Container geral ---------- */
.page-relatorios .iq-page {
    --iq-hero-track-max: 1520px;
    --iq-hero-content-max: 1040px;
    margin: 0 auto 60px;
}

/* ==========================================================
   HERO / TOPO (faixa azul)
   ========================================================== */
.page-relatorios .iq-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #0b5bd3;
    color: #fff;
    padding: 56px 0 48px;
}

.page-relatorios .iq-hero .container {
    max-width: var(--iq-hero-track-max);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.page-relatorios .iq-hero__inner {
    max-width: var(--iq-hero-track-max);
}

.page-relatorios .iq-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 1;
    visibility: visible;
}

.page-relatorios .iq-hero__badge-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: brightness(0) invert(1);
    background-image: url('/templates/shaper_helixultimate/images/icons/book-open.svg');
}

.page-relatorios .iq-hero__badge-text {
    font-family: 'Rawline', sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #fff;
}

.page-relatorios .iq-hero__title {
    margin: 0 0 18px;
    max-width: var(--iq-hero-content-max);
    font-family: 'Rawline', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.9px;
    color: #fff;
}

.page-relatorios .iq-hero__subtitle {
    max-width: 100%;
    font-family: 'Rawline', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.7;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.92);
}

.page-relatorios .iq-hero__subtitle p {
    margin: 0 0 18px;
    color: inherit;
}

.page-relatorios .iq-hero__subtitle p:last-child {
    margin-bottom: 0;
}

.page-relatorios .iq-hero__subtitle strong {
    color: #fff;
    font-weight: 700;
}

.page-relatorios .iq-hero__subtitle a {
    color: #fff;
    text-decoration: underline;
    word-break: break-word;
}

/* Conteúdo após hero */
.page-relatorios .iq-page>.iq-page-controls,
.page-relatorios .iq-page>.iq-grid,
.page-relatorios .iq-page>.iq-pagination {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 991px) {
    .page-relatorios .iq-hero {
        padding: 44px 0 36px;
    }

    .page-relatorios .iq-hero__inner {
        max-width: 100%;
    }

    .page-relatorios .iq-hero__title {
        font-size: 34px;
        line-height: 38px;
    }

    .page-relatorios .iq-hero__subtitle {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.65;
    }
}

@media (max-width: 767px) {
    .page-relatorios .iq-hero {
        padding: 36px 0 30px;
    }

    .page-relatorios .iq-hero__badge {
        margin-bottom: 14px;
    }

    .page-relatorios .iq-hero__title {
        font-size: 30px;
        line-height: 34px;
        letter-spacing: -0.6px;
    }

    .page-relatorios .iq-hero__subtitle {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ==========================================================
   CONTROLES (Busca + Filtros)
   ========================================================== */

.page-relatorios .iq-page-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 28px 0;
    margin-left: 0!important;
    margin-right: 0!important;
    max-width: 600px!important;
}

/* ---------- Busca ---------- */
.page-relatorios .iq-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 448px;
    max-width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease;
}

.page-relatorios .iq-search:focus-within {
    border-color: #cfd6df;
}

.page-relatorios .iq-search__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: .72;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.page-relatorios .iq-search__input {
    border: 0 !important;
    outline: 0 !important;
    width: 100%;
    font-family: 'Rawline', sans-serif;
    font-size: 14px;
    line-height: 1;
    background: transparent;
    color: #667085;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.page-relatorios .iq-search__input::placeholder {
    color: #667085;
    opacity: 1;
}

/* ---------- Filtros ---------- */
.page-relatorios .iq-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-relatorios .iq-chip {
    border: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eef1f5;
    color: #2b2f36;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.page-relatorios .iq-chip:hover {
    background: #dde3ea;
}

.page-relatorios .iq-chip.is-active {
    background: #0b5bd3;
    color: #fff;
}

/* ==========================================================
   GRID
   ========================================================== */

.page-relatorios .iq-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==========================================================
   CARD
   ========================================================== */

.page-relatorios .iq-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 16px;
    padding: 22px 22px 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, border-color .2s ease;
}

/* Barra verde no topo (hover) */
.page-relatorios .iq-card__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    opacity: 0;
    transition: opacity .2s ease;
    background: linear-gradient(90deg, #0aa84f 0%, #6bd68f 100%);
}

/* Tag */
.page-relatorios .iq-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    background: rgba(10, 168, 79, .12);
    color: #0a7f3f;
    margin-bottom: 14px;
}

/* Ícone */
.page-relatorios .iq-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(10, 168, 79, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.page-relatorios .iq-icon__glyph {
    width: 22px;
    height: 22px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Título */
.page-relatorios .iq-card__title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: #111;
    transition: color .2s ease;
}

.page-relatorios .iq-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Texto */
.page-relatorios .iq-card__text {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 19px;
    color: #676f7e;
}

/* Ler mais */
.page-relatorios .iq-card__more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #0aa84f;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .2s ease, transform .2s ease;
}

/* Hover */
.page-relatorios .iq-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
    border-color: rgba(0, 0, 0, .14);
}

.page-relatorios .iq-card:hover .iq-card__top {
    opacity: 1;
}

.page-relatorios .iq-card:hover .iq-card__title {
    color: #0aa84f;
}

.page-relatorios .iq-card:hover .iq-card__more {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   ÍCONES POR TAG (alias da tag "tipo")
   ========================================================== */

.page-relatorios .iq-card--conceito .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/lightbulb.svg');
}

.page-relatorios .iq-card--guia-pratico .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/map-folded.svg');
}

.page-relatorios .iq-card--direitos .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/scale-balanced.svg');
}

.page-relatorios .iq-card--educativo .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/book-open-text.svg');
}

.page-relatorios .iq-card--empresas .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/building-office.svg');
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1200px) {
    .page-relatorios .iq-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-relatorios .iq-hero {
        height: auto;
        display: block;
        padding: 42px 0 34px;
    }

    .page-relatorios .iq-hero__title {
        font-size: 30px;
        line-height: 1.2;
    }

    .page-relatorios .iq-hero__subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .page-relatorios .iq-grid--3 {
        grid-template-columns: 1fr;
    }

    .page-relatorios .iq-page-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .page-relatorios .iq-search {
        width: 100%;
    }
}


/* ==========================================================
   Artigo (layout): iq_item
   Escopo: .iq-item
   ========================================================== */

/* Remove topo padrão do tema/joomla quando estiver no iq_item */
.view-article #sp-title,
.view-article .sp-page-title,
.view-article .page-header {
    display: none !important;
}

.view-article #sp-main-body {
    padding-top: 0 !important;
}

/* Wrapper geral */
.iq-item {
    --iq-item-hero-max: 1520px;
    --iq-item-track-max: 980px;
    --iq-item-content-max: 820px;
    margin: 0 auto;
}

/* ---------------------------
   HERO (Topo azul full-width)
---------------------------- */
.iq-item .iq-item-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #0b5bd3;
    color: #fff;
    padding: 32px 0 40px;
}

.iq-item .iq-item-hero__inner {
    max-width: var(--iq-item-hero-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* Voltar */
.iq-item .iq-item-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    margin-bottom: 14px;
}

.iq-item .iq-item-hero__back:hover,
.iq-item .iq-item-hero__back:focus {
    color: #fff;
    text-decoration: underline;
}

/* Meta (tag / leitura) */
.iq-item .iq-item-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Tag (duplicado do estilo da listagem, mas adaptado ao topo azul) */
.iq-item .iq-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    margin-bottom: 0;
}

.iq-item .iq-item-hero__readtime {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.76);
}

.iq-item .iq-item-hero__readtime::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    opacity: 0.9;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
}

/* Título com ícone */
.iq-item .iq-item-hero__titlewrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

/* Ícone (reaproveita suas classes) */
.iq-item .iq-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.iq-item .iq-icon__glyph {
    width: 22px;
    height: 22px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Título */
.iq-item .iq-item-hero__title {
    margin: 0;
    font-family: 'Rawline', sans-serif;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.9px;
    color: #ffffff !important;
}

/* Subtítulo (usa introtext) */
.iq-item .iq-item-hero__subtitle {
    margin: 0;
    font-family: 'Rawline', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 860px;
}

/* Responsivo */
@media (max-width: 768px) {
    .iq-item .iq-item-hero {
        padding: 38px 0 28px;
    }

    .iq-item .iq-item-hero__title {
        font-size: 34px;
    }

    .iq-item .iq-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
}

/* ---------------------------
   Corpo do artigo
---------------------------- */
.iq-item .iq-item-body {
    max-width: var(--iq-item-track-max);
    margin: 0 auto;
    padding: 28px 16px 0;
}

.iq-item .iq-item-body__content {
    max-width: var(--iq-item-content-max);
    margin: 0;
    color: #2c3440;
    font-size: 15px;
    line-height: 1.75;
}

.iq-item .iq-item-body h2,
.iq-item .iq-item-body h3 {
    color: #111;
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.iq-item .iq-item-body p {
    margin: 0 0 14px;
}

/* ---------------------------
   Ações (Voltar / Compartilhar)
---------------------------- */
.iq-item .iq-item-actions {
    max-width: var(--iq-item-track-max);
    margin: 40px auto 0;
    padding: 0 16px;
}

.iq-item .iq-item-actions__content {
    max-width: var(--iq-item-content-max);
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid #d9dfe6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botão ghost simples (caso não exista no seu CSS geral) */
.iq-item .iq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}

.iq-item .iq-btn--ghost {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.10);
    color: #111;
}

.iq-item .iq-btn--ghost:hover,
.iq-item .iq-btn--ghost:focus {
    border-color: rgba(17, 17, 17, 0.20);
}

.iq-item .iq-share-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url('/templates/shaper_helixultimate/images/icons/compartilhar.svg');
}

/* Compartilhar */
.iq-item .iq-share {
    position: relative;
}

.iq-item .iq-share__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
    padding: 8px;
    display: none;
    z-index: 50;
}

.iq-item .iq-share__menu.is-open {
    display: block;
}

.iq-item .iq-share__item {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    font-size: 13px;
}

.iq-item .iq-share__item:hover,
.iq-item .iq-share__item:focus {
    background: rgba(11, 91, 211, 0.08);
}

/* ---------------------------
   Conteudos relacionados
---------------------------- */
.iq-item .iq-related {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 56px;
    padding: 56px 0;
    background: rgba(234, 237, 240, 0.30);
    border-top: 1px solid rgba(207, 214, 223, 0.9);
}

.iq-item .iq-related__content {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 16px;
}

.iq-item .iq-related__title {
    margin: 0 0 20px;
    font-family: 'Rawline', sans-serif;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #2c3440;
}

.iq-item .iq-related .iq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.iq-item .iq-related .iq-card {
    position: relative;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 12px;
    padding: 16px;
    min-height: 229.25px;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.iq-item .iq-related .iq-card__top {
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 12px 12px 0 0;
    background: #0aa84f;
    opacity: 0;
    transition: opacity .2s ease;
}

.iq-item .iq-related .iq-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1;
    color: #0a7f3f;
    background: rgba(10, 168, 79, .12);
}

.iq-item .iq-related .iq-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 168, 79, .08);
    border: 0;
    padding: 0;
}

.iq-item .iq-related .iq-icon__glyph {
    width: 22px;
    height: 22px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: none;
}

.iq-item .iq-related .iq-card__title {
    margin: 0 0 10px;
    font-family: 'Rawline', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 19.25px;
    letter-spacing: -0.35px;
    color: #2d3443;
    transition: color .2s ease;
}

.iq-item .iq-related .iq-card__title a {
    color: inherit;
    text-decoration: none;
}

.iq-item .iq-related .iq-card__text {
    margin: 0;
    font-family: 'Rawline', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #676f7e;
}

.iq-item .iq-related .iq-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #0aa84f;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .2s ease, transform .2s ease;
}

.iq-item .iq-related .iq-card:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
    border-color: rgba(0, 0, 0, .14);
}

.iq-item .iq-related .iq-card:hover .iq-card__top {
    opacity: 1;
}

.iq-item .iq-related .iq-card:hover .iq-card__title {
    color: #0aa84f;
}

.iq-item .iq-related .iq-card:hover .iq-card__more {
    opacity: 1;
    transform: translateY(0);
}

/* Icones por tag (cards relacionados) */
.iq-item .iq-related .iq-card--conceito .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/lightbulb.svg');
}

.iq-item .iq-related .iq-card--guia-pratico .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/map-folded.svg');
}

.iq-item .iq-related .iq-card--direitos .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/scale-balanced.svg');
}

.iq-item .iq-related .iq-card--educativo .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/book-open-text.svg');
}

.iq-item .iq-related .iq-card--empresas .iq-icon__glyph {
    background-image: url('/templates/shaper_helixultimate/images/icons/building-office.svg');
}

@media (max-width: 1200px) {
    .iq-item .iq-related .iq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .iq-item .iq-related {
        margin-top: 40px;
        padding: 40px 0;
    }

    .iq-item .iq-related .iq-grid {
        grid-template-columns: 1fr;
    }

    .iq-item .iq-related__title {
        font-size: 20px;
        line-height: 28px;
    }
}
