/**
 * EuroMax — News page (Corporate Industrial)
 * Tuned to mockup: depth hero, 300px sidebar, large featured, equal cards.
 */

.eux-news-page {
  --eux-news-navy: #082E6F;
  --eux-news-navy-deep: #041D4A;
  --eux-news-gold: #FFB800;
  --eux-news-bg: #F7F9FC;
  --eux-news-border: #E5ECF5;
  --eux-news-text: #16233C;
  --eux-news-muted: #667085;
  --eux-news-soft: #98A2B3;
  --eux-news-radius: 16px;
  --eux-news-shadow: 0 10px 30px rgba(8, 46, 111, .07);
  --eux-news-shadow-hover: 0 18px 40px rgba(8, 46, 111, .14);
  background: var(--eux-news-bg);
  color: var(--eux-news-text);
}

.eux-news-page .eux-container {
  width: calc(100% - 48px);
  max-width: 1400px;
}

/* -------------------------------------------------------------------------
   Hero — taller + depth
   ------------------------------------------------------------------------- */
.eux-news-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h, 86px) + 48px) 0 52px;
  overflow: hidden;
  color: #fff;
  background: var(--eux-news-navy-deep);
}

.eux-news-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--eux-news-hero-bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.eux-news-hero__overlay {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 29, 74, .94) 0%, rgba(8, 46, 111, .82) 48%, rgba(8, 46, 111, .55) 100%),
    linear-gradient(180deg, rgba(4, 29, 74, .25) 0%, rgba(4, 29, 74, .55) 100%);
  pointer-events: none;
}

.eux-news-hero__overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(247, 249, 252, .12));
}

.eux-news-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eux-news-hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 184, 0, .16);
  border: 1px solid rgba(255, 184, 0, .5);
  color: var(--eux-news-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eux-news-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.eux-news-hero__title span {
  color: var(--eux-news-gold);
  text-shadow: none;
}

.eux-news-hero__desc {
  margin: 0 0 22px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
}

.eux-news-hero .eux-breadcrumb--banner {
  font-size: 13px;
}

.eux-news-hero .eux-breadcrumb--banner a:hover {
  color: var(--eux-news-gold);
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.eux-news-layout {
  padding-block: 72px 96px;
}

.eux-news-layout__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.eux-news-layout__content {
  display: flex;
  flex-direction: column;
  gap: 88px;
  min-width: 0;
}

/* -------------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------------- */
.eux-news-sidebar {
  width: 300px;
  max-width: 100%;
  position: sticky;
  top: calc(var(--header-h, 86px) + 20px);
}

.eux-news-sidebar__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--eux-news-border);
  border-radius: 12px;
  background: #fff;
  color: var(--eux-news-navy);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--eux-news-shadow);
}

.eux-news-cats {
  background: #fff;
  border: 1px solid var(--eux-news-border);
  border-radius: var(--eux-news-radius);
  overflow: hidden;
  box-shadow: var(--eux-news-shadow);
  margin-bottom: 22px;
}

.eux-news-cats__title {
  margin: 0;
  padding: 16px 18px;
  background: var(--eux-news-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eux-news-cats__list {
  list-style: none;
  margin: 0;
  padding: 10px;
}

.eux-news-cats__link {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--eux-news-text);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.eux-news-cats__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--eux-news-navy);
  background: #F1F5FB;
  transition: background .25s ease, color .25s ease;
}

.eux-news-cats__name {
  font-size: 14px;
  font-weight: 650;
}

.eux-news-cats__count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #EEF2F8;
  color: var(--eux-news-muted);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background .25s ease, color .25s ease;
}

.eux-news-cats__item.is-active .eux-news-cats__link,
.eux-news-cats__link:hover {
  background: #FFF8E6;
}

.eux-news-cats__item.is-active .eux-news-cats__icon,
.eux-news-cats__link:hover .eux-news-cats__icon {
  background: rgba(255, 184, 0, .22);
  color: var(--eux-news-gold);
}

.eux-news-cats__item.is-active .eux-news-cats__name,
.eux-news-cats__link:hover .eux-news-cats__name {
  color: var(--eux-news-gold);
}

.eux-news-cats__item.is-active .eux-news-cats__count {
  background: rgba(255, 184, 0, .22);
  color: var(--eux-news-navy);
}

/* CTA card */
.eux-news-cta {
  position: relative;
  padding: 28px 22px 168px;
  border-radius: var(--eux-news-radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 184, 0, .16), transparent 55%),
    linear-gradient(165deg, #082E6F 0%, #041D4A 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(4, 29, 74, .28);
}

.eux-news-cta__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--eux-news-gold);
  white-space: pre-line;
}

.eux-news-cta__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.eux-news-cta__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}

.eux-news-cta__list .eux-icon {
  color: var(--eux-news-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.eux-news-cta__btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.eux-news-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 184, 0, .35);
}

.eux-news-cta__visual {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 92%;
  max-width: 280px;
  transform: translateX(-50%);
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.eux-news-cta__visual img {
  width: 100%;
  height: auto;
  max-height: 210px;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
}

/* -------------------------------------------------------------------------
   Section heads / “Xem tất cả”
   ------------------------------------------------------------------------- */
.eux-news-featured__head,
.eux-news-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eux-news-featured__title,
.eux-news-cat__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--eux-news-navy);
  text-transform: uppercase;
}

.eux-news-featured__all,
.eux-news-cat__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px 4px 8px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--eux-news-navy);
  transition: color .25s ease, gap .25s ease;
}

.eux-news-featured__all .eux-icon,
.eux-news-cat__all .eux-icon {
  transition: transform .25s ease;
}

.eux-news-featured__all:hover,
.eux-news-cat__all:hover {
  color: var(--eux-news-gold);
}

.eux-news-featured__all:hover .eux-icon,
.eux-news-cat__all:hover .eux-icon {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   Featured
   ------------------------------------------------------------------------- */
.eux-news-featured {
  margin: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--eux-news-border);
  border-radius: var(--eux-news-radius);
  box-shadow: var(--eux-news-shadow);
}

.eux-news-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.eux-news-featured__slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 380px;
  overflow: hidden;
  border-radius: 14px;
  background: #d9e2ef;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(8, 46, 111, .04);
}

.eux-news-featured__slider .swiper-wrapper {
  height: 100%;
}

.eux-news-featured__slide {
  height: 100% !important;
  box-sizing: border-box;
}

.eux-news-featured__media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d9e2ef;
}

.eux-news-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.eux-news-featured__media:hover img {
  transform: scale(1.05);
}

.eux-news-featured__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eux-news-featured__post-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--eux-news-navy);
}

.eux-news-featured__post-title a {
  color: inherit;
  transition: color .25s ease;
}

.eux-news-featured__post-title a:hover {
  color: var(--eux-news-gold);
}

.eux-news-featured__excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--eux-news-muted);
}

.eux-news-featured__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--eux-news-soft);
}

.eux-news-featured__mini {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--eux-news-border);
}

.eux-news-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px;
  margin: -6px;
  border-radius: 12px;
  transition: background .25s ease;
}

.eux-news-mini:hover {
  background: #F7F9FC;
}

.eux-news-mini img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .4s ease;
}

.eux-news-mini:hover img {
  transform: scale(1.04);
}

.eux-news-mini strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  color: var(--eux-news-navy);
  transition: color .25s ease;
}

.eux-news-mini em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  color: var(--eux-news-soft);
}

.eux-news-mini:hover strong {
  color: var(--eux-news-gold);
}

.eux-news-featured__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--eux-news-navy);
  box-shadow: 0 10px 24px rgba(4, 29, 74, .18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.eux-news-featured__nav:hover {
  background: var(--eux-news-gold);
  color: var(--eux-news-navy-deep);
  transform: translateY(-50%) scale(1.05);
}

.eux-news-featured__nav--prev { left: 14px; }
.eux-news-featured__nav--next { right: 14px; }

/* -------------------------------------------------------------------------
   Category sections + equal-height cards
   ------------------------------------------------------------------------- */
.eux-news-cat {
  margin: 0;
}

.eux-news-cat__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.eux-news-pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--eux-news-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(8, 46, 111, .05);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.eux-news-pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 46, 111, .12);
  box-shadow: var(--eux-news-shadow-hover);
}

.eux-news-pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef6;
  flex-shrink: 0;
}

.eux-news-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.eux-news-pcard:hover .eux-news-pcard__media img {
  transform: scale(1.07);
}

.eux-news-pcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--eux-news-gold);
  color: var(--eux-news-navy-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.eux-news-pcard__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.eux-news-pcard__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--eux-news-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 3);
}

.eux-news-pcard__title a {
  color: inherit;
  transition: color .25s ease;
}

.eux-news-pcard__title a:hover {
  color: var(--eux-news-gold);
}

.eux-news-pcard__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--eux-news-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eux-news-pcard__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--eux-news-border);
  font-size: 12px;
  color: var(--eux-news-soft);
}

.eux-news-pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: var(--eux-news-navy);
  transition: color .25s ease, gap .25s ease;
}

.eux-news-pcard__more:hover {
  color: var(--eux-news-gold);
  gap: 8px;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.eux-news-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.eux-news-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.eux-news-pagination .page-numbers li {
  margin: 0;
}

.eux-news-pagination .page-numbers a,
.eux-news-pagination .page-numbers span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--eux-news-border);
  background: #fff;
  color: var(--eux-news-muted);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(8, 46, 111, .04);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.eux-news-pagination .page-numbers a:hover {
  border-color: var(--eux-news-gold);
  color: var(--eux-news-navy);
  background: #FFF8E6;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 184, 0, .2);
}

.eux-news-pagination .page-numbers .current {
  background: var(--eux-news-navy);
  border-color: var(--eux-news-navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 46, 111, .22);
}

.eux-news-pagination .page-numbers .dots {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 28px;
  color: var(--eux-news-soft);
}

/* -------------------------------------------------------------------------
   Newsletter band (above shared homepage footer)
   ------------------------------------------------------------------------- */
.eux-news-newsletter {
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(255, 184, 0, .12), transparent 55%),
    linear-gradient(120deg, #041D4A, #082E6F);
  padding: 56px 0;
  color: #fff;
}

.eux-news-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.eux-news-newsletter__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.eux-news-newsletter__desc {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
}

.eux-news-newsletter__notice {
  margin: 12px 0 0;
  color: var(--eux-news-gold);
  font-weight: 700;
}

.eux-news-newsletter__form {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: min(460px, 100%);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.eux-news-newsletter__form input {
  flex: 1;
  border: 0;
  padding: 16px 18px;
  font: inherit;
  color: var(--eux-news-text);
  outline: none;
}

.eux-news-newsletter__submit {
  width: 58px;
  border: 0;
  background: var(--eux-news-gold);
  color: var(--eux-news-navy-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.eux-news-newsletter__submit:hover {
  background: #EFA800;
}

/* Footer stays shared with homepage via get_footer() */

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .eux-news-layout__content { gap: 72px; }
  .eux-news-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eux-news-featured__grid { grid-template-columns: 1fr; gap: 22px; }
  .eux-news-featured__slider {
    min-height: 280px;
    aspect-ratio: 16 / 9;
  }
  .eux-news-featured__mini { margin-top: 8px; }
}

@media (max-width: 991px) {
  .eux-news-layout { padding-block: 48px 72px; }
  .eux-news-layout__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eux-news-layout__content { gap: 64px; }
  .eux-news-sidebar {
    width: 100%;
    position: static;
  }
  .eux-news-sidebar__toggle {
    display: flex;
    margin-bottom: 12px;
  }
  .eux-news-sidebar__panel { display: none; }
  .eux-news-sidebar.is-open .eux-news-sidebar__panel { display: block; }
  .eux-news-sidebar.is-open .eux-news-sidebar__toggle .eux-icon { transform: rotate(180deg); }
  .eux-news-featured__nav { display: none; }
  .eux-news-cta {
    padding-bottom: 150px;
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .eux-news-hero {
    min-height: 340px;
    padding: calc(var(--header-h, 72px) + 28px) 0 36px;
  }
  .eux-news-hero__title { font-size: clamp(32px, 10vw, 42px); }
  .eux-news-page .eux-container { width: calc(100% - 32px); }
  .eux-news-layout__content { gap: 56px; }
  .eux-news-featured { padding: 18px; }
  .eux-news-featured__title,
  .eux-news-cat__title { font-size: 22px; }
  .eux-news-cat__grid { grid-template-columns: 1fr; gap: 16px; }
  .eux-news-pcard__title { min-height: 0; }
  .eux-news-newsletter { padding: 44px 0; }
  .eux-news-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .eux-news-newsletter__form {
    min-width: 0;
    width: 100%;
  }
  .eux-news-cta {
    padding-bottom: 140px;
    max-width: none;
  }
  .eux-news-cta__visual {
    width: 78%;
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eux-news-pcard,
  .eux-news-pcard__media img,
  .eux-news-featured__media img,
  .eux-news-cats__link,
  .eux-news-featured__all,
  .eux-news-cat__all,
  .eux-news-pagination .page-numbers a {
    transition: none;
  }
  .eux-news-pcard:hover,
  .eux-news-pcard:hover .eux-news-pcard__media img,
  .eux-news-featured__media:hover img {
    transform: none;
  }
}
