/* =========================================================
   RSB.ir - rsb_ theme custom overrides
   شرکت راهبری صنایع بهساز
   ========================================================= */

/* Use Iran Sans as primary font everywhere */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, input, button, .form-control {
    font-family: "primary-font", "Iran Sans", IRANSans, Tahoma, sans-serif !important;
}

/* Numbers stay readable */
.ltr-text { direction: ltr; display: inline-block; }

/* Header logo sizing + fancy effects */
.header-logo img { max-height: 60px; width: auto; }
/* Constrain logo width without clipping */
.header-logo { max-width: 220px; }
.header-logo img { max-width: 100%; height: auto; object-fit: contain; }

/* ===== Fancy header logo ===== */
.rsb-header-logo {
    border: none !important;
    outline: none !important;
    background: transparent;
    /* Subtle white glow + soft shadow for depth */
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 10px rgba(0, 136, 204, 0.3))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.4s ease, transform 0.4s ease, max-height 0.3s ease, max-width 0.3s ease;
    border-radius: 6px;
    padding: 2px 6px;
}
/* Hover: stronger glow + slight scale-up */
.header-logo a:hover .rsb-header-logo,
.rsb-header-logo:hover {
    filter:
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.9))
        drop-shadow(0 0 18px rgba(0, 136, 204, 0.5))
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}
/* Sticky header (smaller logo) — shrink proportionally, no clipping */
#header.sticky-header-active .header-logo { max-width: 160px; }
#header.sticky-header-active .rsb-header-logo {
    max-height: 46px !important;
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.7))
        drop-shadow(0 0 8px rgba(0, 136, 204, 0.25))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}
/* ===== End fancy header logo ===== */

/* ===== Fancy footer logo ===== */
.rsb-footer-logo-card { border-radius: 8px; transition: box-shadow 0.4s ease, transform 0.4s ease; }
.rsb-footer-logo-card:hover { box-shadow: 0 8px 24px rgba(0,136,204,0.2); transform: translateY(-3px); }
.rsb-footer-logo {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    transition: filter 0.4s ease;
}
.rsb-footer-logo-card:hover .rsb-footer-logo {
    filter: drop-shadow(0 0 8px rgba(0,136,204,0.3)) drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

/* Smooth sticky header */
#header .header-body { transition: box-shadow .3s ease; }

/* Page header banner (inner pages) */
.rsb-page-header {
    background: linear-gradient(135deg, #0088cc 0%, #0056b3 100%);
    color: #fff;
    padding: 60px 0 50px;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.rsb-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../rsb_/img/patterns/az_subtle.png') repeat;
    opacity: .08;
    pointer-events: none;
}
.rsb-page-header h1 { color: #fff; font-weight: 700; margin: 0; }
.rsb-page-header .breadcrumb { background: transparent; padding: 0; margin-top: 10px; }
.rsb-page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.rsb-page-header .breadcrumb .active { color: #fff; }
.rsb-page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* Section spacing */
.rsb-section { padding: 70px 0; }
.rsb-section-head { margin-bottom: 40px; }
.rsb-section-head h2 { font-weight: 700; }
.rsb-kicker {
    display: inline-block;
    color: #0088cc;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Service / feature cards */
.rsb-feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.rsb-feature-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-4px); }
.rsb-feature-card .rsb-feature-img { position: relative; overflow: hidden; }
.rsb-feature-card .rsb-feature-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.rsb-feature-card:hover .rsb-feature-img img { transform: scale(1.05); }
.rsb-feature-card .rsb-feature-body { padding: 22px; }
.rsb-feature-card .rsb-feature-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.rsb-feature-card .rsb-feature-eyebrow {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,136,204,.92); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600;
}

/* News cards (home carousel) */
.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.news-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-4px); }
.news-card .news-img-wrapper { position: relative; display: block; overflow: hidden; }
.news-card .news-img-wrapper img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-img-wrapper img { transform: scale(1.05); }
.news-card .news-meta-badges {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff; font-size: .8rem;
}
.news-card .news-meta-badges .meta-badge i { margin-left: 4px; }
.news-card .latest-ribbon {
    position: absolute; top: 12px; right: 12px;
    background: #e74c3c; color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.news-card .news-content { padding: 20px; }
.news-card .news-title { font-size: 1.05rem; font-weight: 700; color: #222; margin-bottom: 8px; }
.news-card .news-desc { color: #666; font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }
.news-card .btn-read-more { color: #0088cc; font-weight: 600; font-size: .9rem; }
.news-card .btn-read-more:hover { color: #0056b3; }
.news-card .btn-read-more i { margin-right: 4px; }

/* Stats counter row */
.rsb-stats { background: #f5f8fb; padding: 50px 0; }
.rsb-stats .stat-item { text-align: center; }
.rsb-stats .stat-item strong { display: block; font-size: 2.5rem; font-weight: 800; color: #0088cc; }
.rsb-stats .stat-item span { color: #666; }

/* Customer logos */
.rsb-customer-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.rsb-customer-grid a {
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 18px 28px; display: flex; align-items: center; justify-content: center;
    transition: box-shadow .25s ease; min-width: 160px; height: 90px;
}
.rsb-customer-grid a:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.rsb-customer-grid a img { max-height: 60px; max-width: 140px; }

/* Content typography for inner pages */
.rsb-content { line-height: 2; font-size: 1rem; color: #333; }
.rsb-content h2 { font-weight: 700; margin-top: 1.5em; margin-bottom: .6em; color: #0056b3; }
.rsb-content h3 { font-weight: 700; margin-top: 1.2em; margin-bottom: .5em; }
.rsb-content p { margin-bottom: 1.1em; }
.rsb-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.rsb-content ul { padding-right: 1.5em; margin-bottom: 1.1em; }
.rsb-content li { margin-bottom: .5em; }

/* ===== Revolution Slider — slide overlay (rsb_ original) ===== */
.slide-overlay:before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.slide-overlay-primary:before {
    background: rgba(0, 136, 204, 0.35);
}

/* ===== Service landing page ===== */
.rsb-service-hero { background: linear-gradient(135deg, #0088cc 0%, #0056b3 100%); color: #fff; padding: 70px 0; }
.rsb-service-hero h1 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.rsb-service-hero .hero-badge { display:inline-block; background:rgba(255,255,255,.18); padding:6px 16px; border-radius:20px; font-size:.85rem; font-weight:600; margin-bottom:18px; }
.rsb-service-hero p { color: rgba(255,255,255,.92); line-height: 2; }
.rsb-hero-highlights { display:flex; flex-wrap:wrap; gap:16px; margin-top:28px; }
.rsb-hero-highlights .hh-card { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:10px; padding:16px 20px; min-width:140px; }
.rsb-hero-highlights .hh-card strong { display:block; font-size:1.6rem; font-weight:800; }
.rsb-hero-highlights .hh-card span { font-size:.85rem; opacity:.9; }
.rsb-service-slider img { width:100%; height:380px; object-fit:cover; border-radius:10px; }

.rsb-step-card { background:#fff; border:1px solid #eee; border-radius:10px; padding:24px; height:100%; transition:box-shadow .25s ease, transform .25s ease; }
.rsb-step-card:hover { box-shadow:0 12px 30px rgba(0,0,0,.12); transform:translateY(-4px); }
.rsb-step-card .step-num { width:44px; height:44px; border-radius:50%; background:#0088cc; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:14px; }
.rsb-step-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:8px; }
.rsb-step-card p { color:#666; font-size:.92rem; line-height:1.8; margin:0; }

.rsb-svc-icon { width:54px; height:54px; border-radius:12px; background:#e6f2fb; color:#0088cc; display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:14px; }

.rsb-brand-chips { display:flex; flex-wrap:wrap; gap:12px; }
.rsb-brand-chips span { background:#f5f8fb; border:1px solid #e2e8f0; border-radius:30px; padding:10px 22px; font-weight:600; color:#0056b3; }

.rsb-trust-box { background:#f5f8fb; border-radius:12px; padding:40px; text-align:center; }
.rsb-trust-box .trust-logos { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin:24px 0; }
.rsb-trust-box .trust-logos img { max-height:70px; background:#fff; padding:14px 22px; border-radius:8px; border:1px solid #eee; }
.rsb-contract-parties { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:20px; }
.rsb-contract-parties span { background:#fff; border:1px solid #e2e8f0; border-radius:6px; padding:8px 16px; font-size:.9rem; color:#444; }

/* Back to top */
.scroll-to-top { display: none; }

/* =========================================================
   3D GLASS SLIDER — Revolution Slider enhancement
   Glassmorphism + 3D depth + animated graphics
   ========================================================= */

/* ---- Glass base ---- */
.rsb-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    padding: 28px 36px !important;
}
.rsb-glass-dark {
    background: rgba(0, 20, 50, 0.35) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(0, 136, 204, 0.25) !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 28px 36px !important;
}
.rsb-glass-badge {
    background: rgba(0, 136, 204, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 136, 204, 0.4) !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3) !important;
}
.rsb-glass-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.8), transparent) !important;
    border: none !important;
    border-radius: 2px !important;
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.5) !important;
}
.rsb-glass-orb {
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, rgba(0, 136, 204, 0.35), rgba(0, 136, 204, 0.05) 60%, transparent) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 136, 204, 0.15) !important;
    box-shadow: 0 0 40px rgba(0, 136, 204, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
}
.rsb-glass-orb-light {
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 60%, transparent) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ---- Slider overlay gradients (richer) ---- */
.slide-overlay-glass:before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 20, 50, 0.55) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 136, 204, 0.2) 100%);
    z-index: 1;
}
.slide-overlay-glass-primary:before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 30, 70, 0.5) 0%, rgba(0, 136, 204, 0.25) 60%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}
.slide-overlay-glass-warm:before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(160deg, rgba(20, 10, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(80, 40, 0, 0.15) 100%);
    z-index: 1;
}

/* ---- Animated glow text ---- */
.rsb-glow-text {
    text-shadow:
        0 0 20px rgba(0, 136, 204, 0.6),
        0 0 40px rgba(0, 136, 204, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
}
.rsb-glow-text-gold {
    text-shadow:
        0 0 20px rgba(255, 200, 80, 0.5),
        0 0 40px rgba(255, 180, 60, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* ---- 3D floating animation for decorative orbs ---- */
@keyframes rsb-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
}
@keyframes rsb-float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(15px) scale(1.05); }
}
@keyframes rsb-pulse-glow {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 30px rgba(0, 136, 204, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 60px rgba(0, 136, 204, 0.4); }
}
.rsb-anim-float { animation: rsb-float 6s ease-in-out infinite; }
.rsb-anim-float-slow { animation: rsb-float-slow 8s ease-in-out infinite; }
.rsb-anim-pulse { animation: rsb-pulse-glow 4s ease-in-out infinite; }

/* ---- Slider navigation enhancement (glass bullets/arrows) ---- */
.rev_slider .tparrows {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}
.rev_slider .tparrows:hover {
    background: rgba(0, 136, 204, 0.4) !important;
    border-color: rgba(0, 136, 204, 0.6) !important;
    box-shadow: 0 4px 30px rgba(0, 136, 204, 0.4) !important;
    transform: scale(1.1) !important;
}
.rev_slider .tp-bullets.bullets-style-1 .tp-bullet {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}
.rev_slider .tp-bullets.bullets-style-1 .tp-bullet.selected,
.rev_slider .tp-bullets.bullets-style-1 .tp-bullet:hover {
    background: rgba(0, 136, 204, 0.7) !important;
    border-color: rgba(0, 136, 204, 0.9) !important;
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.5) !important;
    transform: scale(1.25) !important;
}

/* ---- Slider container 3D perspective ---- */
.slider-container.rev_slider_wrapper {
    perspective: 1600px;
    perspective-origin: center center;
}

/* ---- Glass product card (slide 6) ---- */
.rsb-glass-product {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    overflow: hidden;
}
.rsb-glass-product img {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ---- Decorative gradient strip ---- */
.rsb-gradient-strip {
    height: 3px;
    background: linear-gradient(90deg, #0088cc, #00d4ff, #0088cc) !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
}

/* ---- Ken Burns subtle zoom for backgrounds ---- */
@keyframes rsb-kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}
.rsb-kenburns {
    animation: rsb-kenburns 12s ease-out forwards !important;
}

/* ============================================================
   RSB HERO CAROUSEL (lightweight, replaces Revolution Slider)
   Vanilla CSS+JS - no jQuery, no themepunch, no rAF loop
   Fancy: per-slide accent colors, gradient shimmer title,
   animated dividers, glow pulses, floating product photos
   ============================================================ */

/* ---- Per-slide accent palettes ---- */
.rsb-hero--blue{--c1:#4da6ff;--c2:#0066cc;--c-glow:rgba(77,166,255,.5)}
.rsb-hero--cyan{--c1:#00e5ff;--c2:#0097a7;--c-glow:rgba(0,229,255,.5)}
.rsb-hero--green{--c1:#69f0ae;--c2:#00c853;--c-glow:rgba(105,240,174,.5)}
.rsb-hero--gold{--c1:#ffd54f;--c2:#ff9800;--c-glow:rgba(255,213,79,.5)}
.rsb-hero--teal{--c1:#4db6ac;--c2:#00796b;--c-glow:rgba(77,182,172,.5)}
.rsb-hero--purple{--c1:#b39ddb;--c2:#7b1fa2;--c-glow:rgba(179,157,219,.5)}
.rsb-hero--red{--c1:#ff5252;--c2:#b71c1c;--c-glow:rgba(255,82,82,.5)}
/* Fallback (no accent class) */
.rsb-hero__slide{--c1:#4da6ff;--c2:#0066cc;--c-glow:rgba(77,166,255,.5)}

/* ---- Container ---- */
.rsb-hero{
  position:relative;width:100%;height:670px;overflow:hidden;
  background:#0a1a2a;direction:rtl;
}
.rsb-hero__viewport{position:absolute;inset:0}

/* ---- Slides ---- */
.rsb-hero__slide{
  position:absolute;inset:0;margin:0;opacity:0;
  transition:opacity 1.8s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
}
.rsb-hero__slide.is-active{opacity:1;pointer-events:auto}

/* ---- Background with Ken Burns zoom ---- */
.rsb-hero__bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;
  transform:scale(1.12);
  transition:transform 8s ease-out;
  will-change:transform;
}
.rsb-hero__slide.is-active .rsb-hero__bg{transform:scale(1)}

/* ---- Overlay with accent tint ---- */
.rsb-hero__overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at center,transparent 0%,rgba(8,22,40,.45) 100%),
    linear-gradient(180deg,rgba(8,22,40,.5) 0%,rgba(8,22,40,.25) 35%,rgba(8,22,40,.75) 100%);
}
.rsb-hero--gold .rsb-hero__overlay{
  background:
    radial-gradient(ellipse at center,rgba(40,20,0,.15) 0%,rgba(20,10,0,.65) 100%),
    linear-gradient(180deg,rgba(20,10,0,.45) 0%,rgba(20,10,0,.2) 35%,rgba(20,10,0,.7) 100%);
}

/* ---- Floating product photos with puzzle-piece reveal ---- */
.rsb-hero__photos{position:absolute;inset:0;z-index:1;pointer-events:none}
.rsb-hero__photo{
  position:absolute;
  opacity:0;
  /* Hidden state: clipped to nothing + offset */
  clip-path:inset(0 0 100% 0);
}
.rsb-hero__photo img{
  width:220px;height:auto;border-radius:14px;display:block;
  box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 0 3px rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.15);
}
/* Positions */
.rsb-hero__photo--tl{top:40px;right:40px}
.rsb-hero__photo--rc{top:50%;left:40px}
.rsb-hero__photo--bl{bottom:80px;right:40px}
.rsb-hero__photo--tr{top:40px;left:40px}

/* Puzzle reveal: each position slides in smoothly from a different direction
   with a clip-path wipe, then gently floats. Longer duration + smoother easing
   for a calm, elegant reveal. Delay 1.5s so slide text appears first. */
.rsb-hero__slide.is-active .rsb-hero__photo--tl{
  animation:rsbPuzzleTL 2.5s cubic-bezier(.22,.61,.36,1) 1.5s forwards,
            rsbFloatTL 8s ease-in-out infinite 4s;
}
.rsb-hero__slide.is-active .rsb-hero__photo--rc{
  animation:rsbPuzzleRC 2.5s cubic-bezier(.22,.61,.36,1) 1.8s forwards,
            rsbFloatRC 8s ease-in-out infinite 4.3s;
}
.rsb-hero__slide.is-active .rsb-hero__photo--bl{
  animation:rsbPuzzleBL 2.5s cubic-bezier(.22,.61,.36,1) 1.7s forwards,
            rsbFloatBL 8s ease-in-out infinite 4.2s;
}
.rsb-hero__slide.is-active .rsb-hero__photo--tr{
  animation:rsbPuzzleTR 2.5s cubic-bezier(.22,.61,.36,1) 2s forwards,
            rsbFloatTR 8s ease-in-out infinite 4.5s;
}

/* Puzzle reveal keyframes - smooth slide in from edge + clip-path wipe
   No bounce overshoot, just smooth ease-out settle */
@keyframes rsbPuzzleTL{
  0%  {opacity:0;clip-path:inset(0 100% 100% 0);transform:translateX(80px) translateY(-60px) rotate(8deg) scale(.7)}
  100%{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0) translateY(0) rotate(0) scale(1)}
}
@keyframes rsbPuzzleRC{
  0%  {opacity:0;clip-path:inset(0 0 100% 0);transform:translateX(-80px) translateY(-50%) rotate(-8deg) scale(.7)}
  100%{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0) translateY(-50%) rotate(0) scale(1)}
}
@keyframes rsbPuzzleBL{
  0%  {opacity:0;clip-path:inset(100% 0 0 0);transform:translateX(80px) translateY(60px) rotate(8deg) scale(.7)}
  100%{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0) translateY(0) rotate(0) scale(1)}
}
@keyframes rsbPuzzleTR{
  0%  {opacity:0;clip-path:inset(0 0 100% 100%);transform:translateX(-80px) translateY(-60px) rotate(-8deg) scale(.7)}
  100%{opacity:1;clip-path:inset(0 0 0 0);transform:translateX(0) translateY(0) rotate(0) scale(1)}
}

/* Gentle floating after puzzle reveal completes */
@keyframes rsbFloatTL{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-14px) rotate(1deg)}}
@keyframes rsbFloatRC{0%,100%{transform:translateY(-50%) translateX(0) rotate(1deg)}50%{transform:translateY(calc(-50% - 12px)) translateX(8px) rotate(-1deg)}}
@keyframes rsbFloatBL{0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-14px) rotate(-1deg)}}
@keyframes rsbFloatTR{0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-14px) rotate(-1deg)}}

/* ---- Caption container ---- */
.rsb-hero__caption{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:#fff;padding:24px;
  max-width:1100px;margin:0 auto;
}

/* ---- Eyebrow row with decorative dividers ---- */
.rsb-hero__eyebrow-row{
  display:flex;align-items:center;gap:16px;margin-bottom:18px;
  opacity:0;transform:translateY(20px);
  transition:opacity 1.2s cubic-bezier(.22,.61,.36,1) .3s,transform 1.2s cubic-bezier(.22,.61,.36,1) .3s;
}
.rsb-hero__slide.is-active .rsb-hero__eyebrow-row{opacity:1;transform:translateY(0)}
.rsb-hero__divider{
  display:block;height:2px;width:0;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--c1),var(--c2));
  box-shadow:0 0 8px var(--c-glow);
  transition:width 1.4s cubic-bezier(.22,.61,.36,1) .6s;
}
.rsb-hero__slide.is-active .rsb-hero__divider{width:60px}
.rsb-hero__eyebrow{
  font-size:clamp(14px,1.8vw,19px);font-weight:600;letter-spacing:1px;
  color:#fff;white-space:nowrap;
  padding:7px 24px;
  border:1px solid var(--c1);
  border-radius:30px;
  backdrop-filter:blur(6px);
  background:rgba(255,255,255,.07);
  box-shadow:0 0 20px var(--c-glow),inset 0 0 12px rgba(255,255,255,.05);
  text-shadow:0 0 12px var(--c-glow);
  animation:rsbEyebrowPulse 6s ease-in-out infinite 1.5s;
}
@keyframes rsbEyebrowPulse{
  0%,100%{box-shadow:0 0 20px var(--c-glow),inset 0 0 12px rgba(255,255,255,.05)}
  50%{box-shadow:0 0 35px var(--c-glow),0 0 60px var(--c-glow),inset 0 0 18px rgba(255,255,255,.08)}
}

/* ---- Title with gradient shimmer ---- */
.rsb-hero__title{
  font-size:clamp(32px,5.5vw,58px);font-weight:900;line-height:1.12;
  margin:0 0 6px;letter-spacing:-.5px;
  background:linear-gradient(120deg,#fff 0%,#fff 40%,var(--c1) 50%,#fff 60%,#fff 100%);
  background-size:250% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  filter:drop-shadow(0 4px 20px rgba(0,0,0,.6)) drop-shadow(0 0 30px var(--c-glow));
  opacity:0;transform:translateY(35px) scale(.95);
  transition:opacity 1.4s cubic-bezier(.22,.61,.36,1) .5s,transform 1.4s cubic-bezier(.22,.61,.36,1) .5s;
}
.rsb-hero__slide.is-active .rsb-hero__title{
  opacity:1;transform:translateY(0) scale(1);
  animation:rsbShimmer 8s ease-in-out infinite 1.5s;
}
@keyframes rsbShimmer{
  0%{background-position:200% 0}
  50%{background-position:-200% 0}
  100%{background-position:200% 0}
}
/* Gold slide gets a warmer title */
.rsb-hero--gold .rsb-hero__title{
  background:linear-gradient(120deg,#fff 0%,#fff 35%,#ffd54f 50%,#fff 65%,#fff 100%);
  background-size:250% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ---- Animated underline beneath title ---- */
.rsb-hero__title-underline{
  display:block;height:3px;width:0;border-radius:3px;
  margin:0 0 20px;
  background:linear-gradient(90deg,var(--c1),var(--c2),var(--c1));
  background-size:200% 100%;
  box-shadow:0 0 12px var(--c-glow),0 4px 8px rgba(0,0,0,.3);
  transition:width 1.6s cubic-bezier(.22,.61,.36,1) .8s;
  animation:rsbUnderlineFlow 7s ease-in-out infinite 2s;
}
.rsb-hero__slide.is-active .rsb-hero__title-underline{width:140px}
@keyframes rsbUnderlineFlow{
  0%{background-position:0 0}
  50%{background-position:200% 0}
  100%{background-position:0 0}
}

/* ---- Subtitle ---- */
.rsb-hero__subtitle{
  font-size:clamp(15px,2.2vw,21px);font-weight:300;line-height:1.8;
  color:rgba(255,255,255,.82);margin:0;max-width:780px;
  text-shadow:0 2px 14px rgba(0,0,0,.5);
  opacity:0;transform:translateY(30px);
  transition:opacity 1.4s cubic-bezier(.22,.61,.36,1) .9s,transform 1.4s cubic-bezier(.22,.61,.36,1) .9s;
}
.rsb-hero__slide.is-active .rsb-hero__subtitle{opacity:1;transform:translateY(0)}
/* Gold slide subtitle slightly brighter for readability */
.rsb-hero--gold .rsb-hero__subtitle{
  color:rgba(255,248,225,.9);
  text-shadow:0 2px 14px rgba(0,0,0,.6),0 0 20px rgba(255,213,79,.15);
}

/* ---- Salam lines (imam_shahid slide - pure black & red, NO animations) ---- */
.rsb-hero__salam{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  margin:8px 0 0;max-width:900px;
}
.rsb-hero__salam-line{
  font-size:clamp(13px,1.8vw,18px);font-weight:400;line-height:1.6;
  margin:0;text-align:center;
  color:#b00000;
  text-shadow:0 2px 8px rgba(0,0,0,.95);
  opacity:0;transform:translateY(20px);
  transition:opacity 1.5s cubic-bezier(.22,.61,.36,1),transform 1.5s cubic-bezier(.22,.61,.36,1);
  padding:4px 18px;
}
/* No ::before / ::after dots - removed for clean static look */
.rsb-hero__slide.is-active .rsb-hero__salam-line{opacity:1;transform:translateY(0)}
/* First and last lines in brighter red */
.rsb-hero__salam-line:first-child,
.rsb-hero__salam-line:last-child{
  font-weight:600;font-size:clamp(15px,2vw,20px);
  color:#e02020;
  text-shadow:0 2px 10px rgba(0,0,0,.95);
}
.rsb-hero__salam-line:last-child{
  font-size:clamp(17px,2.4vw,24px);font-weight:700;
  color:#ff2020;
  text-shadow:0 2px 12px rgba(0,0,0,.98);
}
/* Red slide eyebrow - dark, still, NO pulse */
.rsb-hero--red .rsb-hero__eyebrow{
  border-color:#8b0000;
  background:rgba(15,0,0,.6);
  color:#cc3333;
  text-shadow:none;
  animation:none;
  box-shadow:0 2px 8px rgba(0,0,0,.5);
}
/* Red slide dividers and underline - dark red, no glow, no animation */
.rsb-hero--red .rsb-hero__divider{
  background:linear-gradient(90deg,transparent,#8b0000,#4a0000);
  box-shadow:none;
}
.rsb-hero--red .rsb-hero__title-underline{
  background:linear-gradient(90deg,#8b0000,#4a0000,#8b0000);
  box-shadow:0 2px 6px rgba(0,0,0,.4);
  animation:none;
}
/* Red slide title - pure red & black, no white, no shimmer */
.rsb-hero--red .rsb-hero__title{
  background:linear-gradient(120deg,#cc3333 0%,#8b0000 50%,#cc3333 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 4px 16px rgba(0,0,0,.9));
  animation:none;
}
/* Red slide overlay - even darker, heavier, mourning */
.rsb-hero--red .rsb-hero__overlay{
  background:
    radial-gradient(ellipse at center,rgba(30,0,0,.3) 0%,rgba(5,0,0,.92) 100%),
    linear-gradient(180deg,rgba(5,0,0,.7) 0%,rgba(5,0,0,.4) 35%,rgba(5,0,0,.9) 100%);
}
/* Red slide background - no Ken Burns zoom, stays still */
.rsb-hero--red .rsb-hero__bg{
  transform:scale(1);
  transition:none;
  filter:brightness(.7) contrast(1.1);
}

/* ---- Arrows ---- */
.rsb-hero__arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:54px;height:54px;border:none;border-radius:50%;
  background:rgba(255,255,255,.1);color:#fff;font-size:20px;
  cursor:pointer;backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.15);
  transition:background .35s,transform .35s,border-color .35s,box-shadow .35s;
  display:flex;align-items:center;justify-content:center;
}
.rsb-hero__arrow:hover{
  background:rgba(255,255,255,.2);
  transform:translateY(-50%) scale(1.1);
  border-color:rgba(255,255,255,.4);
  box-shadow:0 0 25px rgba(255,255,255,.2);
}
.rsb-hero__arrow--prev{right:24px}
.rsb-hero__arrow--next{left:24px}

/* ---- Dots ---- */
.rsb-hero__dots{
  position:absolute;bottom:30px;left:0;right:0;z-index:3;
  display:flex;justify-content:center;gap:10px;
}
.rsb-hero__dot{
  width:12px;height:12px;padding:0;border:none;border-radius:50%;
  background:rgba(255,255,255,.35);cursor:pointer;
  transition:background .35s,transform .35s,width .35s,box-shadow .35s;
}
.rsb-hero__dot:hover{background:rgba(255,255,255,.65);transform:scale(1.15)}
.rsb-hero__dot.is-active{
  background:#fff;width:36px;border-radius:6px;
  box-shadow:0 0 12px rgba(255,255,255,.5);
}

/* ---- Progress bar (shows time until next slide) ---- */
.rsb-hero__progress{
  position:absolute;bottom:0;left:0;right:0;z-index:4;
  height:3px;background:rgba(255,255,255,.08);overflow:hidden;
}
.rsb-hero__progress-bar{
  height:100%;width:0;
  background:linear-gradient(90deg,var(--c1,#4da6ff),var(--c2,#0066cc));
  box-shadow:0 0 10px var(--c-glow,rgba(77,166,255,.5));
  transition:width .1s linear;
}

/* ---- Responsive ---- */
@media (max-width:992px){
  .rsb-hero{height:540px}
  .rsb-hero__photo img{width:160px}
  .rsb-hero__photo--tl{top:20px;right:20px}
  .rsb-hero__photo--rc{top:50%;left:20px}
}
@media (max-width:768px){
  .rsb-hero__photos{display:none}
}
@media (max-width:576px){
  .rsb-hero{height:440px}
  .rsb-hero__arrow{width:42px;height:42px;font-size:16px}
  .rsb-hero__arrow--prev{right:12px}
  .rsb-hero__arrow--next{left:12px}
  .rsb-hero__dots{bottom:20px;gap:7px}
  .rsb-hero__divider{display:none}
  .rsb-hero__eyebrow-row{gap:0}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion:reduce){
  .rsb-hero__bg{transition:none;transform:none}
  .rsb-hero__slide{transition:opacity .3s}
  .rsb-hero__eyebrow-row,.rsb-hero__title,.rsb-hero__title-underline,.rsb-hero__subtitle{
    transition:none;transform:none;opacity:1;animation:none
  }
  .rsb-hero__divider,.rsb-hero__title-underline{width:60px}
  .rsb-hero__photo{opacity:1;animation:none}
  .rsb-hero__eyebrow{animation:none}
}
