/* ========================================================================
   UNIFIED SECTION HEADINGS - CENTERED ALIGNMENT
   Ensures all section titles are centered and properly aligned
   across both English and Arabic without changing text direction
   ======================================================================== */

/* ===== GLOBAL SECTION HEADING STYLES ===== */
section h1,
section h2,
section h3,
section h4,
section h5,
section h6,
section .section-title,
section .section-title-unified,
section .main-heading,
section .section_heading,
section .comp-title,
section .comp-header-wrapper h2,
section .promo-heading {
    text-align: center !important;
}

/* ===== SECTION SUBTITLE AND DESCRIPTION STYLES ===== */
section .section-sub,
section .section-subtitle,
section .section-subtitle-unified,
section .subtitle,
section .description,
section .comp-subtitle,
section .promo-subtitle,
section .promo-subheading,
section > .container > p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== CATEGORY SECTION ===== */
.section.bg-soft > .container > h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section.bg-soft > .container > p.section-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section.bg-soft > .container > p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== ABOUT SECTION ===== */
.unified-about-header {
    text-align: center !important;
}

.unified-about-header h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.unified-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== COMPETITIONS SECTION ===== */
.section > .container > h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section > .container > p,
.section > .container > p.text-muted,
.section > .container > p.section-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.comp-header-wrapper {
    text-align: center !important;
}

.comp-header-wrapper h2 {
    text-align: center !important;
}

.comp-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.comp-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== QUALITY COMPETITIONS SECTION ===== */
.comp-section .comp-header-wrapper {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.comp-section .comp-badge {
    display: inline-block !important;
    text-align: center !important;
}

/* ===== PROMOTIONS SECTION ===== */
.promo-featured-section .promo-header {
    text-align: center !important;
}

.promo-header h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.promo-heading {
    text-align: center !important;
}

.promo-subheading {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.promo-badge {
    display: inline-block !important;
    text-align: center !important;
}

/* ===== TESTIMONIALS / SUCCESS SECTION ===== */
.ts-sec-title {
    text-align: center !important;
}

.ts-sec-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ts-badge {
    display: inline-block !important;
    text-align: center !important;
}

/* ===== PARTNERS SECTION ===== */
.partners-carousel-section > .container > h3 {
    text-align: center !important;
}

.partners-carousel-section h3 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== APP DOWNLOAD SECTION ===== */
.appdl .appdl-title {
    text-align: center !important;
}

.appdl .appdl-desc {
    text-align: center !important;
}

/* ===== B2B SECTION ===== */
.map-hero__heading {
    text-align: center !important;
}

.map-hero__title {
    text-align: center !important;
}

.map-hero__subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    section h1,
    section h2,
    section h3,
    section h4,
    section h5,
    section h6 {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    section h1,
    section h2,
    section h3,
    section h4,
    section h5,
    section h6,
    section .section-title,
    section .section-title-unified,
    section .main-heading,
    section .section_heading,
    section p,
    section .text-muted,
    section .section-sub {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section > .container > h2,
    .section > .container > p,
    .section > .container > p.section-sub,
    .section > .container > p.text-muted,
    .unified-about-header,
    .unified-about-header h2,
    .unified-subtitle,
    .comp-header-wrapper,
    .comp-title,
    .comp-subtitle,
    .promo-header,
    .promo-heading,
    .promo-subheading,
    .ts-sec-title,
    .ts-sec-subtitle,
    .partners-carousel-section h3,
    .appdl-title,
    .appdl-desc,
    .map-hero__heading,
    .map-hero__title,
    .map-hero__subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
html.dark-mode section h1,
html.dark-mode section h2,
html.dark-mode section h3,
html.dark-mode section h4,
html.dark-mode section h5,
html.dark-mode section h6,
html.dark-mode section .section-title,
html.dark-mode section .section-title-unified,
html.dark-mode section p,
html.dark-mode section .text-muted,
html.dark-mode section .section-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== ENSURE NO RTL INTERFERENCE ===== */
[dir="rtl"] section h1,
[dir="rtl"] section h2,
[dir="rtl"] section h3,
[dir="rtl"] section h4,
[dir="rtl"] section h5,
[dir="rtl"] section h6,
[dir="rtl"] section .section-title,
[dir="rtl"] section .section-title-unified,
[dir="rtl"] section .main-heading,
[dir="rtl"] section .section_heading,
[dir="rtl"] section p,
[dir="rtl"] section .text-muted,
[dir="rtl"] section .section-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

[dir="ltr"] section h1,
[dir="ltr"] section h2,
[dir="ltr"] section h3,
[dir="ltr"] section h4,
[dir="ltr"] section h5,
[dir="ltr"] section h6,
[dir="ltr"] section .section-title,
[dir="ltr"] section .section-title-unified,
[dir="ltr"] section .main-heading,
[dir="ltr"] section .section_heading,
[dir="ltr"] section p,
[dir="ltr"] section .text-muted,
[dir="ltr"] section .section-sub {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
