@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --rr-brown: #3d2314;
  --rr-brown-dark: #2a1810;
  --rr-gold: #c9a227;
  --rr-orange: #e85d04;
  --rr-cream: #f8f4ef;
  --rr-text: #4a4038;
}

body.theme-v5 {
  font-family: 'DM Sans', sans-serif;
  color: var(--rr-text);
}

body.theme-v5 .go-top {
  background: var(--rr-orange);
}

/* Header — uses header-2 markup; theme v5 accent on primary buttons */
body.theme-v5 .header-area.header-2 .btn-primary {
  background: var(--rr-orange) !important;
  border-color: var(--rr-orange) !important;
}

body.theme-v5 .header-area.header-2 .btn-primary:hover {
  background: #d45103 !important;
  border-color: #d45103 !important;
}

.rr-btn-primary {
  background: var(--rr-orange) !important;
  border-color: var(--rr-orange) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
}

.rr-btn-primary:hover {
  background: #d45103 !important;
  border-color: #d45103 !important;
}

.rr-btn-outline {
  border: 2px solid var(--rr-brown);
  color: var(--rr-brown);
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  background: transparent;
}

.rr-btn-outline:hover {
  background: var(--rr-brown);
  color: #fff;
}

/* Mega menu on theme v5 home */
body.theme-v5 .header-area.header-2 .mega-menu {
  z-index: 99999;
}

/* Category cards on chapter listing page (non-home) */
.rr-categories .rr-category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
}

.rr-categories .rr-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Hero */
.rr-hero {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  padding: 80px 0 120px;
  margin-top: 0;
}

.rr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 24, 12, 0.88) 0%, rgba(45, 24, 12, 0.45) 55%, rgba(45, 24, 12, 0.2) 100%);
}

.rr-hero .container {
  z-index: 2;
}

.rr-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.rr-hero-title span,
.rr-hero-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.rr-hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.rr-hero-search {
  max-width: 640px;
  margin-bottom: 32px;
}

.rr-search-inner {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.rr-search-select {
  border: none;
  padding: 14px 16px;
  min-width: 140px;
  background: #f5f5f5;
  font-size: 14px;
}

.rr-search-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  min-width: 180px;
  font-size: 14px;
}

.rr-search-btn-submit {
  border-radius: 0 !important;
  padding: 14px 28px !important;
  white-space: nowrap;
}

.rr-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}

.rr-hero-stat {
  color: #fff;
  text-align: left;
}

.rr-hero-stat i {
  font-size: 1.25rem;
  color: var(--rr-gold);
  display: block;
  margin-bottom: 4px;
}

.rr-hero-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.rr-hero-stat span {
  font-size: 13px;
  opacity: 0.85;
}

/* Features bar */
.rr-features-bar {
  margin-top: -48px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.rr-features-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.rr-feature-item {
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  border-right: 1px solid #eee;
}

.rr-feature-item:last-child {
  border-right: none;
}

.rr-feature-item i {
  font-size: 2rem;
  color: var(--rr-gold);
  margin-bottom: 12px;
}

.rr-feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rr-brown-dark);
  margin-bottom: 8px;
}

.rr-feature-item p {
  font-size: 13px;
  color: #777;
  margin: 0;
}

/* Sections */
.rr-section {
  padding: 70px 0;
}

.rr-section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rr-brown-dark);
}

.rr-section-head p {
  color: #777;
}

.rr-link-arrow {
  color: var(--rr-orange);
  font-weight: 600;
  text-decoration: none;
}

.rr-link-arrow:hover {
  color: var(--rr-brown);
}

/* Categories */
.rr-category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  background: #fff;
}

.rr-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.rr-category-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #5c3d2e, #8b5a3c);
}

.rr-category-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.35);
}

.rr-category-icon {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--rr-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  border: 3px solid #fff;
}

.rr-category-body {
  padding: 36px 20px 24px;
  text-align: center;
}

.rr-category-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rr-brown-dark);
  margin-bottom: 4px;
}

.rr-category-body span {
  font-size: 13px;
  color: #888;
}

/* Featured / course cards */
.rr-course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.rr-course-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.rr-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rr-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rr-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.rr-course-body {
  padding: 16px;
}

.rr-course-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.rr-course-body h3 a {
  color: var(--rr-brown-dark);
  text-decoration: none;
}

.rr-course-body h3 a:hover {
  color: var(--rr-orange);
}

.rr-course-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.rr-featured-pagination {
  margin-top: 24px;
  position: static !important;
}

/* Stats bar */
.rr-stats-bar {
  background: var(--rr-brown-dark);
  padding: 50px 0;
  color: #fff;
}

.rr-stat-block i {
  font-size: 2rem;
  color: var(--rr-gold);
  margin-bottom: 12px;
}

.rr-stat-block h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.rr-stat-block p {
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}

/* Articles */
.rr-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.rr-article-img {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.rr-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.rr-article-card:hover .rr-article-img img {
  transform: scale(1.05);
}

.rr-article-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--rr-brown);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.rr-article-body {
  padding: 18px;
}

.rr-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.rr-article-body h3 a {
  color: var(--rr-brown-dark);
  text-decoration: none;
}

.rr-article-body h3 a:hover {
  color: var(--rr-orange);
}

.rr-article-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* Membership CTA */
.rr-membership-cta {
  background: linear-gradient(135deg, var(--rr-brown-dark) 0%, #4a2c1a 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 0;
  position: relative;
}

.rr-membership-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 35, 20, 0.88) 0%, rgba(74, 44, 26, 0.85) 100%);
  pointer-events: none;
}

.rr-membership-cta[style*="background-image"] .rr-membership-cta-overlay {
  background: rgba(30, 18, 10, 0.72);
}

.rr-membership-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.rr-membership-cta p {
  opacity: 0.9;
  margin-bottom: 24px;
  color: #fff;
}

.rr-perk {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  height: 100%;
}

.rr-perk i {
  font-size: 1.5rem;
  color: var(--rr-gold);
  display: block;
  margin-bottom: 8px;
}

.rr-perk span {
  font-size: 13px;
}

.rr-cta-image {
  border-radius: 12px;
  max-height: 220px;
  object-fit: cover;
}

/* Footer */
.rr-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 60px 0 0;
}

.rr-footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.rr-footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
}

.rr-footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  text-decoration: none;
}

.rr-footer-social a:hover {
  background: var(--rr-orange);
}

.rr-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rr-footer-links li {
  margin-bottom: 10px;
}

.rr-footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.rr-footer-links a:hover {
  color: var(--rr-gold);
}

.rr-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.rr-footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.rr-footer-contact i {
  color: var(--rr-gold);
  margin-top: 3px;
}

.rr-footer-contact a {
  color: #aaa;
}

.rr-footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding: 20px 0;
  font-size: 13px;
  color: #888;
}

.rr-footer-brand img {
  max-height: 56px;
  margin-bottom: 12px;
}

/* Pricing / Join Business Network page */
body.theme-v5 .rr-pricing-page {
  background: var(--rr-cream);
  padding-top: 72px;
  padding-bottom: 88px;
}

body.theme-v5 .rr-pricing-intro__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--rr-brown-dark);
  margin-bottom: 12px;
}

body.theme-v5 .rr-pricing-intro__subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #6b5f54;
}

body.theme-v5 .rr-pricing-tabs .nav-tabs {
  background: #fff !important;
  border: 1px solid rgba(61, 35, 20, 0.12);
  box-shadow: 0 4px 24px rgba(42, 24, 16, 0.06);
  padding: 6px;
  display: inline-flex;
  gap: 4px;
}

body.theme-v5 .rr-pricing-tabs .nav-link {
  color: var(--rr-brown);
  font-weight: 600;
  border: none !important;
  padding: 10px 28px;
}

body.theme-v5 .rr-pricing-tabs .nav-link.active,
body.theme-v5 .rr-pricing-tabs .nav-link:hover {
  background: var(--rr-orange) !important;
  color: #fff !important;
}

body.theme-v5 .rr-pricing-page .rr-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(61, 35, 20, 0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(42, 24, 16, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.theme-v5 .rr-pricing-page .rr-plan-card::after {
  display: none;
}

body.theme-v5 .rr-pricing-page .rr-plan-card:hover,
body.theme-v5 .rr-pricing-page .rr-plan-card.active {
  transform: translateY(-8px);
  border-color: var(--rr-gold);
  box-shadow: 0 20px 48px rgba(42, 24, 16, 0.14);
}

body.theme-v5 .rr-pricing-page .rr-plan-card.active {
  border-width: 2px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__ribbon {
  position: absolute;
  top: 14px;
  right: -36px;
  z-index: 3;
  background: var(--rr-gold);
  color: var(--rr-brown-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.theme-v5 .rr-pricing-page .rr-plan-card__head {
  background: linear-gradient(145deg, var(--rr-brown-dark) 0%, var(--rr-brown) 100%);
  padding: 24px 22px 20px;
  margin: 0;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__head .icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__head .icon i {
  font-size: 1.35rem;
  color: var(--rr-gold);
}

body.theme-v5 .rr-pricing-page .rr-plan-card__head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__head .label span {
  display: none;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__price {
  padding: 22px 22px 8px;
  gap: 4px 8px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__price .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rr-brown-dark);
  line-height: 1;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__price .period {
  font-size: 0.95rem;
  font-weight: 500;
  color: #8a7b6f;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features-title {
  padding: 0 22px;
  margin: 8px 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rr-brown);
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features {
  flex: 1;
  margin: 0 22px;
  padding: 0 4px 0 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rr-gold) #f0ebe4;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features::-webkit-scrollbar {
  width: 5px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features::-webkit-scrollbar-thumb {
  background: var(--rr-gold);
  border-radius: 4px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features li {
  font-size: 13px;
  line-height: 1.45;
  padding: 7px 0;
  border-bottom: 1px solid #f2ede6;
  color: var(--rr-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features li:last-child {
  border-bottom: none;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features i {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(34, 139, 34, 0.12);
  color: #2d7a32 !important;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__features i.not-active {
  background: rgba(180, 60, 50, 0.1);
  color: #b43c32 !important;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__cta {
  padding: 18px 22px 24px;
  margin-top: auto;
}

body.theme-v5 .rr-pricing-page .rr-plan-card__cta .btn {
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 600;
}

body.theme-v5 .rr-pricing-page .rr-plan-card:hover :is(h3, .price, .period, h5, .item-list),
body.theme-v5 .rr-pricing-page .rr-plan-card.active :is(.price, .period, h5, .item-list) {
  color: inherit;
}

body.theme-v5 .rr-pricing-page .rr-plan-card:hover .rr-plan-card__head h3,
body.theme-v5 .rr-pricing-page .rr-plan-card.active .rr-plan-card__head h3 {
  color: #fff;
}

body.theme-v5 .rr-pricing-page .tab-content > .tab-pane > .row {
  --bs-gutter-y: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
  .rr-feature-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .rr-hero {
    padding: 60px 0 100px;
  }

  .rr-search-inner {
    flex-direction: column;
  }

  .rr-search-select,
  .rr-search-input,
  .rr-search-btn-submit {
    width: 100%;
    border-radius: 0 !important;
  }
}

@media (max-width: 767px) {
  .rr-hero-stats {
    gap: 16px;
  }

  .rr-features-bar {
    margin-top: -24px;
  }

  body.theme-v5 .rr-pricing-tabs .nav-link {
    padding: 8px 16px;
    font-size: 14px;
  }

  body.theme-v5 .rr-pricing-page .rr-plan-card__features {
    max-height: 240px;
  }
}

body.theme-v5 .footer-area {
  display: none;
}
