/* ============================================
   NURI GROUP - Arabic Typography
   Tajawal for Arabic script, Outfit for Latin
   Google Fonts handles unicode-range optimization
   ============================================ */

/* Font stack: Tajawal first (for Arabic chars), then Outfit (for Latin) */
html, body, * {
    font-family: 'Tajawal', 'Outfit', 'DM Sans', sans-serif !important;
}

/* Remove letter-spacing for Arabic text elements */
.nv2-hero__label,
.nv2-section-label,
.nv2-hero__cta,
.nv2-header__menu-item a,
.nv2-footer__title,
.nv2-pillar__title,
.nv2-page-hero__date span {
    letter-spacing: 0 !important;
}

/* RTL Section Label - hex on right side */
.nv2-section-label {
    flex-direction: row-reverse !important;
}

/* RTL Dark Hero Label - icon on right side */
.nv2-dark-hero__label {
    flex-direction: row-reverse !important;
}

/* RTL Section Header - align to right, but preserve centered sections */
.nv2-section-header:not(.nv2-section-header--center) {
    text-align: right !important;
}
.nv2-section-header--center {
    text-align: center !important;
}
.nv2-section-header--center .nv2-section-label {
    justify-content: center !important;
}

/* RTL text alignment for blog/news content */
.nv2-content {
    text-align: right !important;
}
.nv2-content p,
.nv2-content h1,
.nv2-content h2,
.nv2-content h3,
.nv2-content h4,
.nv2-content h5,
.nv2-content h6,
.nv2-content li,
.nv2-content blockquote {
    text-align: right !important;
    direction: rtl !important;
}
.nv2-content ul,
.nv2-content ol {
    padding-left: 0 !important;
    padding-right: var(--space-lg) !important;
    direction: rtl !important;
}
.nv2-content li {
    direction: rtl !important;
}

/* RTL Breadcrumb - start from right side */
.nv2-breadcrumb__list {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
}
.nv2-breadcrumb__item {
    flex-direction: row-reverse !important;
}
.nv2-breadcrumb__item:not(:last-child)::after {
    transform: rotate(180deg) !important;
}

/* RTL Related News Grid */
.nv2-detail-related .nv2-section-header {
    text-align: right !important;
}
.nv2-detail-related .nv2-grid {
    direction: rtl !important;
}
.nv2-detail-related .nv2-grid-card__content {
    text-align: right !important;
}

/* RTL Related Products Section */
.nv2-related__header {
    flex-direction: row-reverse !important;
}
.nv2-related__header .nv2-section-header {
    text-align: right !important;
}
.nv2-related__link {
    flex-direction: row-reverse !important;
}
.nv2-related__link svg {
    transform: scaleX(-1) !important;
}
.nv2-related .nv2-grid {
    direction: rtl !important;
}
.nv2-related .nv2-grid-card__content {
    text-align: right !important;
}

/* RTL Contact Section */
.nv2-contact__info {
    text-align: right !important;
}
.nv2-contact__item {
    flex-direction: row-reverse !important;
}
.nv2-contact__item-content {
    text-align: right !important;
}
.nv2-contact__item-label {
    display: block !important;
    letter-spacing: 0 !important;
}
.nv2-contact__item-value {
    display: block !important;
}

/* RTL News & Projects Sliders (landing page) */
.nv2-news__slider {
    direction: rtl !important;
}
.nv2-news-card {
    scroll-snap-align: end !important;
}
.nv2-news-card__content {
    text-align: right !important;
}
.nv2-projects__slider {
    direction: rtl !important;
}
.nv2-project-card__content {
    text-align: right !important;
}

/* Subsidiary cards RTL */
.nv2-subsidiary-card__content {
    text-align: right !important;
}
.nv2-subsidiary-card__link svg {
    transform: scaleX(-1);
}
.nv2-subsidiary-card__link:hover svg {
    transform: scaleX(-1) translateX(-4px);
}
.nv2-subsidiary-item-card__content {
    text-align: right !important;
}
.nv2-subsidiary-items__group-title {
    direction: rtl;
}
.nv2-subsidiary-items__grid {
    direction: rtl;
}
.nv2-subsidiary-item-card {
    direction: rtl;
}
.nv2-subsidiary-item-card__meta {
    direction: rtl;
}
