/* ===== Rabwa custom styles ===== */
:root {
  --rb-primary: #0d4e6d;
  --rb-primary-2: #1a86a8;
  --rb-accent: #f59e0b;
  --rb-soft: #eef6f9;
  --rb-border: rgba(13, 78, 109, .12);
}
[data-bs-theme=dark] {
  --rb-soft: rgba(255, 255, 255, .03);
  --rb-border: rgba(255, 255, 255, .1);
}
.fs-13 { font-size: 13px; }
.rb-soft { background: var(--rb-soft); }
.rb-lead { max-width: 640px; font-size: 16px; line-height: 1.7; }
.rb-text-accent { color: var(--rb-primary-2); }
[data-bs-theme=dark] .rb-text-accent { color: #5cc3e4; }

/* preloader + logos */
.rb-preloader-logo { max-width: 120px; border-radius: 50%; }
.rb-footer-logo img { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: 50% !important; }

/* hero */
.rb-hero-title { line-height: 1.15; }
.rb-strip-title { color: var(--rb-primary); letter-spacing: .5px; }
.rb-pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 50px; font-weight: 600; font-size: 15px;
  background: var(--rb-soft); color: var(--rb-primary); border: 1px solid var(--rb-border);
}
[data-bs-theme=dark] .rb-pill { color: #cfe8f2; }
.rb-pill iconify-icon { font-size: 20px; }

/* section eyebrow */
.rb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 50px; font-size: 14px; font-weight: 600;
  background: rgba(13, 78, 109, .08); color: var(--rb-primary);
}
[data-bs-theme=dark] .rb-eyebrow { background: rgba(255, 255, 255, .08); color: #cfe8f2; }

/* categories */
.rb-cat {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  border: 1px solid var(--rb-border); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rb-cat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 78, 109, .12); border-color: var(--rb-primary-2); }
.rb-cat__icon {
  width: 52px; height: 52px; flex-shrink: 0; display: grid; place-content: center; border-radius: 14px;
  background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2)); color: #fff; font-size: 26px;
}

/* why choose */
.rb-why { padding: 32px; }
@media (min-width: 992px) { .rb-why { padding: 56px; } }
.rb-check {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-content: center; border-radius: 50%;
  background: rgba(13, 78, 109, .1); color: var(--rb-primary); font-size: 22px;
}
[data-bs-theme=dark] .rb-check { background: rgba(255, 255, 255, .08); color: #cfe8f2; }
.rb-why__media { position: relative; }
.rb-why__media > img:first-child { aspect-ratio: 4 / 3; object-fit: cover; }
.rb-why__seal {
  position: absolute; left: -24px; bottom: -24px; width: 120px; height: 120px;
  border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); animation: rbSpin 22s linear infinite;
}
@media (max-width: 575px) { .rb-why__seal { width: 90px; height: 90px; left: 8px; bottom: -20px; } }
@keyframes rbSpin { to { transform: rotate(360deg); } }
.rb-stat { padding: 18px 8px; border-radius: 14px; background: var(--rb-soft); height: 100%; }
.rb-stat iconify-icon { font-size: 26px; color: var(--rb-primary); margin-bottom: 6px; }
[data-bs-theme=dark] .rb-stat iconify-icon { color: #5cc3e4; }

/* course tabs */
.rb-tabs { gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; align-items: center; }
.rb-tabs::-webkit-scrollbar { display: none; }
.rb-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 20px; border-radius: 50px; border: 1px solid var(--rb-border);
  background: var(--bs-body-bg); color: var(--bs-heading-color); font-weight: 600; font-size: 15px; transition: .2s;
}
.rb-tab iconify-icon { font-size: 18px; }
.rb-tab:hover { border-color: var(--rb-primary-2); }
.rb-tab.active { background: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }

/* course cards */
.rb-course {
  display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--rb-border);
  transition: transform .25s, box-shadow .25s;
}
.rb-course:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(13, 78, 109, .14); }
.rb-course__img { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 3 / 2; }
.rb-course__img img { height: 100%; object-fit: cover; display: block; }
.rb-course__body { display: flex; flex-direction: column; flex-grow: 1; padding: 16px 6px 4px; }
.rb-course__title { min-height: 2.6em; line-height: 1.3; }
.rb-course__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rb-border);
  display: flex; justify-content: space-between; align-items: center;
}
.rb-badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: rgba(13, 78, 109, .1); color: var(--rb-primary);
}
[data-bs-theme=dark] .rb-badge { background: rgba(255, 255, 255, .08); color: #cfe8f2; }
.rb-more {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700;
  color: var(--rb-primary-2); text-decoration: none; transition: gap .2s;
}
.rb-course:hover .rb-more, .rb-more:hover { gap: 8px; }

/* blog */
.rb-post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rb-border); transition: transform .25s, box-shadow .25s; }
.rb-post:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(13, 78, 109, .14); }
.rb-post__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.rb-post__img img { height: 100%; object-fit: cover; transition: transform .4s; }
.rb-post:hover .rb-post__img img { transform: scale(1.05); }
.rb-post__tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 50px;
  background: var(--rb-primary); color: #fff; font-size: 12px; font-weight: 700;
}
.rb-post__body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.rb-post__title { line-height: 1.4; }
.rb-post__title:hover { color: var(--rb-primary-2) !important; }

/* faq */
.rb-faq { display: flex; flex-direction: column; gap: 12px; }
.rb-faq .rb-faq__item { border: 1px solid var(--rb-border) !important; border-radius: 14px !important; overflow: hidden; background: var(--bs-body-bg); }
.rb-faq .accordion-button { font-weight: 700; font-size: 16px; padding: 18px 22px; background: transparent; color: var(--bs-heading-color); box-shadow: none; }
.rb-faq .accordion-button:not(.collapsed) { color: var(--rb-primary); background: rgba(13, 78, 109, .05); }
[data-bs-theme=dark] .rb-faq .accordion-button:not(.collapsed) { color: #5cc3e4; }
.rb-faq .accordion-body { padding: 4px 22px 20px; font-size: 15px; line-height: 1.7; }
.rb-faq__contact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--rb-border); max-width: 380px; }

/* spacing + header fixes */
.rb-sec { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 992px) { .rb-sec { padding-top: 96px; padding-bottom: 96px; } }
.rb-login, .rb-login:hover { color: #fff !important; background: var(--rb-primary) !important; border-color: var(--rb-primary) !important; }
.logo__img { border-radius: 50%; }

/* header alignment */
.primary-header { padding-top: 10px; padding-bottom: 10px; }
.primary-header .container { align-items: center !important; min-height: 72px; }
.rb-logo { display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; height: 100px; }
.rb-logo__img { width: auto; max-width: 350px; height: 100px; object-fit: contain; display: block; }
.primary-header .navbar-nav { align-items: center; margin-top: auto; margin-bottom: auto; gap: 24px; }
.primary-header .nav-link { font-weight: 500; }
.primary-header .nav-link.active, .primary-header .nav-link:hover { color: var(--rb-primary) !important; font-weight: 700; }
.rb-header-actions .btn { padding: 10px 22px; border-radius: 8px; line-height: 1.2; }
@media (max-width: 991px) {
  .primary-header .navbar-toggler { display: flex; align-items: center; font-size: 28px; }
  .rb-logo { max-width: calc(100% - 60px); justify-content: flex-start; height: 85px; }
  .rb-logo__img { height: 85px; max-width: 100%; object-fit: contain; }
  .rb-header-actions { padding: 12px 0; display: flex; justify-content: center; }
}

/* testimonials */
.rb-testi { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--rb-border); }
.rb-stars { color: var(--rb-accent); letter-spacing: 2px; font-size: 18px; }
.rb-testi__quote { font-size: 64px; line-height: .6; font-family: Georgia, serif; color: var(--rb-primary-2); opacity: .35; height: 30px; }
.rb-testi__text { font-size: 15.5px; line-height: 1.75; }
.rb-testi__foot { border-top: 1px dashed var(--rb-border); }
.rb-testi__avatar {
  width: 48px; height: 48px; flex-shrink: 0; display: grid; place-content: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2)); color: #fff; font-weight: 700;
}
.rb-testi-nav {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rb-border);
  background: var(--bs-body-bg); color: var(--rb-primary); font-size: 20px; transition: .2s;
}
.rb-testi-nav:hover { background: var(--rb-primary); color: #fff; border-color: var(--rb-primary); }
.rb-testi-dots { position: static !important; text-align: center; }
.rb-testi-dots .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--rb-primary); opacity: .25; transition: .2s; }
.rb-testi-dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }

/* ===== Hero promise chips ===== */
.rb-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rb-hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 50px;
  font-size: 14px; font-weight: 600; background: var(--rb-soft); color: var(--rb-primary); border: 1px solid var(--rb-border);
}
.rb-hero-chip iconify-icon { font-size: 18px; color: var(--rb-primary-2); }
[data-bs-theme=dark] .rb-hero-chip { color: #cfe8f2; }

/* ===== Highlights grid ===== */
.rb-hl {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 22px;
  border: 1px solid var(--rb-border); border-radius: 16px; background: var(--bs-body-bg);
  transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.rb-hl::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--rb-primary), var(--rb-primary-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.rb-hl:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(13, 78, 109, .13); border-color: var(--rb-primary-2); }
.rb-hl:hover::after { transform: scaleX(1); }
.rb-hl__icon {
  width: 56px; height: 56px; display: grid; place-content: center; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2)); color: #fff; font-size: 28px;
  box-shadow: 0 8px 18px rgba(13, 78, 109, .22);
}
.rb-hl--accent .rb-hl__icon { background: linear-gradient(135deg, #d97706, var(--rb-accent)); box-shadow: 0 8px 18px rgba(245, 158, 11, .28); }
.rb-hl__title { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.rb-hl__text { font-size: 14px; line-height: 1.65; margin-bottom: 0; }

/* ===== Promise cards (No Homework + Refund) ===== */
.rb-promise {
  position: relative; height: 100%; padding: 32px 26px; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 992px) { .rb-promise { padding: 44px 40px; } }
.rb-promise--class { background: linear-gradient(140deg, var(--rb-primary) 0%, #11658c 55%, var(--rb-primary-2) 100%); color: #e6f3f8; }
.rb-promise--class::before, .rb-promise--class::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none;
}
.rb-promise--class::before { width: 260px; height: 260px; right: -90px; top: -90px; }
.rb-promise--class::after { width: 160px; height: 160px; right: 40px; bottom: -80px; }
.rb-promise--class h3, .rb-promise--class h4 { color: #fff; }
.rb-promise--refund { background: var(--bs-body-bg); border: 1px solid var(--rb-border); box-shadow: 0 14px 40px rgba(13, 78, 109, .08); }
.rb-promise--refund::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--rb-accent), #d97706);
}
.rb-promise__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; position: relative; z-index: 1; }
.rb-promise__icon {
  width: 68px; height: 68px; flex-shrink: 0; display: grid; place-content: center; border-radius: 20px; font-size: 36px;
}
.rb-promise--class .rb-promise__icon { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.rb-promise--refund .rb-promise__icon { background: rgba(245, 158, 11, .12); color: #d97706; }
.rb-promise__tag {
  display: inline-block; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; margin-bottom: 6px;
}
.rb-promise--class .rb-promise__tag { background: var(--rb-accent); color: #1f2937; }
.rb-promise--refund .rb-promise__tag { background: rgba(13, 78, 109, .1); color: var(--rb-primary); }
[data-bs-theme=dark] .rb-promise--refund .rb-promise__tag { background: rgba(255, 255, 255, .08); color: #cfe8f2; }
.rb-promise__title { font-size: 24px; line-height: 1.25; margin-bottom: 0; }
@media (min-width: 992px) { .rb-promise__title { font-size: 28px; } }
.rb-promise__text { font-size: 15.5px; line-height: 1.75; position: relative; z-index: 1; }
.rb-promise__list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.rb-promise__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; }
.rb-promise__list iconify-icon {
  flex-shrink: 0; width: 26px; height: 26px; display: grid; place-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; margin-top: 1px;
}
.rb-promise__big {
  display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 24px; position: relative; z-index: 1;
}
.rb-promise__big strong { font-size: 44px; line-height: 1; color: var(--rb-accent); font-weight: 800; }
.rb-promise__big span { font-size: 14px; line-height: 1.4; color: #e6f3f8; }

/* refund steps */
.rb-steps { list-style: none; padding: 0; margin: 8px 0 22px; display: grid; gap: 14px; }
@media (min-width: 576px) { .rb-steps { grid-template-columns: repeat(3, 1fr); } }
.rb-step { padding: 16px 14px; border-radius: 14px; background: var(--rb-soft); border: 1px solid var(--rb-border); height: 100%; }
.rb-step__num {
  width: 30px; height: 30px; display: grid; place-content: center; border-radius: 50%; margin-bottom: 10px;
  background: var(--rb-primary); color: #fff; font-size: 14px; font-weight: 700;
}
.rb-step:last-child .rb-step__num { background: var(--rb-accent); color: #1f2937; }
.rb-step h4 { font-size: 15px; margin-bottom: 4px; }
.rb-step p { font-size: 13px; line-height: 1.55; margin: 0; }
.rb-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6;
  background: rgba(245, 158, 11, .08); border: 1px dashed rgba(217, 119, 6, .4); margin-bottom: 22px;
}
.rb-note iconify-icon { font-size: 18px; color: #d97706; flex-shrink: 0; margin-top: 1px; }
.rb-promise__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.rb-btn-wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.rb-btn-wa:hover { background: #1ebe5b; border-color: #1ebe5b; }

/* ===== Floating WhatsApp button ===== */
.rb-wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 1080; display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.rb-wa-float__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-content: center;
  background: #25d366; box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .25s, box-shadow .25s;
}
.rb-wa-float__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: rbWaPulse 2.2s ease-out infinite;
}
.rb-wa-float__btn svg { width: 32px; height: 32px; fill: #fff; display: block; }
.rb-wa-float:hover .rb-wa-float__btn, .rb-wa-float:focus-visible .rb-wa-float__btn { transform: scale(1.08); box-shadow: 0 14px 30px rgba(37, 211, 102, .55); }
.rb-wa-float:focus-visible { outline: none; }
.rb-wa-float:focus-visible .rb-wa-float__btn { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.rb-wa-float__label {
  order: -1; padding: 9px 14px; border-radius: 10px; background: #fff; color: #1f2937; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14); white-space: nowrap; opacity: 0; transform: translateX(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.rb-wa-float:hover .rb-wa-float__label { opacity: 1; transform: translateX(0); }
@keyframes rbWaPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 767px) {
  .rb-wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .rb-wa-float__btn { width: 54px; height: 54px; }
  .rb-wa-float__btn svg { width: 29px; height: 29px; }
  .rb-wa-float__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rb-wa-float__btn::before { animation: none; } }
@media print { .rb-wa-float { display: none; } }
@media (max-width: 575px) {
  .rb-promise__head { align-items: flex-start; gap: 12px; }
  .rb-promise__icon { width: 52px; height: 52px; font-size: 28px; border-radius: 16px; }
  .rb-promise__title { font-size: 21px; }
  .rb-promise__cta .btn { flex: 1 1 100%; justify-content: center; }
  .rb-hero-chip { font-size: 13px; padding: 7px 12px; }
}

/* ===== Blue theme for promise cards (no orange) ===== */
.rb-promise--class .rb-promise__tag { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.rb-promise__big strong { color: #fff; }
.rb-promise--refund::before { background: linear-gradient(180deg, var(--rb-primary), var(--rb-primary-2)); }
.rb-promise--refund .rb-promise__icon { background: linear-gradient(135deg, var(--rb-primary), var(--rb-primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(13, 78, 109, .22); }
.rb-step:last-child .rb-step__num { background: var(--rb-primary-2); color: #fff; }
.rb-note { background: rgba(13, 78, 109, .05); border-color: rgba(13, 78, 109, .25); }
.rb-note iconify-icon { color: var(--rb-primary-2); }
[data-bs-theme=dark] .rb-note iconify-icon { color: #5cc3e4; }

/* ===== Background-autoplay YouTube cards ===== */
.rb-vbg { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.rb-vbg__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .5s; }
.rb-vbg .rb-yt, .rb-vbg iframe {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0;
  transform: translate(-50%, -50%) scale(1.15); pointer-events: none; z-index: 0;
}
.rb-vbg.is-playing .rb-vbg__poster { opacity: 0; pointer-events: none; }
.rb-vbg__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-content: center;
  background: rgba(13, 78, 109, .85); color: #fff; font-size: 30px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s, opacity .3s;
}
.rb-vbg__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.rb-vbg.is-playing .rb-vbg__play { opacity: 0; pointer-events: none; }
.rb-vbg__sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-content: center; font-size: 18px; cursor: pointer; transition: background .2s;
}
.rb-vbg__sound:hover { background: rgba(0, 0, 0, .8); }

/* ===== Background video (v2: no play button, video plays behind the card) ===== */
.rb-vbg__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  pointer-events: none; background: #000; display: none;
}
.rb-vbg.use-mp4 .rb-vbg__video { display: block; }
.rb-vbg.use-mp4 .rb-yt, .rb-vbg.use-mp4 iframe { display: none; }
.rb-vbg .rb-yt, .rb-vbg iframe { z-index: 1; }
.rb-vbg__play, .rb-vbg__poster { display: none !important; }

/* ===== Reel-style video cards (Watch Us in Action) ===== */
.rb-reel {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer;
  border-radius: 20px; overflow: hidden; background: #0b2e3f; text-align: left;
  box-shadow: 0 14px 34px rgba(13, 78, 109, .16); transition: transform .3s, box-shadow .3s;
}
.rb-reel:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(13, 78, 109, .24); }
.rb-reel:focus-visible { outline: 3px solid var(--rb-primary-2); outline-offset: 3px; }
.rb-reel__img, .rb-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .5s; }
.rb-reel__video { opacity: 0; pointer-events: none; }
.rb-reel.has-video .rb-reel__video { opacity: 1; }
.rb-reel:hover .rb-reel__img, .rb-reel:hover .rb-reel__video { transform: scale(1.05); }
.rb-reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 55%, rgba(8, 36, 52, .9) 100%);
}
.rb-reel__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 50px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.rb-reel__badge iconify-icon { font-size: 16px; color: #ff3d3d; }
.rb-reel__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; transform: translate(-50%, -50%);
  display: grid; place-content: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--rb-primary);
  font-size: 34px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); transition: transform .25s, background .25s, color .25s;
}
.rb-reel__play::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6);
  animation: rbReelRing 2s ease-out infinite;
}
@keyframes rbReelRing { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.rb-reel:hover .rb-reel__play { transform: translate(-50%, -50%) scale(1.1); background: var(--rb-primary); color: #fff; }
.rb-reel__title {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: 16px;
  line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 575px) {
  .rb-reel { border-radius: 16px; }
  .rb-reel__play { width: 50px; height: 50px; font-size: 28px; }
  .rb-reel__title { font-size: 13.5px; left: 12px; right: 12px; bottom: 12px; }
  .rb-reel__badge { top: 8px; right: 8px; font-size: 11px; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) { .rb-reel__play::before { animation: none; } }

/* video popup */
.rb-vmodal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.rb-vmodal.is-open { display: flex; }
.rb-vmodal__backdrop { position: absolute; inset: 0; background: rgba(5, 20, 30, .85); backdrop-filter: blur(4px); }
.rb-vmodal__box {
  position: relative; z-index: 1; height: min(86vh, 760px); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.rb-vmodal__frame, .rb-vmodal__frame iframe, .rb-vmodal__frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.rb-vmodal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 22px; display: grid; place-content: center; cursor: pointer;
}
.rb-vmodal__close:hover { background: var(--rb-primary); }
@media (max-width: 575px) { .rb-vmodal { padding: 12px; } .rb-vmodal__box { height: auto; width: 100%; } }

/* ===== Inline autoplay video cards (v3) ===== */
.rb-vbg { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.rb-vbg__thumb, .rb-vbg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-vbg__thumb { z-index: 0; }
.rb-vbg__video { z-index: 1; display: none; pointer-events: none; }
.rb-vbg.mode-mp4 .rb-vbg__video { display: block; }
.rb-vbg .rb-vbg__yt {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0; z-index: 1; display: none;
  transform: translate(-50%, -50%) scale(1.15); pointer-events: none;
}
.rb-vbg.mode-yt .rb-vbg__yt { display: block; }
.rb-vbg__open {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: none;
  align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; white-space: nowrap;
  background: #ff0033; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none;
}
.rb-vbg.mode-link .rb-vbg__open { display: inline-flex; }
.rb-vbg.mode-link .rb-vbg__sound { display: none; }
.rb-vbg__sound { z-index: 4; }

/* ===== Watch Us – autoplay preview cards (final) ===== */
.rb-watch {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.rb-watch__card {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b2e3f;
  border: 5px solid #fff; box-shadow: 0 14px 34px rgba(13, 78, 109, .16); transition: transform .3s, box-shadow .3s;
  isolation: isolate;
}
[data-bs-theme=dark] .rb-watch__card { border-color: rgba(255, 255, 255, .08); }
.rb-watch__card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(13, 78, 109, .24); }
.watch-us-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0;
  pointer-events: none; background: #0b2e3f;
}
/* YouTube preview (used only when no MP4 file): cropped so no YouTube controls/branding show */
.rb-watch__yt { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .6s; }
.rb-watch__yt iframe {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0;
  transform: translate(-50%, -50%) scale(1.35); pointer-events: none;
}
.rb-watch__card.yt-ready .rb-watch__yt { opacity: 1; }
.rb-watch__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(8, 36, 52, .85) 100%);
}
.rb-watch__title {
  position: absolute; left: 14px; right: 56px; bottom: 16px; z-index: 3; color: #fff; font-weight: 700; font-size: 15px;
  line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-watch__sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 4; width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-content: center; font-size: 18px; color: #fff; background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px); cursor: pointer; transition: background .2s;
}
.rb-watch__sound:hover, .rb-watch__sound[data-on="1"] { background: var(--rb-primary); }
.rb-watch__card.no-sound .rb-watch__sound { display: none; }

/* tablet: 2 + 2 */
@media (max-width: 991px) and (min-width: 768px) { .rb-watch { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin: 0 auto; } }
/* mobile: swipe carousel, no page overflow */
@media (max-width: 767px) {
  .rb-watch {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 6px calc(var(--bs-gutter-x, 1.5rem) * .5) 14px;
    scrollbar-width: none;
  }
  .rb-watch::-webkit-scrollbar { display: none; }
  .rb-watch__card { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; border-radius: 18px; border-width: 4px; }
  .rb-watch__card:hover { transform: none; }
}
@media (max-width: 767px) { html, body { overflow-x: clip; } }

/* YouTube plays directly inside the card */
.rb-watch__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rb-watch__yt { opacity: 1 !important; }
.rb-watch__card.is-local .rb-watch__yt { display: none; }
