/*
Theme Name: Astra Child - OmsiModsBR
Template: astra
Version: 1.0
*/

/* Base mínima */

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* =========================
   SLIDER (mockup visual)
========================= */

.omsi-slider {
  width: 100%;
}

/* wrapper empilhado */
.omsi-slider-wrapper {
  display: flex;
  flex-direction: column;
}

/* cada slide */
.omsi-slide {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay escuro */
.omsi-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

/* conteúdo */
.omsi-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* título */
.omsi-slide-title {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

/* ações */
.omsi-slide-actions {
  display: flex;
  gap: 12px;
}

/* botão base */
.omsi-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

/* botão principal */
.omsi-btn-primary {
  background: #00b140;
  color: #fff;
}

.omsi-btn-primary:hover {
  background: #009437;
}

/* botão secundário */
.omsi-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.omsi-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.omsi-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.65) 30%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0.05) 100%
  );
}

.omsi-slide-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.omsi-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;

  text-decoration: none !important;
  border: none;

  position: relative;
  overflow: hidden;

  transition: all 0.2s ease;
}

.omsi-btn-primary {
  background: linear-gradient(
    to bottom,
    #00c94a 0%,
    #00b140 100%
  );
  color: #fff;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 4px 10px rgba(0,0,0,0.15);
}

.omsi-btn-primary:hover {
  background: linear-gradient(
    to bottom,
    #00d84f 0%,
    #00c046 100%
  );
}

.omsi-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;

  backdrop-filter: blur(4px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.omsi-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.omsi-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;

  backdrop-filter: blur(4px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.omsi-btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.ast-theme-transparent-header .main-header-menu a {
  color: #fff !important;
}

.ast-theme-transparent-header .main-header-bar {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  backdrop-filter: blur(6px);
}

.ast-theme-transparent-header .site-title,
.ast-theme-transparent-header .site-logo {
  color: #fff !important;
}

.ast-header-scrolled .main-header-bar {
  background: #ffffff !important;
  transition: 0.3s ease;
}

.ast-theme-transparent-header .main-header-menu a {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.ast-header-scrolled .main-header-menu a {
  color: #111 !important;
}

.omsi-slide {
  padding-top: 100px; /* ajusta conforme altura do header */
}

.main-header-menu .sub-menu {
  background: #111 !important;
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.main-header-menu .sub-menu a {
  color: #fff !important;
  padding: 10px 16px;
}

.main-header-menu .sub-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.ast-header-scrolled .main-header-bar {
  background: #ffffff !important;
}

.ast-header-scrolled .main-header-menu a {
  color: #111 !important;
  text-shadow: none;
}

.main-header-menu .current-menu-item > a {
  color: #00b140 !important;
}

.omsi-btn-secondary {
  backdrop-filter: blur(6px);
}

.omsi-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}

/* =========================
   FOOTER NORMAL (RESET TOTAL)
========================= */

.site-footer#colophon {
  position: static !important;
  overflow: visible !important;
}

.site-footer#colophon .omsi-footer-bg {
  display: none !important;
}


/* =========================
   FOOTER HACK (SÓ COM HEADER TRANSPARENTE)
========================= */

.ast-theme-transparent-header .site-footer#colophon {
  position: relative !important;
  overflow: hidden !important;
}

/* fundo */
.ast-theme-transparent-header .site-footer#colophon .omsi-footer-bg {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  filter: blur(6px) !important;
  transform: scale(1.02) !important;
  opacity: 0.85 !important;

  pointer-events: none !important;
}

/* overlay */
.ast-theme-transparent-header .site-footer#colophon .omsi-footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.78)
  );
}

/* conteúdo acima */
.ast-theme-transparent-header .site-footer#colophon > *:not(.omsi-footer-bg) {
  position: relative !important;
  z-index: 2 !important;
}

/* remover fundo Astra SÓ nesse modo */
.ast-theme-transparent-header .site-footer#colophon,
.ast-theme-transparent-header .site-footer#colophon .site-below-footer-wrap,
.ast-theme-transparent-header .site-footer#colophon .ast-builder-grid-row-container,
.ast-theme-transparent-header .site-footer#colophon .ast-builder-grid-row,
.ast-theme-transparent-header .site-footer#colophon .ast-builder-layout-element,
.ast-theme-transparent-header .site-footer#colophon .ast-footer-copyright,
.ast-theme-transparent-header .site-footer#colophon .footer-widget-area,
.ast-theme-transparent-header .site-footer#colophon .widget,
.ast-theme-transparent-header .site-footer#colophon .widget-area {
  background: transparent !important;
}

/* texto branco SÓ nesse modo */
.ast-theme-transparent-header .site-footer#colophon,
.ast-theme-transparent-header .site-footer#colophon p,
.ast-theme-transparent-header .site-footer#colophon a,
.ast-theme-transparent-header .site-footer#colophon span,
.ast-theme-transparent-header .site-footer#colophon li,
.ast-theme-transparent-header .site-footer#colophon .widget-title {
  color: #fff !important;
}

.omsi-footer-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}


.omsi-search-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.omsi-search-main {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.omsi-search-input {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
}

.omsi-search-btn {
  background: #00b140;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.omsi-search-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group span {
  width: 100%;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.filter-group label {
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.filter-group label:hover {
  background: #e5e7eb;
}

.filter-group input {
  display: none;
}

.filter-group input:checked + * {
  font-weight: bold;
}

/* destaque visual quando marcado */
.filter-group label:has(input:checked) {
  background: #00b140;
  color: #fff;
}

.filter-other {
  margin-top: 10px;
}

.omsi-refine-toggle {
  margin-top: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
}

.omsi-refine-toggle .arrow {
  transition: transform 0.3s ease;
}

.omsi-search-filters {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* aberto */
.omsi-search-filters.open {
  max-height: 500px;
  margin-top: 15px;
}

/* seta girando */
.omsi-refine-toggle.open .arrow {
  transform: rotate(180deg);
}

.omsi-search-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.omsi-search-autocomplete-wrap {
  position: relative;
  flex: 1;
}

.omsi-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  overflow: hidden;
  display: none;
}

.omsi-search-results.active {
  display: block;
}

.omsi-search-item {
  display: block;
  padding: 12px 14px;
  color: #111;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.omsi-search-item:last-child {
  border-bottom: none;
}

.omsi-search-item:hover {
  background: #f8fafc;
}

.omsi-search-item-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.omsi-search-item-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.omsi-no-results {
  padding: 12px 14px;
  color: #64748b;
  font-size: 14px;
}

.omsi-search-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: center;
}

.omsi-search-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}

.omsi-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omsi-search-content {
  display: flex;
  flex-direction: column;
}

.omsi-search-item-title {
  font-weight: 600;
  color: #111;
}

.omsi-search-item-meta {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 921px) {

  /* =========================
     FONTE
  ========================= */
  .main-header-menu.stack-on-mobile .menu-link {
    font-family: "Rajdhani", sans-serif !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }

  /* =========================
     MENU PRINCIPAL (sempre escuro)
  ========================= */
  .main-header-menu.stack-on-mobile > li > .menu-link {
    color: #111 !important;
  }

  /* =========================
     SUBMENU PADRÃO (ESCURO)
  ========================= */
  .main-header-menu.stack-on-mobile .sub-menu .menu-link {
    color: #111 !important;
    opacity: 1 !important;
  }

  /* =========================
     SUBMENU NO HEADER TRANSPARENTE (BRANCO)
  ========================= */
  .ast-theme-transparent-header 
  .main-header-menu.stack-on-mobile .sub-menu .menu-link {
    color: #ffffff !important;
  }

}

.omsi-grid-section {
    margin-top: 40px;
}

.omsi-grid-header {
    margin-bottom: 20px;
}

.omsi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.omsi-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
}

.omsi-card:hover {
    transform: translateY(-4px);
}

.omsi-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.omsi-card-content {
    padding: 15px;
}

.omsi-card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.omsi-card-meta {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* HEADER */
.omsi-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* BOTÕES */
.omsi-grid-nav button {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 6px;
    cursor: pointer;
}

/* SCROLL */
.omsi-grid-wrapper {
    overflow: hidden;
}

.omsi-grid-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* CARD */
.omsi-card {
    min-width: 260px;
    max-width: 260px;
    background: #0b0b0b;
    border-radius: 12px;
    overflow: hidden;
}

/* IMG */
.omsi-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.omsi-card-content {
    padding: 12px;
}

/* CATEGORIA */
.omsi-card-cat {
    font-size: 12px;
    color: #1db954;
    margin-bottom: 5px;
}

/* TITULO */
.omsi-card-title a {
    color: #fff;
    text-decoration: none; /* remove sublinhado */
}

.omsi-card-title a:hover {
    color: #1db954;
}

/* AUTOR */
.omsi-card-author {
    font-size: 12px;
    color: #aaa;
    margin: 8px 0;
}

/* BOTÃO */
.omsi-btn {
    display: inline-block;
    background: #1db954;
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

/* HEADER */
.omsi-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 15px;
}

/* NAV */
.omsi-grid-nav button {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin-left: 6px;
    border-radius: 6px;
    cursor: pointer;
}

/* WRAPPER */
.omsi-grid-wrapper {
    overflow: hidden;
}

/* SCROLL */
.omsi-grid-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;

    /* remove barra */
    scrollbar-width: none;
}

.omsi-grid-scroll::-webkit-scrollbar {
    display: none;
}

/* CARD */
.omsi-card {
    min-width: 260px;
    max-width: 260px;
    background: #0b0b0b;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

/* IMG */
.omsi-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* CONTENT */
.omsi-card-content {
    padding: 12px;
}

/* CATEGORIA */
.omsi-card-cat {
    font-size: 12px;
    color: #1db954;
    margin-bottom: 6px;
}

/* TITULO */
.omsi-card-title a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.omsi-card-title a:hover {
    color: #1db954;
}

/* META */
.omsi-card-meta {
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 12px;
}

/* BOTÃO COM GRADIENTE */
.omsi-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;

    background: linear-gradient(135deg, #1db954, #159c45);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
  .omsi-slide {
    height: 320px;
    padding: 20px;
  }

  .omsi-slide-title {
    font-size: 24px;
  }

  .omsi-slide-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================================================
   REFINO VISUAL CONSOLIDADO
   Mantém TODAS as regras existentes acima.
   Abaixo, apenas sobrescritas finais de cor, contraste,
   profundidade e acabamento visual, sem remover comportamentos.
========================================================= */

:root {
  --omsi-green-1: #16d45a;
  --omsi-green-2: #0faa45;
  --omsi-green-3: #0c8f39;
  --omsi-dark-1: #0b0b0d;
  --omsi-dark-2: #111215;
  --omsi-dark-3: #1a1c20;
  --omsi-light-1: #f4f5f7;
  --omsi-light-2: #ffffff;
  --omsi-border-soft: rgba(255,255,255,0.06);
  --omsi-shadow-soft: 0 10px 28px rgba(0,0,0,0.14);
  --omsi-shadow-card: 0 12px 28px rgba(0,0,0,0.22);
}

body {
  background: #efefef;
  color: #111;
}

/* =========================
   SLIDER
========================= */

.omsi-slider {
  border-radius: 0;
}

.omsi-slide {
  border-radius: 0;
  overflow: hidden;
}

.omsi-slide-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.84) 0%,
    rgba(0,0,0,0.64) 32%,
    rgba(0,0,0,0.30) 62%,
    rgba(0,0,0,0.08) 100%
  );
}

.omsi-slide-content {
  max-width: 760px;
}

.omsi-slide-title {
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.omsi-slide-actions {
  gap: 14px;
}

/* =========================
   BOTÕES GLOBAIS
========================= */

.omsi-btn,
.omsi-search-btn,
.omsi-btn-primary {
  background: linear-gradient(180deg, var(--omsi-green-1) 0%, var(--omsi-green-2) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 18px rgba(10, 120, 40, 0.16);
}

.omsi-btn:hover,
.omsi-search-btn:hover,
.omsi-btn-primary:hover {
  background: linear-gradient(180deg, #1be765 0%, #12ba4a 100%);
  color: #fff;
  transform: translateY(-1px);
}

.omsi-btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 18px rgba(0,0,0,0.15);
}

.omsi-btn-secondary:hover {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

/* =========================
   HEADER / MENUS
========================= */

.ast-theme-transparent-header .main-header-bar {
  background: linear-gradient(
    to bottom,
    rgba(13,13,16,0.72),
    rgba(13,13,16,0.30)
  );
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ast-header-scrolled .main-header-bar {
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.ast-theme-transparent-header .main-header-menu a {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.42);
}

.ast-header-scrolled .main-header-menu a {
  color: #171717 !important;
}

.main-header-menu > .menu-item > .menu-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a {
  color: var(--omsi-green-2) !important;
}

.main-header-menu .sub-menu {
  background: rgba(17,17,18,0.96) !important;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 32px rgba(0,0,0,0.30);
}

.main-header-menu .sub-menu a {
  color: #f5f7fa !important;
}

.main-header-menu .sub-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff !important;
}

/* =========================
   SEARCH
========================= */

.omsi-search-box {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(17,17,17,0.04);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

.omsi-search-input {
  border: 1px solid #d8dce2;
  background: #fff;
  color: #1a1a1a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.omsi-search-input:focus {
  outline: none;
  border-color: rgba(15,170,69,0.65);
  box-shadow: 0 0 0 4px rgba(15,170,69,0.10);
}

.omsi-search-btn {
  border-radius: 11px;
}

.filter-group span,
.omsi-refine-toggle {
  color: #16181c;
}

.filter-group label {
  background: #eef1f4;
  color: #1f2937;
  border: 1px solid rgba(17,17,17,0.05);
}

.filter-group label:hover {
  background: #e4e8ee;
}

.filter-group label:has(input:checked) {
  background: linear-gradient(180deg, var(--omsi-green-1) 0%, var(--omsi-green-2) 100%);
  color: #fff;
  border-color: transparent;
}

.omsi-search-results {
  background: rgba(255,255,255,0.98);
  border: 1px solid #e6e9ee;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.omsi-search-item {
  color: #111;
}

.omsi-search-item:hover {
  background: #f4f7fa;
}

.omsi-search-thumb {
  border-radius: 8px;
  background: #e9edf2;
}

.omsi-search-item-title {
  color: #111827;
}

.omsi-search-item-meta,
.omsi-no-results {
  color: #64748b;
}

/* =========================
   GRID / CARDS
========================= */

.omsi-grid-section {
  margin-top: 56px;
}

.omsi-grid-header {
  margin: 0 0 18px;
}

.omsi-grid-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #121316;
}

.omsi-grid-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.omsi-grid-nav button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f1012;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

.omsi-grid-nav button:hover {
  background: var(--omsi-green-2);
  color: #fff;
  transform: translateY(-1px);
}

.omsi-grid-wrapper {
  overflow: hidden;
}

.omsi-grid-scroll {
  gap: 14px;
  padding-bottom: 2px;
  cursor: grab;
}

.omsi-grid-scroll:active {
  cursor: grabbing;
}

.omsi-card {
  min-width: 250px;
  max-width: 250px;
  background: linear-gradient(180deg, #0e0f12 0%, #09090b 100%);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: none;
  box-shadow: var(--omsi-shadow-card);
}

.omsi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.26);
}

.omsi-card-thumb {
  display: block;
}

.omsi-card-image {
  height: 152px;
  position: relative;
  background-color: #15171b;
}

.omsi-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.12),
    rgba(0,0,0,0.02)
  );
  pointer-events: none;
}

.omsi-card-content {
  padding: 12px 12px 13px;
}

.omsi-card-cat {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #3de27b;
  text-transform: none;
  letter-spacing: 0;
}

.omsi-card-title {
  margin: 0 0 8px;
}

.omsi-card-title a {
  color: #f5f7fa;
  text-decoration: none !important;
  font-size: 15px;
  line-height: 1.33;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.omsi-card-title a:hover {
  color: #ffffff;
}

.omsi-card-author,
.omsi-card-meta {
  font-size: 11px;
  line-height: 1.35;
  color: #9aa3af;
  margin: 0 0 12px;
}

.omsi-card .omsi-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.2;
}

/* ========================================
   FADE LATERAL NOS GRIDS
======================================== */

.omsi-grid-wrapper {
  position: relative;
  overflow: hidden;
}

/* fade esquerdo */
.omsi-grid-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  z-index: 2;

  background: linear-gradient(
    to right,
    #f3f4f6 0%,
    rgba(243,244,246,0.6) 50%,
    rgba(243,244,246,0) 100%
  );
}

/* fade direito */
.omsi-grid-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  z-index: 2;

  background: linear-gradient(
    to left,
    #f3f4f6 0%,
    rgba(243,244,246,0.6) 50%,
    rgba(243,244,246,0) 100%
  );
}

/* ========================================
   SLIDER FULL BLEED (FIX REAL)
======================================== */

.omsi-slider {
  position: relative;

  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  left: 0;
  right: 0;
}

/* evita herança do container */
.omsi-slider-wrapper {
  width: 100%;
}

/* garante consistência */
.omsi-slide {
  width: 100%;
  border-radius: 0;
}

.ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.omsi-slide-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   SLIDER FULL BLEED FINAL (FIX REAL)
======================================== */

.omsi-slider {
  position: relative;

  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  left: 0;
  transform: none;
}

/* mantém resto da página intacto */

.omsi-slider {
  margin-bottom: 30px;
}

/* ========================================
   REMOVE RESPIRO DO SLIDER (FINAL FIX)
======================================== */

/* remove padding da área onde o slider está */
.home .entry-content > .omsi-slider {
  margin-top: -40px;
}

/* remove fundo branco ao redor */
.home .entry-content {
  background: transparent;
}

/* garante que não tenha borda/box */
.omsi-slider {
  padding: 0 !important;
}

.home .entry-content {
  padding: 0 !important;
}

.omsi-slide {
  border-radius: 12px;
  overflow: hidden;
}

/* ========================================
   REMOVE PADDING DO ARTICLE (SÓ HOME)
======================================== */

.home .ast-article-single {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================
   FOOTER
========================= */

.site-footer#colophon,
.site-footer#colophon .site-below-footer-wrap {
  border-top: none;
}

.ast-theme-transparent-header .site-footer#colophon .omsi-footer-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.58),
    rgba(0,0,0,0.80)
  );
}

/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 921px) {
  .main-header-menu.stack-on-mobile .menu-link {
    letter-spacing: 0.01em;
  }

  .main-header-menu.stack-on-mobile > li > .menu-link,
  .main-header-menu.stack-on-mobile .sub-menu .menu-link {
    color: #151515 !important;
  }

  .ast-theme-transparent-header .main-header-menu.stack-on-mobile .sub-menu .menu-link {
    color: #ffffff !important;
  }
}

@media (max-width: 768px) {
  .omsi-search-box {
    margin: 28px auto;
    padding: 16px;
    border-radius: 14px;
  }

  .omsi-search-main {
    align-items: stretch;
  }

  .omsi-grid-section {
    margin-top: 44px;
  }

  .omsi-grid-header h2 {
    font-size: 20px;
  }

  .omsi-grid-scroll {
    gap: 12px;
  }

  .omsi-card {
    min-width: 224px;
    max-width: 224px;
  }

  .omsi-card-image {
    height: 138px;
  }
}
