.e-marketing {
    font-family: var(--font-family-primary);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
}



/* ===============================
    1. First Section CSS
================================== */

.first-section {
    background-color: white;
    padding: 100px 20px 0px 20px;
}

.first-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
}


.first-section-image {
    flex: 1 1 40%;
    text-align: center;
}

.first-section-image img {
    max-width: 100%;
    height: auto;
}

.first-section-text {
    flex: 1 1 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/images/e-marketing/BlurEffects.png') no-repeat center center;
    background-size: contain;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.first-section-text h1 {
    font-size: 42px;
    background: linear-gradient(280.65deg, #5B388C 42.09%, #5B388C 43.11%, #7956A1 68.6%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-bottom: 20px;
    white-space: nowrap;
}

.first-section-text p {
    font-size: 20px;
    color: #575B66;
    max-width: 75%;
    text-align: center;
    font-weight: 400;
}

/********************* Responsive adjustments *********************/
@media (max-width: 1220px) {
    .first-section {
        padding: 70px 100px 0px 100px;
    }


}

@media (max-width: 1177px) {
    .first-section-image img {
        max-width: 60%;
        height: auto;
    }
}

@media (max-width: 1115px) {
    .first-section {
        padding: 100px 100px 0px 100px;
    }

    .first-section-container {
        flex-direction: column;
        text-align: center;
    }

    .first-section-image,
    .first-section-text {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .first-section-image img {
        max-width: 60%;
        padding-bottom: 10px;
    }

    .rtl .first-section-image img {
        max-width: 60%;
        padding-bottom: 10px;
    }

    .first-section-text h1 {
        font-size: 30px;
    }

    .first-section-text p {
        font-size: 16px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .first-section {
        padding: 50px 20px 0px 20px;
    }

    .rtl.first-section {
        padding: 50px 20px 20px 20px;
    }


    .first-section-image img {
        max-width: 70%;
        padding-bottom: 20px;
    }

    .rtl .first-section-image img {
        max-width: 70%;
        padding-bottom: 20px;
    }

    .first-section-text h1 {
        font-size: 20px;
    }

    .first-section-text p {
        font-size: 14px;
        max-width: 100%;
    }
}


@media (max-width: 450px) {
    /* .first-section {
        padding: 60px 0px;
    } */

    .first-section-image img {
        max-width: 80%;
        height: auto;
    }

    .rtl .first-section-image img {
        max-width: 80%;
        height: auto;
    }

}



/* ===============================
    2. Second Section CSS
================================== */


.second-section {
    background-color: white;
    padding: 0 0 70px 0;
}

.second-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
}

.second-section-text {
    flex: 1 1 60%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.second-section-text.text-center {
    text-align: right;
    align-items: right;
}

.second-section-text h2 {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
    white-space: nowrap;
}

.second-section-text p {
    font-size: 20px;
    color: #000;
    text-align: left;
    max-width: 88%;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

.rtl .second-section-text p {
    font-size: 20px;
    color: #000;
    text-align: right;
    max-width: 88%;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

.second-section-text.text-center p {
    text-align: right;
}

.second-section-image {
    flex: 1 1 35%;
    text-align: center;
}

.second-section-image img {
    max-width: 100%;
    height: auto;
}

/********************* Responsive adjustments for Second Section *********************/

@media (max-width: 1220px) {
    .second-section {
        padding: 30px 100px 30px 100px;
    }
}

@media (max-width: 1115px) {

    .second-section-container {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }

    .second-section-text,
    .second-section-image {
        flex: 1 1 100%;
        max-width: 80%;
        align-items: center;
    }

    .second-section-text {
        padding-left: 0;
        text-align: center;
    }

    .second-section-text h2 {
        font-size: 30px;
        white-space: nowrap;
    }

    .second-section-text p {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .rtl .second-section-text p {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .second-section-image img {
        max-width: 60%;
        height: auto;
    }

}

@media (max-width: 576px) {
    .second-section {
        padding: 0 0 40px 0;
    }

    .second-section-text h2 {
        font-size: 20px;
        font-weight: bold;
    }

    .second-section-text p {
        font-size: 14px;
    }

    .rtl .second-section-text h2 {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        align-items: center;
    }

    .rtl .second-section-text p {
        font-size: 14px;
        text-align: center;
        align-items: center;
    }

    .second-section-image img {
        max-width: 70%;
    }

    .second-section-text.text-center p {
        text-align: center;
    }
}


/* ===============================
    3. Third Section CSS
================================== */

.e-marketing .third-section {
    background-color: rgba(224, 224, 224, 0.35);
    padding: 10px 0;
}

.e-marketing .third-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
}

.e-marketing .third-section-text {
    flex: 1 1 60%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

}

.e-marketing .third-section-text.text-center {
    text-align: right;
    align-items: right;
    padding-left: 0;
}

.e-marketing .third-section-text h2 {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
    white-space: nowrap;
}

.e-marketing .third-section-text p {
    font-size: 20px;
    color: #000;
    text-align: left;
    max-width: 88%;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
}

.e-marketing .third-section-text.text-center p {
    text-align: right;
    max-width: 90%;
}

.e-marketing .third-section-image {
    flex: 1 1 35%;
    text-align: center;
}

.e-marketing .third-section-image img {
    max-width: 100%;
    height: auto;
}

/********************* Responsive adjustments for Third Section *********************/

@media (max-width: 1220px) {
    .e-marketing .third-section {
        padding: 30px 100px 30px 100px;
    }


}

@media (max-width: 1177px) {
    .e-marketing .third-section-image img {
        max-width: 60%;
        height: auto;
    }
}

@media (max-width: 1115px) {

    .e-marketing .third-section-container {
        flex-direction: column;
        text-align: center;

    }


    .e-marketing .third-section-text,
    .e-marketing .third-section-image {
        flex: 1 1 100%;
        max-width: 80%;
        align-items: center;
        text-align: center;
    }

    .e-marketing .third-section-text {
        padding-left: 0;
    }

    .e-marketing .third-section-text h2 {
        font-size: 30px;
        white-space: nowrap;
    }

    .e-marketing .third-section-text p {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .rtl .e-marketing .third-section-text p {
        font-size: 18px;
        max-width: 90%;
        text-align: center;
    }

    .e-marketing .third-section-image img {
        max-width: 60%;
    }

    .rtl .e-marketing .third-section-image img {
        max-width: 70%;
    }
}

@media (max-width: 576px) {
    .e-marketing .third-section {
        padding: 20px 0;
    }

    .e-marketing .third-section-text.text-center p {
        text-align: center;
        max-width: 100%;
        font-size: 14px;
    }

    .e-marketing .third-section-text h2 {
        font-size: 20px;
    }

    .e-marketing .third-section-text p {
        font-size: 14px;
        max-width: 100%;
    }

    .e-marketing .third-section-image img {
        max-width: 70%;
    }

    .rtl.e-marketing .third-section-image img {
        max-width: 80%;
    }
}



/* ===============================
    4. Fourth Section CSS
================================== */

.fourth-section {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}

.fourth-section-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.fourth-section-text {
    text-align: center;
    max-width: 70%;
    margin: 0 auto;
}

.fourth-section-text h2 {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.fourth-section-text p {
    font-size: 20px;
    color: #000;
    line-height: 1.5;
    max-width: 70%;
    margin: 0 auto;
    font-weight: 400;
}

/*********************  Responsive adjustments for Fourth Section *********************/

@media (max-width: 992px) {
    .fourth-section {
        padding: 30px 0;
    }

    .fourth-section-text h2 {
        font-size: 30px;
    }

    .fourth-section-text p {
        font-size: 18px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {


    .fourth-section-text h2 {
        font-size: 20px;
    }

    .fourth-section-text p {
        font-size: 14px;
        max-width: 100%;
    }
}

/* ===========================
    5. Fifth Section CSS
============================== */

.fifth-section {
    background: linear-gradient(280.65deg, #5B388C 42.09%, #5B388C 43.11%, #7956A1 68.6%);
    padding: 30px 0;
    color: white;
    font-weight: bolder;
}

.fifth-section-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 items per row by default */
    gap: 20px;
    max-width: 1170px;
    margin: 0 auto;
}

.fifth-section-item {
    text-align: center;
}

.fifth-section-item img {
    max-width: 200px;
    margin-bottom: 15px;
}

.fifth-section-item p {
    font-size: 25px;
    margin: 0;
    color: white;
    font-weight: 450;
}

/********************* Responsive adjustments for Fifth Section *********************/

@media (max-width: 992px) {
    .fifth-section {
        padding: 30px 0;
    }

    .fifth-section-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 items per row */
    }

    .fifth-section-item img {
        max-width: 50%;
    }

    .fifth-section-item p {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .fifth-section {
        padding: 20px 0;
    }

    .fifth-section-container {
        grid-template-columns: 1fr;
        /* 1 item per row */
    }

    .fifth-section-item img {
        max-width: 40%;
    }

    .fifth-section-item p {
        font-size: 16px;
    }
}



/* ===============================
    6. Sixth Section CSS
================================== */

.sixth-section {
    background-color: white;
    padding: 50px 0;
    text-align: center;
}

.sixth-section-container {
    max-width: 1170px;
    margin: 0 auto;
}

.sixth-section h2 {
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 55px;
    font-weight: bold;
}

.sixth-section-item {
    background: linear-gradient(280.65deg, #5B388C 42.09%, #5B388C 43.11%, #7956A1 68.6%);
    color: white;
    font-weight: bold;
    margin: 15px 0;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100%;
    /* Added to control max width */
}

.sixth-section-title {
    font-size: 24px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sixth-section-title i {
    transition: transform 0.3s ease;
}

.sixth-section-item.active .sixth-section-title i {
    transform: rotate(90deg);
}

.sixth-section-content {
    font-size: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
    color: #000;
    border-radius: 0 0 15px 15px;
    padding: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-weight: 400;
}

.sixth-section-item.active .sixth-section-content {
    max-height: 510px;
    padding: 10px 20px;
}

.sixth-section-content ul {
    padding: 10px 20px;
    margin: 0;
}

.sixth-section-content ul li {
    margin: 5px 0;
    line-height: 1.6;
}

/* Right align for Arabic */
.text-right {
    text-align: right;
}

/********************* Responsive adjustments for Sixth Section *********************/

@media (max-width: 1220px) {
    .sixth-section-container {
        max-width: 1100px;
        margin: 0 100px;
    }
}


@media (max-width: 1115px) {
    .sixth-section {
        padding: 30px 0;
    }

    .sixth-section-container {
        max-width: 1170px;
        margin: 0 50px;
    }

    .sixth-section h2 {
        font-size: 30px;
    }

    .sixth-section-item {
        margin: 15px auto;
        /* Added margin for spacing between boxes */
        max-width: 90%;
        /* Reduced max-width for medium screens */
    }

    .sixth-section-title {
        font-size: 20px;
        padding: 15px;
    }

    .sixth-section-content {
        font-size: 16px;
        padding: 0 15px;
    }

    .sixth-section-item.active .sixth-section-content {
        font-size: 16px;
        /* Ensure consistent font size */
    }
}

@media (max-width: 576px) {
    .sixth-section-item.active .sixth-section-content {
        max-height: 630px;
        padding: 10px 20px;
        /* Ensure consistent padding */

    }

    .sixth-section {
        padding: 0 0;
    }

    .sixth-section-container {
        max-width: 1170px;
        margin: 0 auto;
    }

    .sixth-section h2 {
        margin-top: 30px;
        font-size: 20px;
        margin-bottom: 30px;
    }

    .sixth-section-item {
        margin: 15px auto;
        /* Further increased margin for spacing between boxes */
        max-width: 80%;
        /* Further reduced max-width for small screens */
    }

    .sixth-section-title {
        font-size: 15px;
        padding: 12px;
    }

    .sixth-section-content {
        font-size: 14px;
        padding: 0 10px;
    }

    .sixth-section-item.active .sixth-section-content {
        font-size: 14px;
        /* Ensure consistent font size */
    }


}






/* Ensure active class works for small screens */
@media (max-width: 992px) {
    .sixth-section-item.active .sixth-section-title i {
        transform: rotate(90deg);
    }
}

/* RTL Specific Styles */
.e-marketing [dir='rtl'] .first-section-text,
.e-marketing [dir='rtl'] .second-section-text,
.e-marketing [dir='rtl'] .third-section-text,
.e-marketing [dir='rtl'] .fourth-section-text,
.e-marketing [dir='rtl'] .sixth-section-content {
    text-align: right;
}

.e-marketing [dir='rtl'] .first-section-image,
.e-marketing [dir='rtl'] .second-section-image,
.e-marketing [dir='rtl'] .third-section-image {
    text-align: left;
}

.e-marketing [dir='rtl'] .second-section-container,
.e-marketing [dir='rtl'] .third-section-container {
    flex-direction: row-reverse;
}

/* Align center on small screens */
@media (max-width: 992px) {

    .e-marketing [dir='rtl'] .first-section-text,
    .e-marketing [dir='rtl'] .second-section-text,
    .e-marketing [dir='rtl'] .third-section-text,
    .e-marketing [dir='rtl'] .fourth-section-text,
    .e-marketing [dir='rtl'] .sixth-section-content {
        text-align: center;
    }
}
