.hidden-br{
    display: none;
}

.main-section-light{
    width: 100vw;
    position: relative;
    background-color: var(--42-light);
    border-bottom: 2px solid var(--42-dark);
    padding: 40px 0;
}

.main-section-green{
    width: 100vw;
    position: relative;
    background-color: var(--42-accent);
    border-bottom: 2px solid var(--42-dark);
    padding: 40px 0;
}

.main-section-green ::selection {
  color: var(--42-accent);
  background-color: var(--42-dark);
}

.secondary-page-header{
    width: 100vw;
    height: 408px;
    position: relative;
    border-bottom: 2px solid var(--42-dark);
    background: var(--42-accent) url(../secondary_assets/secondary-pages-header.svg) center center repeat;
}

.secondary-page-header ::selection {
  color: var(--42-accent);
  background-color: var(--42-dark);
}

.header-title{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-page-header-title{
    width: 100vw;
    height: 408px;
    position: relative;
    border-bottom: 2px solid var(--42-dark);
    background-color: var(--42-accent);
}

h1.main-title{
    font-size: 5.4rem;
    font-weight: 400;
    direction: ltr;
    text-align: center;
    color: var(--42-dark);
    line-height: 5rem;
}

h1.content-page-english-title{
    font-size: 1.7rem;
    font-weight: 600;
    direction: ltr;
    text-align: left;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
}

h1.content-page-arabic-title{
    font-size: 1.7rem;
    font-weight: 600;
    font-family: "42AR", sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
    direction: rtl;
}

.arabic-span{
    font-family: "42AR", sans-serif;
    direction: rtl;
}

h2.english-title{
    font-size: 1.7rem;
    font-weight: 600;
    direction: ltr;
    text-align: left;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
}

h2.arabic-title{
    font-size: 1.7rem;
    font-weight: 600;
    font-family: "42AR", sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
    direction: rtl;
}

h2.english-title-with-image{
    font-size: 1.7rem;
    font-weight: 600;
    direction: ltr;
    text-align: left;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
}

h2.arabic-title-with-image{
    font-size: 1.7rem;
    font-weight: 600;
    font-family: "42AR", sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--42-dark);
    margin-bottom: 30px;
    line-height: 2rem;
    direction: rtl;
}

.body-text{
    font-size: 1rem;
    font-weight: 400;
    direction: ltr;
    text-align: left;
    color: var(--42-dark);
    line-height: 1.5rem;
}

.body-text-arabic{
    font-size: 1rem;
    font-weight: 400;
    font-family: "42AR", sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--42-dark);
    line-height: 1.5rem;
}

.inline-content-image-2021{
    min-height: 240px;
    background-color: var(--42-accent);
    margin-bottom: 40px;
    border: 2px solid var(--42-dark);
    background: url(../secondary_assets/about-page/2021-edition.jpg) center center no-repeat;
    background-size: cover;
}

.inline-content-image-2023{
    min-height: 240px;
    background-color: var(--42-accent);
    margin-bottom: 40px;
    border: 2px solid var(--42-dark);
    background: url(../secondary_assets/about-page/2023-edition.jpg) center center no-repeat;
    background-size: cover;
}

.inline-insights{
    width: 76%;
    margin-left: 12%;
    height: 110px;
    background-color: var(--42-accent);
    margin-bottom: 40px;
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.inline-insights-blocks{
    height: 110px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
}

.inline-insights-text{
    width: 100%;
    height: auto;
    font-size: 1.2rem;
    font-weight: 700;
}

.inline-insights-numbers{
    width: 100%;
    height: auto;
    font-weight: 600;
    font-size: 5rem;
}

.layout-column{
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.layout-english-column{
    flex: 1;
}

.layout-arabic-column{
    flex: 1;
}

.content-block{
    height: 240px;
    flex: 1;
    background-color: var(--42-light);
    border: 2px solid var(--42-dark);
    margin-top: 40px;
    display: flex;
    flex-direction: row;
}

.content-block-image{
    flex: 2;
    height: 236px;
    border-left: 2px solid var(--42-dark);
    background-color: var(--42-accent);
}

.content-block-info{
    height: 236px;
    flex: 1;
    padding: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .3s cubic-bezier(0.77, 0, 0.175, 1);
}

.content-block:hover{
    background-color: var(--42-accent);
    border: 4px solid var(--42-dark);
}

.content-block:hover .content-block-image,
.content-block:hover .content-block-info{
    height: 232px;
}

.content-block:hover .content-block-image{
    border-left: 4px solid var(--42-dark);
}

.content-block:hover .content-block-info{
    padding: 34px;
}

.content-block-title{
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--42-dark);
    line-height: 2.2rem;
}

.content-block-ExtraInfo{
    font-size: 1rem;
    font-weight: 400;
    color: var(--42-dark);
    line-height: 1.5rem;
}

.platform-features-column{
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.platform-features-blocks{
    flex:1;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--42-dark);
    background-color: var(--42-light);
    height:auto;
}

.platform-features-blocks-image{
    width:100%;
    aspect-ratio: 2 / 1;
    border-bottom: 2px solid var(--42-dark);
    background-color: var(--42-accent);
}

.platform-features-blocks-info{
    width: 100%;
    height: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.platform-features-blocks-horizontal{
    width: 100%;
    height: auto;
    flex: 1;
    background-color: var(--42-light);
    border: 2px solid var(--42-dark);
    margin-top: 70px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: row;
}

.platform-features-blocks-horizontal ::selection{
    background-color: var(--42-accent);
    color: var(--42-dark);
}

.platform-features-blocks-horizontal-image{
    flex: 2;
    border-left: 2px solid var(--42-dark);
}

.platform-features-blocks-horizontal-info{
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

h3.feature-title{
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--42-dark);
    line-height: 2rem;
    margin-bottom: 10px;
}

.fun-facts-carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-edge {
    position: absolute;
    top: 0;
    width: 26px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.carousel-edge-left {
    left: -2px;
    background: url(../secondary_assets/about-page/carousel-left.svg) repeat-y;
    background-position: left center;
}

.carousel-edge-right {
    right: -2px;
    background: url(../secondary_assets/about-page/carousel-right.svg) repeat-y;
    background-position: right center;
}

.fun-facts-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fun-facts-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 32px;
    min-width: 100%;
    width: max-content;
}

.carousel-card {
    flex-shrink: 0;
    width: 320px;
    min-height: 240px;
    background-color: var(--42-accent);
    border: 2px solid var(--42-dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-card ::selection{
    background-color: var(--42-dark);
    color: var(--42-accent);
}

.carousel-card-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--42-dark);
    text-align: right;
}

.carousel-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.carousel-card-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--42-dark);
    line-height: 1.5rem;
    text-align: left;
    margin-top: 20px;
}

.carousel-card-text-arabic {
    font-size: 1rem;
    font-weight: 500;
    font-family: "42AR", sans-serif;
    color: var(--42-dark);
    line-height: 1.5rem;
    text-align: right;
    direction: rtl;
    margin: 0;
}

@media (max-width: 1050px) {
    .content-block-image{
        flex: 1;
    }

    .platform-features-blocks-horizontal{
        flex-direction: column-reverse;
    }

    .platform-features-blocks-horizontal-image{
        flex: 1;
        aspect-ratio: 2 / 1;
        border-left: 0px;
        border-bottom: 2px solid var(--42-dark);
    }

    .platform-features-blocks-horizontal-info{
        flex: 1;
    }
}

@media (max-width: 710px) {
    .header-title{
        width: 90%;
        padding: 0%;
    }

    h1.main-title{
        font-size: 4rem;
        line-height: 3.8rem;
    }

    .layout-column{
        gap: 18px;
    }

    .inline-content-image-2021{
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        background: url(../secondary_assets/about-page/2021-edition_3x2.jpg) center center no-repeat;
        background-size: cover;
    }

    .inline-content-image-2023{
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        background: url(../secondary_assets/about-page/2023-edition-3x2.jpg) center center no-repeat;
        background-size: cover;
    }

    .content-block{
        flex-direction: column-reverse;
        height: 400px;
    }

    .content-block-image{
        border-left: 0px;
        border-bottom: 2px solid var(--42-dark);
        flex:2;
    }

    .content-block-info{
        flex:1;
    }

    .content-block:hover .content-block-image{
        border-left: 0px;
        border-bottom: 4px solid var(--42-dark);
    }

    .content-block-title{
        margin-bottom: 20px;
    }

    .platform-features-column{
        gap: 18px;
        flex-direction: column-reverse;
    }

    .platform-features-blocks-image{
        flex: 1;
        aspect-ratio: 2 / 1;
    }

    .platform-features-blocks-horizontal{
        margin-top: 40px;
        margin-bottom: 18px;
    }

    .inline-insights{
        width: 86%;
        margin-left: 7%;
    }

    .carousel-track {
        gap: 18px;
    }
    .carousel-card {
        width: 280px;
        min-height: 220px;
    }

    .carousel-card-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 550px) {
    .hidden-br{
        display: block;
    }

    h2.arabic-title-with-image{
        text-align: center;
        margin-bottom: 0px;
    }

    h2.english-title-with-image{
        text-align: center;
    }

    .layout-column{
        flex-direction: column-reverse;
    }

    .inline-insights{
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        height: 560px;
        align-items: center;
    }

    .carousel-card {
        width: 220px;
        min-height: 200px;
    }

    .carousel-card-text {
        font-size: .8rem;
        line-height: 1.3rem;
    }

    .carousel-card-text-arabic {
        font-size: .8rem;
        line-height: 1.3rem;
    }
}