/* SENHAMZA — RTL V25 (experimental only) */

html[lang="ar"] body {
    font-family: "Cairo", Arial, sans-serif;
}

/* Keep the hero composition identical to French V24 */
@media (min-width: 701px) {
    html[dir="rtl"] .hero-grid {
        direction: ltr;
    }

    html[dir="rtl"] .hero-content {
        direction: rtl;
    }
}

/* Arabic typography */
html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-heading {
    font-family: "Cairo", Arial, sans-serif;
}

/* Keep Latin show title readable */
html[dir="rtl"] .hero h1 {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Mobile navigation */
@media (max-width: 700px) {
    html[dir="rtl"] .main-nav {
        text-align: right;
    }

    html[dir="rtl"] .main-nav a {
        text-align: right;
    }
}
/* V25 Arabic footer layout */
html[dir="rtl"] .site-footer {
    direction: rtl;
    overflow-x: hidden;
}

html[dir="rtl"] .site-footer .container {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin-inline: auto;
}

html[dir="rtl"] .site-footer p,
html[dir="rtl"] .site-footer a,
html[dir="rtl"] .site-footer h3,
html[dir="rtl"] .site-footer h4 {
    overflow-wrap: break-word;
}

html[dir="rtl"] .site-footer .footer-grid {
    direction: rtl;
}

@media (max-width: 768px) {
    html[dir="rtl"] .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Arabic V25 - Agenda mobile */
@media (max-width: 600px) {

  html[dir="rtl"] .agenda-v9-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    width: 100%;
    min-width: 0;
  }

  html[dir="rtl"] .agenda-v9-image {
    width: 100%;
    height: 150px;
    min-height: 150px;
    overflow: hidden;
    border-radius: 12px;
  }

  html[dir="rtl"] .agenda-v9-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html[dir="rtl"] .agenda-v9-venue,
  html[dir="rtl"] .agenda-v9-date,
  html[dir="rtl"] .agenda-v9-time,
  html[dir="rtl"] .agenda-v9-action {
    width: 100%;
    min-width: 0;
    text-align: right;
    justify-content: flex-start;
  }

  html[dir="rtl"] .agenda-v9-action .agenda-v9-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }
}
