/* =====================================================================
   Rabbi Dovid Katz – Elementor Widgets
   Shared stylesheet. All classes are prefixed `rdk-` to avoid collisions
   with the active WordPress theme or other plugins.
   ===================================================================== */

/* ===== DESIGN TOKENS ===== */
.rdk {
  --rdk-teal-dark:  #1E444A;
  --rdk-teal-mid:   #26535A;
  --rdk-teal-light: #2E6E78;
  --rdk-gold:       #C8A84B;
  --rdk-gold-btn:   #D4AE5A;
  --rdk-rose:       #C97B6E;
  --rdk-white:      #FFFFFF;
  --rdk-off-white:  #F7F7F7;
  --rdk-gray-light: #D1D5DB;
  --rdk-gray-text:  #6B7280;
  --rdk-text-dark:  #111827;
  --rdk-badge-green:#22c55e;
  --rdk-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --rdk-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== BASE (scoped) ===== */
.rdk, .rdk * { box-sizing: border-box; }
.rdk { font-family: var(--rdk-sans); color: var(--rdk-text-dark); line-height: 1.5; }
.rdk img { max-width: 100%; display: block; }
.rdk a { text-decoration: none; color: inherit; }
.rdk-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SHARED UTILITY ===== */
.rdk-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rdk-gold); margin-bottom: 6px;
}
.rdk-section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.rdk-section-title {
  font-family: var(--rdk-serif); font-size: 26px; font-weight: 700; color: var(--rdk-text-dark);
  position: relative;
}
.rdk-section-title--center { text-align: center; width: 100%; }
.rdk-title-underline { display: inline-block; width: 48px; height: 3px; background: var(--rdk-gold); margin: 10px auto 0; }
.rdk-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #fff; background: var(--rdk-badge-green);
}
.rdk-badge--gold { background: var(--rdk-gold); }
.rdk-badge--teal { background: var(--rdk-teal-light); }
.rdk-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .2s, background .2s;
}
.rdk-btn:hover { opacity: .88; }
.rdk-btn--gold { background: var(--rdk-gold-btn); color: #fff; }
.rdk-btn--outline { background: transparent; color: var(--rdk-white); border: 1.5px solid rgba(255,255,255,.35); }
.rdk-btn--outline-dark { background: transparent; color: var(--rdk-teal-dark); border: 1.5px solid var(--rdk-teal-dark); }
.rdk-view-all { font-size: 13px; color: var(--rdk-teal-mid); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.rdk-view-all::after { content: ' \2192'; }
.rdk-play {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rdk-play svg { width: 14px; height: 14px; fill: var(--rdk-teal-dark); margin-left: 2px; }

/* ===== HEADER ===== */
.rdk-header { background: var(--rdk-teal-dark); width: 100%; }
.rdk-header__top { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 0 6px; position: relative; }
.rdk-header__logo { font-family: var(--rdk-serif); font-size: 26px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rdk-white); }
.rdk-header__tagline { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rdk-rose); margin-top: 6px; }
.rdk-header__bar { border-top: 1px solid rgba(255,255,255,.12); }
.rdk-header__bar .rdk-container { display: flex; align-items: center; min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
.rdk-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; width: 100%; justify-content: flex-start; }
.rdk-nav--left { justify-content: flex-start; }
.rdk-nav--center { justify-content: center; }
.rdk-nav--right { justify-content: flex-end; }
.rdk-nav a { font-size: 13.5px; color: rgba(255,255,255,.82); padding: 8px 10px; border-radius: 4px; transition: background .2s, color .2s; white-space: nowrap; }
.rdk-nav a:hover, .rdk-nav a.is-active { color: #fff; background: rgba(255,255,255,.12); }
.rdk-nav a.rdk-nav__more { display: inline-flex; align-items: center; gap: 4px; }
.rdk-header__cta { display: flex; align-items: center; gap: 12px; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.rdk-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 22px; padding: 8px 16px; min-width: 180px; }
.rdk-search input { background: transparent; border: none; outline: none; color: #fff; font-size: 13px; width: 100%; }
.rdk-search input::placeholder { color: rgba(255,255,255,.55); }
.rdk-search svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); flex-shrink: 0; }
.rdk-subscribe { padding: 9px 22px; background: var(--rdk-gold-btn); color: #fff; border-radius: 22px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: opacity .2s; }
.rdk-subscribe:hover { opacity: .88; }

/* ===== HERO ===== */
.rdk-hero { background: linear-gradient(113deg, var(--rdk-teal-dark) 0%, var(--rdk-teal-mid) 100%); padding: 64px 0; position: relative; overflow: hidden; }
.rdk-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; position: relative; z-index: 1; }
.rdk-hero__left { flex: 1; max-width: 600px; }
.rdk-hero__title { font-family: var(--rdk-serif); font-size: 34px; font-weight: 700; color: var(--rdk-white); line-height: 1.25; margin: 6px 0 22px; }
.rdk-hero__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 13px; color: rgba(255,255,255,.7); flex-wrap: wrap; }
.rdk-hero__meta span { display: inline-flex; align-items: center; gap: 5px; }
.rdk-hero__player { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 16px; max-width: 520px; }
.rdk-progress { flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; position: relative; }
.rdk-progress::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 35%; background: var(--rdk-gold); border-radius: 2px; }
.rdk-time { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; }
.rdk-hero__right { flex-shrink: 0; width: 340px; position: relative; height: 280px; }
.rdk-portrait { position: absolute; width: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.rdk-portrait img { width: 100%; height: 220px; object-fit: cover; }
.rdk-portrait__label { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.rdk-portrait--back { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.rdk-portrait--front { left: 10px; top: 40px; transform: rotate(-3deg); z-index: 2; }

/* ===== FEATURED TEACHING ===== */
.rdk-featured { background: #fff; padding: 60px 0; }
.rdk-featured__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rdk-featured__media { border-radius: 12px; overflow: hidden; position: relative; }
.rdk-featured__media img { width: 100%; height: 320px; object-fit: cover; }
.rdk-media-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%); }
.rdk-media-badge { position: absolute; top: 16px; left: 16px; }
.rdk-media-duration { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; }
.rdk-media-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; }
.rdk-featured__body .rdk-section-label { color: var(--rdk-gold); }
.rdk-featured__body .rdk-section-title { margin-bottom: 14px; }
.rdk-featured__body p.rdk-featured__desc { font-size: 15px; color: var(--rdk-gray-text); line-height: 1.7; margin-bottom: 22px; }
.rdk-featured__meta { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; font-size: 13px; color: var(--rdk-gray-text); }
.rdk-featured__meta span { display: inline-flex; align-items: center; gap: 5px; }
.rdk-featured__player { display: flex; align-items: center; gap: 12px; max-width: 360px; }
.rdk-featured__cta { margin-top: 18px; }

/* ===== NOORACAST SLIM PLAYER INTEGRATION ===== */
/* The slim player ships its own pill; constrain it to match each context. */
.nooracast-player--slim.rdk-hero__player--live { max-width: 520px; }
.rdk-featured__player .nooracast-player--slim { padding-left: 14px; padding-right: 14px; }
/* Mini player sits inside an absolutely-positioned thumbnail overlay box. */
.rdk-media-play.nooracast-player--mini,
.rdk-card__play.nooracast-player--mini { padding: 0; }
.rdk-parsha__main-controls .nooracast-player--mini .nooracast-player__btn--play { width: 44px; height: 44px; }

/* ===== BROWSE BY CATEGORY ===== */
.rdk-browse { background: var(--rdk-off-white); padding: 52px 0; }
.rdk-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 28px; }
.rdk-cat-card { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; transition: transform .2s; aspect-ratio: 3/4; }
.rdk-cat-card:hover { transform: translateY(-4px); }
.rdk-cat-card img { width: 100%; height: 100%; object-fit: cover; }
.rdk-cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.rdk-cat-card__title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.rdk-cat-card__count { font-size: 10px; color: rgba(255,255,255,.75); margin-top: 3px; }

/* ===== LATEST TEACHINGS ===== */
.rdk-latest { background: #fff; padding: 60px 0; }
.rdk-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.rdk-tab { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; border: none; cursor: pointer; background: transparent; color: var(--rdk-gray-text); transition: background .2s, color .2s; }
.rdk-tab.is-active, .rdk-tab:hover { background: var(--rdk-teal-dark); color: #fff; }
.rdk-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.rdk-card { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.rdk-card__thumb { position: relative; }
.rdk-card__thumb img { width: 100%; height: 180px; object-fit: cover; }
.rdk-card__thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%); }
.rdk-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; }
.rdk-card__badge { position: absolute; top: 10px; left: 10px; }
.rdk-card__duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 4px; }
.rdk-card__body { padding: 16px; }
.rdk-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--rdk-gray-text); }
.rdk-card__title { font-size: 15px; font-weight: 700; color: var(--rdk-text-dark); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rdk-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--rdk-gray-text); margin-top: 10px; }
.rdk-center { text-align: center; }

/* ===== PARSHA ===== */
.rdk-parsha { background: var(--rdk-off-white); padding: 60px 0; }
.rdk-parsha__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rdk-parsha__main { border-radius: 12px; overflow: hidden; position: relative; }
.rdk-parsha__main img { width: 100%; height: 340px; object-fit: cover; }
.rdk-parsha__main-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.rdk-parsha__main-overlay .rdk-badge { margin-bottom: 10px; align-self: flex-start; }
.rdk-parsha__main-overlay h3 { font-family: var(--rdk-serif); font-size: 20px; color: #fff; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.rdk-parsha__main-controls { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 12px; }
.rdk-parsha__list { display: flex; flex-direction: column; gap: 12px; }
.rdk-parsha__item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); transition: box-shadow .2s; }
.rdk-parsha__item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.rdk-parsha__item-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--rdk-teal-dark); }
.rdk-parsha__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rdk-parsha__item-body { flex: 1; min-width: 0; }
.rdk-parsha__item-title { font-size: 14px; font-weight: 600; color: var(--rdk-text-dark); line-height: 1.4; }
.rdk-parsha__item-meta { font-size: 12px; color: var(--rdk-gray-text); margin-top: 4px; display: flex; gap: 10px; }
.rdk-parsha__item-icon { color: var(--rdk-teal-mid); flex-shrink: 0; }
.rdk-parsha__item-icon svg { width: 18px; height: 18px; }

/* ===== JEWISH HISTORY ===== */
.rdk-history { background: linear-gradient(135deg, var(--rdk-teal-dark) 0%, var(--rdk-teal-mid) 100%); padding: 60px 0; }
.rdk-history .rdk-section-title { color: var(--rdk-white); }
.rdk-history .rdk-section-label { color: var(--rdk-gold); }
.rdk-history__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.rdk-history__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rdk-history__card { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; background: rgba(0,0,0,.2); }
.rdk-history__card img { width: 100%; height: 170px; object-fit: cover; transition: transform .3s; }
.rdk-history__card:hover img { transform: scale(1.04); }
.rdk-history__card-overlay { position: absolute; top: 0; left: 0; right: 0; height: 170px; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%); }
.rdk-history__card-icon { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.rdk-history__card-icon svg { width: 13px; height: 13px; fill: #fff; }
.rdk-history__card-body { padding: 14px; }
.rdk-history__card-meta { font-size: 11px; color: var(--rdk-gold); margin-bottom: 6px; }
.rdk-history__card-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; }

/* ===== FOOTER ===== */
.rdk-footer { background: var(--rdk-teal-dark); padding: 56px 0 32px; }
.rdk-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.rdk-footer__logo { font-family: var(--rdk-serif); font-size: 22px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rdk-white); margin-bottom: 14px; }
.rdk-footer__about { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; max-width: 320px; }
.rdk-footer__socials { display: flex; gap: 12px; }
.rdk-social { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: background .2s; }
.rdk-social:hover { background: rgba(255,255,255,.18); color: #fff; }
.rdk-social svg { width: 16px; height: 16px; fill: currentColor; }
.rdk-footer__col h4 { font-size: 14px; font-weight: 700; color: var(--rdk-gold); margin-bottom: 16px; }
.rdk-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rdk-footer__col ul li a { font-size: 14px; color: rgba(255,255,255,.65); transition: color .2s; }
.rdk-footer__col ul li a:hover { color: var(--rdk-gold); }
.rdk-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .rdk-category-grid { grid-template-columns: repeat(3, 1fr); }
  .rdk-history__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rdk-hero__inner { flex-direction: column; }
  .rdk-hero__right { width: 100%; }
  .rdk-featured__inner { grid-template-columns: 1fr; }
  .rdk-cards-grid { grid-template-columns: 1fr; }
  .rdk-parsha__inner { grid-template-columns: 1fr; }
  .rdk-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .rdk-category-grid { grid-template-columns: repeat(2, 1fr); }
  .rdk-history__grid { grid-template-columns: 1fr; }
  .rdk-nav { display: none; }
  .rdk-header__cta { position: static; transform: none; justify-content: center; margin-top: 14px; }
  .rdk-header__top { padding-bottom: 16px; }
}

/* =====================================================================
   COLOR GUARDS
   Elementor applies global heading/link colors via selectors like
   `.elementor h1` and `.elementor a` (specificity 0,1,1). Our single-class
   rules (0,1,0) lose that fight, so brand text on the dark teal turns dark
   and disappears. These descendant rules are (0,2,0)+, so they always win —
   regardless of the active theme or Elementor global colors.
   ===================================================================== */

/* Header (dark teal) */
.rdk-header .rdk-header__logo { color: #fff; }
.rdk-header .rdk-header__tagline { color: var(--rdk-rose); }
.rdk-header .rdk-nav a { color: rgba(255,255,255,.82); }
.rdk-header .rdk-nav a:hover,
.rdk-header .rdk-nav a.is-active { color: #fff; }
.rdk-header .rdk-subscribe { color: #fff; }
.rdk-header .rdk-search input { color: #fff; }

/* Hero (dark teal) */
.rdk-hero .rdk-hero__title { color: #fff; }
.rdk-hero .rdk-section-label { color: var(--rdk-gold); }

/* Section titles on light backgrounds stay dark */
.rdk-featured .rdk-section-title,
.rdk-browse .rdk-section-title,
.rdk-latest .rdk-section-title,
.rdk-parsha .rdk-section-title { color: var(--rdk-text-dark); }
.rdk-featured .rdk-section-label,
.rdk-latest .rdk-section-label,
.rdk-parsha .rdk-section-label { color: var(--rdk-gold); }

/* Card titles / view-all / buttons are <a> – keep them off the global link color */
.rdk .rdk-card__title a { color: var(--rdk-text-dark); }
.rdk .rdk-view-all { color: var(--rdk-teal-mid); }
.rdk .rdk-btn--gold { color: #fff; }
.rdk .rdk-btn--outline-dark { color: var(--rdk-teal-dark); }
.rdk .rdk-cat-card .rdk-cat-card__title { color: #fff; }

/* Parsha featured overlay heading (dark image) */
.rdk-parsha .rdk-parsha__main-overlay h3 { color: #fff; }

/* Jewish History (dark teal) */
.rdk-history .rdk-section-title { color: #fff; }
.rdk-history .rdk-section-label { color: var(--rdk-gold); }
.rdk-history .rdk-history__card-title { color: #fff; }
.rdk-history .rdk-history__card-meta { color: var(--rdk-gold); }

/* Footer (dark teal) */
.rdk-footer .rdk-footer__logo { color: #fff; }
.rdk-footer .rdk-footer__col h4 { color: var(--rdk-gold); }
.rdk-footer .rdk-footer__col ul li a { color: rgba(255,255,255,.65); }
.rdk-footer .rdk-footer__col ul li a:hover { color: var(--rdk-gold); }

/* =====================================================================
   CATEGORY / ARCHIVE PAGE
   ===================================================================== */

/* Banner */
.rdk-cat-banner { display: flex; align-items: center; background-size: cover; background-position: center; }
.rdk-cat-banner__inner { width: 100%; text-align: center; padding: 40px 24px; }
.rdk-cat-banner__title { font-family: var(--rdk-serif); font-size: 38px; font-weight: 700; color: var(--rdk-gold); margin: 0; }
.rdk-cat-banner .rdk-cat-banner__title { color: var(--rdk-gold); }
.rdk-cat-banner__count { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 10px; }

/* Teaching list */
.rdk-teachings { background: var(--rdk-off-white); padding: 48px 0; }
.rdk-teachings__list { display: flex; flex-direction: column; gap: 22px; }
.rdk-teaching { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 22px 24px; }
.rdk-teaching__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.rdk-teaching .rdk-teaching__title a { color: var(--rdk-teal-mid); }
.rdk-teaching .rdk-teaching__title a:hover { color: var(--rdk-teal-dark); }
.rdk-teaching__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--rdk-gray-text); margin-bottom: 14px; }
.rdk-teaching__cat { font-weight: 600; color: var(--rdk-gold); text-transform: uppercase; letter-spacing: .5px; }
.rdk-teaching__player { margin-top: 4px; }
.rdk-teaching__player .rdk-audio-fallback { width: 100%; }
.rdk-teachings__empty { text-align: center; color: var(--rdk-gray-text); font-size: 15px; padding: 40px 0; }

/* Pagination */
.rdk-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.rdk-pagination a, .rdk-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; background: #fff; color: var(--rdk-teal-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.rdk-pagination .current { background: var(--rdk-teal-dark); color: #fff; }
.rdk-pagination a:hover { background: var(--rdk-teal-light); color: #fff; }

/* Dark theme override for the NooraCast player inside the teaching list,
   to match the RDK design. NooraCast exposes CSS variables we can re-map. */
.rdk-teachings--dark .nooracast-player {
  --nooracast-accent: var(--rdk-gold);
  --nooracast-bg: #243038;
  --nooracast-text: #ffffff;
  --nooracast-text-muted: rgba(255,255,255,.6);
  --nooracast-border: rgba(255,255,255,.12);
}
.rdk-teachings--dark .nooracast-player--inline { background: #243038; border-color: rgba(255,255,255,.12); }
