/* ==========================================================
   Dawemly — Site Stylesheet (responsive, font-scale matches rassd.sa)
   ========================================================== */

:root {
  /* Brand */
  --navy: #1a3a8f;
  --navy-deep: #0d2566;
  --teal: #00B0B9;
  --teal-deep: #008891;
  --blue: #3C6AA7;

  /* Neutral palette */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --text: #1f2937;
  --text-soft: #5a6478;
  --bg: #ffffff;
  --bg-alt: #f8fafc;

  /* Font scale (matches rassd.sa) */
  --fs-body: 16px;
  --fs-xxs: 12px;
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-xxl: 29px;
  --fs-xxxl: 35px;
  --fs-xxxxl: 42px;
  --fs-h1: 42px;
  --fs-h2: 36px;
  --fs-h3: 29px;
  --fs-h4: 24px;
  --fs-h5: 20px;
  --fs-h6: 17px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 58, 143, 0.12);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --gradient: linear-gradient(231deg, var(--teal) 2.56%, var(--blue) 100%);
  --gradient-navy: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, 'Segoe UI', 'Tajawal', 'Cairo', Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 72px;
}

/* Force IBM Plex Sans Arabic on all elements */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, .btn, .nav-links a, .pricing-name, .pricing-desc, .industry-card, .footer, .section-header, .page-hero, .cta-section {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, 'Segoe UI', 'Tajawal', 'Cairo', Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.3; margin: 0 0 16px; color: var(--navy); }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.35; margin: 0 0 16px; color: var(--navy); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.4; margin: 0 0 14px; color: var(--navy); }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.4; margin: 0 0 12px; color: var(--navy); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-family: inherit;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 176, 185, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 176, 185, .45);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: var(--fs-sm); }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  transition: all .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border-bottom-color: rgba(0, 0, 0, .04);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo h2,
.nav-logo h1 {
  font-size: var(--fs-md) !important;
  font-weight: 800;
  color: var(--navy) !important;
  margin: 0 !important;
  line-height: 1;
}
.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: var(--fs-xs);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: all .3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.active { display: block; opacity: 1; }

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .1);
    transition: right .3s ease;
    z-index: 1000;
    gap: 0;
    overflow-y: auto;
  }
  .nav-menu.active { right: 0; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--fs-sm);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(0, 176, 185, .08); border-radius: 8px; }
  .nav-cta { margin-top: 20px; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--gradient-navy);
  color: #fff;
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 176, 185, .15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(60, 106, 167, .2) 0%, transparent 50%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #fff;
  max-width: 900px;
  margin-inline: auto;
}
.page-hero p {
  font-size: var(--fs-md);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .92);
}

@media (max-width: 767.98px) {
  .page-hero { padding: 50px 16px 40px; }
  .page-hero h1 { font-size: var(--fs-xl); margin-bottom: 14px; }
  .page-hero p { font-size: var(--fs-xs); margin-bottom: 18px; }
}

/* ===== Sections ===== */
.section {
  padding: 70px 0;
  background: #fff;
}
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-label {
  display: inline-block;
  background: rgba(0, 176, 185, .1);
  color: var(--teal-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.section-header h2 {
  font-size: var(--fs-xxl);
  color: var(--navy);
  margin: 0;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: var(--fs-xl); }
  .section-label { font-size: var(--fs-xxs); }
}

/* ===== Pricing Toggle ===== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pricing-toggle span {
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  font-size: var(--fs-sm);
}
.pricing-toggle span.active { color: var(--navy); }
.toggle-switch {
  width: 56px;
  height: 30px;
  background: var(--gray-200);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
}
.toggle-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: all .25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.toggle-switch.active { background: var(--teal); }
.toggle-switch.active::before { right: 29px; }
.pricing-save {
  background: rgba(34, 197, 94, .15);
  color: #16a34a;
  font-size: var(--fs-xxs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s;
  border: 1px solid var(--gray-200);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.popular {
  background: var(--gradient-navy);
  color: #fff;
  transform: scale(1.04);
  border-color: var(--teal);
}
.pricing-card.popular::before {
  content: "الأكثر شعبية";
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--teal);
  color: #fff;
  font-size: var(--fs-xxs);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}
.pricing-card.popular .pricing-name,
.pricing-card.popular .amount,
.pricing-card.popular .currency,
.pricing-card.popular .period { color: #fff; }
.pricing-card.popular .pricing-desc,
.pricing-card.popular .pricing-features li { color: rgba(255, 255, 255, .9); }
.pricing-card.popular .pricing-features { border-top-color: rgba(255, 255, 255, .15); }

.pricing-name {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.pricing-desc {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-bottom: 20px;
  min-height: 40px;
}
.pricing-price {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pricing-price .amount {
  font-size: var(--fs-xxxxl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pricing-price .currency {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-soft);
}
.pricing-price .period {
  font-size: var(--fs-xxs);
  color: var(--text-soft);
  margin-inline-start: 6px;
}
.pricing-features {
  list-style: none;
  padding: 20px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--gray-100);
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--fs-xs);
  color: var(--gray-700);
}
.pricing-features .check {
  color: var(--teal);
  font-weight: 800;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.pricing-features .x { color: var(--gray-300); flex-shrink: 0; }
.pricing-card .btn { width: 100%; margin-top: auto; }
.pricing-card.popular .btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

@media (max-width: 991.98px) {
  .pricing-card.popular { transform: none; }
}
@media (max-width: 767.98px) {
  .pricing-card { padding: 28px 24px; }
  .pricing-price .amount { font-size: var(--fs-xxxl); }
}

/* ===== Comparison Table ===== */
.compare-section { padding: 60px 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs);
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.compare-table th { background: var(--gray-50); color: var(--navy); font-weight: 700; font-size: var(--fs-sm); }
.compare-table td:first-child, .compare-table th:first-child { text-align: right; font-weight: 600; }
.check-mark { color: var(--teal); font-weight: 700; font-size: var(--fs-md); }
.x-mark { color: var(--gray-300); }

@media (max-width: 767.98px) {
  .compare-table { display: block; overflow-x: auto; font-size: var(--fs-xxs); }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--teal); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: right;
  font-family: inherit;
}
.faq-icon { font-size: var(--fs-xl); color: var(--teal); transition: transform .25s; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.85; }

@media (max-width: 767.98px) {
  .faq-question { padding: 16px 18px; font-size: var(--fs-xs); }
  .faq-answer-inner { padding: 0 18px 16px; font-size: var(--fs-xs); }
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient);
  padding: 70px 20px;
  text-align: center;
  color: #fff;
}
.cta-content h2 {
  color: #fff;
  font-size: var(--fs-xxl);
  margin-bottom: 14px;
}
.cta-content p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, .95);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.85;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-actions .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.cta-actions .btn-primary:hover { background: var(--gray-100); color: var(--navy); }

@media (max-width: 767.98px) {
  .cta-section { padding: 48px 16px; }
  .cta-content h2 { font-size: var(--fs-xl); }
  .cta-content p { font-size: var(--fs-xs); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* ===== Footer ===== */
.footer {
  background: #0a1929;
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand h3 { color: #fff; margin: 0; font-size: var(--fs-lg); }
.footer-brand p {
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: rgba(255, 255, 255, .7);
  margin: 0;
  max-width: 360px;
}
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-md);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .7);
  padding: 5px 0;
  font-size: var(--fs-xs);
  transition: color .2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--fs-xxs);
  color: rgba(255, 255, 255, .6);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: all .2s;
}
.footer-social a:hover { background: var(--teal); color: #fff; }

@media (max-width: 767.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Scroll-to-top ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-size: var(--fs-xl);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Industries ===== */
.industries-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  max-width: 900px;
  margin-inline: auto;
}
.industries-stats .stat {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.industries-stats .stat-num {
  font-size: var(--fs-xxl);
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
}
.industries-stats .stat-label {
  font-size: var(--fs-xxs);
  color: rgba(255, 255, 255, .92);
  margin-top: 6px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.industry-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--gray-200);
}
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 176, 185, .3);
}
.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xxl);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.industry-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.4;
}
.industry-card p {
  font-size: var(--fs-xs);
  color: var(--text-soft);
  line-height: 1.85;
  margin: 0 0 16px;
  flex: 1;
}
.industry-tag {
  display: inline-block;
  font-size: var(--fs-xxs);
  font-weight: 600;
  color: var(--navy);
  background: rgba(0, 176, 185, .1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

@media (max-width: 600px) {
  .industries-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industries-stats .stat { padding: 14px 10px; }
  .industries-stats .stat-num { font-size: var(--fs-xl); }
  .industries-grid { grid-template-columns: 1fr; gap: 16px; }
  .industry-card { padding: 24px 20px; }
}

/* ===== Mobile typography ===== */
@media (max-width: 767.98px) {
  body { font-size: var(--fs-sm); }
  h1 { font-size: var(--fs-xxxl); }
  h2 { font-size: var(--fs-xxl); }
  h3 { font-size: var(--fs-xl); }
  h4 { font-size: var(--fs-md); }
}
@media (max-width: 480px) {
  h1 { font-size: var(--fs-xl); }
  h2 { font-size: var(--fs-lg); }
}

/* ==========================================================
   Mobile Hero & RTL Layout Fixes (rassd-style)
   ========================================================== */
@media (max-width: 991.98px) {
  /* Force RTL columns to be full width on mobile and CENTER content */
  .rsd-landing-hero .col-md-6,
  .rsd-landing-hero .col-lg-6,
  .rsd-landing-hero [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 20px 0 !important;
    margin: 0 !important;
  }

  /* Hero h1/h3 - center, prevent overflow */
  .rsd-landing-hero h1,
  .rsd-landing-hero h3,
  .rsd-landing-hero .col-content h1,
  .rsd-landing-hero .col-content h3 {
    text-align: center !important;
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.4 !important;
    margin: 0 auto 16px !important;
    max-width: 100% !important;
    padding: 0 8px !important;
  }
  .rsd-landing-hero p,
  .rsd-landing-hero .col-content p {
    text-align: center !important;
    font-size: var(--fs-xs) !important;
    line-height: 1.85 !important;
    margin: 0 auto 20px !important;
    max-width: 100% !important;
    padding: 0 8px !important;
  }

  /* Hero buttons row - center & wrap */
  .rsd-landing-hero .col-action {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px;
  }
  .rsd-landing-hero .rsd-landing-btn {
    flex: 1 1 auto;
    max-width: 100%;
    font-size: var(--fs-xs) !important;
  }

  /* Hero image: contain, center, no horizontal overflow */
  .rsd-landing-hero img,
  .rsd-landing-hero .col-end img,
  .rsd-landing-hero .col-md-6 img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    height: auto !important;
    transform: none !important;
  }

  /* Section labels & titles inside index sections */
  .section-title .title,
  .rsd-landing-label,
  .why-main h3,
  .rsd-card-title,
  h3.title {
    text-align: center !important;
    width: 100% !important;
  }

  /* Stop horizontal overflow caused by negative margins / 120% widths */
  .container,
  .container-fluid,
  .rsd-landing-2col,
  .row {
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Sections padding */
  section,
  .rsd-landing-hero,
  .rsd-landing-why,
  .rsd-landing-features,
  .rsd-landing-benefits,
  .rsd-landing-app,
  .rsd-landing-partners {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .rsd-landing-hero h1,
  .rsd-landing-hero h3,
  .rsd-landing-hero .col-content h1,
  .rsd-landing-hero .col-content h3 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }
  /* Smaller buttons on tiny screens (regular CTA only, not app badges) */
  .rsd-landing-btn:not(.rsd-btn-app) {
    width: 100%;
    font-size: var(--fs-xxs) !important;
    padding: 10px 16px !important;
  }
}

/* ==========================================================
   App Store / Google Play badges — side by side on mobile
   ========================================================== */
@media (max-width: 991.98px) {
  /* The wrapper of the app badges */
  .col-action:has(.rsd-btn-app),
  .col-action {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 16px !important;
    width: 100% !important;
  }

  /* Each badge link - keep inline, don't stretch */
  .rsd-btn-app {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 48% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: inline-flex !important;
  }
  .rsd-btn-app img {
    height: 48px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
  }
}

@media (max-width: 360px) {
  .rsd-btn-app img { height: 42px !important; }
}

/* ==========================================================
   Benefits Section - cards & tabs styling
   ========================================================== */
.rsd-landing-benefits {
  padding: 60px 0;
  background: #f8fafc;
}

/* Section title */
.rsd-landing-benefits .section-title { text-align: center; margin-bottom: 30px; }
.rsd-landing-benefits .section-title .rsd-landing-label {
  display: inline-block;
  background: rgba(0, 176, 185, .1);
  color: var(--teal-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.rsd-landing-benefits .section-title h2.title,
.rsd-landing-benefits .section-title h3.title {
  font-size: var(--fs-xxl);
  color: var(--navy);
  font-weight: 800;
  margin: 0;
}

/* Tabs (الفوائد للشركات / للموظفين) */
.rsd-landing-tablist,
.pill-tablist {
  margin: 30px 0 28px;
}
.rsd-landing-tablist .nav,
.pill-tablist .nav {
  display: flex;
  list-style: none;
  padding: 6px;
  margin: 0 auto;
  gap: 4px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}
.rsd-landing-tablist .nav-item,
.pill-tablist .nav-item { list-style: none; }
.rsd-landing-tablist .nav-link,
.pill-tablist .nav-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gray-500);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.rsd-landing-tablist .nav-link.active,
.pill-tablist .nav-link.active {
  background: var(--gradient);
  color: #fff !important;
}

/* Tab content rows - convert to grid */
.tab-pane .row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tab-pane .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
  padding: 0 !important;
}

/* Benefit card - icon + content side by side */
.rsd-landing-card.card-hor {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
  min-height: 96px;
}
.rsd-landing-card.card-hor:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 176, 185, .3);
}
.rsd-landing-card.card-hor .rsd-card-icon {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 64px !important;
  background: rgba(0, 176, 185, .08);
  border-radius: 14px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.rsd-landing-card.card-hor .rsd-card-icon svg {
  width: 38px !important;
  height: 38px !important;
  display: block;
}
.rsd-landing-card.card-hor .rsd-card-content {
  flex: 1 1 auto;
  text-align: right;
}
.rsd-landing-card.card-hor .rsd-card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.4;
}

/* ==== Mobile (≤991px) ==== */
@media (max-width: 991.98px) {
  .rsd-landing-benefits { padding: 40px 0 !important; }

  /* Tab list - smaller and centered */
  .rsd-landing-tablist .nav,
  .pill-tablist .nav {
    width: 100%;
    max-width: 320px;
    padding: 4px;
    gap: 0;
  }
  .rsd-landing-tablist .nav-item,
  .pill-tablist .nav-item { flex: 1; }
  .rsd-landing-tablist .nav-link,
  .pill-tablist .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 12px !important;
    font-size: var(--fs-xs) !important;
  }

  /* Cards: 2 columns on tablet, 1 on phone */
  .tab-pane .row { grid-template-columns: 1fr !important; gap: 12px; }

  /* Card layout */
  .rsd-landing-card.card-hor {
    padding: 14px 16px !important;
    min-height: 76px;
  }
  .rsd-landing-card.card-hor .rsd-card-icon {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .rsd-landing-card.card-hor .rsd-card-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  .rsd-landing-card.card-hor .rsd-card-title {
    font-size: var(--fs-sm) !important;
    line-height: 1.4;
  }

  /* Section title smaller */
  .rsd-landing-benefits .section-title h2.title,
  .rsd-landing-benefits .section-title h3.title {
    font-size: var(--fs-xl) !important;
  }
}

/* ==== Tab switching JS support (only one pane visible) ==== */
.tab-pane { display: none; }
.tab-pane.active.show,
.tab-pane.active { display: block; }
