/* Home hero — Oromia Communication Bureau–style: visible image + caption bar + side headlines */

.opc-news-hero {
  background: #0c2340;
  border-bottom: 4px solid var(--opc-gold, #c5a572);
}

/* Breaking headlines ticker */
.opc-news-hero__ticker {
  display: flex;
  align-items: stretch;
  background: #1a3a5c;
  border-bottom: 1px solid rgba(197, 165, 114, 0.35);
  min-height: 2.5rem;
  overflow: hidden;
}

.opc-news-hero__ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0c2340;
  background: var(--opc-gold, #c5a572);
  white-space: nowrap;
}

.opc-news-hero__ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.opc-news-hero__ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding: 0.55rem 1rem;
  animation: opc-news-ticker 45s linear infinite;
}

.opc-news-hero__ticker-item {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.opc-news-hero__ticker-item:hover {
  color: var(--opc-gold-light, #e8c98a);
}

@keyframes opc-news-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opc-news-hero__ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem 1.25rem;
  }
}

/* Main grid: stage + headline rail */
.opc-news-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .opc-news-hero__grid {
    grid-template-columns: minmax(0, 1fr) min(320px, 28vw);
  }
}

.opc-news-hero__stage {
  min-width: 0;
  background: #0a1628;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .opc-news-hero__carousel { flex: 1 1 auto; }
  .opc-news-hero__stage,
  .opc-news-hero__carousel,
  .opc-news-hero__carousel .carousel-inner,
  .opc-news-hero__carousel .carousel-item.active,
  .opc-news-hero__slide {
    height: 100%;
  }
}

.opc-news-hero__carousel {
  position: relative;
}

.opc-news-hero__carousel .carousel-inner {
  border-radius: 0;
}

.opc-news-hero__slide {
  position: relative;
  display: block;
  min-height: clamp(280px, 42vw, 520px);
  background: #0a1628;
}

.opc-news-hero__slide-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.opc-news-hero__slide-link:hover {
  color: inherit;
  text-decoration: none;
}

.opc-news-hero__slide-link:hover .opc-news-hero__title {
  color: var(--opc-gold-light, #e8c98a);
}

.opc-news-hero__media {
  position: absolute;
  inset: 0;
  bottom: 0;
}

.opc-news-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Light bottom gradient only — image stays visible */
.opc-news-hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 35, 64, 0.35) 40%, rgba(12, 35, 64, 0.88) 100%);
  pointer-events: none;
}

.opc-news-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.opc-news-hero__caption-inner {
  padding: 1rem 0 1.15rem;
  max-width: 100%;
}

.opc-news-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.opc-news-hero__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--opc-gold-light, #e8c98a);
}

.opc-news-hero__date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.opc-news-hero__title {
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: #fff;
  transition: color 0.2s ease;
}

.opc-news-hero__arrow {
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  top: 42%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(12, 35, 64, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.95;
}

.opc-news-hero__dots {
  margin: 0;
  bottom: 0.5rem;
  z-index: 4;
}

.opc-news-hero__dots [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.opc-news-hero__dots .active {
  background-color: var(--opc-gold, #c5a572);
}

/* Thumbnail strip */
.opc-news-hero__thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  background: #0a1628;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.opc-news-hero__thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  background: #1a3a5c;
}

.opc-news-hero__thumb.is-active,
.opc-news-hero__thumb:hover {
  opacity: 1;
  border-color: var(--opc-gold, #c5a572);
}

.opc-news-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Side headline panel */
.opc-news-hero__aside {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgba(12, 35, 64, 0.1);
  min-height: 0;
}

.opc-news-hero__aside-head {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--opc-navy, #0c2340);
  background: linear-gradient(180deg, #f8f6f1 0%, #fff 100%);
  border-bottom: 2px solid var(--opc-gold, #c5a572);
}

.opc-news-hero__aside-list {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: clamp(280px, 42vw, 520px);
  scrollbar-width: thin;
}

.opc-news-hero__aside-list--many {
  max-height: min(520px, 70vh);
}

.opc-news-hero__aside-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(12, 35, 64, 0.06);
  background: transparent;
  transition: background 0.15s ease;
}

.opc-news-hero__aside-item:hover,
.opc-news-hero__aside-item.is-active {
  background: rgba(12, 35, 64, 0.06);
}

.opc-news-hero__aside-item.is-active {
  border-left: 3px solid var(--opc-gold, #c5a572);
  padding-left: calc(1rem - 3px);
}

.opc-news-hero__aside-date {
  display: block;
  font-size: 0.68rem;
  color: #6c757d;
  margin-bottom: 0.2rem;
}

.opc-news-hero__aside-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--opc-navy, #0c2340);
}

.opc-news-hero__aside-all {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--opc-navy, #0c2340);
  background: #f8f6f1;
  border-top: 1px solid rgba(12, 35, 64, 0.08);
}

.opc-news-hero__aside-all:hover {
  color: #1a4a7a;
}

@media (max-width: 991.98px) {
  .opc-news-hero__slide {
    min-height: clamp(240px, 56vw, 400px);
  }

  .opc-news-hero__arrow {
    top: 38%;
  }
}

@media (max-width: 575.98px) {
  .opc-news-hero__ticker-label {
    padding: 0 0.65rem;
    font-size: 0.62rem;
  }

  .opc-news-hero__title {
    font-size: 1rem;
  }

  .opc-news-hero__thumb {
    width: 72px;
    height: 44px;
  }
}

/* Retire old opc-hero overlay rules when new block is present */
.opc-university .opc-news-hero ~ .opc-quick-links,
.opc-university .opc-news-hero + .opc-quick-links {
  position: relative;
  z-index: 2;
}
