/* ===================================================================
   SINGLE STATION CSS - Station detail page styles
   Loaded on single-station.php pages
   =================================================================== */

/*station page content css*/
/* Card shell like screenshot */

.station-card__header {
  display: flex;
  align-items: end;
  gap: 14px;
}
.station-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 56px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.station-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.station-card__placeholder {
  font-weight: 700;
  font-size: 22px;
  color: var(--grey);
}

.station-card__headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.station-card__title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.station-card__divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0 12px;
}

/* Reuse your star CSS but ensure alignment */
.station-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.rating-sm .rating-stars {
  font-size: 16px;
}
.rating-stars {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.rating-stars__bg,
.rating-stars__fg {
  letter-spacing: 2px;
  user-select: none;
}
.rating-stars__bg {
  color: #c7ced6;
}
.rating-stars__fg {
  color: var(--green);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}
.rating-value {
  font-weight: 600;
}
.rating-count {
  color: #6b7280;
  font-size: 0.95em;
}

/* Collapsible content */
.station-card__content-inner {
  --collapsed-h: 168px; /* ~6–7 lines */
  position: relative;
  max-height: var(--collapsed-h);
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.875rem; /* 14px */
}
.station-card__content-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--white-ash)
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.station-card__content-inner.is-open {
  max-height: 2000px; /* large to allow animation */
}
.station-card__content-inner.is-open::after {
  opacity: 0;
}
.station-card__toggle.js-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 20px;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
  color: #1a1a1a;
  background: #ffffff !important;
  text-align: center;
  position: absolute;
  z-index: 999;
  top: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: -30px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.station-card__toggle.js-toggle:hover,
.station-card__toggle.js-toggle:focus {
  background: #f3f4f6 !important;
  border-color: #9ca3af;
}
.station-card__toggle.js-toggle:active {
  background: #e5e7eb !important;
  border-color: #9ca3af;
}

/* Dark mode support */
:root[data-theme="dark"] .station-card__toggle.js-toggle {
  background: #2d2d32 !important;
  color: #e0e0e0;
  border-color: #404040;
}
:root[data-theme="dark"] .station-card__toggle.js-toggle:hover,
:root[data-theme="dark"] .station-card__toggle.js-toggle:focus {
  background: #3a3a40 !important;
  border-color: #555555;
}
:root[data-theme="dark"] .station-card__toggle.js-toggle:active {
  background: #45454b !important;
  border-color: #555555;
}
.station-card__toggle .toggle-plus {
  display: inline-block;
  width: 14px;
  height: 14px;
  text-align: center;
  /* border-radius: 999px; */
  /* border: 1px solid #d1d5db; */
  line-height: 1;
  font-size: 18px;
  margin-top: -4px;
}
.station-card__toggle.is-open .toggle-plus {
  transform: rotate(45deg);
} /*

.s-content p {
  color: var(--text);
}
.s-content a {
  color: var(--text);
  text-decoration: underline;
}

.skeleton {
  background: var(--grey-ash);
  border-radius: 8px;
}
.skeleton.thumb {
  width: 56px;
  height: 56px;
}
.skeleton-line {
  width: 160px;
  height: 14px;
}
.skeleton-text {
  width: 220px;
  height: 20px;
  border-radius: 6px;
}
.skeleton-paragraph {
  height: 110px;
  border-radius: 10px;
}

/* Smooth fade on content swap */
.station-card {
  transition: opacity 0.2s ease;
}
.station-card.is-swapping {
  opacity: 0.6;
}

/* Optional: ensure collapsible is closed by default (CSS handles height) */
.station-card__content-inner {
  --collapsed-h: 168px;
}

/* Pill-style link with right-side icon */
.station-card__external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* space between text and icon */
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip-bg, #f3f5f7);
  color: var(--chip-text, #333);
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.station-card__external-link .external-link__icon {
  font-size: 0.95em;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.station-card__external-link:hover {
  background: var(--chip-bg-hover, #e9eef3);
  color: var(--chip-text-hover, #111);
}

.station-card__external-link:hover .external-link__icon {
  transform: translate(1px, -1px); /* subtle “up-right” nudge */
  opacity: 1;
}

.station-card__external-link:focus-visible {
  outline: 2px solid var(--accent-color, #0073aa);
  outline-offset: 2px;
}

/* ===== Station Category Grid – Screenshot Style ===== */

/* red base strip under the card */
.station-cat-grid,
.station-grid {
  padding-bottom: 40px;
}
.station-cat-grid::after,
.station-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: transparent;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Gradient styling - colors are set dynamically via PHP based on container color */
.no-background .station-cat-grid::after,
.has-background .station-cat-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--white-ash)
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* grid columns */
.station-cat-grid .scg-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* column title */
.station-cat-grid .scg-title {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.17em; /* Match h3 size */
}

/* list + items */
.station-cat-grid .scg-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.station-cat-grid .scg-item {
  margin: 8px 0;
}

.station-cat-grid .scg-item .card--station {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-black-white);
  flex-direction: row;
  justify-content: start;
}

.station-cat-grid .scg-item .card--station:hover {
  color: var(--text-hover);
  text-decoration: none;
}
span.scg-logo {
  display: flex;
}
/* logo size/shape (small rounded square) */
.station-cat-grid .scg-logo img {
  width: 38px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--white-dark);
  box-shadow: var(--shadow);
}

.station-cat-grid .scg-name {
  color: var(--text-black-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* centered pill button overlapping the red base */
.scg-actions,
.sa-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px; /* float over the red strip */
  z-index: 2;
}

.scg-load-more.btn,
.sa-load-more.btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 20px;
  border: none;
  border-radius: 999px;
  color: var(--text-black-white);
  background: var(--white-dark);
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  flex-direction: row-reverse;
}
.scg-load-more.btn:hover,
.sa-load-more.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: var(--light-dark) !important;
  color: var(--text-black-white) !important;
}

.scg-load-more.btn:active,
.scg-load-more.btn:focus,
.sa-load-more.btn:active,
.sa-load-more.btn:focus {
  background: var(--light-dark) !important;
  color: var(--text-black-white) !important;
}

/* white dot with chevron */
.scg-load-more.btn::after,
.sa-load-more.btn::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  color: var(--text-black-white);
  line-height: 1;
  font-size: 18px;
  margin-top: -3px;
}

/* loading state from your JS */
.scg-load-more.is-loading,
.sa-load-more.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
/* while loading, swap chevron for a spinner */
.scg-load-more.is-loading::after,
.sa-load-more.btn.is-loading::after {
  content: "◠";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  animation: rs-spin 0.8s linear infinite;
}

/* optional: subtle loading state */
.scg-load-more.is-loading,
.sa-load-more.btn.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

@keyframes rs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Order changed toast */
.sa-order-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-light, #1f1f1f);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.sa-order-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.sa-order-toast__text {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-order-toast__text svg {
  flex-shrink: 0;
  color: #4ade80;
}
.sa-order-toast__undo {
  padding: 6px 12px;
  background: var(--main, #e31e24);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sa-order-toast__undo:hover {
  background: #c41a1f;
}

.header-widget aside > p {
  display: none;
}
/* Header search* /
/* overlay behind results */
.rs-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 998; /* under the panel */
}
body.rs-search-open .rs-search-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* header search container */
.rs-header-search {
  position: relative;
  width: 200px;
  max-width: 90vw;
  transition: width 0.25s ease;
  z-index: 999;
  /* top: 50%; */
  /* left: auto; */
  /* -ms-transform: translate(-50%, -50%); */
  /* transform: translate(-50%, -50%); */
  /* right: 30px; */
}

.rs-header-search.is-focus {
  width: 200px;
}

/* the dropdown PANEL (anchored under input, not centered) */
.rs-header-search .rs-search-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 100%;
  max-height: 60vh;
  overflow: auto;
  background: var(--white-dark);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow);
  padding: 5px 0;
  z-index: 999;
}
/* field + clear */
.rs-header-search .rs-search-input {
  width: 100%;
  height: 38px;
  border-radius: 100px;
}
.rs-header-search .rs-search-clear {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: none;
  padding: 0;
}
.rs-header-search.is-open {
  width: min(var(--search-open-w, 220px), calc(100vw - 32px));
}
.rs-header-search.is-open .rs-search-clear {
  display: block;
}

/* section titles */
.rs-panel-title {
  font-weight: 600;
  color: var(--text);
  padding: 8px 10px 8px;
  border-bottom: 1px solid var(--border);
}

/* suggestions (popular keywords) */

.rs-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-suggest-list .rs-suggest-item {
  margin-bottom: 0px;
}
.rs-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-top: 1px solid var(--border);
  text-align: left;
}
.rs-suggest-item:first-child {
  border-top: 0;
}
.rs-suggest-item .ico {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
li.rs-suggest-item .ico img {
  filter: var(--icon-filter);
}
.rs-suggest-item .txt {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-suggest-item:hover {
  background: var(--light-dark);
}

/* results list (vertical cards) */
.rs-results-title {
  padding: 8px 16px 10px;
  color: var(--text);
}
.rs-results-title strong {
  display: block;
}
.rs-search-grid {
  display: flex;
  flex-direction: column;
}
.rs-search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--white-dark);
  border-top: 1px solid var(--border);
  padding: 6px 10px;
}
.rs-search-card:hover {
  background: var(--light-dark);
}
.rs-search-card .thumb {
  width: 38px;
  height: 30px;
  flex: 0 0 38px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}
.rs-search-card .title {
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rs-search-card:focus {
  outline: 0px solid var(--border);
  outline-offset: 0px;
}
.rs-search-card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
}
.rs-search-card .type-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rs-search-card.type-radio .type-badge {
  color: var(--main, #e31e24);
}
.rs-search-card.type-news .type-badge {
  color: #2563eb;
}
.rs-search-card.type-podcast .type-badge {
  color: #7c3aed;
}
.rs-search-card.type-other .type-badge {
  color: #6b7280;
}
/* end header search */

/*a-ds inside-grid*/
.rs-slot--inside-grid {
  grid-row: 2;
  grid-row-end: 2;
  grid-row-start: 5;
  grid-row-end: 5;
  -ms-grid-row: 2;
  -ms-grid-row-span: 4;
  grid-column-start: 2;
  grid-column-end: 9;
  -ms-grid-column: 3;
  -ms-grid-column-span: 4;
  margin: 0px;
}
.archive--wrapper .rs-slot--below-grid {
  grid-row: 2;
  grid-row-end: 2;
  grid-row-start: 8;
  grid-row-end: 8;
  -ms-grid-row: 2;
  -ms-grid-row-span: 4;
  grid-column-start: 1;
  grid-column-end: 11;
  -ms-grid-column: 3;
  -ms-grid-column-span: 4;
  margin: 0px !important;
}

.rs-slot--inside-grid img,
.archive--wrapper .rs-slot--below-grid img {
  width: auto;
  margin: 0 auto;
}
.rs-slot--inside-grid .rs-ad-label,
.archive--wrapper .rs-slot--below-grid .rs-ad-label {
  top: -3px;
}

.rs-modal-open {
  overflow: hidden;
}
.rs-playlist-modal[aria-hidden="true"] {
  display: none;
}
.rs-playlist-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
.rs-pl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.rs-pl-dialog {
  position: relative;
  width: min(350px, 60vw);
  max-height: 60vh;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}
.rs-pl-close {
  position: absolute;
  top: -35px;
  right: 0px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

/* Brand header with station logo (matches screenshot vibe) */
.rs-pl-brand {
  height: 108px;
  background: var(--main);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 5px 5px 0px 0px;
}

/* bottom-left darker wedge */
.rs-pl-brand::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  pointer-events: none;
  transform: translateY(35%);
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* top-right lighter wedge */
.rs-pl-brand::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 75px;
  height: 75px;
  background: rgba(0, 0, 0, 0.5);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
  z-index: 0;
}
.rs-pl-brand-logo {
  max-height: 56px;
  max-width: 70%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Body + list */
.rs-pl-body {
  padding-top: 10px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  z-index: 99;
}
.rs-pl-grid {
  overflow: auto;
  display: grid;
  gap: 0;
}
.rs-pl-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-dark);
  padding: 10px 15px;
  text-decoration: none;
  color: inherit;
}
.rs-pl-card:hover {
  background: #303030;
}
.rs-pl-thumb {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
}
.rs-pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-pl-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 3px;
}

.rs-pl-station-logo {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}
.rs-pl-name {
  font-weight: 600;
  line-height: 1.2;
  font-size: 14px;
}
.rs-pl-song {
  margin-top: 2px;
  color: var(--grey);
}
.rs-pl-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.rs-pl-badge.rs-pl-live {
  background: var(--main);
  color: var(--white);
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.rs-pl-time {
  font-size: 12px;
  opacity: 0.7;
}
.rs-pl-actions {
  text-align: center;
  margin-top: 10px;
}
.rs-pl-more {
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--white);
  color: var(--bg-dark);
  font-weight: 600;
}
.rs-pl-empty {
  padding: 20px;
  opacity: 0.8;
  text-align: center;
}

/*Mega Menu*/
.main-navigation ul ul li:hover a::before {
  content: "";
  height: 1px;
  width: 80%;
  border-bottom: 1px solid;
  bottom: 0;
  left: 10px;
  position: absolute;
  transition: all 0.2s ease;
}
@media (min-width: 769px) {
  nav .main-nav .mega-menu {
    position: static;
  }
  nav .main-nav .mega-menu.mega-menu-col-2 ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }
  nav .main-nav .mega-menu > ul {
    position: absolute;
    width: 298px;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 5px;
    border-radius: 0px 0px 5px 5px;
    box-shadow: var(--shadow);
  }
  nav .main-nav .mega-menu > ul > li {
    display: inline-block;
    width: 25%;
    vertical-align: top;
  }
  nav .main-nav .mega-menu.mega-menu-col-2 > ul > li {
    width: 100%;
  }
  nav .main-nav .mega-menu.mega-menu-col-2 > ul > li a {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .main-navigation .main-nav ul li a {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-float-right .header-widget {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .menu-item-has-children .dropdown-menu-toggle {
    padding-right: 5px;
  }
}
.main-navigation .main-nav ul li a.is-active {
  color: #c41e1e !important; /* Darker red for better contrast (WCAG AA) */
}

/* Prevent scroll chaining from the panel to the page */
.tool-panel {
  overscroll-behavior: contain;
}

/* The hourly strip: allow horizontal pan without bubbling to page */
.wx-hourly {
  overscroll-behavior: contain; /* stop bounce -> page scroll */
  touch-action: pan-x; /* horizontal gestures only */
}
.main-navigation .main-nav ul li > a:focus {
  color: var(--main-hover);
}
.site-content .content-area .inside-article {
  padding: 15px;
  background: var(--white-dark);
  min-height: 70vh;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.inside-article a,
.paging-navigation a,
.comments-area a,
.page-header a {
  color: var(--text);
}
.wp-block-table thead {
  border-bottom: 1px solid;
}
.frequenties td:first-child,
.frequenties th:first-child {
  width: 100px;
}
.no-border td,
.no-border th,
.no-border table {
  vertical-align: top;
  border: none;
}
/*Contact form*/
.rs-cf input,
.rs-cf textarea,
.rs-cf select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--box-bg, #fff);
  color: var(--text);
}
.rs-cf select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.rs-cf-notice {
  display: block;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  font-size: 0.85rem;
  line-height: 1.4;
}
.rs-cf-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: var(--box-bg, #f9f9f9);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.rs-cf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}
.rs-cf-checkbox-label:hover {
  border-color: var(--main);
}
.rs-cf-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--main);
  cursor: pointer;
}
.rs-cf-checkbox-label:has(input:checked) {
  background: var(--main);
  border-color: var(--main);
}
.rs-cf-checkbox-label:has(input:checked) span {
  color: var(--white, #fff);
}
.rs-cf-checkbox-label:has(input:checked) input[type="checkbox"] {
  accent-color: #fff;
}
.rs-cf-checkbox-label.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rs-cf-hint {
  display: block;
  margin-top: 4px;
  color: var(--text-muted, #666);
  font-size: 0.75rem;
}

/* Station form intro */
.rs-cf-intro {
  margin-bottom: 20px;
}
.rs-cf-intro p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.5;
}
.rs-cf-intro .rs-cf-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  font-style: italic;
}

/* Retourlink details (collapsible) */
.rs-cf-retourlink-details {
  margin-bottom: 20px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  overflow: hidden;
}
.rs-cf-retourlink-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  list-style: none;
}
.rs-cf-retourlink-details summary::-webkit-details-marker {
  display: none;
}
.rs-cf-retourlink-details summary::after {
  content: '▸';
  margin-left: auto;
  transition: transform 0.2s;
}
.rs-cf-retourlink-details[open] summary::after {
  transform: rotate(90deg);
}
.rs-cf-retourlink-icon {
  font-size: 1rem;
}
.rs-cf-retourlink-content {
  padding: 0 15px 15px;
}
.rs-cf-retourlink-content p {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  color: var(--text);
}
.rs-cf-code-copy {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rs-cf-code-copy code {
  flex: 1;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.rs-cf-copy-btn {
  padding: 8px 12px;
  background: var(--main);
  color: var(--white, #fff);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.rs-cf-copy-btn:hover {
  background: var(--main-hover);
}
.rs-cf-submit {
  background: var(--main);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
}
.rs-cf-submit:hover {
  background: var(--main-hover);
  color: var(--white);
}
.rs-cf-err {
  color: var(--main);
  display: block;
  height: 14px;
  margin-top: 4px;
}
.rs-cf-preloader {
  margin-top: 10px;
}
.rs-cf-success,
.rs-cf-failure {
  margin-top: 12px;
  font-weight: 600;
}

/* File input with preview */
.rs-cf-file-with-preview {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rs-cf-file-input {
  flex: 1;
}
.rs-cf-station-preview {
  flex-shrink: 0;
}
.station-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.rs-cf-station-preview .card--station.preview-tile {
  width: 113px;
  height: 85px;
  pointer-events: none;
}
.rs-cf-station-preview .station--wrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.rs-cf-station-preview .station--inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.rs-cf-station-preview .station--inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rs-cf-station-preview .station--inner img.has-upload {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  padding: 0;
  position: absolute;
  inset: 0;
}
.preview-station-name {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  text-align: center;
}

/* File input styling */
.rs-cf input[type="file"] {
  padding: 10px;
  background: var(--box-bg, #f9f9f9);
  cursor: pointer;
}
.rs-cf input[type="file"]::file-selector-button {
  background: var(--main);
  color: white;
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 12px;
}
.rs-cf input[type="file"]::file-selector-button:hover {
  background: var(--main-hover);
}

.wp-block-latest-posts.is-grid {
  margin: 0;
}
.content-wraper .rs-ad-slot {
  margin-top: 0px;
}

.top-bar .widget {
  margin: 0 !important;
}

.top-bar .widget p {
  display: none;
}

.top-bar .inside-top-bar {
  margin: 0 !important;
  padding: 0;
  display: flex;
  text-align: center;
}

/* news grid css*/

/*Base Grid Styles*/
.custom-news-grid {
  display: grid;
  gap: 24px;
}
.custom-news-grid .news-item {
  background: transparent;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: padding 0.3s ease;
  position: relative;
}
.custom-news-grid .news-item h3 {
  transition: transform 0.3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
  font-size: 16px;
}
.custom-news-grid .row-two .news-item h3 {
  font-size: 20px;
}
.custom-news-grid .news-item:hover h3 a,
.custom-news-grid .news-item h3 a:hover,
.view-image-overlay .news-card-main .news-item:hover h3 a,
.view-image-overlay .news-card-main .news-item h3 a:hover {
  color: var(--main);
}
.custom-news-grid .news-thumb img,
.news-item .overlay-bg img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.custom-news-grid .cat {
  font-size: 12px;
  color: var(--text-color);
  margin-bottom: 10px;
}
.custom-news-grid .meta {
  font-size: 12px;
  color: var(--dark-grey);
}
.custom-news-grid .news-text h3 {
  margin-bottom: 10px;
  margin-top: 10px;
}
.custom-news-grid .news-text h3 a {
  color: var(--text-color);
}
.cat-icon {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 5px;
}

/*Layout: 1 to 6 Columns*/
.custom-news-grid.layout-1 {
  grid-template-columns: 1fr;
}
.custom-news-grid.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}
.custom-news-grid.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}
.custom-news-grid.layout-4 {
  grid-template-columns: repeat(4, 1fr);
}
.custom-news-grid.layout-5 {
  grid-template-columns: repeat(5, 1fr);
}
.custom-news-grid.layout-6 {
  grid-template-columns: repeat(6, 1fr);
}

/*Layout: column="2/3"*/
.custom-news-grid.layout-2\/3 {
  display: block;
}
.custom-news-grid.layout-2\/3 .row-two,
.custom-news-grid.layout-2\/3 .row-three {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
.custom-news-grid.layout-2\/3 .row-two {
  grid-template-columns: repeat(2, 1fr);
}
.custom-news-grid.layout-2\/3 .row-three {
  grid-template-columns: repeat(3, 1fr);
}
.custom-news-grid .news-item img {
  height: 180px;
  object-fit: cover;
}

.full-column .custom-news-grid.layout-2\/3 .row-two {
  grid-template-columns: 1fr;
}

/*Layout: column="news-card"*/
.custom-news-grid.layout-news-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.custom-news-grid.layout-news-card .news-card-main {
  grid-row: span 3;
}
.custom-news-grid.layout-news-card .news-card-side {
  display: grid;
  gap: 24px;
}
.custom-news-grid.layout-news-card .news-card-side .news-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.view-image-overlay .news-card-main .news-item {
  min-height: 388px;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  border-radius: 5px;
}
.view-image-overlay .news-card-main .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.view-image-overlay .news-card-main .overlay-content {
  position: relative;
  z-index: 2;
  padding: 15px;
  background: linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
}
.view-image-overlay .news-card-main .overlay-card .cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.view-image-overlay .news-card-main .overlay-card .cat,
.view-image-overlay .news-card-main .overlay-card .meta,
.view-image-overlay .news-card-main .overlay-card .cat,
.view-image-overlay .news-card-main .overlay-card .meta i {
  color: var(--text-white);
}
.view-image-overlay .view-image-overlay .news-card-main .overlay-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.view-image-overlay .news-card-main .overlay-card h3 a,
.view-image-overlay .news-card-main .overlay-card h3 a:hover {
  color: var(--color-text);
}
.view-image-overlay .news-card-main .overlay-bg img {
  height: 100%;
  object-fit: cover;
}
.view-image-overlay .news-card-side .overlay-bg {
  order: 2;
}
.view-image-overlay .news-card-side .overlay-bg img {
  border-radius: 5px;
}

/*Image Position: image="right"*/
.custom-news-grid.image-right .news-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.custom-news-grid.image-right .news-thumb {
  flex: 0 0 33%;
  margin-left: 16px;
}
.custom-news-grid.image-right .news-text {
  flex: 1;
}
.custom-news-grid.image-right .news-thumb img {
  border-radius: 5px;
}

/*image-overlay*/
.row-two .overlay-card {
  position: relative;
  overflow: hidden;
  color: var(--text-white);
  border-radius: 5px;
}
.row-two .overlay-card .cat,
.row-two .overlay-card .meta,
.row-two .overlay-card .cat,
.row-two .overlay-card .meta i {
  color: var(--text-white);
}
.row-two .overlay-card h3 a {
  color: var(--white);
}
.row-two .overlay-card .overlay-bg img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.row-two .overlay-card .overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.row-two .overlay-card .overlay-content {
  z-index: 2;
  padding: 15px;
  background: linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
}
/* .view-image-overlay .row-two .news-item.overlay-card:hover img {
  transform: scale(1.03);
} */
.news-item {
  overflow: hidden;
}
.news-item img {
  transition: transform 0.4s ease;
}
.news-item:hover img {
  transform: scale(1.03);
}

.view-image-overlay .row-two .news-item.overlay-card img {
  transition: transform 0.4s ease;
  border-radius: 5px;
}

.view-image-overlay .row-two .news-item {
  height: 270px;
}
.news-item .cat {
  position: absolute;
  top: 10px;
  left: 10px;
}
.news-item .cat a {
  color: var(--white);
  background: var(--black);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
}

/*icon Meta*/
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--dark-grey);
  align-items: center;
}
.meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.meta i {
  color: var(--dark-grey);
}

/*Load more button*/

.loadmore-wrap {
  text-align: center;
  margin-top: 30px;
  position: relative;
}
.loadmore-wrap .loadmore-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: var(--light-dark);
  color: var(--dark-grey);
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.loadmore-wrap .loadmore-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.loadmore-wrap .loadmore-icon {
  line-height: 1;
  margin-left: 4px;
  margin-top: 2px;
}
.loadmore-spinner {
  margin-top: 10px;
}
.loader {
  width: 24px;
  height: 24px;
  border: 3px solid #ccc;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade-in animation for newly loaded posts */
.news-item.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter carousel */
.news-filter-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}

.news-filter {
  display: flex;
  gap: 5px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.news-filter__btn {
  white-space: nowrap;
  border: 1px solid var(--light-dark);
  background: var(--light-dark);
  color: var(--dark-grey);
  border-radius: 5px;
  padding: 7px 8px;
  cursor: pointer;
  font-weight: 600;
}
.news-filter__btn.is-active {
  background: var(--main);
  border-color: var(--main);
  color: var(--white);
}

/* Arrows */
.nf-arrow {
  width: 32px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--light-grey);
  color: var(--dark-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nf-arrow[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  border: 1px solid var(--light-grey);
}
.nf-arrow[disabled]:hover {
  background-color: var(--light-grey);
  color: var(--dark-grey);
}

/* Optional hover */
.nf-arrow:not([disabled]):hover {
