/**
 * RTL (Right-to-Left) Stylesheet for Arabic Version
 * Toyota Dream Car Website
 */

/* Base RTL direction */
body {
    direction: rtl;
    text-align: right;
}

/* Float reversals */
.pull-left {
    float: right !important;
}

.pull-right {
    float: left !important;
}

/* Text alignment */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

/* Navigation */
#main-navigation > ul > li {
    float: right;
}

/* Padding and margin adjustments */
.sp-page-content-wrap {
    padding-right: 0;
    padding-left: 0;
}

/* Button alignments */
.btn {
    text-align: center;
}

/* List items */
ul, ol {
    padding-right: 0;
    padding-left: 0;
}

/* Icons that need flipping */
.icon-left-open:before {
    content: '\e8e2'; /* right arrow */
}

.icon-right-open:before {
    content: '\e8e1'; /* left arrow */
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    text-align: right;
    direction: rtl;
}

/* Judging section RTL adjustment */
#judging[data-vc-full-width="true"] {
    right: -292.5px;
   
}

/* Gallery section RTL adjustment */
#gallery[data-vc-full-width="true"] {
    right: -292.5px;
}

/* Eligibility Section RTL Fixes */
#eligibility .icons-box.type-6 {
    direction: rtl;
}

#eligibility .icons-box.type-6.fx-col-3 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 20px;
}

#eligibility .wrapper-item-type-6:not(:last-child) {
    padding-right: 0;
    padding-left: 30px;
}

#eligibility .item-box {
    text-align: right;
}

/* Eligibility icon positioning for RTL */
.dreamcar_eligibility .icons-box.type-6 .icons-wrap .icons-item > .item-box {
    padding-right: 0;
    padding-left: 24px;
}

.dreamcar_eligibility .icons-box.type-6 .icons-wrap .icons-item > .item-box > i {
    left: auto;
    right: -70px;
}

/* How to Enter Section RTL */
#how-to-enter .item-box {
    text-align: right;
}

/* Art Requirements Section RTL */
#art-requirements .icons-box {
    direction: rtl;
}

#art-requirements .item-box {
    text-align: right;
}

#art-requirements .icons-box.type-2 .icons-wrap .icons-item > .item-box > i {
    /* Mirror the rotation for RTL */
    -ms-transform: rotate(11deg);
    -webkit-transform: rotate(11deg);
    transform: rotate(11deg);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .top-header .logo-wrap {
        text-align: right !important;
        float: right !important;
    }

    .top-header .nav-item {
        float: left !important;
    }
	
	/* Judging section RTL adjustment */
#judging[data-vc-full-width="true"] {
    right: 10px;
   
}

/* Gallery section RTL adjustment */
#gallery[data-vc-full-width="true"] {
    right: 10px;
}

    /* Eligibility section mobile RTL */
    #eligibility .wrapper-item-type-6:not(:last-child) {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 769px) {
    #eligibility .wrapper-item-type-6:not(:last-child) {
        padding-left: 0;
    }
}
