.program-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: row-reverse;
    padding: 64px 0 0 0;
    background-color: transparent; /* Background will be on pseudo-element */
    background-size: 1440px auto;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 735px;
    margin-top: -10%;
    z-index: 10001; /* Higher than hero section to appear above think image */
    overflow: hidden; /* Hide overflow at top to prevent image from showing above mask */
    /* Clip top to match mask start point, allow bottom to follow mask */
    clip-path: url(#program-clip-path);
    -webkit-clip-path: url(#program-clip-path);
}

/* Apply clip-path to background pseudo-element instead of section */
.program-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6316DB;
    background-image: inherit;
    background-size: 1440px auto;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: url(#program-clip-path);
    -webkit-clip-path: url(#program-clip-path);
    z-index: -1; /* Behind content */
    pointer-events: none;
}

.program-section-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.program-section > img,
.program-section > div {
    position: relative;
    z-index: 2;
}


.program-section > * {
    flex: 1;
    flex-shrink: 0;
}

.program-section-img {
    position: relative;
    z-index: 100003; /* Highest z-index to appear above think image */
    height: 100%;
    object-fit: contain;
}

/* Apply align-self to the div containing the image */
.program-section > div:first-of-type {
    align-self: flex-end;
    flex:1.5;
    margin-top: -10%;
    z-index: 100002; /* Higher than section z-index to ensure image is on top */
    position: relative;
    height: 80%; /* Reduced from 120% */
    overflow: hidden; /* Hide overflow at top */
}

.program-section-content{
    align-self: flex-start;
    flex: 1.5;
}
.program-section-title h2{
    color: var(--WHITE, #FFF);
text-align: right;

font-family: year, sans-serif;
font-size: 56px;
font-style: normal;
font-weight: 400;
line-height: 64px; /* 114.286% */
}
.program-section-title{
    position: relative;
    margin-top: 32px;
}
.program-section-arrow{
    position: absolute;
    top:10px;
    right:-50px
}

/* Styling for the list items */
.program-section-content ul {
    list-style: disc;
    padding: 0;
    padding-right: 24px;
    margin: 0;
    margin-top: 32px;
}

.program-section-content li {
    color: var(--WHITE, #FFF);
    text-align: right;
    /* TITLE/HEADLINE 4 (24) MONTSERRAT AR */
    font-family: Montserrat-Arabic, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 200;
    line-height: 32px;
}

@media (max-width: 1024px) {
    .program-section {
        padding: 64px 24px 48px 24px;
        min-height: auto;
        justify-content: center;
    }
    .program-section::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='375' height='238' viewBox='0 0 375 238' fill='none'%3E%3Cpath d='M-136 32.8554C99.8208 -10.5818 234.826 -11.3203 481 32.8554V238C245.27 177.56 110.037 179.183 -136 238V32.8554Z' fill='%236316DB'/%3E%3Cpath d='M-136 32.8554C99.8208 -10.5818 234.826 -11.3203 481 32.8554V238C245.27 177.56 110.037 179.183 -136 238V32.8554Z' fill='%236316DB'/%3E%3C/svg%3E");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        clip-path: url(#program-clip-path-mobile);
        -webkit-clip-path: url(#program-clip-path-mobile);
    }
    .dummy-program-section {
        display: none;
    }
    .program-section-img {
        display: none;
    }
    .program-section > div:first-of-type {
        display: none;
    }
    .program-section-arrow {
        display: none;
    }
    .program-section-content {
        flex: 1;
        max-width: 600px;
        align-self: center;
        text-align: center;
    }
    .program-section-title h2 {
        font-size: 32px;
        line-height: 40px;
        text-align: center;
    }
    .program-section-content li {
        font-size: 18px;
        line-height: 26px;
        text-align: right;
    }
    .program-section-content ul {
        margin-top: 40px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .program-section {
        padding: 48px 20px 80px 20px;
    }
    .program-section::before {
        clip-path: url(#program-clip-path-small);
        -webkit-clip-path: url(#program-clip-path-small);
    }
    .program-section-content {
        max-width: 500px;
    }
    .program-section-title h2 {
        font-size: 24px;
        line-height: 32px;
    }
    .program-section-content li {
        font-size: 16px;
        line-height: 22px;
        text-align: right;
    }
    .program-section-content ul {
        margin-top: 32px;
        padding-right: 18px;
    }
}

@media (max-width: 480px) {
    .program-section {
        padding: 0 16px 80px 16px;
    }
    .program-section::before {
        clip-path: url(#program-clip-path-small);
        -webkit-clip-path: url(#program-clip-path-small);
    }
    .program-section-content {
        max-width: 90%;
    }
    .program-section-title h2 {
        font-size: 20px;
        line-height: 28px;
    }
    .program-section-content li {
        font-size: 14px;
        line-height: 20px;
        text-align: right;
    }
    .program-section-content ul {
        margin-top: 24px;
        padding-right: 16px;
    }
}
