/* =============================================================================
   SOKRAB REDESIGN — rwandaarabic.com
   templates/itl_recycling/css/custom.css
   Auto-loaded by Helix Ultimate AFTER template.css / rtl.css / presets.
   RTL-first design system — Rwanda palette: deep greens, warm gold, near-white.
   Safe-by-design: no structural display:none, no repositioning of
   #sp-header / #sp-footer, off-canvas menu remains fully functional.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Rwanda-inspired palette */
  --rw-forest-950: #062A1E;
  --rw-forest-900: #0A3B2A;
  --rw-forest-800: #0E4A34;
  --rw-green-700:  #12805A;
  --rw-green-600:  #17936A;
  --rw-green-500:  #1FA878;
  --rw-green-100:  #DFF0E7;
  --rw-gold-600:   #B9861C;   /* AA-safe gold for text on light surfaces */
  --rw-gold-500:   #D9A82E;
  --rw-gold-400:   #E8C25A;   /* gold for on-dark accents */
  --rw-paper:      #FAFBF9;   /* near-white surface */
  --rw-mist:       #F2F6F2;
  --rw-ink:        #1C2A23;
  --rw-ink-soft:   #46564D;
  --rw-line:       #E3EAE4;

  /* Gradients */
  --rw-grad-green: linear-gradient(135deg, var(--rw-green-700) 0%, var(--rw-forest-900) 100%);
  --rw-grad-gold:  linear-gradient(135deg, var(--rw-gold-400) 0%, var(--rw-gold-600) 100%);
  --rw-grad-hero:  linear-gradient(200deg, rgba(6, 42, 30, 0.30) 0%, rgba(6, 42, 30, 0.55) 55%, rgba(6, 42, 30, 0.82) 100%);

  /* Typography */
  --rw-font-head: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  --rw-font-body: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;

  /* Shape & elevation */
  --rw-radius-sm: 10px;
  --rw-radius:    16px;
  --rw-radius-lg: 22px;
  --rw-shadow-sm: 0 2px 10px rgba(10, 59, 42, 0.08);
  --rw-shadow-md: 0 10px 30px rgba(10, 59, 42, 0.12);
  --rw-shadow-lg: 0 22px 55px rgba(10, 59, 42, 0.20);
  --rw-ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   2. BASE / TYPOGRAPHY (RTL-first)
   ------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--rw-font-body) !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: var(--rw-ink-soft);
  background-color: var(--rw-paper);
  letter-spacing: 0 !important;
}

/* Arabic must never carry Latin letter-spacing / uppercase styling */
h1, h2, h3, h4, h5, h6,
.sppb-addon-title, .sppb-addon-subtitle,
.sppb-media-heading, .sp-module-title,
.sppb-carousel-pro-text h2,
.sppb-carousel-pro-content,
.sppb-addon-article-title,
.sp-page-title h1, .sp-page-title h2, .sp-page-title h3,
.overlay-image-title, .sppb-blocknumber-text h3 {
  font-family: var(--rw-font-head) !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  line-height: 1.45;
  color: var(--rw-ink);
}

h1, h2, .sppb-addon-title { font-weight: 800; }

p { margin-block-end: 1rem; }

a {
  color: var(--rw-green-700);
  transition: color 0.25s var(--rw-ease);
}
a:hover { color: var(--rw-forest-900); }

*::selection {
  color: #ffffff;
  background: var(--rw-green-700);
}
*::-moz-selection {
  color: #ffffff;
  background: var(--rw-green-700);
}

img { border-radius: 0; }

/* Accessible focus — visible everywhere, on light and dark surfaces */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.sppb-btn:focus-visible {
  outline: 3px solid var(--rw-gold-500) !important;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle branded scrollbar (progressive enhancement) */
html { scrollbar-color: var(--rw-green-700) var(--rw-mist); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--rw-mist); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rw-green-700), var(--rw-forest-900));
  border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   3. HEADER — glassmorphism over the fixed Helix header
   (template.css sets #sp-header{position:fixed;background:rgba(0,0,0,.9)!important}
    — we only restyle the surface, never its position or flow)
   ------------------------------------------------------------------------- */
#sp-header {
  background: linear-gradient(180deg, rgba(6, 42, 30, 0.92) 0%, rgba(10, 59, 42, 0.88) 100%) !important;
  border-block-end: 1px solid rgba(232, 194, 90, 0.22);
  box-shadow: 0 6px 30px rgba(6, 42, 30, 0.35);
  transition: background 0.35s var(--rw-ease), box-shadow 0.35s var(--rw-ease);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  #sp-header {
    background: linear-gradient(180deg, rgba(6, 42, 30, 0.72) 0%, rgba(10, 59, 42, 0.62) 100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
  }
  #sp-header.header-sticky {
    background: linear-gradient(180deg, rgba(6, 42, 30, 0.86) 0%, rgba(10, 59, 42, 0.80) 100%) !important;
  }
}

#sp-header .logo-image,
#sp-header .logo-image-phone {
  max-height: 62px;
  width: auto;
  transition: transform 0.3s var(--rw-ease);
}
#sp-header .logo a:hover .logo-image { transform: scale(1.04); }

/* Desktop mega menu */
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
  font-family: var(--rw-font-head) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  position: relative;
  padding-block: 6px !important;
}

/* Animated gold underline (RTL-aware: grows from the inline-start) */
#sp-header .sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--rw-grad-gold);
  transform: scaleX(0);
  transform-origin: 100% 50%; /* right edge = inline start in RTL */
  transition: transform 0.3s var(--rw-ease);
}
#sp-header .sp-megamenu-parent > li > a:hover::after,
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li.current-item > a::after {
  transform: scaleX(1);
}
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current-item > a {
  color: var(--rw-gold-400) !important;
}

/* Dropdown panels — soft white glass cards */
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: rgba(250, 251, 249, 0.97);
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius-sm);
  box-shadow: var(--rw-shadow-lg);
  padding: 10px 0;
  overflow: hidden;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  #sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    background: rgba(250, 251, 249, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  font-family: var(--rw-font-body) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--rw-ink) !important;
  padding: 9px 22px;
  border-inline-start: 3px solid transparent;
  transition: all 0.25s var(--rw-ease);
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: var(--rw-green-700) !important;
  background: var(--rw-mist);
  border-inline-start-color: var(--rw-gold-500);
  padding-inline-start: 28px;
}

/* Burger icon — gold on hover, never hidden */
#sp-header .burger-icon > span {
  background-color: #ffffff;
  transition: background-color 0.25s var(--rw-ease);
}
#sp-header #offcanvas-toggler:hover .burger-icon > span,
#sp-header #offcanvas-toggler:focus .burger-icon > span {
  background-color: var(--rw-gold-400);
}

/* ---------------------------------------------------------------------------
   4. OFF-CANVAS MENU — recolor only (structure & behavior untouched)
   ------------------------------------------------------------------------- */
.offcanvas-menu {
  background: linear-gradient(160deg, var(--rw-forest-900) 0%, var(--rw-forest-950) 100%) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.35);
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li {
  border-block-end: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li a,
.offcanvas-menu .offcanvas-inner .sp-module ul > li span,
.offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--rw-font-head) !important;
  font-weight: 600;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li a:hover,
.offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a {
  color: var(--rw-gold-400) !important;
}
.offcanvas-menu .offcanvas-inner .sp-module ul > li a > .menu-toggler {
  color: var(--rw-gold-400) !important;
}
.offcanvas-menu .close-offcanvas {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 50%;
}
.offcanvas-menu .close-offcanvas:hover {
  background: var(--rw-gold-500) !important;
  color: var(--rw-forest-950) !important;
}

/* ---------------------------------------------------------------------------
   5. HERO CAROUSEL — cinematic gradient overlay + Arabic display type
   ------------------------------------------------------------------------- */
.sppb-carousel-pro .sppb-item.sppb-item-has-bg {
  position: relative;
  isolation: isolate;
}
.sppb-carousel-pro .sppb-item.sppb-item-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rw-grad-hero);
  z-index: 0;
  pointer-events: none;
}
.sppb-carousel-pro .sppb-carousel-item-inner {
  position: relative;
  z-index: 1;
}

/* Kill Latin styling injected inline (Raleway / uppercase / letter-spacing) */
.sppb-carousel-pro-text h2 {
  font-family: var(--rw-font-head) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--rw-gold-400) !important;
  text-shadow: 0 2px 18px rgba(6, 42, 30, 0.55);
}
.sppb-carousel-pro-text .sppb-carousel-pro-content {
  font-family: var(--rw-font-head) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
  text-shadow: 0 3px 24px rgba(6, 42, 30, 0.60);
}

/* Entrance motion for the active slide's text (pure CSS, ends fully visible) */
@keyframes rwHeroRise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sppb-carousel-pro .sppb-item.active .sppb-carousel-pro-text {
  animation: rwHeroRise 0.9s var(--rw-ease) both;
}

/* Carousel arrows — round glass buttons */
.sppb-carousel-pro .sppb-carousel-control {
  color: #ffffff !important;
  font-size: 22px !important;
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  transition: background 0.3s var(--rw-ease), color 0.3s var(--rw-ease);
}
.sppb-carousel-pro .sppb-carousel-control:hover {
  background: var(--rw-gold-500);
  color: var(--rw-forest-950) !important;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .sppb-carousel-pro .sppb-carousel-control {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* Indicators — gold pill for the active slide */
.sppb-carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  transition: all 0.3s var(--rw-ease);
}
.sppb-carousel-indicators li.active {
  width: 30px;
  background: var(--rw-gold-400);
}

/* ---------------------------------------------------------------------------
   6. BUTTONS — gradient, lift, gold ring
   ------------------------------------------------------------------------- */
.sppb-btn,
.sppb-btn-default,
.btn-primary,
button[type="submit"],
input[type="submit"] {
  font-family: var(--rw-font-head) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.sppb-btn-default,
.btn-primary,
button[type="submit"],
input[type="submit"] {
  color: #ffffff !important;
  background-color: var(--rw-green-700) !important;      /* fallback */
  background-image: var(--rw-grad-green) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 34px;
  box-shadow: 0 8px 22px rgba(10, 59, 42, 0.28);
  transition: transform 0.3s var(--rw-ease), box-shadow 0.3s var(--rw-ease), filter 0.3s var(--rw-ease);
}
.sppb-btn-default:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 59, 42, 0.38), 0 0 0 2px var(--rw-gold-500) inset;
  filter: brightness(1.06);
}
.sppb-btn-default:focus {
  color: #ffffff !important;
  background-color: var(--rw-forest-900) !important;
}
.sppb-btn-default:active { transform: translateY(-1px); }

/* Small link buttons (flip-box "read more" chips) */
.sppb-btn-link {
  color: var(--rw-gold-400) !important;
  font-weight: 700 !important;
  border-radius: 999px;
  transition: color 0.25s var(--rw-ease), background 0.25s var(--rw-ease);
}
.sppb-btn-link:hover {
  color: var(--rw-forest-950) !important;
  background: var(--rw-gold-400);
  padding-inline: 14px;
}

.sppb-readmore {
  color: var(--rw-gold-600);
  font-weight: 700;
}
.sppb-readmore:hover { color: var(--rw-forest-900); }

/* ---------------------------------------------------------------------------
   7. SECTION TITLES
   ------------------------------------------------------------------------- */
.sppb-addon-title { position: relative; }
.sppb-addon-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--rw-grad-gold);
  margin-block-start: 16px;
}
/* Center the accent bar under centered headings */
.sppb-text-center .sppb-addon-title::after { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   8. CARDS — flip boxes, article cards, overlay images, block numbers
   ------------------------------------------------------------------------- */

/* Flip boxes (destinations / investment sectors) — rounded faces + soft ring.
   NOTE: no transform/filter on the 3D parent — it would flatten the flip. */
.sppb-flipbox-front.flip-box,
.sppb-flipbox-back.flip-box,
.threeD-flip-front,
.threeD-flip-back {
  border-radius: var(--rw-radius);
  overflow: hidden;
  box-shadow: var(--rw-shadow-md);
}
.sppb-flipbox-front.flip-box::before,
.threeD-flip-front::before {
  background: linear-gradient(180deg, rgba(6, 42, 30, 0.10) 0%, rgba(6, 42, 30, 0.55) 100%) !important;
}
.sppb-flipbox-back.flip-box::before,
.threeD-flip-back::before {
  background: linear-gradient(160deg, rgba(10, 59, 42, 0.88) 0%, rgba(18, 128, 90, 0.82) 100%) !important;
}
.flip-box-inner h4 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(6, 42, 30, 0.55);
}
.flip-box-inner { padding-inline: 18px; }

/* Blog / latest-article cards on the home page */
.sppb-addon-article {
  background: #ffffff;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  overflow: hidden;
  box-shadow: var(--rw-shadow-sm);
  transition: transform 0.35s var(--rw-ease), box-shadow 0.35s var(--rw-ease), border-color 0.35s var(--rw-ease);
  height: 100%;
}
.sppb-addon-article:hover {
  transform: translateY(-8px);
  box-shadow: var(--rw-shadow-lg);
  border-color: rgba(217, 168, 46, 0.45);
}
.sppb-addon-article > a { display: block; overflow: hidden; }
.sppb-addon-article img.sppb-img-responsive {
  width: 100%;
  transition: transform 0.6s var(--rw-ease);
}
.sppb-addon-article:hover img.sppb-img-responsive { transform: scale(1.06); }
.sppb-addon-article .sppb-article-content-wrap {
  padding: 22px 24px 26px;
}
.sppb-addon-article-title {
  font-size: 1.15rem !important;
  line-height: 1.55 !important;
}
.sppb-addon-article-title a { color: var(--rw-ink) !important; }
.sppb-addon-article-title a:hover { color: var(--rw-green-700) !important; }
.sppb-article-introtext { color: var(--rw-ink-soft); }
.sppb-article-meta, .sppb-article-info-wrap {
  color: var(--rw-gold-600);
  font-size: 0.85rem;
}

/* Overlay-image feature tiles */
.sppb-addon-overlay-image {
  border-radius: var(--rw-radius-lg);
  overflow: hidden;
  box-shadow: var(--rw-shadow-md);
  transition: transform 0.35s var(--rw-ease), box-shadow 0.35s var(--rw-ease);
}
.sppb-addon-overlay-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--rw-shadow-lg);
}
.sppb-addon-overlay-image .overlay-background-style {
  background: linear-gradient(180deg, rgba(6, 42, 30, 0.15) 0%, rgba(6, 42, 30, 0.65) 100%) !important;
}
.overlay-image-title {
  color: #ffffff !important;
  font-weight: 800;
}

/* Block numbers (step counters) — gold badge numerals */
.sppb-blocknumber-number {
  font-family: var(--rw-font-head) !important;
  font-weight: 800;
  color: var(--rw-forest-950) !important;
  background: var(--rw-grad-gold);
  width: 58px;
  height: 58px;
  line-height: 58px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(185, 134, 28, 0.35);
}
.sppb-blocknumber .sppb-media-heading { font-weight: 700; }

/* Client / partner logos — gently desaturated until hover */
.sppb-addon-clients-image {
  filter: grayscale(60%);
  opacity: 0.85;
  border-radius: var(--rw-radius-sm);
  transition: filter 0.35s var(--rw-ease), opacity 0.35s var(--rw-ease), transform 0.35s var(--rw-ease);
}
.sppb-addon-clients-image:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px) scale(1.03) !important;
}

/* ---------------------------------------------------------------------------
   9. BLOG LIST + ARTICLE PAGES (com_content / Helix)
   ------------------------------------------------------------------------- */
.article-list .article {
  background: #ffffff;
  border: 1px solid var(--rw-line) !important;
  border-radius: var(--rw-radius) !important;
  overflow: hidden;
  box-shadow: var(--rw-shadow-sm);
  transition: transform 0.35s var(--rw-ease), box-shadow 0.35s var(--rw-ease), border-color 0.35s var(--rw-ease);
}
.article-list .article:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 168, 46, 0.45) !important;
  box-shadow: var(--rw-shadow-lg) !important;
}
.article-list .article .article-header h2 a { color: var(--rw-ink); font-weight: 700; }
.article-list .article .article-header h2 a:hover { color: var(--rw-green-700); }
.article-list .article .readmore a { color: var(--rw-gold-600); font-weight: 700; }

.article-details img { border-radius: var(--rw-radius); }
.article-details .article-header h1,
.article-details .article-header h2 { line-height: 1.5; }
.article-info, .article-info-term { color: var(--rw-gold-600); }

/* Inner page hero band */
.sp-page-title {
  position: relative;
  isolation: isolate;
}
.sp-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rw-grad-hero);
  z-index: 0;
  pointer-events: none;
}
.sp-page-title > * { position: relative; z-index: 1; }
.sp-page-title h2, .sp-page-title h3 {
  color: #ffffff !important;
  text-shadow: 0 3px 20px rgba(6, 42, 30, 0.55);
}

/* Pagination pills */
.pagination .page-link {
  border-radius: 999px !important;
  margin-inline: 3px;
  border: 1px solid var(--rw-line);
  color: var(--rw-green-700);
}
.pagination .page-item.active .page-link {
  background: var(--rw-grad-green);
  border-color: var(--rw-forest-900);
  color: #ffffff;
}

/* ---------------------------------------------------------------------------
   10. FORMS — rounded, calm, gold focus ring
   ------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"],
input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], textarea, select,
.form-control, .sppb-form-control {
  font-family: var(--rw-font-body) !important;
  background-color: #ffffff;
  border: 1.5px solid var(--rw-line);
  border-radius: var(--rw-radius-sm) !important;
  padding: 12px 16px;
  color: var(--rw-ink);
  box-shadow: none;
  transition: border-color 0.25s var(--rw-ease), box-shadow 0.25s var(--rw-ease);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="password"]:focus,
input[type="search"]:focus, textarea:focus, select:focus,
.form-control:focus, .sppb-form-control:focus {
  border-color: var(--rw-green-600);
  box-shadow: 0 0 0 4px rgba(31, 168, 120, 0.18);
  outline: none;
}
label { color: var(--rw-ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
   11. FOOTER — deep-green veil over the existing background image
   ------------------------------------------------------------------------- */
#sp-bottom {
  position: relative;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 70px 50px;
}
#sp-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(6, 42, 30, 0.94) 0%, rgba(10, 59, 42, 0.90) 55%, rgba(6, 42, 30, 0.96) 100%);
  z-index: 0;
  pointer-events: none;
}
#sp-bottom .container { position: relative; z-index: 1; }

#sp-bottom .sp-module-title {
  color: #ffffff !important;
  font-size: 1.15rem;
  font-weight: 800;
  margin-block-end: 22px;
  padding-block-end: 12px;
  position: relative;
}
#sp-bottom .sp-module-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--rw-grad-gold);
}
#sp-bottom a { color: rgba(255, 255, 255, 0.82) !important; }
#sp-bottom a:hover { color: var(--rw-gold-400) !important; }
#sp-bottom p, #sp-bottom li { color: rgba(255, 255, 255, 0.82); }
#sp-bottom strong { font-weight: 500; }

#sp-bottom .mod-list > li {
  padding-block: 7px;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}
#sp-bottom .latestnews > li > a > span { display: block; }
#sp-bottom .latestnews > li > a > span:last-child {
  font-size: 0.8rem;
  color: var(--rw-gold-400);
}

/* Footer mini gallery thumbs */
#sp-bottom .speasyimagegallery-gallery-item {
  border-radius: var(--rw-radius-sm);
  overflow: hidden;
  display: block;
}
#sp-bottom .speasyimagegallery-gallery-item img {
  border-radius: var(--rw-radius-sm);
  transition: transform 0.45s var(--rw-ease), filter 0.45s var(--rw-ease);
}
#sp-bottom .speasyimagegallery-gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Copyright strip */
#sp-footer {
  background: var(--rw-forest-950) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  border-block-start: 1px solid rgba(232, 194, 90, 0.18);
  padding-block: 18px;
  font-size: 0.9rem;
}
#sp-footer a { color: var(--rw-gold-400) !important; }
#sp-footer a:hover { color: #ffffff !important; }

/* Back-to-top control */
.sp-scroll-up {
  background: var(--rw-grad-green) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: var(--rw-shadow-md);
  transition: transform 0.3s var(--rw-ease), box-shadow 0.3s var(--rw-ease);
}
.sp-scroll-up:hover {
  transform: translateY(-4px);
  box-shadow: var(--rw-shadow-lg);
}

/* ---------------------------------------------------------------------------
   12. SCROLL-REVEAL SYSTEM
   Layer A (JS): body-inject.html adds .sk-js to <html>, tags targets with
     .sk-reveal and toggles .sk-in via IntersectionObserver.
     Without JS nothing is ever hidden — the page is fully readable.
   Layer B (pure CSS): scroll-driven progress bar, only where supported.
   ------------------------------------------------------------------------- */
html.sk-js .sk-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--rw-ease) var(--sk-delay, 0ms),
    transform 0.7s var(--rw-ease) var(--sk-delay, 0ms);
  will-change: opacity, transform;
}
html.sk-js .sk-reveal.sk-in {
  opacity: 1;
  transform: none;
}

/* Pure-CSS scroll progress bar under the fixed header (2026 flourish).
   Guarded: browsers without scroll-driven animations simply never show it. */
@supports (animation-timeline: scroll(root)) {
  @keyframes rwProgressGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  #sp-header::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -1px;
    width: 100%;
    height: 3px;
    background: var(--rw-grad-gold);
    transform-origin: 100% 50%; /* grows from inline-start in RTL */
    transform: scaleX(0);
    animation: rwProgressGrow linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}

/* ---------------------------------------------------------------------------
   13. RESPONSIVE REFINEMENTS — 375 / 768 / 1280
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body { font-size: 15.5px; }

  .sppb-carousel-pro-text h2 {
    font-size: 22px !important;
    line-height: 1.5 !important;
  }
  .sppb-carousel-pro-text .sppb-carousel-pro-content {
    font-size: 30px !important;
    line-height: 1.4 !important;
  }
  .sppb-carousel-pro .sppb-carousel-control {
    width: 42px; height: 42px; line-height: 42px; font-size: 18px !important;
  }

  .sppb-addon-title { font-size: 26px !important; line-height: 1.4 !important; }

  .sppb-btn-default { padding: 12px 26px; }

  .sppb-addon-article .sppb-article-content-wrap { padding: 18px 18px 22px; }

  /* Template forces heavy side padding on article pages at desktop only,
     but keep gutters comfortable on small screens anyway */
  .article-details { padding-inline: 0 !important; }

  #sp-bottom { padding-block: 50px 36px; }
  #sp-bottom .sp-module { margin-block-end: 30px; }

  #sp-header .logo-image-phone { max-height: 48px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sppb-carousel-pro-text .sppb-carousel-pro-content {
    font-size: 38px !important;
    line-height: 1.35 !important;
  }
  .article-details { padding-inline: 30px !important; }
}

@media (min-width: 1200px) {
  /* Comfortable reading measure on wide screens */
  .sppb-carousel-pro-text .sppb-carousel-pro-content { line-height: 1.35 !important; }
}

/* ---------------------------------------------------------------------------
   14. REDUCED MOTION — everything readable, nothing moving
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.sk-js .sk-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  #sp-header::after { animation: none !important; transform: scaleX(0); }
}

/* ---------------------------------------------------------------------------
   15. PRINT — keep it clean
   ------------------------------------------------------------------------- */
@media print {
  #sp-header, #sp-bottom, #sp-footer, .sp-scroll-up { box-shadow: none !important; }
  body { background: #ffffff; color: #000000; }
}
