/* =========================================================================
   ADIPARA WISDOM & ARTICLES ENGINE - CORE STYLES
   Inspired by Isha's Wisdom Portal (Terracotta theme, 3-column cards, TOC, floating share)
   ========================================================================= */

:root {
  --rwb-terracotta: #a8792c;
  --rwb-terracotta-dark: #8e621d;
  --rwb-terracotta-light: #c9a84c;
  --rwb-gold: #c9a84c;
  --rwb-charcoal: #0d0f12;
  --rwb-text-main: #1a1e24;
  --rwb-text-muted: #5a6578;
  --rwb-border: #e5e9f0;
  --rwb-bg-light: #fdfcf9;
  --rwb-font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --rwb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Clean Header: Remove stray TranslatePress floating shortcode overlay */
.trp-shortcode-overlay,
.trp-shortcode-switcher__wrapper {
  display: none !important;
}

/* Base Wrapper */
.rwb-wisdom-hub-wrap,
.rwb-single-wisdom-wrap {
  font-family: var(--rwb-font-sans);
  color: var(--rwb-text-main);
  background: #ffffff;
  line-height: 1.6;
}

.rwb-wisdom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rwb-single-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.rwb-single-container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   1. HERO BANNER - ADIPARA SIGNATURE COSMIC GOLD
   ========================================================================= */
.rwb-wisdom-hero {
  background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.16) 0%, transparent 60%), linear-gradient(135deg, #0d0f12 0%, #151821 100%);
  color: #ffffff;
  padding: 45px 0 55px;
  position: relative;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  text-align: center;
}

.rwb-breadcrumbs {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwb-breadcrumbs a {
  color: #c9a84c;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.rwb-breadcrumbs a:hover {
  text-decoration: underline;
  color: #e0bc5a;
}

.rwb-bc-sep {
  margin: 0 8px;
  opacity: 0.5;
  color: rgba(245, 240, 232, 0.5);
}

.rwb-bc-current {
  color: rgba(245, 240, 232, 0.9);
  font-weight: 500;
}

.rwb-hero-title {
  font-family: var(--rwb-font-serif);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: #f5f0e8;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

@media (max-width: 768px) {
  .rwb-hero-title { font-size: 38px; }
  .rwb-wisdom-hero { padding: 30px 0 40px; }
}

/* =========================================================================
   2. FILTER & SEARCH TOOLBAR
   ========================================================================= */
.rwb-filter-bar-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--rwb-border);
  padding: 16px 0;
}

.rwb-filter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rwb-filter-left,
.rwb-filter-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rwb-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rwb-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rwb-custom-select select {
  appearance: none;
  background: #ffffff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L5%205L9%201%22%20stroke%3D%22%234B5563%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") no-repeat right 12px center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 32px 8px 12px;
  font-size: 13.5px;
  color: var(--rwb-text-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.rwb-custom-select select:focus {
  border-color: var(--rwb-terracotta);
}

/* Custom Sleek Dropdown Component */
.rwb-dropdown {
  position: relative;
  display: inline-block;
}

.rwb-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rwb-text-main);
  cursor: pointer;
  min-width: 110px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.rwb-dropdown-btn:hover,
.rwb-dropdown.is-open .rwb-dropdown-btn {
  border-color: var(--rwb-terracotta);
  box-shadow: 0 0 0 2px rgba(148, 51, 28, 0.1);
}

.rwb-dropdown-chevron {
  color: #6b7280;
  transition: transform 0.25s ease;
}

.rwb-dropdown.is-open .rwb-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--rwb-terracotta);
}

.rwb-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: none;
  z-index: 1000;
  animation: rwb-dropdown-fade 0.18s ease forwards;
}

.rwb-dropdown.is-open .rwb-dropdown-menu {
  display: block;
}

@keyframes rwb-dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rwb-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 13.5px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rwb-dropdown-item:hover {
  background: #fdf2f0;
  color: var(--rwb-terracotta);
}

.rwb-dropdown-item.is-active {
  color: var(--rwb-terracotta);
  font-weight: 600;
  background: #fef7f6;
}

.rwb-dropdown-item .rwb-check-icon {
  opacity: 0;
  color: var(--rwb-terracotta);
}

.rwb-dropdown-item.is-active .rwb-check-icon {
  opacity: 1;
}

.rwb-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.rwb-search-box input {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 36px 8px 12px;
  font-size: 13.5px;
  width: 200px;
  outline: none;
  transition: width 0.3s, border-color 0.2s;
}

.rwb-search-box input:focus {
  border-color: var(--rwb-terracotta);
  width: 240px;
}

.rwb-search-icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #9ca3af;
}

/* Filter Pills */
.rwb-pills-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.rwb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.rwb-pill-close {
  background: none;
  border: none;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.rwb-clear-btn {
  background: none;
  border: none;
  color: var(--rwb-terracotta);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* =========================================================================
   3. ARTICLE CARDS GRID
   ========================================================================= */
.rwb-articles-main {
  padding: 40px 20px 80px;
}

.rwb-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .rwb-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .rwb-cards-grid { grid-template-columns: 1fr; }
}

.rwb-article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.rwb-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.rwb-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.rwb-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rwb-article-card:hover .rwb-card-image-wrap img {
  transform: scale(1.04);
}

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

.rwb-card-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11.5px;
  color: var(--rwb-terracotta);
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 8px;
}

.rwb-card-title {
  font-family: var(--rwb-font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.rwb-card-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.rwb-card-title a:hover {
  color: var(--rwb-terracotta);
}

.rwb-card-excerpt {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Card Footer & Interactive Share Drawer */
.rwb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
  position: relative;
  min-height: 40px;
}

.rwb-card-date {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  transition: opacity 0.2s;
}

.rwb-share-trigger {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}

.rwb-share-trigger:hover,
.rwb-article-card.share-active .rwb-share-trigger,
.rwb-quote-card.share-active .rwb-share-trigger,
.rwb-video-card.share-active .rwb-share-trigger {
  color: var(--rwb-terracotta);
  background: #fdf2f0;
}

/* Sliding Share Drawer */
.rwb-card-share-drawer {
  position: absolute;
  left: 0;
  right: 36px;
  top: 10px;
  bottom: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1;
}

.rwb-article-card.share-active .rwb-card-share-drawer,
.rwb-quote-card.share-active .rwb-card-share-drawer,
.rwb-video-card.share-active .rwb-card-share-drawer {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.rwb-article-card.share-active .rwb-card-date,
.rwb-quote-card.share-active .rwb-quote-date,
.rwb-video-card.share-active .rwb-card-date {
  opacity: 0;
}

.rwb-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #6b7280;
  background: #f3f4f6;
  text-decoration: none;
  transition: transform 0.15s, color 0.15s, background 0.15s;
}

.rwb-share-icon:hover { transform: scale(1.15); }
.rwb-share-icon.rwb-wa:hover { background: #25d366; color: #fff; }
.rwb-share-icon.rwb-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.rwb-share-icon.rwb-fb:hover { background: #1877f2; color: #fff; }
.rwb-share-icon.rwb-tw:hover { background: #000000; color: #fff; }
.rwb-share-icon.rwb-in:hover { background: #0a66c2; color: #fff; }
.rwb-share-icon.rwb-mail:hover { background: #ea4335; color: #fff; }
.rwb-share-icon.rwb-copy-link { border: none; cursor: pointer; }
.rwb-share-icon.rwb-copy-link:hover { background: var(--rwb-gold); color: #fff; }

/* =========================================================================
   4. SINGLE ARTICLE READING EXPERIENCE
   ========================================================================= */
.rwb-single-wisdom-wrap {
  padding-bottom: 80px;
}

.rwb-single-breadcrumbs {
  font-size: 13px;
  color: #6b7280;
  padding: 24px 0 16px;
}

.rwb-single-breadcrumbs a {
  color: #4b5563;
  text-decoration: none;
}

.rwb-single-breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--rwb-terracotta);
}

.rwb-single-header {
  text-align: center;
  margin-bottom: 30px;
}

.rwb-article-main-title {
  font-family: var(--rwb-font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin: 10px 0 18px;
}

.rwb-article-main-subtitle {
  font-size: 18px;
  font-style: italic;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 28px;
}

.rwb-article-hero-media {
  max-width: 860px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.rwb-article-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.rwb-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.rwb-meta-badge {
  font-weight: 600;
  color: var(--rwb-terracotta);
}

/* Reading Grid Layout */
.rwb-reading-layout-wrap {
  position: relative;
}

.rwb-reading-grid {
  display: flex;
  gap: 40px;
  position: relative;
}

/* Left Sticky Share Bar */
.rwb-left-floating-bar {
  position: sticky;
  top: 140px;
  height: fit-content;
  align-self: flex-start;
}

.rwb-sticky-icons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rwb-float-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
}

.rwb-float-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.rwb-float-btn.rwb-float-wa:hover { background: #25d366; border-color: #25d366; }
.rwb-float-btn.rwb-float-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; color: #fff; }
.rwb-float-btn.rwb-float-fb:hover { background: #1877f2; border-color: #1877f2; }
.rwb-float-btn.rwb-float-tw:hover { background: #000000; border-color: #000000; }
.rwb-float-btn.rwb-float-in:hover { background: #0a66c2; border-color: #0a66c2; }
.rwb-float-btn.rwb-float-mail:hover { background: #ea4335; border-color: #ea4335; }
.rwb-float-btn.rwb-copy-link:hover { background: var(--rwb-gold); border-color: var(--rwb-gold); }

@media (max-width: 860px) {
  .rwb-left-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 20px;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  }
  .rwb-sticky-icons {
    flex-direction: row;
    justify-content: space-around;
  }
}

/* Article Body Flow */
.rwb-article-body-flow {
  flex-grow: 1;
  max-width: 720px;
}

/* Table of Contents (TOC) */
.rwb-toc-box {
  margin: 10px 0 35px;
  padding: 0 0 25px;
  border-bottom: 1px solid #e5e7eb;
}

.rwb-toc-title {
  font-family: var(--rwb-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
}

.rwb-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rwb-toc-item {
  margin-bottom: 8px;
  line-height: 1.45;
}

.rwb-toc-item a {
  color: var(--rwb-terracotta);
  text-decoration: underline;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.rwb-toc-item.rwb-toc-active a {
  color: var(--rwb-terracotta-dark);
  font-weight: 700;
}

.rwb-toc-item a:hover {
  color: var(--rwb-terracotta-dark);
}

.rwb-toc-h3 {
  padding-left: 20px;
  font-size: 14px;
}

/* Content Typography */
.rwb-content-rich {
  font-size: 17.5px;
  line-height: 1.8;
  color: #2d3748;
}

.rwb-content-rich p {
  margin-bottom: 22px;
}

.rwb-content-rich h2 {
  font-family: var(--rwb-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 40px 0 16px;
  scroll-margin-top: 100px;
}

.rwb-content-rich h3 {
  font-family: var(--rwb-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 30px 0 14px;
  scroll-margin-top: 100px;
}

.rwb-content-rich ul,
.rwb-content-rich ol {
  margin: 0 0 24px 24px;
}

.rwb-content-rich li {
  margin-bottom: 8px;
}

/* Master Attribution / Sriguru Quote Block */
.rwb-dialogue-quote {
  display: flex;
  gap: 16px;
  background: #fbf9f4;
  border-left: 3px solid var(--rwb-gold);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0;
  align-items: flex-start;
}

.rwb-quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eadebe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.rwb-quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rwb-quote-body {
  font-size: 16px;
  line-height: 1.65;
  color: #1a202c;
}

/* Master Author Box at end of article */
.rwb-master-author-box {
  display: flex;
  gap: 20px;
  background: #fdfaf3;
  border: 1px solid #ebd9b0;
  border-radius: 10px;
  padding: 24px;
  margin-top: 50px;
  align-items: center;
}

.rwb-author-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eaddc0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid var(--rwb-gold);
}

.rwb-author-role {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rwb-terracotta);
  font-weight: 700;
}

.rwb-author-name {
  font-family: var(--rwb-font-serif);
  font-size: 20px;
  color: #111827;
  margin: 2px 0 6px;
}

.rwb-author-bio {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.rwb-author-explore-btn {
  display: inline-block;
  background: var(--rwb-terracotta);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.rwb-author-explore-btn:hover {
  background: var(--rwb-terracotta-dark);
}

/* Related Wisdom Section */
.rwb-related-wisdom-section {
  background: var(--rwb-bg-light);
  border-top: 1px solid var(--rwb-border);
  padding: 60px 0 80px;
  margin-top: 60px;
}

.rwb-related-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}

.rwb-related-title {
  font-family: var(--rwb-font-serif);
  font-size: 28px;
  color: #111827;
  margin: 0;
}

.rwb-view-all-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rwb-terracotta);
  text-decoration: none;
}

.rwb-view-all-link:hover { text-decoration: underline; }

/* Back to Top Floating Button */
.rwb-back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #374151;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s, transform 0.2s;
  z-index: 998;
}

.rwb-back-to-top-btn.is-visible {
  opacity: 0.9;
  visibility: visible;
}

.rwb-back-to-top-btn:hover {
  opacity: 1;
  background: #111827;
  transform: translateY(-2px);
}



/* Toast Message */
.rwb-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100000;
}

.rwb-toast.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   7. YOUTUBE VIDEO HUB & LIGHTBOX MODAL (Isha-Inspired)
   ========================================================================= */

.rwb-videos-hub-wrap {
  margin: 30px 0 60px;
}

/* Dual Language Tabs */
.rwb-video-lang-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.rwb-video-tab-btn {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #d1d5db;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rwb-video-tab-btn:hover {
  border-color: #c9a84c;
  color: #0d0f12;
  transform: translateY(-1px);
}

.rwb-video-tab-btn.is-active {
  background: #0d0f12;
  color: #c9a84c;
  border-color: #c9a84c;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2);
}

.rwb-tab-flag {
  font-size: 16px;
}

/* Video Cards & Play Overlay */
.rwb-video-thumb-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.rwb-video-thumb-wrap img {
  transition: transform 0.4s ease;
}

.rwb-video-card:hover .rwb-video-thumb-wrap img {
  transform: scale(1.05);
}

.rwb-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 15, 18, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.rwb-video-card:hover .rwb-play-overlay {
  opacity: 1;
  background: rgba(13, 15, 18, 0.4);
}

.rwb-play-circle {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.95);
  color: #0d0f12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rwb-video-card:hover .rwb-play-circle {
  transform: scale(1.12);
  background: #c9a84c;
}

.rwb-video-play-icon {
  margin-left: 2px;
}

/* Lightbox Modal */
.rwb-video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rwb-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(8px);
}

.rwb-video-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #0d0f12;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  z-index: 2;
  animation: rwbModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rwbModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rwb-video-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  font-size: 26px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.rwb-video-close:hover {
  background: #c9a84c;
  color: #0d0f12;
  transform: rotate(90deg);
}

.rwb-video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
}

.rwb-video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rwb-video-dialog-info {
  padding: 20px 24px 24px;
}

.rwb-video-dialog-info h3 {
  margin: 0 0 8px 0;
  color: #f5f0e8;
  font-family: var(--rwb-font-serif);
  font-size: 20px;
}

.rwb-video-dialog-info p {
  margin: 0;
  color: rgba(245, 240, 232, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================================
   7. HEADER NAVIGATION INTEGRATION
   ========================================================================= */

/* Ensure WISDOM tab remains clean white like other tabs, never gold */
.wp-block-navigation .wp-block-navigation-item.is-wisdom-active > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.is-wisdom-active > .wp-block-navigation-item__content span {
  color: #F5F6F8 !important;
}

/* =========================================================================
   8. LUXURY DROPDOWN SUBMENU FOR WISDOM & COURSE
   ========================================================================= */
.wp-block-navigation .wp-block-navigation__submenu-container,
.rwb-nav-dropdown-menu {
  background-color: #111418 !important;
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75) !important;
  padding: 6px 0 !important;
  min-width: 175px !important;
  z-index: 999999 !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.rwb-nav-dropdown-menu a {
  padding: 9px 18px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #e8dfd1 !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: color 0.15s, background-color 0.15s !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.rwb-nav-dropdown-menu a:hover {
  color: #c9a84c !important;
  background-color: rgba(201, 168, 76, 0.12) !important;
}

/* Show submenu smoothly on hover or when open class is active.
   NOTE: We deliberately DO NOT use :focus-within so the menu closes immediately when mouse leaves! */
.wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation-item.has-child.is-menu-open > .wp-block-navigation__submenu-container,
.rwb-nav-dropdown:hover > .rwb-nav-dropdown-menu,
.rwb-nav-dropdown.is-menu-open > .rwb-nav-dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
  margin-left: 5px !important;
  color: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
  stroke: currentColor !important;
  width: 10px !important;
  height: 10px !important;
}

/* =========================================================================
   9. FIX SUBMENU CLIPPING (Twenty Twenty-Five Cover Overflow Fix)
   ========================================================================= */
.wp-site-blocks > .wp-block-group:first-child,
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > header:first-child,
.wp-site-blocks > .wp-block-cover:first-child,
.wp-block-cover.alignfull.is-light,
.wp-block-cover,
.wp-block-cover__inner-container,
.wp-block-template-part[data-area="header"],
.wp-block-navigation,
.wp-block-navigation__container,
.wp-block-navigation-item {
  overflow: visible !important;
}

/* =========================================================================
   10. VIDEO PAGINATION ENGINE
   ========================================================================= */
.rwb-pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 20px;
  flex-wrap: wrap;
}

.rwb-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e5e9f0;
  background: #ffffff;
  color: #1a1e24;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rwb-pagination-btn:hover {
  border-color: #c9a84c;
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.06);
}

.rwb-pagination-btn.is-active {
  background: #c9a84c;
  color: #0d0f12;
  border-color: #c9a84c;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.rwb-pagination-btn:disabled,
.rwb-pagination-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================================
   11. QUOTES HUB (Adipara Luxury Style - Screenshot 3)
   ========================================================================= */
.rwb-quotes-hub-wrap {
  padding: 30px 0 60px;
}

.rwb-quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .rwb-quotes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .rwb-quotes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.rwb-quote-card {
  background: #ffffff;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 36px 32px 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rwb-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 168, 76, 0.5);
}

.rwb-quote-top-line {
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #f3e5b8, #c9a84c);
  border-radius: 0 0 3px 3px;
}

.rwb-quote-glyph {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: #c9a84c;
  margin-bottom: -10px;
  opacity: 0.9;
  user-select: none;
}

.rwb-quote-body {
  font-family: var(--rwb-font-serif);
  font-size: 20px;
  line-height: 1.6;
  color: #1a1e24;
  margin: 0 0 24px 0;
  font-style: italic;
}

.rwb-quote-body p {
  margin: 0;
}

.rwb-quote-author-wrap {
  margin-top: auto;
  padding-top: 16px;
}

.rwb-quote-author {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0d0f12;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.rwb-quote-source {
  font-size: 12.5px;
  color: #6b7280;
  display: block;
}

.rwb-quote-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding-top: 14px;
  margin-top: 18px;
  position: relative;
  min-height: 40px;
}

.rwb-quote-date {
  font-size: 12px;
  color: #8b95a5;
  font-weight: 500;
}