/* =========================
   Typography
   ========================= */



/* =========================
   Hero Section
   ========================= */

.uni-hero_section {
    position: relative;
    height: 100vh;
    width: 100%;
    max-height: 855px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 94.09%),
        linear-gradient(71deg, rgba(0, 82, 154, 0.20) -0.38%, rgba(0, 168, 171, 0.20) 67.37%);
}

/* 
 .uni-hero-content {
    
    max-width: 925px;
    width: 100%;
}  */

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 171px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 5.38%, #FFF 83.08%);
    z-index: 2;
    pointer-events: none;
}

/* Right Side Content */


.hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.hero-description {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
    max-width: 607px;
    margin-bottom: 32px;
}

.hero-cta-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 17px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    min-width: 246px;
}

/* Left Side Content */
.left-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.left-side-content {

    height: 100%;
}

.hero-image {

    bottom: 67px;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 621px;
    max-height: 649px;
    z-index: 1;
}

/* Hero Responsive - Tablet */
@media (max-width: 991px) {
    .uni-hero_section {
        max-height: 750px;
    }

    .uni-hero-content {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
        max-width: 400px;
    }

    .hero-image {
        max-width: 450px;
        max-height: 500px;
        bottom: 40px;
    }

    .mini-card {
        max-width: 180px;
    }

    .uni-mini-card {
        max-width: 180px;
        max-height: 160px;
    }

    .uni-mini-card p {
        font-size: 12px;
    }

    .uni-mini-card-imge {
        max-height: 90px;
    }
}

/* Hero Responsive - Mobile */
@media (max-width: 768px) {
    .uni-hero_section {
        max-height: none;
        height: auto;
        /* min-height: 100vh; */
        /* padding: 100px 0; */
        /* padding-bottom: 100px; */
    }

    .uni-hero-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 100px 24px 0 !important;
        gap: 0 !important;
    }

    .uni-hero_section .right-side {
        text-align: center;
        align-items: center !important;
        width: 100%;
        order: 1;
    }

    .hero-title {
        font-size: 32px;
        text-align: center;
        line-height: 1.5;
    }

    .hero-description {
        text-align: center;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .hero-cta-btn {
        margin: 0 auto;
        background-color: #045881 !important;
    }

    .uni-hero-content>picture {
        order: 2;
        width: 100%;
    }

    .hero-image {
        position: relative !important;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
        object-position: bottom center;
        z-index: 1;
        margin-top: auto;
    }

    .mini-card {
        display: none !important;
    }

    .hero-overlay {
        height: 148px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 5.38%, #FFF 83.08%);
    }
}


.mini-card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100%;
    width: 100%;
    max-width: 230px;
}

/* Mini Card */
.uni-mini-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 201px;
    max-width: 230px;
    height: 100%;
    margin-top: 10px;
    padding: 15px 12px 12px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(206, 228, 233, 0.32) 100%);
    backdrop-filter: blur(10px);
}

.uni-mini-card p {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 10px 0;
    max-width: 102px;
}

.uni-mini-card-imge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 206px;
    max-height: 119px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(270deg, #00A8AB -45.54%, #00529A 99.95%);
}

.uni-mini-card-imge img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100%;
    max-width: 102px;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.uni-mini-card-imge-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 10px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* uni-program-section */

.uni-program-section-wrapper {
    background-color: #0d1e3a;
    /* Dark blue background from image */
    border-radius: 40px;
    /* Large rounded corners for the section */
    /* Remove overflow: hidden here if it clips the hover effect, 
       but we need it for the section background shape. 
       Usually, we use padding to compensate for scale. */
    margin: 80px auto;
    position: relative;
    z-index: 10;
}

.uni-program-section {
    padding: 60px;
    width: 100%;
    min-height: 560px;
}

.uni-program-section-left {
    flex: 1;
    max-width: 65%;
    /* Swiper takes more space */
    height: 100%;
    /* No overflow: hidden here to allow the cards to move up */
}

.uni-program-section-right {
    max-width: 356px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 20px;
    /* Add some padding at the bottom for the pagination */
}

.uni-program-section-right-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

.uni-program-section-right-content p {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    max-width: 320px;
}

.programs-all-btn {
    background-color: #00A8AB;
    /* Teal color from image */
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    width: fit-content;
}

/* Program Card Styles */
.uni-program-card {
    position: relative;
    height: 440px;
    width: 280px;
    /* Fixed width as requested */
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    padding: 24px;
    overflow: hidden;
    /* Enforce overflow hidden */
}


.uni-program-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0C3155;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

.uni-program-card-content {
    position: relative;
    z-index: 2;
}

.uni-program-card-content h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.uni-program-card-content p {
    color: #fff;
    opacity: 0.9;
    font-size: 16px;
}

.uni-program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, rgba(12, 49, 85, 0) 0%, rgba(12, 49, 85, 0.9) 100%);
    z-index: 1;
}

.programs-overlay {
    position: absolute;
    border-radius: 93.5px;
    opacity: 0.6;
    background: #00A8AB;
    filter: blur(250px);
    width: 483px;
    height: 352px;
    top: 0;
    right: 0;
}


.qa-overlay {
    position: absolute;
    border-radius: 93.5px;
    opacity: 0.6;
    background: #00A8AB;
    filter: blur(250px);
    width: 483px;
    height: 352px;
    bottom: 0;
    left: 0;
}

/* Swiper Pagination Customization */
.swiper-pagination-container {
    padding-top: 20px;
}

.uni-programs-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: relative;
    bottom: 0;
    text-align: right;
    /* Match Arabic RTL layout */
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.uni-programs-pagination .swiper-pagination-bullet {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.uni-programs-pagination .swiper-pagination-bullet-active {
    background: #00A8AB;
    width: 60px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .uni-program-section {
        flex-direction: column;
        /* Changed from column-reverse */
        padding: 60px 20px;
        gap: 40px;
        text-align: center;
        /* Center text on mobile */
    }

    .uni-program-section-right {
        display: contents;
        /* Allow children to be reordered by parent */
    }

    .uni-program-section-right-content {
        order: 1;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    .uni-program-section-left {
        order: 2;
        max-width: 100% !important;
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .uni-program-section-actions {
        order: 3;
        display: flex;
        flex-direction: column-reverse !important;
        /* Swap button and pagination */
        align-items: center !important;
        /* Center button and pagination */
        justify-content: center !important;
        gap: 24px !important;
        width: 100%;
        margin-top: 20px;
    }

    .uni-program-section-right-content h2 {
        font-size: 32px;
        text-align: center;
    }

    .uni-program-section-right-content p {
        margin: 0 auto;
    }

    .uni-programs-pagination.swiper-pagination-bullets {
        justify-content: center !important;
    }

    .programs-overlay {
        display: none;
    }
}

.uni-programs-swiper {
    overflow: hidden;
}

.uni-programs-swiper .swiper-slide {
    width: auto !important;
    /* Allow slide to take card width */
}

/* =========================
   About Us Section
   ========================= */

.uni-about-section {
    position: relative;
    z-index: 5;
    margin-top: 60px;
}

.about-badge {
    display: inline-block;
    padding: 6px 16px;
    /* background-color: #F2F7F9; */
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
}

.about-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    max-width: 500px;
}

.about-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    max-width: 300;
}

.about-more-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    padding: 16px 48px;
    font-size: 14px;
    font-weight: 700;
    width: 246px;
    transition: all 0.3s ease;
}

.about-more-btn:hover {
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .about-more-btn {
        display: none !important;
    }
}


.about-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

}

.about-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 540px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 24px;
    transition: transform 0.3s ease;


}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 180px;
    /* Fixed height to align titles on the same line */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive adjustments for About Section */
@media (max-width: 991px) {
    .about-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .about-card {
        max-width: 100%;
        height: 500px;
        margin-bottom: 20px;
    }

    .about-title {
        font-size: 32px;
    }
}


/* =========================
   Registration Mechanism Section
   ========================= */

.uni-registration-mechanism {
    background-color: #00A8AB;
    /* Teal background from design */

    background-position: 0 0, 0 40px, 40px 40px, 40px 0;
    position: relative;

    overflow: hidden;
    color: #fff;
    padding: 120px 0;

}

.registration-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.registration-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.registration-timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(-50%);
    z-index: 1;
}


.timeline-item {
    display: flex;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    left: 49%;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 135px;
    background: #2DB5AE;
}

.timeline-dot-first {
    position: absolute;
    left: 49%;
    top: -57px;
    width: 24px;
    height: 24px;
    border-radius: 180px;
    background: #FFF;
}

.timeline-content {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.right-item .timeline-content {
    margin-left: auto;
    align-items: flex-start;
}

.left-item .timeline-content {
    margin-right: auto;
    align-items: flex-end;
}

.step-badge {
    background-color: #fff;
    color: #00A8AB;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    align-self: end;
    margin-bottom: 16px;
    display: inline-block;
}

.even-step-badge {
    background-color: #fff;
    color: #00A8AB;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    align-self: start;
    margin-bottom: 16px;
    display: inline-block;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-height: 138px;

    border-radius: 24px;
    padding: 32px;
    width: 100%;
    transition: transform 0.3s ease;
}

@media (max-width: 991px) {
    .step-card {
        max-height: 138px;
        padding: 24px;
        width: 100%;
    }
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;

}

.step-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* RTL Adjustment for text align inside cards */
.right-item .step-card,
.right-item .step-title,
.right-item .step-desc {
    text-align: right;
}

.left-item .step-card,
.left-item .step-title,
.left-item .step-desc {
    text-align: right;
}

@media (max-width: 991px) {
    .registration-timeline-wrapper {
        padding-right: 30px;
    }

    .timeline-line {
        display: none;


    }

    .timeline-dot-first {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .step-badge {
        align-self: start;
        background-color: #C2992D;
        color: #fff;
    }

    .even-step-badge {
        align-self: end;
        background-color: #C2992D;
        color: #fff;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-right: 0 !important;
        margin-left: 60px !important;
        align-items: flex-start !important;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .registration-title {
        font-size: 32px;
    }
}


.uni-faq-section {
    padding: 120px 0;
    background-color: #0C3155;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.qa-img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.qa-img-wrapper img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: right top;
}

.qa-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(12, 49, 85, 0.00) 0%, #0C3155 100%),
        linear-gradient(180deg, rgba(12, 49, 85, 0.00) 0%, #0C3155 100%);
}

.faq-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

/* Accordion Customization */
.uni-faq-accordion {
    border: none;
}

.uni-faq-accordion .accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 20px;
    overflow: visible;
}

.uni-faq-accordion .accordion-header {
    margin-bottom: 8px;
}

.uni-faq-accordion .accordion-button {

    border-radius: 12px !important;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 24px 32px;
    box-shadow: none;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    max-width: 698px;
    transition: all 0.3s ease;

    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}





.uni-faq-accordion .accordion-button::after {
    display: none;
}

.uni-faq-accordion .accordion-button:not(.collapsed) .arrow-icon {
    transform: rotate(180deg);
}

.uni-faq-accordion .accordion-body {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.8;
    padding: 16px 32px 24px 32px;
    text-align: right;
    background: transparent;
}


.faq-title {
    color: #fff;
    font-size: 40px;
    font-weight: 800;

}

.faq-subtitle {
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 300;

}

@media (max-width: 991px) {
    .qa-img-wrapper {
        width: 100%;
        opacity: 0.3;
    }

    .faq-title {
        font-size: 32px;
        text-align: center;
        width: 100%;
    }

    .faq-subtitle {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }

    .faq-content-wrapper {
        margin-bottom: 40px;
        align-items: center;
    }
}