/* ==========================================================
                NEWS PORTAL GLOBAL
========================================================== */
body.news-page {
  background: #050505;
  color: #fff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.portal-main-wrapper {
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
  background-image: url('../img/news/whitebackground.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Ini kunci agar background diam/solid */
  overflow: hidden; /* CRITICAL FIX: prevents horizontal scrolling from huge glows */
  max-width: 100%;
}

/* Premium thick glass styling for news portal navbar */
.news-page .navbar {
  background: rgba(10, 10, 10, 0.75) !important;
  backdrop-filter: blur(35px) !important;
  -webkit-backdrop-filter: blur(35px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35) !important;
  overflow: visible !important;
}

/* Apple organic glowing background shapes */
.portal-main-wrapper::before {
  content: "";
  position: absolute;
  width: 1000px;
  height: 1000px;
  top: -200px;
  right: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.04), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.portal-main-wrapper::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  bottom: 200px;
  left: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================
                HEADER BAR
========================================================== */
.portal-header-block {
  position: relative;
  z-index: 2;
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.portal-header-block h1 {
  font-family: "Outfit", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.portal-header-block h1 span {
  color: var(--primary);
  background: linear-gradient(90deg, #ffb400, #ffdf80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================
                HERO GRID SECTION
========================================================== */
.news-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 40px;
  margin-bottom: 80px;
}

/* Hero card (left) */
.news-hero-card {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-card-img-box {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-card-img-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-hero-card:hover .hero-card-img-box img {
  transform: scale(1.03);
}

.hero-card-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  letter-spacing: 1px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px #ff3b30;
  display: inline-block;
}

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

.hero-card-tag {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.hero-card-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.news-hero-card:hover h2 {
  color: var(--primary);
}

.hero-card-content p {
  color: #c0c0c0;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 30px;
  flex-grow: 1;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.hero-card-info {
  color: #888;
  font-size: 0.88rem;
  font-weight: 500;
}

.btn-read-story {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.3s;
}

.btn-read-story:hover {
  color: var(--primary);
  gap: 14px;
}

.btn-read-story svg {
  width: 16px;
  height: 16px;
}

/* Sidebar updates (right) */
.latest-updates-panel {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  padding: 35px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.panel-header h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #bdbdbd;
}

.latest-updates-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

.latest-update-item {
  display: flex;
  gap: 18px;
  cursor: pointer;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.3s;
}

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

.latest-update-item:hover {
  transform: translateX(4px);
}

.update-item-image {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.update-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.update-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.update-tag.tech { color: #5bc0be; }
.update-tag.biz { color: #f4d35e; }
.update-tag.creative { color: #ee964b; }

.latest-update-item h4 {
  font-size: 0.98rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.latest-update-item:hover h4 {
  color: var(--primary);
}

.update-date {
  color: #888;
  font-size: 0.78rem;
}

.btn-view-all-updates {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #bdbdbd;
  font-weight: 600;
  padding: 16px;
  border-radius: 20px;
  width: 100%;
  margin-top: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-view-all-updates:hover {
  background: rgba(255, 180, 0, 0.1);
  border-color: rgba(255, 180, 0, 0.3);
  color: #fff;
}

.btn-view-all-updates svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
                TOP STORIES GRID
========================================================== */
.portal-section-group {
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.section-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-group-header h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-view-all {
  color: #bdbdbd;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.btn-view-all:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.btn-view-all svg {
  width: 14px;
  height: 14px;
}

.top-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.story-card:hover {
  border-color: rgba(255, 180, 0, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.story-card-img {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

/* Multi-Language Content Label Badge Overlay */
.lang-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.lang-badge.en {
  border-color: rgba(59, 130, 246, 0.4); /* Blue-ish tint for English */
}

.lang-badge.id {
  border-color: rgba(239, 68, 68, 0.4); /* Red-ish tint for Indonesian */
}

.story-card:hover .lang-badge,
.news-hero-card:hover .lang-badge {
  transform: scale(1.05);
  background: rgba(5, 5, 5, 0.9);
}

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

.story-card:hover .story-card-img img {
  transform: scale(1.04);
}

.story-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.story-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.story-tag.tech { color: #5bc0be; }
.story-tag.biz { color: #f4d35e; }
.story-tag.creative { color: #ee964b; }

.story-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.story-card:hover h3 {
  color: var(--primary);
}

.story-meta {
  color: #777;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ==========================================================
                CATEGORIES SECTION (DASHBOARD)
========================================================== */
.categories-row-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.category-panel-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-panel-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 180, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.cat-panel-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cat-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #bdbdbd;
  transition: all 0.3s;
}

.category-panel-card:hover .cat-panel-icon {
  background: rgba(255, 180, 0, 0.1);
  border-color: rgba(255, 180, 0, 0.3);
  color: var(--primary);
}

.cat-panel-left span {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.cat-panel-arrow {
  color: #777;
  transition: all 0.3s;
}

.category-panel-card:hover .cat-panel-arrow {
  color: #fff;
  transform: translateX(4px);
}

.cat-panel-icon svg,
.cat-panel-arrow svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================
                CATEGORY DETAIL VIEW STATE
========================================================== */
#category-detail-panel {
  position: relative;
  z-index: 2;
}

/* Toggle visibility classes */
.dashboard-active {
  display: block;
}

.dashboard-inactive {
  display: none;
}

.category-active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

.category-inactive {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active category card header */
.active-category-header {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 45px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  margin-bottom: 50px;
}

.active-cat-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.active-cat-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 180, 0, 0.12);
}

.active-cat-icon-container svg {
  width: 32px;
  height: 32px;
}

.active-cat-texts h2 {
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.active-cat-texts p {
  color: #bdbdbd;
  font-size: 1.02rem;
  max-width: 600px;
  line-height: 1.6;
}

.btn-close-category {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bdbdbd;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.btn-close-category:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.05);
}

.btn-close-category svg {
  width: 20px;
  height: 20px;
}

/* Category articles grid */
.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Pagination row */
.portal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
}

.btn-page-nav {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 20px;
  color: #bdbdbd;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-page-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-page-nav svg {
  width: 14px;
  height: 14px;
}

.page-indicator {
  color: #888;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==========================================================
                OTHER CATEGORIES LISTING
========================================================== */
.other-categories-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 80px;
}

.other-category-row {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.002));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.other-category-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 180, 0, 0.2);
}

.other-cat-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.other-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.other-cat-icon svg {
  width: 22px;
  height: 22px;
}

.other-cat-text h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.other-cat-text p {
  color: #888;
  font-size: 0.88rem;
}

.btn-view-category {
  background: transparent;
  color: #bdbdbd;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.other-category-row:hover .btn-view-category {
  color: var(--primary);
  transform: translateX(4px);
}

.btn-view-category svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================
                RESPONSIVE MEDIA QUERIES
========================================================== */
@media (max-width: 1200px) {
  .top-stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .category-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .categories-row-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .news-hero-grid {
    grid-template-columns: 1fr;
  }
  
  .portal-header-block {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .portal-main-wrapper {
    padding-top: 110px;
  }
  
  .portal-header-block h1 {
    font-size: 2rem;
  }
  
  .hero-card-img-box {
    height: 280px;
  }
  
  .hero-card-content {
    padding: 24px;
  }
  
  .hero-card-content h2 {
    font-size: 1.7rem;
  }
  
  .active-category-header {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .btn-close-category {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .other-category-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  
  .other-category-row button {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .top-stories-grid,
  .category-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-row-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-card-img-box {
    height: 220px;
  }
  
  .active-cat-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .active-cat-texts h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================
                ARTICLE DETAIL STATE
========================================================== */
#article-detail-panel {
  display: none;
  position: relative;
  z-index: 2;
}

#article-detail-panel.article-active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

#article-detail-panel.article-inactive {
  display: none;
}

.article-detail-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 30px;
  align-items: start;
}

.ad-slot {
  position: relative;
  height: 100%;
}

.ad-placeholder-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  height: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.ad-placeholder-sticky:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 180, 0, 0.02);
}

.article-main-content {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 40px 50px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.btn-back-to-portal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 30px;
  transition: all 0.3s;
}

.btn-back-to-portal:hover {
  background: var(--primary);
  color: #111;
  border-color: var(--primary);
  transform: translateX(-4px);
}

.article-detail-header {
  margin-bottom: 30px;
}

.article-detail-category {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.article-detail-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
}

.article-detail-meta {
  color: #888;
  font-size: 0.88rem;
}

.article-detail-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.article-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-detail-body {
  color: #d4d4d4;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-detail-body p {
  margin-bottom: 24px;
}

.ad-slot-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 30px;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
  .article-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .ad-slot {
    display: none;
  }

  .ad-slot-mobile {
    display: flex;
  }

  .article-main-content {
    padding: 30px 24px;
  }

  .article-detail-header h1 {
    font-size: 1.8rem;
  }
}

/* ==========================================================
                CATEGORIES TABS CONTAINER
========================================================== */
.categories-tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  cursor: pointer;
  color: #bdbdbd;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-tab i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.category-tab.active {
  background: var(--primary);
  color: #111;
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(255, 180, 0, 0.35);
}

.category-tab.active i {
  transform: scale(1.1);
}

/* ==========================================================
                PERMANENT GLASS BOX SYSTEM
========================================================== */
.permanent-glass-box {
  background: rgba(18, 18, 18, 0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 60px !important;
}

/* Transparent Header inside Box */
.active-category-header {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 0 25px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  margin-bottom: 35px !important;
}

/* Dynamic switcher fade transition styles */
.glass-box-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.glass-box-inner.fade-loading {
  opacity: 0;
  transform: translateY(10px);
}

/* ==========================================================
                TEXT DROP SHADOW CONTRAST
========================================================== */
.portal-header-block h1,
.story-card-body h3,
.active-cat-texts h2,
.active-cat-texts p,
.story-card-body p,
.article-detail-header h1,
.article-detail-body p,
.navbar-portal-title {
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* ==========================================================
                NAVBAR CUSTOMIZATIONS
========================================================== */
.navbar-portal-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.85rem;
  font-weight: 800; /* Extra bold */
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 40%, #ffb400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(255, 180, 0, 0.2);
  text-transform: uppercase;
  cursor: pointer;
}

/* Hide other menus on portal page */
.news-page .navbar-menu li:not(.portal-title-wrapper):not(.mobile-socials):not(.portal-mobile-home-item) {
  display: none !important;
}

/* Align title middle desktop */
.news-page .portal-title-wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Force title-only on mobile & clean layout */
@media (max-width: 992px) {
  .news-page .navbar-logo {
    display: none !important;
  }
  .news-page .navbar-social {
    display: none !important;
  }
  .news-page .menu-toggle {
    display: none !important;
  }
  .news-page .navbar-menu {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  .news-page .portal-title-wrapper {
    margin: 0 auto !important;
    text-align: center !important;
  }
}

/* ==========================================================
                MOBILE SCROLL & VIEWPORT LOCKS
========================================================== */
html {
  max-width: 100vw !important;
  overflow-y: scroll !important; /* Forces scroll bar to always exist, preventing layout shifts */
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body.news-page {
  max-width: 100vw !important;
  overflow: visible !important; /* Enforces visible overflow in both axes to prevent auto-computed scroll bars */
  height: auto !important; /* Forces layout calculations to roll strictly into html element */
  width: 100%;
  box-sizing: border-box;
}

.portal-main-wrapper {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.container {
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* Hide Footer temporarily on media portal page */
.news-page footer.footer {
  display: none !important;
}

.portal-main-wrapper {
  overflow: hidden !important;
  max-width: 100% !important;
  width: 100%;
}

.container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.categories-tabs-container,
.category-articles-grid,
.active-category-header,
.portal-pagination,
.article-detail-grid {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.story-card {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================
                APPLE DARK GLASSMORPHISM
========================================================== */
.news-hero-card,
.latest-updates-panel,
.portal-section-group .story-card,
.permanent-glass-box {
  background: rgba(18, 18, 18, 0.35) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Hover effects for Apple Glassmorphism story cards */
.portal-section-group .story-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}




/* ==========================================================
                SKELETON BREATHING/PULSE SYSTEM
========================================================== */
@keyframes pulse-breathing {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

.skeleton-pulse {
  animation: pulse-breathing 1.5s ease-in-out infinite !important;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-image {
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.skeleton-image-small {
  background: rgba(255, 255, 255, 0.05);
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line.title {
  height: 24px;
  margin-top: 8px;
}

.skeleton-line.text {
  height: 14px;
}

.skeleton-line.category {
  height: 12px;
}

.skeleton-line.meta {
  height: 10px;
  margin-top: 15px;
  margin-bottom: 0;
}

/* ==========================================================
                IMAGE LOADING FADE IN
========================================================== */
.news-hero-card img,
.latest-update-item img,
.story-card img {
  opacity: 0;
  transition: opacity 0.4s ease-in-out !important;
}

.news-page .news-hero-card img.loaded,
.news-page .latest-update-item img.loaded,
.news-page .story-card img.loaded {
  opacity: 1 !important;
}

/* Specific Mobile Centered Navbar Title Overrides */
@media (max-width: 992px) {
  body.news-page .header .navbar-logo,
  body.news-page .header .navbar-social,
  body.news-page .header .menu-toggle,
  body.news-page .header .navbar-menu li:not(.portal-title-wrapper):not(.portal-mobile-home-item) {
    display: none !important;
  }
  body.news-page .header .navbar-menu {
    display: flex !important;
    position: static !important;
    transform: none !important;
    height: auto !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: auto !important;
  }
  body.news-page .header .portal-title-wrapper {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  body.news-page .header .navbar-portal-title {
    display: block !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-align: center !important;
  }
}

/* Glass morphic navigation buttons for Media Portal desktop */
.news-page .portal-home-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.news-page .portal-home-btn:hover {
  color: #111 !important;
  background: linear-gradient(135deg, #ffb400, #ffd86a);
  border-color: rgba(255, 216, 106, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 180, 0, 0.24);
}

.news-page .navbar-portal-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 34px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at top left, rgba(255, 180, 0, 0.18), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 180, 0, 0.08);
}

/* Keep Media Portal gradient text while adding the glass button shell */
.news-page .navbar-portal-title {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #ffffff 40%, #ffb400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-page .navbar-portal-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at top left, rgba(255, 180, 0, 0.18), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 180, 0, 0.08);
}

/* Hide mobile home button on desktop */
.portal-mobile-home-icon-btn {
  display: none !important;
}


/* ==========================================================
      FIX NAVBAR MEDIA PORTAL DESKTOP (PC) BLEEDING
========================================================== */
@media (min-width: 993px) {
  /* Menyembunyikan seluruh isi hamburger menu mobile agar tidak bocor ke PC */
  body.news-page .portal-mobile-home-item,
  body.news-page .menu-categories-list {
    display: none !important;
  }
}


/* Media Portal mobile navbar, spacing, and yellow scrollbar polish */
@media (max-width: 992px) {
  body.news-page .header .portal-mobile-home-icon-btn {
    display: inline-flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative !important;
    z-index: 100 !important;
  }

  body.news-page .header .portal-mobile-home-icon-btn:hover,
  body.news-page .header .portal-mobile-home-icon-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffd86a !important;
    border-color: rgba(255, 216, 106, 0.4) !important;
  }

  body.news-page .header {
    padding-top: 14px !important;
  }

  body.news-page .header .navbar {
    min-height: 78px !important;
    padding: 14px 18px !important;
    display: grid !important;
    grid-template-columns: 44px 1fr 44px !important;
    align-items: center !important;
  }

  body.news-page .header .navbar-logo,
  body.news-page .header .navbar-social {
    display: none !important;
  }

  body.news-page .header .menu-toggle {
    display: inline-flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100 !important;
    cursor: pointer !important;
  }

  body.news-page .header .navbar-menu {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  body.news-page .header .navbar-menu li:not(.portal-title-wrapper):not(.portal-mobile-home-item) {
    display: none !important;
  }

  body.news-page .header .portal-title-wrapper {
    display: block !important;
    text-align: center !important;
  }

  body.news-page .header .navbar-portal-title {
    display: inline-flex !important;
    min-height: 46px !important;
    padding: 0 28px !important;
    font-size: 1.3rem !important;
  }

  body.news-page .header .portal-mobile-home-item {
    position: fixed !important;
    top: 95px !important;
    right: 24px !important;
    left: auto !important;
    width: min(320px, calc(100vw - 36px)) !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding:  24px !important;
    border-radius: 28px !important;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(8, 8, 8, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(50px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(220%) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-15px) scale(0.95) !important;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10005 !important;
    height: auto !important;
  }

  body.news-page .header .portal-mobile-home-item.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  /* Section title for category group inside menu */
  body.news-page .header .menu-section-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.42) !important;
    margin-bottom: 8px !important;
    padding-left: 6px !important;
    display: block !important;
  }

  /* List wrapper */
  body.news-page .header .menu-categories-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* Individual button style in dropdown */
  body.news-page .header .menu-cat-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    font-family: "Outfit", sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #bdbdbd !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
  }

  body.news-page .header .menu-cat-btn i {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s !important;
  }

  body.news-page .header .menu-cat-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
  }

  body.news-page .header .menu-cat-btn:active {
    transform: scale(0.97) !important;
  }

  /* Active styling matching main page */
  body.news-page .header .menu-cat-btn.active {
    background: linear-gradient(135deg, #ffb400, #ffd86a) !important;
    color: #111 !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(255, 180, 0, 0.35) !important;
  }

  body.news-page .header .menu-cat-btn.active i {
    transform: scale(1.1) !important;
  }

  /* Divider */
  body.news-page .header .menu-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    width: 100% !important;
    margin: 8px 0 !important;
  }

  body.news-page .portal-mobile-home-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    width: 100% !important;
    border-radius: 999px !important;
    color: #111 !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffb400, #ffd86a) !important;
    box-shadow: 0 14px 32px rgba(255, 180, 0, 0.24) !important;
    text-decoration: none !important;
  }

  body.news-page .portal-mobile-home-item p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  /* Horizontal scroll track for category tabs on mobile */
  .categories-tabs-container {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 18px !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    scrollbar-width: none !important; /* Firefox */
    gap: 12px !important;
  }

  .categories-tabs-container::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
  }

  .category-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 12px 22px !important;
    font-size: 0.9rem !important;
  }

  body.news-page .portal-main-wrapper {
    padding-top: 112px !important;
  }

  body.news-page .news-hero-grid {
    margin-top: 12px !important;
  }
}

@media (max-width: 767px) {
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 8px;
  }

  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    background: #050505;
  }

  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb400, #ffd86a);
    border-radius: 999px;
    border: 2px solid #050505;
  }

  html,
  body {
    scrollbar-color: #ffb400 #050505;
    scrollbar-width: thin;
  }
}
