/* ==========================================================================
   GlobalPress Stylesheet — Cloned from Global News Design System
   All colors use CSS Custom Properties controllable via WP Customizer.
   ========================================================================== */

:root {
  --t-font-family-main: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --t-font-family-sans: 'Open Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --t-font-family-serif: 'Noto Serif', Georgia, 'Times New Roman', Times, serif;

  --gp-accent: #d02001;
  --gp-accent-hover: #831602;
  --gp-header-bg: #ffffff;
  --gp-header-text: #231f20;
  --gp-navbar-bg: #ffffff;
  --gp-navbar-text: #231f20;
  --gp-body-bg: #ffffff;
  --gp-surface-bg: #f2f2f2;
  --gp-text-primary: #231f20;
  --gp-text-muted: #656565;
  --gp-link-color: #004275;
  --gp-border-color: #dbd9d9;
  --gp-dark-section-bg: #231f20;
  --gp-footer-bg: #231f20;
  --gp-footer-text: #ffffff;
}

body.dark-theme {
  --gp-header-bg: #181818;
  --gp-header-text: #f2f2f2;
  --gp-navbar-bg: #1e1e1e;
  --gp-navbar-text: #f2f2f2;
  --gp-body-bg: #121212;
  --gp-surface-bg: #1f1f1f;
  --gp-text-primary: #f2f2f2;
  --gp-text-muted: #aeacac;
  --gp-link-color: #6cb4ee;
  --gp-border-color: #333333;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--t-font-family-main);
  background-color: var(--gp-body-bg);
  color: var(--gp-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gp-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.o-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation (Global News .l-header & .l-navbar)
   ========================================================================== */
.l-header {
  background-color: var(--gp-header-bg);
  color: var(--gp-header-text);
  border-bottom: 1px solid var(--gp-border-color);
  position: relative;
  z-index: 50;
}

.l-header__skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gp-accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 100;
}

.l-header__skip:focus {
  left: 12px;
  top: 12px;
}

.l-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.l-header__logo {
  display: flex;
  align-items: center;
}

.c-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--gp-header-text);
}

.c-logo:hover {
  color: var(--gp-header-text);
}

.c-logo--footer {
  color: var(--gp-footer-text);
  font-size: 1.5rem;
}

.c-logo--footer:hover {
  color: var(--gp-footer-text);
}

.c-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo-link img {
  max-height: 44px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.c-logo-wrap--footer .custom-logo-link img {
  max-height: 48px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.l-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-headerButton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--gp-border-color);
  background: transparent;
  color: var(--gp-header-text);
  cursor: pointer;
}

.c-headerButton:hover {
  border-color: var(--gp-accent);
  color: var(--gp-accent);
}

.c-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--gp-accent);
  position: relative;
  display: inline-block;
}

.c-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gp-accent);
  opacity: 0.6;
  animation: gp-pulse 1.6s infinite ease-out;
}

@keyframes gp-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Light/Dark Toggle */
.c-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.c-toggle__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.c-toggle__slider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--gp-border-color);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gp-surface-bg);
  color: var(--gp-text-primary);
}

.l-header__searchButton,
.l-header__menuButton {
  background: transparent;
  border: 1px solid var(--gp-border-color);
  color: var(--gp-header-text);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.l-header__searchButton:hover,
.l-header__menuButton:hover {
  border-color: var(--gp-accent);
  color: var(--gp-accent);
}

.l-header__menuButton {
  display: none;
}

/* Search Drawer */
.gp-search-drawer {
  display: none;
  background: var(--gp-surface-bg);
  border-bottom: 1px solid var(--gp-border-color);
  padding: 14px 20px;
}

.gp-search-drawer.is-open {
  display: block;
}

.gp-search-drawer__form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.gp-search-drawer__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gp-border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--gp-body-bg);
  color: var(--gp-text-primary);
}

.gp-search-drawer__submit {
  padding: 10px 20px;
  background: var(--gp-accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.gp-search-drawer__submit:hover {
  background: var(--gp-accent-hover);
}

/* Navbar */
.l-navWrapper {
  background-color: var(--gp-navbar-bg);
  border-bottom: 2px solid var(--gp-border-color);
  position: sticky;
  top: 0;
  z-index: 45;
}

.l-navbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-navbar__track {
  overflow-x: auto;
  scrollbar-width: none;
}

.l-navbar__track::-webkit-scrollbar {
  display: none;
}

.c-nav--main {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.c-nav--main li {
  flex-shrink: 0;
}

.c-nav--main a {
  display: block;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gp-navbar-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.c-nav--main a:hover,
.c-nav--main .current-menu-item > a,
.c-nav--main .current-category-ancestor > a {
  color: var(--gp-accent);
  border-bottom-color: var(--gp-accent);
}

/* ==========================================================================
   Main Layout & Symmetrical Grids
   ========================================================================== */
.l-main {
  padding: 28px 0 48px;
}

.l-section {
  padding: 24px 0;
}

.l-section--compact {
  padding: 16px 0;
}

.l-section__grid,
.l-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.l-section__main,
.l-main__article {
  min-width: 0;
}

.l-section__sidebar,
.l-main__sidebar {
  min-width: 0;
}

/* ==========================================================================
   Headings & Section Headers
   ========================================================================== */
.c-headingLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--gp-text-primary);
  padding: 12px 0 14px;
  margin-bottom: 8px;
}

.c-heading--component {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-heading--component::before {
  content: '';
  width: 5px;
  height: 20px;
  background-color: var(--gp-accent);
  display: inline-block;
}

.c-headingLink__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gp-accent);
}

.c-headingLink__link:hover {
  color: var(--gp-accent-hover);
}

/* ==========================================================================
   Post Cards & Hero Mosaic (Symmetrical)
   ========================================================================== */
.c-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-posts--gridMosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.c-posts--highlightFirst .c-posts__item:first-child {
  grid-column: 1 / -1;
}

.c-posts--highlightFirst .c-posts__item:first-child .c-posts__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: center;
  background: var(--gp-surface-bg);
  padding: 18px;
  border-radius: 4px;
}

.c-posts--highlightFirst .c-posts__item:first-child .c-posts__headline {
  font-size: 1.75rem;
  line-height: 1.2;
}

.c-posts--gridList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.c-posts__item {
  display: flex;
  flex-direction: column;
}

.c-posts__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-posts__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--gp-surface-bg);
  border-radius: 3px;
  margin-bottom: 10px;
}

.c-posts--highlightFirst .c-posts__item:first-child .c-posts__media {
  margin-bottom: 0;
}

.c-posts__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.c-posts__inner:hover .c-posts__thumbnail {
  transform: scale(1.03);
}

.gp-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gp-dark-section-bg), var(--gp-accent-hover));
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px;
  text-align: center;
}

.c-posts__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.c-posts__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gp-accent);
}

.c-posts__headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--gp-text-primary);
}

.c-posts__inner:hover .c-posts__headline {
  color: var(--gp-accent);
}

.c-posts__excerpt {
  font-size: 0.9rem;
  color: var(--gp-text-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

.c-posts__meta {
  font-size: 0.78rem;
  color: var(--gp-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Topics / Category Multiblocks */
.l-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==========================================================================
   Sidebar Widgets (Global News Style + Default Latest/Popular/Random)
   ========================================================================== */
.l-sidebar__widget,
.sidebar-widget {
  margin-bottom: 28px;
}

.sidebar-widget__title,
.widget-title {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gp-accent);
  color: var(--gp-text-primary);
}

.sidebar-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-widget__item {
  border-bottom: 1px solid var(--gp-border-color);
  padding-bottom: 14px;
}

.sidebar-widget__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-widget__link {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sidebar-widget__image-wrapper {
  position: relative;
  width: 110px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: var(--gp-surface-bg);
}

.sidebar-widget__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-widget__rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gp-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  line-height: 1.2;
}

.sidebar-widget__content {
  min-width: 0;
}

.sidebar-widget__headline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--gp-text-primary);
  margin: 0 0 4px;
}

.sidebar-widget__link:hover .sidebar-widget__headline {
  color: var(--gp-accent);
}

.sidebar-widget__date {
  font-size: 0.75rem;
  color: var(--gp-text-muted);
}

/* ==========================================================================
   Single Article Page & Responsive Media Fix
   ========================================================================== */
.l-article__label {
  margin-bottom: 10px;
}

.c-topLabel__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gp-accent);
  border-bottom: 2px solid var(--gp-accent);
  padding-bottom: 2px;
}

.l-article__title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--gp-text-primary);
  letter-spacing: -0.02em;
}

.c-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gp-border-color);
  border-bottom: 1px solid var(--gp-border-color);
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--gp-text-muted);
}

.c-byline__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-byline__avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.c-byline__name a {
  font-weight: 700;
  color: var(--gp-text-primary);
}

.c-byline__dates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c-byline__dateToggle {
  background: transparent;
  border: 1px solid var(--gp-border-color);
  color: var(--gp-text-muted);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 0.75rem;
  cursor: pointer;
}

.c-byline__modDate {
  display: none;
  font-size: 0.8rem;
}

.c-byline__modDate.is-open {
  display: block;
}

/* Featured Image in Single — strictly responsive, never overflows */
.l-article__featured {
  margin: 0 0 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.l-article__featured img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.l-article__caption {
  font-size: 0.82rem;
  color: var(--gp-text-muted);
  padding: 8px 0 0;
  line-height: 1.4;
}

/* Single Article Body — strictly responsive images/embeds (tidak bleber) */
.l-article__story {
  min-width: 0;
  overflow-x: hidden;
}

.l-article__text {
  font-family: var(--t-font-family-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--gp-text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.l-article__text p {
  margin: 0 0 1.3em;
}

.l-article__text a {
  color: var(--gp-link-color);
  text-decoration: underline;
}

.l-article__text h2,
.l-article__text h3,
.l-article__text h4 {
  font-family: var(--t-font-family-main);
  margin: 1.6em 0 0.6em;
  line-height: 1.28;
}

.l-article__text img,
.l-article__text figure,
.l-article__text picture,
.l-article__text video,
.l-article__text iframe,
.l-article__text embed,
.l-article__text object,
.l-article__text .wp-block-image,
.l-article__text .wp-caption,
.l-article__text .alignwide,
.l-article__text .alignfull {
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.l-article__text figure.wp-block-image img,
.l-article__text .wp-caption img {
  width: 100%;
  max-width: 100% !important;
  height: auto !important;
}

.l-article__text blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--gp-accent);
  background: var(--gp-surface-bg);
  font-style: italic;
}

/* Share & Tags */
.l-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.l-article__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gp-surface-bg);
  border: 1px solid var(--gp-border-color);
  border-radius: 999px;
}

/* ==========================================================================
   Related Posts (.c-tabs) — Matching Global News Original
   ========================================================================== */
.c-tabs {
  margin: 28px 0;
  border: 1px solid var(--gp-border-color);
  background: var(--gp-surface-bg);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--t-font-family-main);
}

.c-tabs__tabContainer {
  display: flex;
  border-bottom: 1px solid var(--gp-border-color);
  background: var(--gp-body-bg);
}

.c-tabs__tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-top: 3px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gp-text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.c-tabs__tab--active {
  color: var(--gp-text-primary);
  border-top-color: var(--gp-accent);
  background: var(--gp-surface-bg);
}

.c-tabs__content {
  display: none;
  padding: 16px 20px;
}

.c-tabs__content--active {
  display: block;
}

.c-infoBox__ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-infoBox__li {
  border-bottom: 1px solid var(--gp-border-color);
  padding: 10px 0;
}

.c-infoBox__li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.c-infoBox__a {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--gp-text-primary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.c-infoBox__a::before {
  content: '›';
  color: var(--gp-accent);
  font-weight: 900;
  font-size: 1.15rem;
}

.c-infoBox__a:hover {
  color: var(--gp-accent);
}

.c-posts--relatedVideos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================================================
   Archive / Category / Author / Search Headers & Pagination
   ========================================================================== */
.l-section--pageHeader {
  background: var(--gp-surface-bg);
  border-bottom: 1px solid var(--gp-border-color);
  padding: 24px 0;
  margin-bottom: 12px;
}

.gp-page-title {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-page-title::before {
  content: '';
  width: 6px;
  height: 28px;
  background: var(--gp-accent);
  display: inline-block;
}

.gp-page-desc {
  margin: 0;
  color: var(--gp-text-muted);
  font-size: 0.98rem;
  max-width: 720px;
}

.gp-author-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gp-author-box__avatar img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.c-posts--column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-posts--column .c-posts__item {
  display: block;
  border-bottom: 1px solid var(--gp-border-color);
  padding: 18px 0;
}

.c-posts--column .c-posts__item:first-child {
  padding-top: 6px;
}

.c-posts--column .c-posts__item:last-child {
  border-bottom: none;
}

.c-posts--column .c-posts__inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  height: auto;
  text-decoration: none;
}

.c-posts--column .c-posts__media {
  margin-bottom: 0;
  width: 230px;
  aspect-ratio: 16 / 10;
}

.c-posts--column .c-posts__headline {
  font-size: 1.15rem;
  line-height: 1.3;
}

.c-posts--column .c-posts__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.gp-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.gp-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--gp-border-color);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.gp-pagination .page-numbers.current,
.gp-pagination .page-numbers:hover {
  background: var(--gp-accent);
  border-color: var(--gp-accent);
  color: #ffffff;
}

/* ==========================================================================
   Footer (.l-footer)
   ========================================================================== */
.l-footer--main {
  background-color: var(--gp-footer-bg);
  color: var(--gp-footer-text);
  padding: 40px 0 24px;
  margin-top: 32px;
}

.l-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.l-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.c-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.c-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gp-footer-text);
}

.c-social__link:hover {
  background: var(--gp-accent);
  color: #ffffff;
}

.l-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.l-footer__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gp-footer-text);
  opacity: 0.88;
}

.l-footer__nav a:hover {
  opacity: 1;
  color: var(--gp-accent);
}

.l-footer--corus {
  background-color: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--gp-footer-text);
  opacity: 0.85;
}

.l-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Back to Top */
.c-backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gp-accent);
  color: #ffffff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.c-backToTop.is-visible {
  display: inline-flex;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .l-section__grid,
  .l-main__grid {
    grid-template-columns: 1fr;
  }

  .c-posts--gridList,
  .c-posts--gridMosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-posts--highlightFirst .c-posts__item:first-child .c-posts__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .l-header__menuButton {
    display: inline-flex;
  }

  .l-navWrapper {
    display: none;
  }

  .l-navWrapper.is-mobile-open {
    display: block;
  }

  .c-nav--main {
    flex-direction: column;
    align-items: stretch;
  }

  .c-posts--gridList,
  .c-posts--gridMosaic,
  .c-posts--relatedVideos {
    grid-template-columns: 1fr;
  }

  .c-posts--column .c-posts__inner {
    grid-template-columns: 1fr;
  }

  .c-posts--column .c-posts__media {
    width: 100%;
  }
}

/* ==========================================================================
   Widget Text-Only Variant (Without Featured Image)
   ========================================================================== */
.sidebar-widget__link--text {
  display: block;
}

.sidebar-widget__inline-rank {
  color: var(--gp-accent);
  font-weight: 900;
  margin-right: 4px;
}

/* ==========================================================================
   Top Breaking News Marquee
   ========================================================================== */
.gp-marquee {
  position: relative;
  z-index: 40;
  width: 100%;
  background-color: var(--gp-marquee-bg, #1a1a1a);
  color: var(--gp-marquee-text, #ffffff);
  border-bottom: 1px solid var(--gp-border-color);
  font-size: 0.86rem;
  overflow: hidden;
}

.gp-marquee__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
}

.gp-marquee__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gp-accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 3px;
  white-space: nowrap;
}

.gp-marquee__label .c-pulse {
  background-color: #ffffff;
}

.gp-marquee__label .c-pulse::after {
  border-color: #ffffff;
}

.gp-marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.gp-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: gp-marquee-scroll 42s linear infinite;
}

.gp-marquee:hover .gp-marquee__track {
  animation-play-state: paused;
}

.gp-marquee__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  color: var(--gp-marquee-text, #ffffff);
}

.gp-marquee__item:hover {
  color: var(--gp-accent);
}

.gp-marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gp-accent);
  display: inline-block;
}

@keyframes gp-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   WhatsApp-Style Stories Bar & Status Viewer Modal
   ========================================================================== */
.gp-wa-stories {
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--gp-border-color);
  margin-bottom: 8px;
}

.gp-wa-stories__header {
  margin-bottom: 10px;
}

.gp-wa-stories__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gp-text-muted);
}

.gp-wa-stories__strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}

.gp-wa-stories__strip::-webkit-scrollbar {
  display: none;
}

.gp-wa-story {
  flex: 0 0 auto;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gp-text-primary);
  text-align: center;
}

.gp-wa-story__ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  border: 2.5px dashed var(--gp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gp-wa-story.is-seen .gp-wa-story__ring {
  border-color: var(--gp-border-color);
  border-style: solid;
}

.gp-wa-story:hover .gp-wa-story__ring {
  transform: scale(1.06);
}

.gp-wa-story__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gp-surface-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-wa-story__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-wa-story__fallback {
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--gp-accent);
}

.gp-wa-story__label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* WA Modal Viewer */
.gp-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gp-wa-modal.is-open {
  display: flex;
}

.gp-wa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.gp-wa-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: #141414;
  color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.gp-wa-modal__progress {
  display: flex;
  gap: 4px;
  padding: 10px 12px 4px;
}

.gp-wa-progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  overflow: hidden;
}

.gp-wa-progress-seg__fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
}

.gp-wa-progress-seg.is-done .gp-wa-progress-seg__fill {
  width: 100%;
}

.gp-wa-progress-seg.is-active .gp-wa-progress-seg__fill {
  width: 100%;
  animation: gp-wa-fill 6s linear forwards;
}

@keyframes gp-wa-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.gp-wa-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
}

.gp-wa-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-wa-modal__cat {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gp-accent);
}

.gp-wa-modal__date {
  font-size: 0.72rem;
  opacity: 0.75;
}

.gp-wa-modal__close {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gp-wa-modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gp-wa-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gp-wa-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 54px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-wa-modal__nav--prev { left: 0; border-radius: 0 6px 6px 0; }
.gp-wa-modal__nav--next { right: 0; border-radius: 6px 0 0 6px; }

.gp-wa-modal__caption {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-wa-modal__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.gp-wa-modal__excerpt {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.gp-wa-modal__cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  background: var(--gp-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
}

.gp-wa-modal__cta:hover {
  background: var(--gp-accent-hover);
  color: #ffffff;
}

/* ==========================================================================
   Multiblock Multi-Style Layouts (Symmetrical)
   ========================================================================== */
.gp-multi--split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}

.gp-multi--split .c-posts__item:first-child {
  grid-row: span 2;
}

.gp-multi--split .c-posts__item:first-child .c-posts__headline {
  font-size: 1.35rem;
  line-height: 1.25;
}

.gp-multi--split .c-posts__item:not(:first-child) .c-posts__inner {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  height: auto;
}

.gp-multi--split .c-posts__item:not(:first-child) .c-posts__media {
  width: 140px;
  margin-bottom: 0;
}

.gp-multi--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gp-multi--2col .c-posts__item:nth-child(n+3) {
  grid-column: span 1;
}

@media (max-width: 768px) {
  .gp-multi--split,
  .gp-multi--2col {
    grid-template-columns: 1fr;
  }

  .gp-multi--split .c-posts__item:first-child {
    grid-row: auto;
  }

  .gp-multi--split .c-posts__item:not(:first-child) .c-posts__inner {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .gp-multi--split .c-posts__item:not(:first-child) .c-posts__media {
    width: 110px;
  }
}
