/* Tipografia alinhada ao site CoreX (Mulish — mesma família do corexholding.com) */
@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap");

:root {
  --font-corex: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --corex-purple: #6b4e8f;
  --corex-purple-strong: #704d94;
  --corex-blue: #194786;
  --corex-blue-strong: #134a88;
  --corex-navy: #1c3766;
  --corex-gray: #cdcccd;
  --surface: #f4f7fb;
  --surface-elevated: #ffffff;
  --text-main: #20283a;
  --text-soft: #5d6578;
  --shadow-lg: 0 20px 48px rgba(20, 40, 74, 0.2);
}

/* ------------------------------ Geral ------------------------------ */
body {
  font-family: var(--font-corex);
  font-weight: 400;
  background: url("../assets/image/values-bnnr.jpg") center center / cover no-repeat fixed;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h4 {
  color: #fff;
  background: linear-gradient(120deg, var(--corex-purple), var(--corex-blue));
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-family: var(--font-corex);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ------------------------------ Header ------------------------------ */
header {
  z-index: 100;
  width: 100%;
  min-height: 82px;
  background: url("../assets/image/corex-banner.jpg") center center / cover no-repeat;
  box-shadow: 0 8px 20px rgba(16, 37, 67, 0.2);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 8px 90px;
}

.header-brand {
  flex: 0 0 auto;
  margin-left: 48px;
}

.top-links-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  min-height: 42px;
  background: #fff;
  border-top: 1px solid rgba(28, 55, 102, 0.08);
  border-bottom: 1px solid rgba(28, 55, 102, 0.14);
  padding: 6px 170px 6px 16px;
}

.top-actions-bar {
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 10px 140px 10px 16px;
  min-height: auto;
}

.top-actions-divider {
  flex-shrink: 0;
  width: 1px;
  height: 1.15rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(25, 71, 134, 0.2) 20%,
    rgba(25, 71, 134, 0.2) 80%,
    transparent 100%
  );
  opacity: 0.85;
}

.top-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 4px 2px;
  margin: 0;
  font-family: var(--font-corex);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--corex-blue);
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.top-action-link:hover {
  color: #6b4e8f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.top-action-link--accent {
  color: var(--corex-purple-strong);
}

.top-action-link--accent:hover {
  color: var(--corex-blue);
}

.media-link {
  border: none;
  background: transparent;
  color: #1c3766;
  border-radius: 0;
  padding: 4px 2px;
  font-size: 0.82rem;
  font-family: var(--font-corex);
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  opacity: 1;
  text-transform: uppercase;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.media-link:hover {
  opacity: 1;
  color: #6b4e8f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-alert {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
}

/* Select nativo escondido (sincronizado por JS para i18n) */
.lang-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  max-width: min(100%, 200px);
  background: linear-gradient(145deg, var(--corex-blue-strong) 0%, #1f5aa3 55%, var(--corex-navy) 100%);
  border-radius: 8px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(12, 28, 58, 0.35);
}

.lang-icon {
  color: #ffffff;
  font-size: 1.05rem;
  opacity: 0.95;
  flex-shrink: 0;
}

.lang-divider {
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.82);
  margin: 0 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.lang-trigger {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 4px 2px;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-corex);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.lang-trigger:hover {
  color: rgba(255, 255, 255, 0.92);
}

.lang-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}

.lang-trigger-label {
  pointer-events: none;
}

.lang-caret {
  flex-shrink: 0;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.lang-select-wrap.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  list-style: none;
  z-index: 300;
  background: linear-gradient(180deg, var(--corex-navy) 0%, #152a52 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow:
    0 12px 28px rgba(8, 18, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-dropdown li {
  margin: 0;
  padding: 0;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-corex);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 0;
}

.lang-option-check {
  width: 0.85em;
  font-size: 0.75em;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lang-option.is-active .lang-option-check {
  opacity: 1;
}

.lang-option.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.logoHeader {
  margin: 8px 20px;
  width: auto;
  max-width: 190px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-fallback {
  margin: 18px 30px;
  color: #fff;
  font-family: var(--font-corex);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* ------------------------------ Botões ------------------------------ */
.alingBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 16px 32px;
  margin: 10px;
  font-size: 1.05rem;
  text-align: center;
  color: var(--corex-blue);
  border: 1px solid rgba(25, 71, 134, 0.2);
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  text-decoration: none;
  font-family: var(--font-corex);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(15, 30, 58, 0.16);
}

.button-1 {
  color: var(--corex-blue);
}

.button-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(19, 74, 136, 0.22);
  border-color: rgba(25, 71, 134, 0.35);
}

.button-2 {
  color: var(--corex-purple-strong);
}

.button-2:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(107, 78, 143, 0.22);
  border-color: rgba(107, 78, 143, 0.35);
}

.button-3 {
  background-color: #444791;
}

.button-3:hover {
  background-color: #444791;
  transform: scale(1.1);
}

.button-4 {
  background-color: #ff2020;
}

.button-4:hover {
  background-color: #bb0000;
  transform: scale(1.1);
}

/* ------------------------------ Responsividade ------------------------------ */
@media (max-width: 750px) {

  .lembrete,
  .lembrete1 {
    display: none;
  }

  .content p {
    font-size: 1.2em;
  }

  .button {
    padding: 15px 30px;
    font-size: 1em;
  }
}

/* ------------------------------ Modal Geral ------------------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--surface-elevated);
  padding: 24px;
  border-radius: 14px;
  max-width: 600px;
  width: 80%;
  text-align: center;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(28, 55, 102, 0.1);
}

.close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(120deg, var(--corex-blue), var(--corex-purple));
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-corex);
  font-weight: 600;
}

.open-modal-btn {
  margin-right: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--corex-purple), var(--corex-blue));
  color: white;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  z-index: 50;
}

.open-modal-btn i {
  font-size: 0.95em;
  line-height: 1;
}

.notice-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
  animation: noticeBlink 1s ease-in-out infinite;
}

@keyframes noticeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* ------------------------------ Mídia Grid ------------------------------ */
.bg-media-grid {
  width: min(1150px, 92vw);
  background:
    radial-gradient(circle at 12% 18%, rgba(107, 78, 143, 0.22), transparent 36%),
    radial-gradient(circle at 88% 76%, rgba(25, 71, 134, 0.24), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  margin: 10px;
  padding: 26px 26px 18px;
  box-shadow: 0 16px 36px rgba(16, 37, 67, 0.2);
}

.img-midia {
  width: 78px;
  position: relative;
  top: -42px;
  left: 2px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  align-items: end;
  margin-top: -16px;
}

.media-item {
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 18px;
  padding: 14px 10px 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(244, 248, 255, 0.78));
  border: 1px solid rgba(25, 71, 134, 0.16);
  box-shadow: 0 10px 24px rgba(16, 37, 67, 0.12);
}

.media-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 32px rgba(25, 71, 134, 0.24);
  border-color: rgba(107, 78, 143, 0.35);
}

.media-item img {
  width: 86%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(16, 37, 67, 0.14);
}

.media-item h4 {
  margin-top: 12px;
}



/* ------------------------------ Modal Mídia ------------------------------ */
.media-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* ------------------------------ Elementos Extras ------------------------------ */
.text-warning {
  color: var(--text-main) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-corex);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(25, 71, 134, 0.14);
  box-shadow: 0 8px 18px rgba(17, 35, 63, 0.1);
}

.main-content {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 16px 48px;
  box-sizing: border-box;
  min-height: 0;
}

/* ------------------------------ Carrossel de videos ------------------------------ */
.video-carousel-section {
  --carousel-gap: 1.25rem;
  --carousel-slide-w: min(322px, 88vw);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-shrink: 0;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  width: 100%;
  scroll-padding-inline: 12px;
  /* Barra de scroll invisível (comportamento varia por SO; o scroll continua a funcionar). */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Desktop/tablet: mostrar ~4 cartões por “página” (força scroll horizontal + autoplay). */
@media (min-width: 768px) {
  .video-carousel-section {
    --carousel-slide-w: 272px;
  }

  .carousel-viewport {
    /* 4 × largura do cartão + 3 gaps + padding horizontal da track (12px + 12px) */
    max-width: calc(4 * var(--carousel-slide-w) + 3 * var(--carousel-gap) + 24px);
    margin-inline: auto;
  }
}

.carousel-track {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--carousel-gap);
  padding: 8px 12px 16px;
  width: max-content;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.carousel-slide {
  flex: 0 0 var(--carousel-slide-w);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.carousel-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card:focus-visible {
  outline: 3px solid var(--corex-blue);
  outline-offset: 4px;
}

.carousel-card:hover {
  transform: translateY(-4px);
}

.carousel-card:hover .carousel-card-body {
  box-shadow: 0 14px 28px rgba(16, 37, 67, 0.18);
}

.carousel-card-visual {
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(16, 37, 67, 0.15);
}

.carousel-card-visual img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.carousel-card-visual--contain img {
  object-position: right center;
}

.carousel-card-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: -32px 12px 0;
  padding: 14px 14px 16px;
  min-height: 120px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(16, 37, 67, 0.14);
  border: 1px solid rgba(25, 71, 134, 0.1);
  box-sizing: border-box;
}

.carousel-card-title {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-family: var(--font-corex);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--corex-blue);
  text-align: center;
  line-height: 1.3;
  min-height: 2.6em;
}

.carousel-card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c8d2e4;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--corex-blue);
  transform: scale(1.15);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--corex-purple);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .carousel-card-visual img {
    height: 220px;
  }
}

/* ------------------------------ Footer ------------------------------ */
.portal-footer {
  margin-top: auto;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
}

.portal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.portal-footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.portal-footer-credit {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #fff;
  background: #25d366;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 27, 52, 0.95);
  color: #fff;
  font-family: var(--font-corex);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .header-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 14px;
  }

  .header-brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logoHeader {
    margin: 8px 0;
  }

  .header-alert {
    position: absolute;
    right: 16px;
    top: 16px;
  }

  .top-links-bar {
    width: 100%;
    gap: 14px;
    justify-content: center;
    padding: 8px 10px;
  }

  .top-actions-bar {
    justify-content: center;
    padding: 10px 16px;
    gap: 14px;
  }

  .portal-footer-inner {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .portal-footer-credit {
    text-align: center;
  }
}

.mensagem-aviso {
    padding: 1rem;
    text-align: left;
    font-size: 16px;
    color: var(--text-main);
    max-height: 300px;
    overflow-y: auto;
}

.mensagem-aviso p {
    margin: 0 0 10px 0;
    background:none !important;
}

.mensagem-aviso ol,
.mensagem-aviso ul {
    padding-left: 1.5rem;
    margin: 10px 0;
}

.mensagem-aviso li {
    margin-bottom: 5px;
}

.mensagem-aviso strong {
    font-weight: bold;
}

.mensagem-aviso em {
    font-style: italic;
}