/* ==========================================================================
   PERTINA - PORTAL BERITA & MEDIA RESMI OLAHRAGA TINJU INDONESIA
   Theme Colors: Primary #0B9B4B | Accent #FFD700 | Ring Red #DC2626 | Dark Charcoal
   Font: Roboto Condensed & Inter
   ========================================================================== */

:root {
  --pertina-green: #0B9B4B;
  --pertina-green-hover: #08803d;
  --pertina-gold: #FFD700;
  --ring-red: #DC2626;
  --bg-dark-root: #0A0D10;
  --bg-card: rgba(18, 22, 28, 0.85);
  --bg-card-hover: rgba(24, 30, 38, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(11, 155, 75, 0.45);
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --font-athletic: 'Roboto Condensed', sans-serif;
}

body.portal-berita-body {
  background-color: var(--bg-dark-root);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(11, 155, 75, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, rgba(10, 13, 16, 0.98) 0%, rgba(14, 18, 22, 1) 100%),
    url(../img/bg-main.jpg);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding-top: 76px; /* for fixed index navbar-custom */
  display: flex;
  flex-direction: column;
}

body.portal-berita-body main {
  flex: 1;
  width: 100%;
  padding-bottom: 60px;
}

body.portal-berita-body .footer {
  width: 100%;
  max-width: 100%;
  margin: auto 0 0 0;
  background: url(../img/bg-nav.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: #fbef00;
  font-family: kanit-semibold-italic;
  padding: 10px 0;
}

/* Override global custom.css font-family inside main portal content while preserving navbar & footer */
body.portal-berita-body main a {
  font-family: inherit;
}

.navbar-custom .nav-item .nav-link.nav-link-portal {
  color: #38d374 !important;
  border: 1px solid rgba(11, 155, 75, 0.55);
  border-radius: 50px;
  padding: 5px 14px !important;
  margin-top: 3px;
  background: rgba(11, 155, 75, 0.14);
  transition: all 0.25s ease;
}

.navbar-custom .nav-item .nav-link.nav-link-portal:hover {
  background: var(--pertina-green);
  color: #ffffff !important;
  border-color: var(--pertina-green);
}

/* --- 1. TOP BREAKING NEWS TICKER --- */
.news-ticker-bar {
  background: rgba(5, 7, 9, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  position: relative;
  width: 100%;
  z-index: 10;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ring-red);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-athletic);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 rgba(220, 38, 38, 0); }
}

.ticker-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
}

.ticker-marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMarquee 35s linear infinite;
}

.news-ticker-bar:hover .ticker-marquee-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-right: 28px;
  text-decoration: none;
  transition: color 0.2s;
}

.ticker-item:hover {
  color: var(--pertina-gold);
}

.ticker-item i {
  color: var(--pertina-green);
  margin-right: 6px;
}

@keyframes tickerMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --- 2. PORTAL NAVBAR --- */
.portal-navbar {
  background: rgba(14, 18, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 33px; /* below ticker */
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.portal-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
}

.portal-brand-title {
  font-family: var(--font-athletic);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1;
  margin: 0;
}

.portal-brand-title span {
  color: var(--pertina-green);
}

.portal-brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pertina-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

.portal-nav-link {
  font-family: var(--font-athletic);
  font-size: 1.05rem;
  font-weight: 700;
  color: #cbd5e1 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 16px !important;
  transition: all 0.25s ease;
  position: relative;
}

.portal-nav-link:hover,
.portal-nav-link.active {
  color: #ffffff !important;
}

.portal-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--pertina-green);
  border-radius: 3px;
}

/* Portal Lang Switcher */
.portal-lang-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-athletic);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.portal-lang-btn.active {
  background: var(--pertina-green);
  color: #ffffff;
}

.portal-lang-btn:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* --- 3. EDITORIAL HERO SHOWCASE (HEADLINES) --- */
.hero-editorial-section {
  padding: 2.5rem 0 2rem 0;
}

.hero-main-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 480px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main-card:hover {
  transform: translateY(-4px);
  border-color: var(--pertina-green);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(11, 155, 75, 0.3);
}

.hero-main-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.hero-main-card:hover .hero-main-bg {
  transform: scale(1.05);
}

.hero-main-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(8, 10, 13, 0.7) 45%, rgba(6, 8, 10, 0.98) 100%);
  z-index: 2;
}

.hero-main-content {
  position: relative;
  z-index: 3;
  padding: 32px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--ring-red);
  color: #ffffff;
  font-family: var(--font-athletic);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--pertina-gold);
  margin-bottom: 10px;
}

.hero-main-title {
  font-family: var(--font-athletic);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-main-excerpt {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 90%;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pertina-green);
  color: #ffffff;
  font-family: var(--font-athletic);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(11, 155, 75, 0.4);
}

.btn-read-hero:hover {
  background: var(--pertina-green-hover);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(11, 155, 75, 0.6);
}

/* Secondary Hero Stacked Cards */
.hero-secondary-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
}

.hero-secondary-card {
  position: relative;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-secondary-card:hover {
  transform: translateY(-3px);
  border-color: var(--pertina-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.hero-secondary-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.hero-secondary-card:hover .hero-secondary-bg {
  transform: scale(1.06);
}

.hero-secondary-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(6, 8, 10, 0.85) 60%, rgba(6, 8, 10, 0.98) 100%);
  z-index: 2;
}

.hero-secondary-content {
  position: relative;
  z-index: 3;
}

.hero-secondary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--pertina-gold);
  margin-bottom: 6px;
}

.hero-secondary-title {
  font-family: var(--font-athletic);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.hero-secondary-card:hover .hero-secondary-title {
  color: var(--pertina-gold);
}

/* --- 4. INTERACTIVE SEARCH & CATEGORY BAR --- */
.portal-control-hub {
  background: rgba(18, 22, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.portal-search-form {
  position: relative;
}

.portal-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 0.95rem;
  pointer-events: none;
}

.portal-search-input {
  width: 100%;
  padding: 10px 42px 10px 38px;
  background: rgba(10, 13, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.portal-search-input:focus {
  outline: none;
  border-color: var(--pertina-green);
  box-shadow: 0 0 0 3px rgba(11, 155, 75, 0.25);
  background: rgba(10, 13, 16, 1);
  color: #ffffff;
}

.portal-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pertina-green);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-search-btn:hover {
  background: var(--pertina-green-hover);
}

.portal-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-family: var(--font-athletic);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.portal-chip:hover {
  background: rgba(11, 155, 75, 0.2);
  border-color: var(--pertina-green);
  color: #ffffff;
  transform: translateY(-1px);
}

.portal-chip.active {
  background: var(--pertina-green);
  border-color: var(--pertina-green);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(11, 155, 75, 0.4);
}

/* --- 5. MAIN EDITORIAL GRID & ARTICLE CARDS --- */
.section-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.section-headline-bar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--pertina-green);
}

.section-headline-title {
  font-family: var(--font-athletic);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-headline-title i {
  color: var(--pertina-green);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.boxing-article-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.boxing-article-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(11, 155, 75, 0.15);
}

.card-media-box {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #000000;
}

.card-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.boxing-article-card:hover .card-img-cover {
  transform: scale(1.08);
}

.card-corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--pertina-gold);
  font-family: var(--font-athletic);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
}

.card-body-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-meta-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #38d374;
}

.card-meta-source {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.card-article-title {
  font-family: var(--font-athletic);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.boxing-article-card:hover .card-article-title {
  color: var(--pertina-gold);
}

.card-article-excerpt {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-action-bar {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-card-read {
  font-family: var(--font-athletic);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pertina-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-card-read i {
  transition: transform 0.2s ease;
}

.boxing-article-card:hover .btn-card-read {
  color: var(--pertina-gold);
}

.boxing-article-card:hover .btn-card-read i {
  transform: translateX(4px);
}

/* --- 6. SIDEBAR WIDGETS --- */
.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-title {
  font-family: var(--font-athletic);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pertina-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i {
  color: var(--pertina-green);
}

/* Trending Roster List */
.trending-roster-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-rank {
  font-family: var(--font-athletic);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.trending-item:nth-child(1) .trending-rank { color: var(--pertina-gold); }
.trending-item:nth-child(2) .trending-rank { color: #e2e8f0; }
.trending-item:nth-child(3) .trending-rank { color: #f59e0b; }

.trending-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000000;
}

.trending-info {
  flex-grow: 1;
}

.trending-item-title {
  font-family: var(--font-athletic);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.trending-item:hover .trending-item-title {
  color: var(--pertina-gold);
}

.trending-item-date {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Event Reminder Calendar Widget */
.event-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-agenda-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}

.event-agenda-date {
  background: rgba(11, 155, 75, 0.2);
  border: 1px solid rgba(11, 155, 75, 0.4);
  color: #38d374;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
}

.event-agenda-day {
  font-family: var(--font-athletic);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.event-agenda-month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-agenda-title {
  font-family: var(--font-athletic);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.event-agenda-loc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

/* Sidebar Social Hub */
.sidebar-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sidebar-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s;
}

.sidebar-social-btn.btn-wa-side {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}

.sidebar-social-btn.btn-wa-side:hover {
  background: #25D366;
  color: #ffffff;
}

.sidebar-social-btn.btn-ig-side {
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.4);
  color: #e1306c;
}

.sidebar-social-btn.btn-ig-side:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
}

.sidebar-social-btn.btn-yt-side {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #ff0000;
}

.sidebar-social-btn.btn-yt-side:hover {
  background: #ff0000;
  color: #ffffff;
}

.sidebar-social-btn.btn-fb-side {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #1877f2;
}

.sidebar-social-btn.btn-fb-side:hover {
  background: #1877f2;
  color: #ffffff;
}

/* --- 7. MODERN PAGINATION --- */
.portal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-athletic);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
}

.page-pill:hover {
  background: rgba(11, 155, 75, 0.25);
  border-color: var(--pertina-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-pill.active {
  background: var(--pertina-green);
  border-color: var(--pertina-green);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(11, 155, 75, 0.4);
}

.page-pill.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* --- 8. EMPTY SEARCH STATE --- */
.portal-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  grid-column: 1 / -1;
}

.portal-empty-icon {
  font-size: 3rem;
  color: #475569;
  margin-bottom: 16px;
}

/* --- 9. ARTICLE DETAIL VIEW (SINGLE ARTIKEL BERITA) --- */
.article-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 0 20px 0;
}

.btn-back-to-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(11, 155, 75, 0.16);
  border: 1px solid rgba(11, 155, 75, 0.5);
  border-radius: 50px;
  color: #38d374;
  font-family: var(--font-athletic) !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-back-to-portal:hover {
  background: var(--pertina-green);
  color: #ffffff;
  border-color: var(--pertina-green);
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(11, 155, 75, 0.35);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.article-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif !important;
}

.article-breadcrumb a:hover {
  color: var(--pertina-gold);
}

.article-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}

.article-breadcrumb .current {
  color: var(--pertina-gold);
  font-weight: 600;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-main-card {
  background: rgba(16, 20, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.article-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(10, 13, 16, 0.9);
  border: 1px solid var(--pertina-gold);
  color: var(--pertina-gold);
  font-family: var(--font-athletic);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
}

.article-detail-title {
  font-family: var(--font-athletic) !important;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.article-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #38d374;
  font-weight: 600;
}

.article-meta-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
}

.article-meta-source a {
  color: var(--pertina-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif !important;
}

.article-meta-source a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.article-share-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.88rem;
  cursor: pointer;
}

.share-icon-btn:hover,
.share-icon-btn:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

.share-icon-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-dark-root), 0 0 0 4px var(--pertina-gold);
}

/* Warna khas tiap media sosial saat hover */
.share-icon-btn.share-wa:hover,
.share-icon-btn.share-wa:focus-visible {
  background: #25D366;
  border-color: #25D366;
}

.share-icon-btn.share-fb:hover,
.share-icon-btn.share-fb:focus-visible {
  background: #1877F2;
  border-color: #1877F2;
}

.share-icon-btn.share-x:hover,
.share-icon-btn.share-x:focus-visible {
  background: #000000;
  border-color: #ffffff;
}

.share-icon-btn.share-tg:hover,
.share-icon-btn.share-tg:focus-visible {
  background: #26A5E4;
  border-color: #26A5E4;
}

.share-icon-btn.share-copy:hover,
.share-icon-btn.share-copy:focus-visible,
.share-icon-btn.share-copy.copied {
  background: var(--pertina-green);
  border-color: var(--pertina-green);
  color: #ffffff;
}

.article-share-inline {
  position: relative;
}

.share-copy-toast {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--pertina-green);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.share-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.article-hero-figure {
  position: relative;
  margin: 0 0 28px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.article-hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-detail-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
  overflow-wrap: break-word;
}

.article-detail-body p {
  font-family: 'Inter', sans-serif !important;
  margin-bottom: 1.35rem;
  color: #e2e8f0;
}

.article-detail-body a {
  font-family: 'Inter', sans-serif !important;
  color: #38d374;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-detail-body a:hover {
  color: var(--pertina-gold);
}

.article-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.article-detail-body h2,
.article-detail-body h3,
.article-detail-body h4 {
  font-family: var(--font-athletic) !important;
  color: #ffffff;
  margin-top: 1.8rem;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.article-detail-body blockquote {
  border: 1px solid rgba(11, 155, 75, 0.25);
  background: rgba(11, 155, 75, 0.05);
  padding: 16px 20px;
  border-radius: 12px;
  font-style: italic;
  color: #f1f5f9;
  margin: 20px 0;
}

.article-source-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(10, 13, 16, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-source-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-source-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
}

.article-source-name {
  font-family: var(--font-athletic);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-source-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  color: var(--pertina-gold);
  font-family: var(--font-athletic) !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-source-external:hover {
  background: var(--pertina-gold);
  color: #000000;
  border-color: var(--pertina-gold);
  transform: translateY(-2px);
}

/* Panel Berita Lainnya (Right Sidebar on Article Page) */
.other-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.other-news-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.25s ease;
}

.other-news-card:hover {
  background: rgba(11, 155, 75, 0.12);
  border-color: rgba(11, 155, 75, 0.45);
  transform: translateX(4px);
}

.other-news-thumb-wrap {
  width: 86px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.other-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.other-news-card:hover .other-news-thumb {
  transform: scale(1.08);
}

.other-news-body {
  flex: 1;
  min-width: 0;
}

.other-news-meta {
  font-size: 0.72rem;
  color: #38d374;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.other-news-title {
  font-family: var(--font-athletic) !important;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.other-news-card:hover .other-news-title {
  color: var(--pertina-gold);
}

.btn-all-portal-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(11, 155, 75, 0.18);
  border: 1px solid rgba(11, 155, 75, 0.45);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-athletic) !important;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-all-portal-side:hover {
  background: var(--pertina-green);
  border-color: var(--pertina-green);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-secondary-col {
    height: auto;
    flex-direction: row;
    margin-top: 16px;
  }
  .hero-secondary-card {
    height: 220px;
  }
  .hero-main-card {
    height: 400px;
  }
  .hero-main-title {
    font-size: 1.6rem;
  }
  .portal-control-hub .row {
    row-gap: 14px;
  }
  .article-main-card {
    padding: 26px 22px;
  }
  .navbar-custom .nav-item .nav-link.nav-link-portal {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 6px;
  }
}

@media (max-width: 767px) {
  body.portal-berita-body {
    padding-top: 66px;
  }
  .hero-secondary-col {
    flex-direction: column;
  }
  .hero-main-card {
    height: 360px;
  }
  .hero-main-content {
    padding: 20px;
  }
  .hero-main-title {
    font-size: 1.35rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .portal-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .portal-chip {
    white-space: nowrap;
  }
  .article-top-bar {
    padding: 18px 0 14px 0;
  }
  .article-breadcrumb {
    display: none;
  }
  .article-main-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .article-detail-title {
    font-size: 1.45rem;
  }
  .article-detail-body {
    font-size: 0.98rem;
    line-height: 1.75;
  }
  .article-source-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .btn-source-external {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   NEWS FALLBACK LOGO WITH BLACK BACKGROUND
   ========================================================================== */
img.news-fallback-logo {
  object-fit: contain !important;
  background-color: #000000 !important;
}

.article-hero-img.news-fallback-logo {
  background-color: #000000 !important;
  padding: 40px !important;
  object-fit: contain !important;
}

.card-img-cover.news-fallback-logo,
.hero-main-bg.news-fallback-logo,
.hero-secondary-bg.news-fallback-logo {
  background-color: #000000 !important;
  padding: 24px !important;
  object-fit: contain !important;
}

.other-news-thumb.news-fallback-logo,
.trending-thumb.news-fallback-logo {
  background-color: #000000 !important;
  padding: 8px !important;
  object-fit: contain !important;
}
