/* =========================================================
   PAGE
========================================================= */

.af-cbenef-page {
  background: #f5f7fb;
  min-height: 100vh;
}

/* =========================================================
   HERO
========================================================= */

.af-cbenef-hero {
  padding: 120px 0 48px;
}

.af-cbenef-hero h1 {
  margin: 0;

  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;

  color: #111827;
}

.af-cbenef-hero h1 span {
  color: #2563eb;
}

.af-cbenef-hero p {
  max-width: 760px;

  margin-top: 24px;

  font-size: 20px;
  line-height: 1.7;

  color: #64748b;
}

/* =========================================================
   SEARCH
========================================================= */

.af-cbenef-search-wrap {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 42px;
}

.af-cbenef-search-wrap input {
  flex: 1;

  height: 64px;

  padding: 0 24px;

  border: 1px solid #dbe3f1;
  border-radius: 20px;

  background: #ffffff;

  font-size: 16px;

  outline: none;

  transition: 0.2s;
}

.af-cbenef-search-wrap input:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.08);
}

.af-cbenef-search-wrap button {
  height: 64px;

  padding: 0 28px;

  border: none;
  border-radius: 20px;

  background: #2563eb;
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.af-cbenef-search-wrap button:hover {
  transform: translateY(-1px);

  background: #1d4ed8;
}

/* =========================================================
   FILTERS
========================================================= */

.af-cbenef-filters {
  display: flex;
  gap: 16px;

  margin-top: 28px;
}

.af-cbenef-filters select {
  height: 52px;

  padding: 0 18px;

  border: 1px solid #dbe3f1;
  border-radius: 14px;

  background: #ffffff;

  font-size: 14px;

  outline: none;
}

/* =========================================================
   CONTENT
========================================================= */

.af-cbenef-content {
  padding-bottom: 80px;
}

.af-cbenef-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;

  align-items: start;
}

/* =========================================================
   TABLE
========================================================= */

.af-cbenef-table-wrap {
  overflow: hidden;

  border: 1px solid #e5e7eb;
  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.04);
}

.af-cbenef-table {
  width: 100%;

  border-collapse: collapse;
}

.af-cbenef-table thead {
  background: #f8fafc;
}

.af-cbenef-table th {
  padding: 22px 20px;

  text-align: left;

  font-size: 14px;
  font-weight: 700;

  color: #0f172a;
}

.af-cbenef-table td {
  padding: 22px 20px;

  border-top: 1px solid #eef2f7;

  font-size: 15px;
  line-height: 1.6;

  color: #475569;
}

.af-cbenef-table tr:hover {
  background: #f8fbff;
}

/* =========================================================
   BUTTON
========================================================= */

.af-btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 42px;

  padding: 0 18px;

  border: 1px solid #c7d7ff;
  border-radius: 12px;

  background: #eff6ff;
  color: #2563eb;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.af-btn-details:hover {
  background: #dbeafe;
}

/* =========================================================
   DRAWER
========================================================= */

.af-cbenef-drawer {
  position: sticky;
  top: 110px;

  overflow: hidden;

  border: 1px solid #e5e7eb;
  border-radius: 28px;

  background: #ffffff;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.04);
}

.af-cbenef-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px;

  border-bottom: 1px solid #eef2f7;
}

.af-cbenef-drawer-header h2 {
  margin: 0;

  font-size: 28px;
  font-weight: 700;

  color: #111827;
}

#afFecharDrawer {
  border: none;
  background: transparent;

  font-size: 22px;

  cursor: pointer;

  color: #64748b;
}

.af-cbenef-drawer-content {
  padding: 28px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

  .af-cbenef-layout {
    grid-template-columns: 1fr;
  }

  .af-cbenef-drawer {
    position: relative;
    top: 0;
  }

}

@media (max-width: 768px) {

  .af-cbenef-hero h1 {
    font-size: 42px;
  }

  .af-cbenef-hero p {
    font-size: 16px;
  }

  .af-cbenef-search-wrap {
    flex-direction: column;
  }

  .af-cbenef-search-wrap button {
    width: 100%;
  }

  .af-cbenef-filters {
    flex-direction: column;
  }

}
/* =========================================================
   AJUSTES FINOS - CBENEF FILTROS E BUSCA
========================================================= */

.af-cbenef-search-wrap {
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 18px;
  margin-top: 42px;
}

.af-cbenef-search-wrap input {
  width: 100%;
  height: 62px;
  padding: 0 24px;
  border: 1px solid #d8e1ef;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .035);
}

.af-cbenef-search-wrap input::placeholder {
  color: #7b8794;
}

.af-cbenef-search-wrap button {
  height: 62px;
  border-radius: 18px;
}

/* FILTROS */

.af-cbenef-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 34px;
}

.af-cbenef-filters select {
  min-width: 170px;
  height: 54px;
  padding: 0 42px 0 18px;

  border: 1px solid #d8e1ef;
  border-radius: 16px;

  background-color: #ffffff;
  color: #111827;

  font-size: 15px;
  font-weight: 500;

  outline: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #334155 50%),
    linear-gradient(135deg, #334155 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 23px,
    calc(100% - 16px) 23px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;

  box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.af-cbenef-filters select:hover,
.af-cbenef-filters select:focus {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

/* REMOVE APARÊNCIA AZUL ESTRANHA DO SELECT EM ALGUNS NAVEGADORES */

.af-cbenef-filters option {
  background: #ffffff;
  color: #111827;
}

/* AJUSTE HERO */

.af-cbenef-hero {
  padding-top: 118px;
  padding-bottom: 46px;
}

.af-cbenef-hero h1 {
  max-width: 980px;
}

.af-cbenef-hero p {
  max-width: 760px;
}

/* MOBILE */

@media (max-width: 768px) {

  .af-cbenef-search-wrap {
    grid-template-columns: 1fr;
  }

  .af-cbenef-filters {
    flex-direction: column;
  }

  .af-cbenef-filters select {
    width: 100%;
  }

}
/* =========================================================
   AJUSTE DE DENSIDADE VISUAL - CBENEF
========================================================= */

.af-cbenef-hero h1 {
  font-size: 52px !important;
  line-height: 1.08 !important;
}

.af-cbenef-hero p {
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.af-cbenef-search-wrap input {
  height: 54px !important;
  font-size: 15px !important;
}

.af-cbenef-search-wrap button {
  height: 54px !important;
  font-size: 14px !important;
}

.af-cbenef-table th {
  font-size: 13px !important;
  padding: 18px 18px !important;
}

.af-cbenef-table td {
  font-size: 14px !important;
  line-height: 1.45 !important;
  padding: 18px 18px !important;
}

.af-btn-details {
  height: 38px !important;
  font-size: 13px !important;
  padding: 0 16px !important;
}

.af-cbenef-drawer-header h2 {
  font-size: 24px !important;
}

.af-cbenef-drawer-content {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.af-drawer-block h3 {
  font-size: 18px !important;
}

.af-drawer-block strong {
  font-size: 13px !important;
}

.af-drawer-block p {
  font-size: 14px !important;
}
/* =========================================================
   NOVA TABELA
========================================================= */

.af-row-main td {
  border-bottom: none !important;
  padding-bottom: 8px !important;
}

.af-row-description td {
  padding-top: 0 !important;
  padding-bottom: 22px !important;
  border-bottom: 1px solid #edf1f7;
}

.af-description-text {

  color: #617089;

  font-size: 14px;

  line-height: 1.6;

  max-width: 900px;
}

.af-col-cbenef {
  width: 140px;
  font-weight: 600;
}

.af-col-cst {
  width: 70px;
  text-align: center;
}

.af-col-trib {
  width: 260px;
}

.af-col-action {
  width: 130px;
  text-align: right;
}
/* =========================================================
   LINHAS MAIS VISÍVEIS
========================================================= */

.af-cbenef-table {

  border-collapse: separate;
  border-spacing: 0;

}

.af-cbenef-table tr {

  background: #ffffff;

}
.af-row-main td {

  border-bottom: none !important;

}

.af-row-description td {

  border-bottom:
    1px solid #dbe4f0 !important;

  padding-top: 2px !important;

  padding-bottom: 20px !important;

}

/* hover suave */

.af-cbenef-table tbody tr:hover td {

  background:
    rgba(0, 113, 227, 0.02);

}

/* cabeçalho */

.af-tax-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 18px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.af-tax-breadcrumb a {
  color: #0066ff;
  text-decoration: none;

  transition:
    opacity .2s ease,
    transform .2s ease;
}

.af-tax-breadcrumb a:hover {
  opacity: .75;
}

.af-tax-breadcrumb span {
  color: #0066ff;
  opacity: .65;
}
/* =========================================================
   PAGE BASE - PADRÃO GLOBAL
========================================================= */

.af-page-hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
  text-align: center;

  background:
    radial-gradient(
      circle at top center,
      rgba(0, 113, 227, 0.12),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #f5f8fc 0%,
      #ffffff 100%
    );
}

.af-page-hero .af-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.af-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-bottom: 24px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.af-page-breadcrumb a {
  color: #0066ff;
  text-decoration: none;
}

.af-page-breadcrumb a:hover {
  opacity: .72;
}

.af-page-breadcrumb span {
  color: #0066ff;
  opacity: .55;
}

.af-page-title {
  max-width: 920px;
  margin: 0 auto;

  font-size: clamp(56px, 6vw, 78px);
  line-height: .85;
  letter-spacing: -0.045em;
  font-weight: 800;

  color: #0f172a;
}

.af-page-title span {
  color: #2563eb;
}

.af-page-description {
  max-width: 820px;
  margin: 30px auto 0;

  font-size: 18px;
  line-height: 1.75;
  color: #64748b;
}

.af-page-content {
  padding: 0 0 100px;
}

.af-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  .af-page-hero {
    padding: 120px 0 70px;
  }

  .af-page-title {
    font-size: 48px;
  }

  .af-page-description {
    font-size: 16px;
  }
}
/* =========================================================
   CST HUB
========================================================= */

.af-cst-grid {

  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(320px, 1fr)
    );

  gap: 28px;

}

.af-cst-card {

  position: relative;

  display: flex;

  flex-direction: column;

  gap: 18px;

  padding: 34px;

  text-decoration: none;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;

}

.af-cst-card:hover {

  transform:
    translateY(-6px);

  border-color:
    rgba(37, 99, 235, .20);

  box-shadow:
    0 25px 60px
    rgba(15, 23, 42, .08);

}

.af-cst-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

}

.af-cst-icon {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 64px;

  height: 36px;

  padding: 0 16px;

  border-radius: 999px;

  background:
    rgba(37, 99, 235, .10);

  color:
    #2563eb;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: .04em;

  text-transform: uppercase;

}

.af-cst-card h2 {

  margin: 0;

  font-size: 34px;

  line-height: 1.1;

  letter-spacing: -.03em;

  font-weight: 800;

  color:
    #0f172a;

}

.af-cst-card p {

  margin: 0;

  font-size: 16px;

  line-height: 1.8;

  color:
    #64748b;

}

@media (max-width: 768px) {

  .af-cst-card {

    padding: 28px;

  }

  .af-cst-card h2 {

    font-size: 28px;

  }

}