.carousel-item img {
    height: 650px;
    object-fit: cover;
}

.custom-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 20px;
    border-radius: 10px;
}

.custom-caption h2 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
}

.custom-caption p {
    font-size: 18px;
    color: #fff;
}


.logo-img2 {
    height: 40px;
    width: auto;
    margin-left: -20px;
}

.main-button a {
    display: inline-block;
    background-color: #7a6ad8;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: 40px;
    padding: 0px 25px;
    border-radius: 20px;
    transition: all .3s;
    margin-bottom: 20px;
}

.main-button a:hover {
    background-color: #8506fc;
    color: #fff;
}



.card-grid {
    align-items: flex-start;
    /* background-image: linear-gradient(15deg, #0f4667 0%, #2a6973 150%); */
    display: flex;
    min-height: 100%;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-l);
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-column-gap: var(--spacing-l);
    grid-row-gap: var(--spacing-l);
    max-width: var(--width-container);
    width: 100%;

}


@media(min-width: 540px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    list-style: none;
    position: relative;
    height: 300px;
    border-radius: var(--spacing-l);
}

.card:before {
    content: '';
    display: block;
    /* padding-bottom: 150%; */
    width: 100%;
}

.card__background {
    background-size: cover;
    background-position: center;
    border-radius: var(--spacing-l);
    bottom: 0;
    filter: brightness(0.75) saturate(1.2) contrast(0.85);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center;
    trsnsform: scale(1) translateZ(0);
    transition:
        filter 200ms linear,
        transform 200ms linear;
}

/* .card:hover .card__background {
  transform: scale(1.05) translateZ(0);
}


.card-grid:hover > .card:not(:hover) .card__background{
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
} */


.card__content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px;
    text-align: center;
}


.card__heading {
    color: var(--text-lighter);
    font-size: 1.9rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    word-spacing: 100vw;
    margin-top: 150px;

}

.card__background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.ticks-list p {
    color: #000;
}



/*
---------------------------------------------
 project Large and Lite Version
 ---------------------------------------------
   */


.courses-container {
    font-family: 'Muli', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.course {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for smaller screens */
    margin: 30px;
    overflow: hidden;
    width: 80%;
    max-width: 100%;
}

.course h6 {
    opacity: 0.6;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course h2 {
    letter-spacing: 1px;
    margin: 10px 0;
    color: #fff;
}

.course p {
    color: #fff;
}

.course-preview {
    color: #fff;
    padding: 30px;
    max-width: 300px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.course-info {
    padding: 30px;
    position: relative;
    width: calc(100% - 300px);
    background-color: #0062a9;
    flex: 2;
}


/* Adjustments for tablets */
@media (max-width: 768px) {
    .course {
        flex-direction: column;
        /* Stack content vertically */
    }

    .course-preview,
    .course-info {
        width: 100%;
        flex: unset;
    }

    .course-preview img {
        width: 100vh;
        /*height: auto; */
        justify-content: center;

    }

    .course-info {
        padding: 10px;
    }
}

/* Adjustments for mobile phones */
@media (max-width: 480px) {
    .course {
        margin: 10px;
    }

    .course-info {
        padding: 5px;
    }

    .course-preview {
        padding: 5px;
    }

    .course h2 {
        font-size: 18px;
    }

    .course p {
        font-size: 14px;
        padding-right: 10px;
    }
}



/* 
---------------------------------------------
Services Style
--------------------------------------------- 
*/

.services .service-item:hover .icon img {
    margin-top: -10px;
}

.services .service-item {
    position: relative;
    margin-top: 95px;
}

.services .service-item .icon {
    width: 190px;
    height: 190px;
    display: inline-block;
    text-align: center;
    line-height: 190px;
    background-color: #7a6ad8;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: -95px;
}

.services .service-item .icon img {
    max-width: 86px;
    transition: all .2s;
}

.services .service-item .main-content {
    border-radius: 25px;
    padding: 80px 30px 50px 30px;
    background-color: #f1f0fe;
    margin-bottom: 30px;
    margin-right: 80px;
    transition: all .4s;
}

.services .service-item h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 30px;
    transition: all .4s;
}

.services .service-item p {
    color: #4a4a4a;
    margin-bottom: 25px;

}



.service_events_item .service-thumb {
    position: relative;
    border-radius: 0px 25px 0px 0px;
    overflow: hidden;
}

.service_events_item .service-thumb span.category {
    position: absolute;
    left: 30px;
    top: 30px;
    font-size: 14px;
    text-transform: uppercase;
    color: #7a6ad8;
    background-color: rgba(250, 250, 250, 0.95);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
}

.service_events_item .service-thumb img {
    margin-bottom: -5px;
    height: 250px;
    width: 500px;

}


.service_events_item {
    background-color: #0062a9;
    border-radius: 0px 25px 0px 25px;
    margin-bottom: 30px;
    position: relative;
    justify-content: center;
    align-items: center;
}


.service_events_item .down-content {
    padding: 20px 30px 25px 30px;
}

.service_events_item .down-content span.author {
    color: #7a6ad8;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 6px;
}

.service_events_item .down-content h4 {
    font-size: 22px;
    font-weight: 600;
    transition: all .3s;
    color: #fff;
}

.service_events_item .down-content p {
    color: #fff;
}

.service_events_item:hover .down-content h4 {
    color: #7a6ad8;
}



/*
--------------------------------------------- 
Popup Overlay
--------------------------------------------- 
 */



.accordion-button {
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 10px 0 10px 15px;

    /* border-radius: 25px; */

}

.accordion-button:hover {
    background-color: #e9ecef;
    color: #0062a9;
}


.accordion-button::after {
    font-size: 12px;
    font-weight: 500;
    background-image: none;
    content: '+';
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background-color: #7a6ad8;
    color: #fff;
}

.accordion-button:not(.collapsed)::after {
    background-image: none;
    line-height: 32px;
    content: '-';
}

.accordion-button:not(.collapsed) {
    background-color: #0062a9;
    color: white;
    padding: 15px 0 15px 15px;

    /* border-radius: 20px 0px 0px 0px; */
}

.accordion-body {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.expand_details {
    margin-top: 50px;
}

.details-item {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}


@media (min-width: 576px) {
    .expand_container {
        max-width: 540px;
        margin-top: 50px;
    }
}

@media (min-width: 768px) {
    .expand_container {
        max-width: 720px
    }
}

@media (min-width: 992px) {
    .expand_container {
        max-width: 960px
    }
}

@media (min-width: 1200px) {
    .expand_container {
        max-width: 1140px
    }
}

@media (min-width: 1400px) {
    .expand_container {
        max-width: 1320px
    }
}

/* 
---------------------------------------------
tab Contant main_features
---------------------------------------------
*/
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;1,400&display=swap");


.tab-container {
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
    margin: 0 auto;
    width: 100%;
    /* Adjust for responsiveness */
    max-width: 100%;
    /* Ensure max size */
    filter: drop-shadow(2px 4px 6px #e0e0e0);
    padding-bottom: 100px;
}

.main_features,
.other_features {
    height: 310px;
    width: 550px;
}


.tabs {
    display: flex;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* white-space: nowrap;  */
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    scrollbar-color: #cccccc transparent;
    height: 100px;
}

.tab-content img {
    height: 300px;
    background-size: cover;
    border-radius: 10px;
}

.tab {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    background: #f1f1f1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #fff;
    border-radius: 8px;
    margin-right: 2px;
    border: 1px solid #e7e7e7;
    background-color: #0062a9;


    &:last-child {
        margin-right: 0;
    }

    &.active {
        background: #fff;
        border: 1px solid transparent;
        border-bottom: 2px solid #007bff;
        font-weight: bold;
        color: #333;
        position: relative;
        top: 1px;
    }

    &:hover:not(.active) {
        background-color: #e2e1e1;
        border-bottom: 2px solid #989797;
    }
}


.tab-content {
    background-color: #0062a9;
    padding: 50px 0px 50px 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    border-radius: 15px;
    /* height: 80%; */
}

.tab-content h1,
p {
    color: #fff;

}

.tabs button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    background-color: #0062a9;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tabs button.active {
    background-color: #007bff;
    color: #fff;
}

.tabs button img {
    margin-right: 5px;
    height: 50px;
    width: 50px;
}

.tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for cleaner UI */
}



/* Responsive Design */

/* Tablet Devices */
@media (max-width: 768px) {
    .tab-container {
        padding: 10px;
        margin-bottom: 50px;
    }

    .tab {
        flex: 1 0 48%;
        /* Allow two tabs per row */
        font-size: 14px;
    }

    .tab-content {
        padding: 15px;
        padding-left: 50px;
    }

    .tab img {
        width: 80%;
        height: auto;
    }

    .tabs button {
        padding: 8px 10px;
        font-size: 12px;
    }


}



/* Mobile Devices */
@media (max-width: 480px) {
    .tab {
        flex: 1 0 100%;
        /* Stack tabs vertically */
        font-size: 13px;
        padding: 8px 10px;
    }

    .tab-content {
        padding: 10px;
        font-size: 14px;
    }

    .tabs {
        gap: 5px;
        /* Reduce spacing between tabs */
    }

    .tab-container {
        width: 100%;
        /* Use full width for small screens */
    }
}


/*
--------------------------------------------- 
Popup Overlay
--------------------------------------------- 
 */


.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: #fff;
}

.text-overlay-main {
    font-size: 0;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Times New Roman', Times, serif;
}

.ubar-text {
    font-size: 48px;
    font-weight: bold;
    display: inline;
}

.erp-text {
    font-size: 30px;
    display: inline;
}

.text-overlay-sub {
    font-size: 26px;
    font-family: 'Times New Roman', Times, serif;
}



/* ===============================
   POPUP IMAGES
=================================*/

.popup-image,
.popup_image2,
.popup_image4 {
    width: 100%;
    height: auto;
    border-radius: 12px;
}


.popup_image4 {
    width: 100%;
    height: 70%;
    border-radius: 12px;
}


/* ===============================
   MODAL STYLING
=================================*/

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 40px 0;
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


/* ===============================
   CLOSE BUTTON
=================================*/

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff5b5b;
}


/* ===============================
   TICKS LIST
=================================*/

.ticks-list span {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

.fa-check {
    color: #28a745;
    margin-right: 8px;
}


.hide {
    display: none;
}


/* ===============================
   READ MORE LINKS
=================================*/

.read-more-show,
.read-more-hide {
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.read-more-show:hover,
.read-more-hide:hover {
    text-decoration: underline;
}


/* ===============================
   RESPONSIVE DESIGN
=================================*/

@media (max-width: 1024px) {
    .modal-content {
        width: 95%;
        padding: 30px;
    }

    .text-overlay {
        left: 30px;
    }

    .ubar-text {
        font-size: 36px;
    }

    .erp-text {
        font-size: 20px;
    }

    .text-overlay-sub {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .modal-content {
        padding: 20px;
    }

    .text-overlay {
        left: 20px;
    }

    .ubar-text {
        font-size: 26px;
    }

    .erp-text {
        font-size: 14px;
    }

    .text-overlay-sub {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .modal-content {
        padding: 15px;
    }

    .ubar-text {
        font-size: 20px;
    }

    .erp-text {
        font-size: 12px;
    }

    .text-overlay-sub {
        font-size: 12px;
    }

    h1 {
        font-size: 18px;
    }

    p {
        font-size: 13px;
    }

    .ticks-list span {
        font-size: 13px;
    }
}