.students-stories-section {
    padding: 0px 0;
    position: relative;
}

.students-stories-section .decoration {
    position: absolute;
    width: 100%;
    max-width: 100px;
    height: auto;
    z-index: 0;
}

.students-stories-section .decoration-top {
    bottom: 0;
    left: 20px;
}

.direction-ar .students-stories-section .decoration-top {
    left: auto;
    right: 20px;
    transform: scaleX(-1);
}

.students-stories-section .content-area {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
}

.students-stories-section .header2 {
    margin-bottom: 40px;
}

.student-story {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--light-gray);
    background-color: rgba(161, 161, 161, 0.041);
    padding: 30px 30px;
    position: relative;
    gap: 40px;
}

.student-story.image-left .story-image {
    order: 1;
}

.student-story.image-left .story-content {
    order: 2;
}

.student-story.image-right .story-image {
    order: 2;
}

.student-story.image-right .story-content {
    order: 1;
}

.story-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: 4px 4px 0px #00babc;
    transition: box-shadow 0.3s ease;
}

.story-image-left {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: 4px 4px 0px #00babc;
    transition: box-shadow 0.3s ease;
}

.story-image-right {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: 4px -4px 0px #00babc;
    transition: box-shadow 0.3s ease;
}


.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-story.image-left:hover .story-image {
    box-shadow: -12px 12px 0px #00babc;
}

.student-story.image-right:hover .story-image {
    box-shadow: 12px 12px 0px #00babc;
}

.student-story.image-left.direction-ar:hover .story-image {
    box-shadow: 12px 12px 0px #00babc;
}

.student-story.image-right.direction-ar:hover .story-image {
    box-shadow: -12px 12px 0px #00babc;
}


.story-content {
    padding: 0px;
    max-width: 60%;
}

.story-content .header5 {
    margin-bottom: 8px;
}

.story-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-text {
    margin-top: 20px;
    margin-bottom: 50px;
    line-height: 1.5;
    font-size: large;
}

.story-quote {
    position: relative;
    font-style: italic;
    color: var(--secondary-color);
    padding: 20px 30px;
    border-left: 6px solid var(--primary-color);
    background: #172DB7;
}

.story-quote::before {
    content: '"';
    font-size: 48px;
    position: absolute;
    left: 10px;
    top: -10px;
    color: var(--primary-color);
    opacity: 0.6;
}

.direction-ar .story-quote {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    text-align: right;
    direction: rtl;
}

.direction-ar .story-quote::before {
    left: auto;
    right: 10px;
}


/* Student Video Section */

.page-section.students-video-section {
    padding: 80px 0;
    background-color: #E8EAED;
    position: relative;
}

.page-section.students-video-section img:first-of-type {
    position: absolute;
    top: -40px;
    right: 0;
    width: 250px;
    height: auto;
    rotate: 180deg;

}

.page-section.students-video-section img:last-of-type {
    position: absolute;
    left: 0;
    bottom: -40px;
    width: 250px;
    height: auto;
    rotate: 180deg;
}

.page-section.students-video-section .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.page-section.students-video-section .container .header-area {
    text-align: center;
    margin-bottom: 40px;
}

.page-section.students-video-section .container .header-area h2 {
    padding-bottom: 40px;
}

.page-section.students-video-section .container .video-area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    gap: 2px
}

.page-section.students-video-section .container .video-area .video-wrapper {
    width: 30%;
    position: relative;
    transform: translateY();
}

.page-section.students-video-section .container .video-area .video-wrapper:hover div {
    transform: translateY(-100%);
    background-color: rgba(2, 0, 0, 0);
    color: #ffffff00;
}

.page-section.students-video-section .container .video-area .video-wrapper iframe {
    width: 100%;
    height: 300px;
}

.page-section.students-video-section .container .video-area .video-wrapper div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000e4;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: capitalize;
    z-index: 1;
    color: #00babc;
    font-size: large;
    font-weight: bolder;
    transform: translateY(0);
    transition: transform 1s ease, background-color 0.2s ease;
}

/* Student Life Section */

.sls {
    position: relative;
}

div.sls>img#top {
    position: absolute;
    top: 0;
    right: 20px;
    z-index: 50;
}

div.sls>img#bot {
    position: absolute;
    bottom: 0;
    left: 20px;
    z-index: 20;
    rotate: 180deg;
}

.page-section.student-life-header {
    padding: 60px 0 20px;
    background-color: var(--background-color, #f9f9f9);
}

.page-section.student-life-header .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.page-section.student-life-header .header2 {
    margin-bottom: 20px;
    color: var(--primary-color, #00babc);
}

.page-section.student-life-header .text2 {
    color: var(--text-color, #333);
    line-height: 1.6;
}

.page-section.student-life {
    padding: 60px 0;
    background-color: var(--background-color, #f9f9f9);
    position: relative;
}

.page-section.student-life:first-of-type {
    padding-top: 60px;
}

.page-section.student-life .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.life-title {
    margin-bottom: 30px;
    position: relative;
    transition: width 0.3s ease;
}

.life-title::before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: #eacf02;
    margin-bottom: 5px;
}

.life-title.ar::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #eacf02;
    margin-bottom: 10px;
    position: absolute;
    left: 0;
    bottom: -20px;
}

.life-title.en::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffe100;
    margin-bottom: 10px;
    position: absolute;
    right: 0;
    bottom: -20px;
}

.life-title:hover::before,
.life-title:hover::after {
    width: 80px;
    transition: width 0.3s linear;
}

.life-title .header3 {
    color: var(--primary-color, #00babc);
}

.carousel-wrapper {
    max-width: 900px;
    margin: 0 auto 30px;
}

.life-description-area {
    max-width: 800px;
    margin: 0 auto;
}

.life-description-area .life-description {
    color: var(--text-color, #333);
    line-height: 1.8;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 186, 188, 0.4);
    border: 2px solid #00babc;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(0, 186, 188, 0.7);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #00babc;
    transform: scale(1.2);
}


@media (max-width: 1024px) {
    .student-story {
        gap: 40px;
    }

    .students-stories-section {
        padding: 60px 0;
    }

    .students-stories-section .header2 {
        margin-bottom: 50px;
    }

    .students-stories-section .decoration {
        max-width: 80px;
    }

    .life-title {
        margin-bottom: 25px;
    }

    .carousel-wrapper {
        margin-bottom: 25px;
    }

    .page-section.student-life {
        padding: 50px 0;
    }

    div.sls>img#top {
        display: none;
    }

    div.sls>img#bot {
        display: none;
    }

    .page-section.students-video-section .container .video-area .video-wrapper {
        width: 45%;
        position: relative;
        transform: translateY();
    }
}

@media (max-width: 768px) {
    .student-story {
        gap: 30px;
        margin-bottom: 50px;
        padding-bottom: 50px;
        flex-direction: column;
    }

    .student-story.image-left .story-image,
    .student-story.image-right .story-image,
    .student-story.direction-ar.image-left .story-image,
    .student-story.direction-ar.image-right .story-image {
        order: 1 !important;
    }

    .student-story.image-left .story-content,
    .student-story.image-right .story-content,
    .student-story.direction-ar.image-left .story-content,
    .student-story.direction-ar.image-right .story-content {
        order: 2 !important;
    }

    .story-image {
        aspect-ratio: 1 / 1;
    }

    .students-stories-section {
        padding: 50px 0;
    }

    .students-stories-section .header2 {
        margin-bottom: 40px;
    }

    .story-content {
        padding: 10px 0;
        max-width: 100%;
    }

    .story-text {
        line-height: 1.2;
    }

    .story-quote {
        padding: 15px 20px;
        border-left-width: 3px;
    }

    .direction-ar .story-quote {
        border-right-width: 3px;
    }

    .story-quote::before {
        font-size: 36px;
    }

    .students-stories-section .decoration {
        display: none;
    }

    .page-section.students-video-section .container .video-area .video-wrapper {
        width: 45%;
        position: relative;
        transform: translateY();
    }

    /* Student Life responsive */

    div.sls>img#top {
        display: none;
    }

    div.sls>img#bot {
        display: none;
    }

    .life-title {
        margin-bottom: 20px;
    }

    .carousel-wrapper {
        margin-bottom: 20px;
    }

    .page-section.student-life {
        padding: 40px 0;
    }

}

@media (max-width: 480px) {
    .page-section.students-video-section .container {
        overflow: hidden;
    }

    .page-section.students-video-section .container .video-area .video-wrapper:hover div {
        transform: translateX(-100%);
        background-color: rgba(2, 0, 0, 0);
        color: #ffffff00;
    }

    .students-stories-section {
        padding: 40px 0;
    }

    .students-stories-section .header2 {
        margin-bottom: 30px;
        font-size: 1.5rem;
    }

    .student-story {
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .story-content .header3 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .story-title {
        font-size: 0.875rem;
        margin-bottom: 15px;
    }

    .story-text {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .story-quote {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-left-width: 2px;
    }

    .direction-ar .story-quote {
        border-right-width: 2px;
    }

    .story-quote::before {
        font-size: 28px;
        left: 6px;
        top: -8px;
    }

    .direction-ar .story-quote::before {
        left: auto;
        right: 6px;
    }

    .page-section.students-video-section .container .video-area {
        flex-direction: column;
    }

    .page-section.students-video-section .container .video-area .video-wrapper {
        width: 80%;
        position: relative;
        transform: translateY();
    }
}

@media (max-width: 360px) {

    .page-section.students-video-section .container {
        overflow: hidden;
    }

    .page-section.students-video-section .container .video-area .video-wrapper:hover div {
        transform: translateX(-100%);
        background-color: rgba(2, 0, 0, 0);
        color: #ffffff00;
    }

    .students-stories-section {
        padding: 30px 0;
    }

    .student-story {
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .story-image {
        aspect-ratio: 3 / 4;
    }

    .students-stories-section .header2 {
        font-size: 1.25rem;
        margin-bottom: 25px;
    }

    .page-section.students-video-section .container .video-area {
        flex-direction: column;
    }

    .page-section.students-video-section .container .video-area .video-wrapper {
        width: 80%;
        position: relative;
        transform: translateY();
    }
}