/* ===========================================================
   custom.css — Enhanced Shared Utilities (CSS Only)
   =========================================================== */

:root {
    --color-primary: #051939;
    --color-secondary: #fff;
    --color-accent: #cfd8ff;
    --color-muted: rgba(255, 255, 255, 0.85);
    --color-border: #e2e8f0;
    --btn-radius: 8px;
    --transition-base: all 0.3s ease;
}

.rjc-hero {
    --text: var(--color-secondary);
    --muted: var(--color-muted);
    --accent: var(--color-accent);
    --chip-bg: var(--color-secondary);
    --chip-text: var(--color-primary);
    max-width: 360px;
    color: var(--text);
    padding: 16px;
    background: rgba(5, 25, 57, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.rjc-rtl {
    direction: rtl;
    text-align: right;
}

.rjc-title {
    margin: 0 0 14px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(28px, 5.5vw, 44px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rjc-subtitle {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.rjc-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}

.rjc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--chip-bg);
    color: var(--chip-text);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rjc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rjc-rtl .rjc-item {
    flex-direction: row-reverse;
}

.rjc-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    color: var(--chip-text);
    flex: 0 0 18px;
    transition: var(--transition-base);
}

.rjc-item:hover::before {
    background-color: var(--accent);
    color: var(--color-primary);
}

.rjc-visit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.rjc-visit-title span {
    display: block;
    font-weight: 800;
    line-height: 1.05;
}

.rjc-visit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
    padding: 4px 0;
}

.rjc-visit-link:hover {
    border-bottom-color: var(--muted);
    gap: 10px;
}

.rjc-globe {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
    border: 2px solid var(--text);
    border-radius: 50%;
    transition: var(--transition-base);
}

.rjc-visit-link:hover .rjc-globe {
    transform: rotate(15deg);
}

.rjc-globe::before,
.rjc-globe::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    background: var(--text);
}

.rjc-globe::before {
    width: 2px;
    height: 14px;
}

.rjc-globe::after {
    width: 14px;
    height: 2px;
}

/* ===========================================================
   Equipment Categories — align "Browse" buttons at the bottom
   =========================================================== */

#categories .card.service-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
}

#categories .card.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#categories .card.service-feature .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    padding: 1.5rem;
}

#categories .card.service-feature .card-body .btn {
    margin-top: auto;
    transition: var(--transition-base);
}

#categories .card.service-feature .card-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 420px) {
    .rjc-hero {
        max-width: 100%;
        margin: 0 12px;
    }
}

/* ===========================================================
   Why Us — center card content vertically
   =========================================================== */

#why-us .card.service-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--color-border);
}

#why-us .card.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#why-us .circle-icon {
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

#why-us .card.service-feature:hover .circle-icon {
    transform: scale(1.1);
}

/* ===========================================================
   CTA (brand) block
   =========================================================== */

.cta-brand {
    background: linear-gradient(135deg, var(--color-primary, #051939) 0%, #03122a 100%);
    color: #fff;
    border: 0;
    position: relative;
    overflow: hidden;
}

.cta-brand::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.cta-brand .section-divider {
    background: rgba(255, 255, 255, 0.25);
}

.cta-brand h2 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-brand p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.cta-brand .container {
    position: relative;
    z-index: 1;
}

/* ===========================================================
   Partner cards
   =========================================================== */

.partner-card {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--btn-radius);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(207, 216, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.partner-card:hover::before {
    opacity: 1;
}

.partner-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.partner-card:hover .partner-logo,
.partner-card:focus-within .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* ===========================================================
   HERO — dimensions + background per breakpoint
   =========================================================== */

.equipment-hero-header {
    position: relative;
    min-height: clamp(360px, 62vh, 760px);
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .equipment-hero-header {
        min-height: clamp(320px, 56vh, 680px);
    }
}

@media (max-width: 575.98px) {
    .equipment-hero-header {
        min-height: clamp(300px, 50vh, 560px);
    }
}

.equipment-hero-header .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

.equipment-hero-header:hover .hero-bg {
    transform: scale(1.03);
}

/* Generic backgrounds (service page) */
.equipment-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/m.webp");
}

@media (min-width: 576px) {
    .equipment-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/t.webp");
    }
}

@media (min-width: 992px) {
    .equipment-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/d.webp");
    }
}

.equipment-hero-header .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(5, 25, 57, 0.7) 0%, rgba(5, 25, 57, 0.4) 100%);
}

.equipment-hero-header .content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.equipment-hero-header .equipment-title {
    color: var(--color-secondary) !important;
}

/* ===== RTL duplication for hero (safe) ===== */

[dir="rtl"] .equipment-hero-header {
    position: relative;
    min-height: clamp(360px, 62vh, 760px);
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .equipment-hero-header {
        min-height: clamp(320px, 56vh, 680px);
    }
}

@media (max-width: 575.98px) {
    [dir="rtl"] .equipment-hero-header {
        min-height: clamp(300px, 50vh, 560px);
    }
}

[dir="rtl"] .equipment-hero-header .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

[dir="rtl"] .equipment-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/m.webp");
}

@media (min-width: 576px) {
    [dir="rtl"] .equipment-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/t.webp");
    }
}

@media (min-width: 992px) {
    [dir="rtl"] .equipment-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/d.webp");
    }
}

[dir="rtl"] .equipment-hero-header .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

[dir="rtl"] .equipment-hero-header .content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ===========================================================
   Page-specific hero backgrounds
   =========================================================== */

.equipment-hero-header.scissor-hero-header .hero-bg,
[dir="rtl"] .equipment-hero-header.scissor-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/mobile_scissor.webp");
}

@media (min-width: 576px) {

    .equipment-hero-header.scissor-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.scissor-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/tablet_scissor.webp");
    }
}

@media (min-width: 992px) {

    .equipment-hero-header.scissor-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.scissor-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/desktop_scissor.webp");
    }
}

.equipment-hero-header.boom-hero-header .hero-bg,
[dir="rtl"] .equipment-hero-header.boom-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/mobile_boomlift.webp");
}

@media (min-width: 576px) {

    .equipment-hero-header.boom-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.boom-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/tablet_boomlift.webp");
    }
}

@media (min-width: 992px) {

    .equipment-hero-header.boom-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.boom-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/desktop_boomlift.webp");
    }
}

.equipment-hero-header.crane-hero-header .hero-bg,
[dir="rtl"] .equipment-hero-header.crane-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/crane_mobile.webp");
}

@media (min-width: 576px) {
    .equipment-hero-header.crane-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.crane-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/crane_tablet.webp");
    }
}

@media (min-width: 992px) {
    .equipment-hero-header.crane-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.crane-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/crane_desktop.webp");
    }
}

.equipment-hero-header.generator-hero-header .hero-bg,
[dir="rtl"] .equipment-hero-header.generator-hero-header .hero-bg {
    background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/generator_mobile.webp");
}

@media (min-width: 576px) {
    .equipment-hero-header.generator-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.generator-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/generator_tablet.webp");
    }
}

@media (min-width: 992px) {
    .equipment-hero-header.generator-hero-header .hero-bg,
    [dir="rtl"] .equipment-hero-header.generator-hero-header .hero-bg {
        background-image: url("https://www.rjc.sa/uploads/media/pages_img/our_service/generator_desktop.webp");
    }
}

/* ===========================================================
   HERO parity (EN = AR) — dark panels + actions alignment
   =========================================================== */

.hero-desc,
.hero-desc-panel {
    background: rgba(6, 24, 49, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    max-width: 820px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.equipment-title.hero-desc,
.hero-desc-panel h1 {
    margin: 0;
    line-height: 1.08;
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(28px, 4.2vw, 44px);
}

.hero-desc+.hero-desc,
.hero-desc+.hero-desc-panel,
.hero-desc-panel+.hero-desc,
.hero-desc-panel+.hero-desc-panel {
    margin-top: 14px;
}

.equipment-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===========================================================
   RTL list/icon tidy
   =========================================================== */

[dir="rtl"] .equipment-page ul li {
    display: flex;
    align-items: baseline;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .equipment-page ul li iconify-icon {
    order: -1;
    margin-inline-start: 0.5rem;
    margin-inline-end: 0;
    flex: 0 0 auto;
    line-height: 1;
}

[dir="rtl"] .equipment-page ul.row {
    flex-direction: row !important;
}

/* ===========================================================
   ARABIC HERO FIX — Right alignment for Arabic content
   =========================================================== */

/* Reset previous problematic rules */
[dir="rtl"] .equipment-hero-header .row > *:not(:first-child),
[dir="rtl"] .equipment-hero-header .row > *:first-child {
    display: block !important;
    flex: 0 0 auto !important;
    max-width: none !important;
}

/* Right-align all hero content for Arabic */
[dir="rtl"] .equipment-hero-header .content-wrapper,
[dir="rtl"] .hero-desc,
[dir="rtl"] .hero-desc-panel,
[dir="rtl"] .rjc-title,
[dir="rtl"] .rjc-subtitle,
[dir="rtl"] .rjc-checklist,
[dir="rtl"] .rjc-visit-row {
    text-align: right !important;
    justify-content: flex-end !important;
    margin-right: 0;
    margin-left: auto;
}

/* Checklist item alignment for RTL */
[dir="rtl"] .rjc-checklist .rjc-item {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Right-align the hero panel for Arabic */
[dir="rtl"] .rjc-hero {
    margin-right: 0;
    margin-left: auto;
}

/* ===========================================================
   Performance Optimizations
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================================
   Print Styles
   =========================================================== */

@media print {
    .rjc-hero,
    .hero-desc,
    .hero-desc-panel {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .rjc-item {
        border: 1px solid #ccc;
    }
    
    .equipment-actions {
        display: none;
    }
}

/* ===========================================================
   High Contrast Mode Support
   =========================================================== */

@media (prefers-contrast: high) {
    .rjc-hero {
        border: 2px solid white;
    }
    
    .rjc-item {
        border: 2px solid var(--color-primary);
    }
    
    .rjc-visit-link {
        border-bottom-width: 2px;
    }
}

/* ===========================================================
   Dark Mode Support
   =========================================================== */

@media (prefers-color-scheme: dark) {
    .partner-card {
        background: #1a202c;
        border-color: #2d3748;
    }
}

/* LTR/RTL alignment + reduced widths (scoped to rental page) */

/* Sidebar buttons */
#rental-services .equipment-sidebar .action-buttons{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
[dir="ltr"] #rental-services .equipment-sidebar .action-buttons{ align-items:flex-start; }
[dir="rtl"] #rental-services .equipment-sidebar .action-buttons{ align-items:flex-end; }
[dir="ltr"] #rental-services .equipment-sidebar .action-buttons .btn{ text-align:left; }
[dir="rtl"] #rental-services .equipment-sidebar .action-buttons .btn{ text-align:right; }
#rental-services .equipment-sidebar .action-buttons .btn{
  width:auto !important;
  min-width:180px;
  max-width:260px;
  padding:.5rem 1rem;
  font-size:.95rem;
  border-radius:8px;
}

/* Hero buttons */
#rental-services .equipment-hero-header .equipment-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
[dir="ltr"] #rental-services .equipment-hero-header .equipment-actions{ justify-content:flex-start; }
[dir="rtl"] #rental-services .equipment-hero-header .equipment-actions{ justify-content:flex-end; }
#rental-services .equipment-hero-header .equipment-actions .btn{
  width:auto;
  padding:.45rem .9rem;
  font-size:.95rem;
  border-radius:6px;
}

/* Responsive tweaks */
@media (max-width: 768px){
  #rental-services .equipment-sidebar .action-buttons .btn{
    min-width:170px;
    max-width:240px;
    padding:.45rem .9rem;
    font-size:.93rem;
  }
  #rental-services .equipment-hero-header .equipment-actions .btn{
    padding:.42rem .85rem;
    font-size:.93rem;
  }
}
@media (max-width: 576px){
  /* keep LTR=left, RTL=right */
  [dir="ltr"] #rental-services .equipment-sidebar .action-buttons{ align-items:flex-start; }
  [dir="rtl"] #rental-services .equipment-sidebar .action-buttons{ align-items:flex-end; }

  #rental-services .equipment-sidebar .action-buttons .btn{
    min-width:160px;
    max-width:220px;
    padding:.4rem .8rem;
    font-size:.9rem;
  }
  #rental-services .equipment-hero-header .equipment-actions{ gap:.5rem; }
  #rental-services .equipment-hero-header .equipment-actions .btn{
    padding:.38rem .75rem;
    font-size:.9rem;
  }
}
/* === Rental page buttons: compact, LTR=left, RTL=right === */

/* Container (EN) */
#rental-services .equipment-sidebar .action-buttons{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  align-items:flex-start;        /* LTR: stick to left */
}

/* Buttons (EN) */
#rental-services .equipment-sidebar .action-buttons .btn{
  display:inline-flex !important;/* prevent 100% width */
  width:auto !important;
  min-width:160px;
  max-width:230px;
  padding:.45rem .9rem;
  font-size:.95rem;
  border-radius:10px;
  direction:ltr;
  text-align:left;
  flex-direction:row;            /* icon left of text */
  justify-content:flex-start;
  align-self:flex-start;         /* align each to left */
}

/* Icon spacing (EN) */
#rental-services .equipment-sidebar .action-buttons .btn iconify-icon{
  margin-inline-end:.5rem;
}

/* Container (AR) */
#rental-services-ar .equipment-sidebar .action-buttons{
  display:flex;
  flex-direction:column;
  gap:.6rem;
  align-items:flex-end;          /* RTL: stick to right */
}

/* Buttons (AR) */
#rental-services-ar .equipment-sidebar .action-buttons .btn{
  display:inline-flex !important;
  width:auto !important;
  min-width:160px;
  max-width:230px;
  padding:.45rem .9rem;
  font-size:.95rem;
  border-radius:10px;
  direction:rtl;
  text-align:right;
  flex-direction:row-reverse;    /* icon left, text right */
  justify-content:flex-start;
  align-self:flex-end;           /* align each to right */
  margin-left:auto;              /* eat left space */
}

/* Ensure custom button variants do not force full width */
#rental-services .equipment-sidebar .action-buttons .btn-custom-primary,
#rental-services .equipment-sidebar .action-buttons .btn-custom-secondary,
#rental-services .equipment-sidebar .action-buttons .btn-custom-whatsapp,
#rental-services-ar .equipment-sidebar .action-buttons .btn-custom-primary,
#rental-services-ar .equipment-sidebar .action-buttons .btn-custom-secondary,
#rental-services-ar .equipment-sidebar .action-buttons .btn-custom-whatsapp{
  display:inline-flex !important;
  width:auto !important;
}

/* Responsive tweaks */
@media (max-width:576px){
  #rental-services .equipment-sidebar .action-buttons .btn,
  #rental-services-ar .equipment-sidebar .action-buttons .btn{
    min-width:150px;
    max-width:210px;
    padding:.4rem .8rem;
    font-size:.9rem;
  }
}

/* AR sidebar buttons: icon on the right */
#rental-services-ar .equipment-sidebar .action-buttons .btn{
  direction: rtl;
  display: inline-flex !important;
  flex-direction: row !important;   /* keep DOM order => icon at right in RTL */
  align-items: center;
  text-align: right;
}
#rental-services-ar .equipment-sidebar .action-buttons .btn iconify-icon{
  order: 0;                         /* first child => right edge in RTL */
  margin-inline-end: .5rem;         /* gap between icon and text (to the left) */
  margin-inline-start: 0;
}

/* AR hero buttons: same behavior */
#rental-services-ar .equipment-hero-header .equipment-actions .btn{
  direction: rtl;
  display: inline-flex;
  flex-direction: row !important;
  align-items: center;
  text-align: right;
}
#rental-services-ar .equipment-hero-header .equipment-actions .btn iconify-icon{
  margin-inline-end: .5rem;
  margin-inline-start: 0;
}

/* === Hero actions: compact buttons on mobile (AR + EN) === */
@media (max-width: 640px){
  /* Flex container */
  #rental-services .equipment-hero-header .equipment-actions,
  #rental-services-ar .equipment-hero-header .equipment-actions{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
  }

  /* LTR = left, RTL = right */
  [dir="ltr"] #rental-services .equipment-hero-header .equipment-actions{ justify-content:flex-start; }
  [dir="rtl"] #rental-services-ar .equipment-hero-header .equipment-actions{ justify-content:flex-end; }

  /* Make buttons smaller and auto-width */
  #rental-services .equipment-hero-header .equipment-actions .btn,
  #rental-services-ar .equipment-hero-header .equipment-actions .btn{
    display:inline-flex !important;   /* avoid full-width */
    width:auto !important;
    min-width:170px;
    max-width:240px;
    padding:.45rem .9rem;
    font-size:.95rem;
    border-radius:12px;
  }

  /* EN: icon on the left, text left-aligned */
  #rental-services .equipment-hero-header .equipment-actions .btn{
    direction:ltr;
    text-align:left;
    flex-direction:row;
    align-items:center;
  }
  #rental-services .equipment-hero-header .equipment-actions .btn iconify-icon{
    margin-inline-end:.5rem;
  }

  /* AR: icon on the right, text right-aligned */
  #rental-services-ar .equipment-hero-header .equipment-actions .btn{
    direction:rtl;
    text-align:right;
    flex-direction:row;               /* icon stays at the right in RTL */
    align-items:center;
  }
  #rental-services-ar .equipment-hero-header .equipment-actions .btn iconify-icon{
    margin-inline-end:.5rem;          /* gap between icon and text */
    margin-inline-start:0;
  }
}
/* Shrink hero buttons on mobile (EN + AR, all hero sections) */
@media (max-width: 640px){
  .equipment-hero-header .equipment-actions{
    display:flex; flex-wrap:wrap; gap:.6rem;
  }

  /* Align by direction: RTL -> right, otherwise left */
  .equipment-page[dir="rtl"] .equipment-hero-header .equipment-actions{ justify-content:flex-end; }
  .equipment-page:not([dir="rtl"]) .equipment-hero-header .equipment-actions{ justify-content:flex-start; }

  .equipment-hero-header .equipment-actions .btn{
    display:inline-flex !important; align-items:center; gap:.45rem;
    flex:0 0 auto !important;          /* stop stretching */
    width:auto !important;
    min-width:0 !important;             /* allow smaller than global min */
    max-width:240px;                    /* clamp if text is long */
    padding:.45rem .8rem;
    font-size:.95rem;
    border-radius:12px;
    white-space:normal;                 /* allow wrapping */
  }

  /* Neutralize any block/100% utilities */
  .equipment-hero-header .equipment-actions .btn.w-100,
  .equipment-hero-header .equipment-actions .btn.btn-block{
    width:auto !important;
  }
}