﻿body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Montserrat', sans-serif;
}
/* Add these styles to your aboutar.css file */

.rtl .sub-container1 {
    width: 100%;
    max-width: 1352px;
}

/* Right-to-left support for timeline */
.rtl .timeline-top-descriptions .desc-text,
.rtl .timeline-bottom-descriptions .desc-text,
.rtl .reload-btn {
    direction: rtl;
    text-align: center;
}

/* Adjust positions for Arabic timeline */
.rtl .timeline-top-descriptions .top-description,
.rtl .timeline-bottom-descriptions .bottom-description {
    transform: translateX(50%);
}

/* Make sure the descriptions align well */
.rtl .timeline-top-descriptions .desc-text,
.rtl .timeline-bottom-descriptions .desc-text {
    width: 100%;
    display: block;
}
/* Specific year adjustments for the reversed timeline */
.rtl .timeline-top-descriptions .top-description[data-year="2012"] {
    right: 100%;
}

.rtl .timeline-top-descriptions .top-description[data-year="2019"] {
    right: 50%;
}

.rtl .timeline-top-descriptions .top-description[data-year="2024"] {
    right: 0%;
}

.rtl .timeline-bottom-descriptions .bottom-description[data-year="2017"] {
    right: 75%;
}

.rtl .timeline-bottom-descriptions .bottom-description[data-year="2021"] {
    right: 25%;
}

/* Also update the year markers positions */
.rtl .year-marker[data-year="2012"] {
    right: 0%;
    transform: translateX(50%);
}

.rtl .year-marker[data-year="2017"] {
    right: 25%;
    transform: translateX(50%);
}

.rtl .year-marker[data-year="2019"] {
    right: 50%;
    transform: translateX(50%);
}

.rtl .year-marker[data-year="2021"] {
    right: 75%;
    transform: translateX(50%);
}

.rtl .year-marker[data-year="2024"] {
    right: 100%;
    transform: translateX(50%);
}

/* And the same for the circles */
.rtl .circle[data-year="2012"] {
    right: 100%;
    transform: translateX(50%);
}

.rtl .circle[data-year="2017"] {
    right: 75%;
    transform: translateX(50%);
}

.rtl .circle[data-year="2019"] {
    right: 50%;
    transform: translateX(50%);
}

.rtl .circle[data-year="2021"] {
    right: 25%;
    transform: translateX(50%);
}

.rtl .circle[data-year="2024"] {
    right: 0%;
    transform: translateX(50%);
}


/* Reload button styling */
.rtl .reload-btn {
    font-family: 'Montserrat', Arial, sans-serif;
}