/* RTL Font Family - Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-collapse {
    flex-grow:0;
}
.services-section {
    min-height: 100vh;
    background-color: #2E2E2E;
    position: relative;
    overflow: hidden;
    padding: 0;
    z-index: 1;
}

.pixel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.center-shadow {
    width: 35.9375em;
    height: 15.9375em;
    position: absolute;
    right: 50%;
    top: 0;
    transform: translateX(50%);
    z-index: 0;
}

.center-shadow::before {
    content: "";
    opacity: 0.4;
    background: #FA4329; /* Primary color */
    filter: blur(4.39375em);
    border-radius: 35.934em;
    width: 100%;
    height: 100%;
    display: block;
}

.services-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.services-section .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.services-section .relative {
    position: relative;
}

.services-section .z-9 {
    z-index: 9;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.brief {
    font-size: 1.2rem;
    color: #3a86ff;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.services-section .col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.services-section .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-section .service-button {
    color: rgb(237, 237, 237);
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.46875em;
    letter-spacing: -0.02em;
    position: relative;
    transition: font-weight 0.5s ease, padding-right 0.5s ease, color 0.5s ease;
    background: none;
    border: none;
    text-align: right;
    width: 100%;
    padding: 10px 0;
    cursor: pointer;
}

.services-section .service-button::before {
    content: "";
    width: 0.91976em;
    height: 0.91976em;
    display: block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><circle cx="12" cy="12" r="8"/></svg>') no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 50%;
    right: 0;
    opacity: 0;
    transform: translate(0, -50%);
    transition: opacity 0.7s ease, transform 0.5s ease;
}

.services-section .service-button:hover {
    font-weight: 700;
    color: #fff;
}

.services-section .service-button.active {
    padding-right: 1.22875em;
    font-weight: 700;
    color: #fff;
}

.services-section .service-button.active::before {
    opacity: 1;
}

.services-section .services-inner-box {
    width: 100%;
    border-radius: 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(41, 41, 41, 0.4);
    backdrop-filter: blur(2px);
    padding: 2.5em;
    display: flex;
    flex-wrap: wrap;
    transition: all 0.5s ease;
    opacity: 1;
    z-index: 2;
    min-height: 400px;
}

.services-section .service-children {
    display: none;
    width: 100%;
}

.services-section .service-children.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RTL specific adjustments */
.service-button {
    text-align: right;
    padding-right: 0;
}

.service-button.active {
    padding-right: 1.22875em;
    padding-left: 0;
}

.service-button::before {
    right: 0;
    left: auto;
}

.footer h3::before{
    right: -8px;
}

.rtl-me-2 {
    margin-left: .5rem!important;
}

.modal-header .btn-close {
    padding: calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);
    margin: calc(-.5 * var(--bs-modal-header-padding-y)) auto calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) !important;
}

.form-floating>label {
    right: 0;
}

/* Responsive design */
@media (max-width: 992px) {
    .services-section .col-md-6 {
        width: 100%;
    }

    .services-section .service-button {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .service-button {
        font-size: 1.7rem;
    }

    .services-inner-box {
        padding: 1.5em;
    }
}

.blog-card {
    text-align: right;
}

.blog-card .blog-content {
    text-align: right;
}

.blog-card .blog-content h3 {
    text-align: right;
}

/* Section title RTL */
.section-title.text-start {
    text-align: right !important;
}

/* Brief and title RTL */
.section-title .brief.animate-text,
.section-title .title.animate-text {
    text-align: right;
}
