/* =========================================================
   PÁGINA DE PRODUTO (modelo único para todos os produtos)
========================================================= */

.yeb-prod-page {
  --yeb-blue: #282780;
  --yeb-blue-2: #0737d5;
  --yeb-dark-blue: #082565;
  --yeb-action-blue: #0737d5;
  --yeb-light-blue: #EAF6FF;
  --yeb-border: #d8e3f1;
  --yeb-text: #071c54;
  --yeb-gray: #627296;

  width: 100%;
  background: #ffffff;
  color: var(--yeb-text);
  font-family: Arial, Helvetica, sans-serif;
}

.yeb-prod-container {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   IDENTIDADE DO PORTAL
========================================================= */

.yeb-portal-identity {
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #d8e3f1;
  background: #ffffff;
}

.yeb-portal-identity-inner {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.yeb-portal-market {
  color: #555555;

  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.6px;
}

.yeb-portal-identity-divider {
  width: 1px;
  height: 54px;

  background: #ccd5df;
}

.yeb-portal-powered {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yeb-portal-by {
  align-self: flex-start;

  margin-top: 6px;

  color: #767f90;

  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  text-transform: lowercase;
}

.yeb-portal-logo {
  display: flex;
  align-items: center;

  text-decoration: none;
}

.yeb-portal-logo img {
  display: block;

  width: auto;
  max-width: 205px;
  max-height: 58px;

  object-fit: contain;
}

/* Anúncio */
.yeb-prod-ad-section {
  padding: 18px 0 0;
}

.yeb-prod-top-ad {
  display: block;
  height: 150px;

  border-radius: 16px;
  overflow: hidden;

  text-decoration: none;
}

.yeb-prod-ad-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px dashed #c2cfdf;
  border-radius: inherit;

  background: #f7f9fc;

  color: #8a97aa;

  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

/* Cabeçalho */
.yeb-prod-featured-section {
  padding: 34px 0 38px;
}

.yeb-prod-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 30px;

  margin-bottom: 24px;
}

.yeb-prod-eyebrow {
  display: block;
  margin-bottom: 6px;

  color: #0c9b4b;

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.yeb-prod-section-heading h1 {
  margin: 0;

  color: #071f87;

  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.yeb-prod-section-heading p {
  max-width: 700px;
  margin: 0;

  color: #627296;

  font-size: 16px;
  line-height: 1.45;
}

/* Destaques */
.yeb-prod-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, 1fr);
  gap: 22px;
}

.yeb-prod-main-story {
  overflow: hidden;

  border: 1px solid var(--yeb-border);
  border-radius: 18px;

  background: #ffffff;

  color: inherit;
  text-decoration: none;
}

.yeb-prod-main-image {
  width: 100%;
  height: 390px;

  overflow: hidden;

  background: #edf2f7;
}

.yeb-prod-main-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transition: transform .4s ease;
}

.yeb-prod-main-story:hover .yeb-prod-main-image img {
  transform: scale(1.02);
}

.yeb-prod-main-content {
  padding: 24px 26px 26px;
}

.yeb-prod-category {
  display: inline-flex;
  align-items: center;

  min-height: 25px;
  padding: 0 11px;

  margin-bottom: 10px;

  border-radius: 999px;

  background: #e8f5ed;
  color: #1c9b50;

  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.yeb-prod-main-content h2 {
  margin: 0 0 12px;

  color: #071d66;

  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
}

.yeb-prod-main-content p {
  margin: 0 0 17px;

  color: #607096;

  font-size: 15px;
  line-height: 1.5;
}

.yeb-prod-date {
  color: #7f8ca5;
  font-size: 12px;
}

.yeb-prod-side-stories {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.yeb-prod-side-story {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 17px;

  padding: 14px;

  border: 1px solid var(--yeb-border);
  border-radius: 15px;

  background: #ffffff;

  color: inherit;
  text-decoration: none;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.yeb-prod-side-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(18, 42, 90, .06);
}

.yeb-prod-side-image {
  width: 160px;
  min-height: 120px;

  overflow: hidden;

  border-radius: 10px;

  background: #edf2f7;
}

.yeb-prod-side-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.yeb-prod-side-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yeb-prod-side-content h3 {
  margin: 0 0 13px;

  color: #071d66;

  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

/* Últimas */
.yeb-prod-latest-section {
  padding: 8px 0 55px;
}

.yeb-prod-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.yeb-prod-latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 22px;
}

.yeb-prod-latest-header h2 {
  margin: 0;

  color: #071f87;

  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.7px;
}

.yeb-prod-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #0a40eb;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}

.yeb-prod-view-all span {
  font-size: 20px;
}

.yeb-prod-latest-list {
  display: flex;
  flex-direction: column;
}

.yeb-prod-latest-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;

  padding-bottom: 18px;
  margin-bottom: 18px;

  border-bottom: 1px solid #dbe4ee;

  color: inherit;
  text-decoration: none;
}

.yeb-prod-latest-image {
  width: 220px;
  height: 135px;

  overflow: hidden;

  border-radius: 12px;

  background: #edf2f7;
}

.yeb-prod-latest-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.yeb-prod-latest-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yeb-prod-latest-content h3 {
  margin: 0 0 7px;

  color: #071d66;

  font-size: 21px;
  line-height: 1.16;
  font-weight: 800;
}

.yeb-prod-latest-content p {
  margin: 0 0 12px;

  color: #63749a;

  font-size: 14px;
  line-height: 1.4;
}

/* Sidebar */
.yeb-prod-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.yeb-prod-most-read {
  padding: 22px 20px 14px;

  border-radius: 18px;

  background: #eaf6ff;
}

.yeb-prod-most-read > h2 {
  margin: 0 0 14px;

  color: #092276;

  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.yeb-prod-most-read-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;

  padding: 13px 0;

  border-bottom: 1px solid #cfdfef;

  color: inherit;
  text-decoration: none;
}

.yeb-prod-most-read-item:last-child {
  border-bottom: none;
}

.yeb-prod-most-read-number {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ffffff;

  color: #0b2991;

  font-size: 13px;
  font-weight: 800;
}

.yeb-prod-most-read-item h3 {
  margin: 0 0 7px;

  color: #071c73;

  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.yeb-prod-most-read-item div span {
  color: #0d55d8;
  font-size: 11px;
}

.yeb-prod-side-ad {
  display: block;
  height: 230px;

  overflow: hidden;

  border-radius: 16px;

  text-decoration: none;
}

/* Footer */
.yeb-footer {
  margin-top: 20px;
  background: #302f8f;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.yeb-footer-inner {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 45px 40px;

  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.yeb-footer-brand img {
  display: block;
  width: 125px;
  height: auto;
  margin-bottom: 16px;
}

.yeb-footer-brand-text {
  max-width: 205px;
  margin: 0 0 20px;

  color: rgba(255,255,255,.82);

  font-size: 11px;
  line-height: 1.5;
}

.yeb-footer-social {
  display: flex;
  align-items: center;
  gap: 17px;
}

.yeb-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
}

.yeb-footer-social svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.yeb-footer-title {
  margin: 0 0 14px;

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.yeb-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.yeb-footer-links a,
.yeb-footer-contact p {
  margin: 0;

  color: rgba(255,255,255,.88);

  font-size: 12px;
  line-height: 1.4;

  text-decoration: none;
}


@media (max-width: 760px) {
  .yeb-portal-identity-inner {
    min-height: 78px;
    gap: 18px;
  }

  .yeb-portal-market {
    font-size: 27px;
  }

  .yeb-portal-identity-divider {
    height: 44px;
  }

  .yeb-portal-logo img {
    max-width: 160px;
    max-height: 48px;
  }
}

@media (max-width: 520px) {
  .yeb-portal-identity-inner {
    gap: 12px;
  }

  .yeb-portal-market {
    font-size: 22px;
  }

  .yeb-portal-logo img {
    max-width: 130px;
  }

  .yeb-portal-by {
    display: none;
  }
}

/* Responsividade */
@media (max-width: 1100px) {
  .yeb-prod-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 14px 0;
  }

  .yeb-prod-topbar-left,
  .yeb-prod-topbar-right {
    justify-content: center;
  }

  .yeb-prod-featured-grid,
  .yeb-prod-latest-layout {
    grid-template-columns: 1fr;
  }

  .yeb-prod-side-stories {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .yeb-prod-side-story {
    grid-template-columns: 1fr;
  }

  .yeb-prod-side-image {
    width: 100%;
    height: 170px;
  }

  .yeb-footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .yeb-prod-container {
    width: calc(100% - 30px);
  }

  .yeb-prod-topbar-center {
    gap: 12px;
  }

  .yeb-prod-yeb-logo img {
    width: 68px;
  }

  .yeb-prod-product-logo img {
    max-width: 140px;
  }

  .yeb-prod-market-name {
    font-size: 16px;
  }

  .yeb-prod-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .yeb-prod-section-heading h1 {
    font-size: 34px;
  }

  .yeb-prod-main-image {
    height: 280px;
  }

  .yeb-prod-main-content h2 {
    font-size: 25px;
  }

  .yeb-prod-side-stories {
    grid-template-columns: 1fr;
  }

  .yeb-prod-side-story {
    grid-template-columns: 130px 1fr;
  }

  .yeb-prod-side-image {
    width: 130px;
    height: 100px;
  }

  .yeb-prod-latest-item {
    grid-template-columns: 160px 1fr;
  }

  .yeb-prod-latest-image {
    width: 160px;
    height: 110px;
  }

  .yeb-footer-inner {
    width: calc(100% - 30px);
    padding: 38px 10px;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 540px) {
  .yeb-prod-topbar-center {
    overflow-x: auto;
    max-width: 100%;
  }

  .yeb-prod-latest-item {
    grid-template-columns: 1fr;
  }

  .yeb-prod-latest-image {
    width: 100%;
    height: 210px;
  }

  .yeb-prod-side-story {
    grid-template-columns: 105px 1fr;
  }

  .yeb-prod-side-image {
    width: 105px;
    height: 85px;
  }

  .yeb-footer-inner {
    grid-template-columns: 1fr;
  }
}
