/* Document Viewer Widget Styles */


.document-viewer-widget {
    width: 100%;
    margin-bottom: 30px;
}

.document-viewer-widget .document-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.document-viewer {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.document-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.download-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #0073aa;
}

.download-button:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

    .download-button i {
        font-size: 16px;
    }

    .document-viewer-placeholder {
        padding: 60px 20px;
        text-align: center;
        background: #f8f9fa;
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        color: #6c757d;
    }

    .document-viewer-error {
        padding: 40px 20px;
        text-align: center;
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        border-radius: 8px;
        color: #721c24;
    }

    /* Loading and Error States */
    .document-viewer.loading {
        position: relative;
        min-height: 400px;
    }

    .document-loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
    }

    .document-loading-spinner .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #0073aa;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }

    .document-loading-spinner p {
        color: #666;
        font-size: 14px;
        margin: 0;
    }

    .document-viewer.error {
        position: relative;
        min-height: 400px;
    }

    .document-error-message {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        border-radius: 8px;
        padding: 20px;
        color: #721c24;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

/* Responsive Design */
@media (max-width: 768px) {
    .document-viewer-widget .document-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .document-viewer iframe {
        height: 400px;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .document-viewer iframe {
        height: 300px;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* style for the advance post blog section starts */
.latest-stories {
    flex: 1;
}

.latest-stories__title, .calendar-events h2 {
    margin-bottom: 24px;
}

.latest-stories__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-stories__item {
    display: flex;
    gap: 24px;
    align-items: center;
}
.latest-stories__item:not(:last-child) {
    margin-bottom: 48px;

}
.latest-stories__item .latest-stories__image {
    min-width: 190px;
    height: 140px;
}

.latest-stories__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.latest-stories__badge {
    background-color: #e3f2fd;
    color: #1e88e5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.latest-stories__headline {
    font-size: unset !important;
    margin: 0 0 16px;
}

.latest-stories__headline a {
    color: #000;
    text-decoration: none;
}

.latest-stories__meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.latest-stories__avatar {
    width: 25px;
    height: 25px !important;
    border-radius: 50% !important;
    margin-right: 8px;
}

.latest-stories__separator {
    margin: 0 6px;
}
/* style for the advance post blog section ends */




.advanced-post-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}


/* First Post Styles */
/* Remove height restriction */
.advanced-post-wrapper .post-col.first-post {
    max-height: none; /* remove the max height */
    width: 100%; /* ensure full width */
}

.advanced-post-wrapper .first-post .image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto; /* adjusted to align with right column */
    border-radius: 8px;
	object-fit: contain;
}

.advanced-post-wrapper .first-post .img {
    width : 100%;
    height: 100%
 	object-fit: contain; /* show full image without crop */
    display: block;
}

.advanced-post-wrapper .first-post .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image without crop */
    display: block;
}

/* Remaining Posts Column */
.advanced-post-wrapper .post-col.remaining-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.advanced-post-wrapper .post-col.remaining-post .post-card {
    display: flex;
    gap: 24px;
    align-items: center;
}

.advanced-post-wrapper .post-col.remaining-post .image-wrapper {
    position: relative;
    width: 192px;
    height: 140px; /* consistent thumb height */
    border-radius: 10px;
    overflow: hidden;
}

.advanced-post-wrapper .post-col.remaining-post .img {
    width: 100%;
    height: 100%;
}

.advanced-post-wrapper .post-col.remaining-post .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advanced-post-wrapper .post-col.remaining-post .post-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    transition: ease all 0.4s;
}

.advanced-post-wrapper .post-col.remaining-post .post-title a {
    font-size: 20px;
    font-weight: 400;
    color: #141414;
}
.advanced-post-wrapper .first-post .post-card{
    position: static;
}
.advanced-post-wrapper .first-post .post-content {
    position: static;
    margin-top: 16px;
}
.advanced-post-wrapper .first-post .post-overlay{display:none;}
.advanced-post-wrapper .post-col.first-post .post-title a{color:#141414 !important;}
.advanced-post-wrapper .first-post .date , .advanced-post-wrapper .first-post .post-author p{color:#686868 !important;}

.advanced-post-wrapper .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.advanced-post-wrapper .category-list .category {
    border-radius: 40px;
    padding: 6px 16px;
    
    display: inline-block;
    transition: ease all 0.4s;
}
.advanced-post-wrapper .remaining-post .category-list .category{
    background-color: #D9F1FF !important;
}

.advanced-post-wrapper .remaining-post .category-list .category a{
    color: #010198 !important;
}

.advanced-post-wrapper .category-list .category a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}


.advanced-post-wrapper .post-title {
    margin: 8px 0 12px 0; /* slightly tighter to reduce total height */
}

.advanced-post-wrapper .post-title a {
    text-decoration: none;
    color: #2A5794;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.advanced-post-wrapper .post-title a:hover {
    color: #71BA46;
}

/* Meta Styles */
.advanced-post-wrapper .post-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.advanced-post-wrapper .author-wrapper {
    display: flex;
    gap: 8px;
}

.advanced-post-wrapper .author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.advanced-post-wrapper .post-author p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #686868;
}
.advanced-post-wrapper .date{
    color: #fff;
}
.advanced-post-wrapper .remaining-post .date , .advanced-post-wrapper .remaining-post .post-author p {
    color: #686868 !important;
    font-size: 16px;
}

/* Button Styles */
.advanced-post-wrapper .post-col.remaining-post .post-button {
    width: 54px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #000000;
}
.advanced-post-wrapper .post-col.remaining-post .post-button:hover {
    border-color: #E89800;
}
.advanced-post-wrapper .post-col.remaining-post .post-button svg{
    width: 14px;
    height: 14px;
}

.advanced-post-wrapper .button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .advanced-post-wrapper .post-card:hover .post-title a{
    color: var(--axiom-secondary-color) !important;
}
.advanced-post-wrapper .post-card:hover .post-content{
    border-color: var(--axiom-secondary-color) !important;
}
.advanced-post-wrapper .post-card:hover .post-button{
    background-color: var(--axiom-secondary-color) !important;
    border-color: var(--axiom-secondary-color) !important;
} */

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .advanced-post-wrapper {
        gap: 32px;
    }
    
    .advanced-post-wrapper .post-col.first-post .post-title a {
        font-size: 28px;
    }
    
    .advanced-post-wrapper .post-col.remaining-post .post-card {
        gap: 16px;
    }
    
    /* .advanced-post-wrapper .post-col.remaining-post .image-wrapper {
        flex: 0 0 160px;
        width: 160px;
        height: 160px;
    } */
}

@media screen and (max-width: 992px) {
    .advanced-post-wrapper {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 768px) {
    /* .advanced-post-wrapper {
        grid-template-columns: 1fr;
    } */
    
    .advanced-post-wrapper .first-post .image-wrapper {height: 320px;}
    
    .advanced-post-wrapper .post-col.first-post .post-title a {
        font-size: 24px;
    }
    
    /* .advanced-post-wrapper .post-col.remaining-post .post-card {
        flex-direction: column;
    } */
    
    .advanced-post-wrapper .post-col.remaining-post .image-wrapper {
        flex: none;
        /* width: 100%; */
        /* height: 200px; */
    }
}


@media screen and (max-width: 480px) {
    .advanced-post-wrapper .post-col.remaining-post .post-card {
        flex-direction: column;
    }
    .advanced-post-wrapper .post-col.remaining-post .image-wrapper {
        flex: none;
        width: 100%;
        height: 300px;
        max-height: 300px;
    }
    .advanced-post-wrapper .post-col.remaining-post .post-card{
        align-items: unset;
    }
    .advanced-post-wrapper .first-post .post-content{
        margin-top: 12px;
    }
}


.elementor-base-theme-service-grid{
    display: grid;
}
.elementor-base-theme-service-grid .service-card{
    border: 1px solid #D0D0D0;
    transition: ease all 0.4s;
}

.elementor-base-theme-service-grid .service-card:hover{
    box-shadow: 0px 0px 12px 0px #00000042;
    transform: translateY(-10px);
}

.vacancy-posts .vacancy-post{
    box-shadow: 0px 0px 8px 0px #00000014;
    gap: 48px; 
    border-radius: 16px;
    overflow: hidden; 
    padding: 32px;
}

.vacancy-posts .vacancy-post:not(:last-child){
    margin-bottom: 80px;
    
}
.vacancy-post .vacancy-image , .vacancy-post .vacancy-content{
    flex: 1;
}
.vacancy-content p {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 400;
    color: #474747;
}

.vacancy-content p strong{ 
    font-size: 18px;
    font-weight: 500;
    color: #1C1C1C;
}
.vacancy-content .vacancy-title {
    margin-bottom: 32px;
}

@media screen and (max-width: 768px) { 
    .vacancy-post {
        flex-direction: column !important;
    }
    .vacancy-content .vacancy-title {
        margin-bottom: 24px;
    }
}

/* Custom CSS for the Media Gallery */
        .dcpl-media-widget .tabs {
            display: flex;
            gap: 32px;
            justify-content: end;
            height: fit-content;
        }
        .dcpl-media-widget .tab-button {
            
            border: none;
            transition: ease all .4s;
            border-radius: 40px;
            cursor: pointer;
            padding: 0;
            font-size: 24px;
        }
        .dcpl-media-widget .tab-button.active {
            /* background: #005b8f; */
            color: white;
            padding: 8px 24px;
        }
        .dcpl-media-widget .tab-content {
            display: none;
        }
        .dcpl-media-widget .tab-active {
            display: block;
        }
        .dcpl-media-widget .media-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 48px;
            row-gap: 80px;
            animation: fadeIn 0.5s ease-in-out forwards;
        }
        .dcpl-media-widget .media-card {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            height: 450px;
        }
        .dcpl-media-widget .media-card img {
            width: 100%;
            border-radius: 10px;
            height: 100%;
            object-fit: cover;
        }
        .dcpl-media-widget .watch-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            width: max-content;
            display: flex;
            gap: 16px;
            transform: translate(-50%, -50%);
            color: #fff;
            text-decoration: none;
            font-size: 24px;
            font-weight: 600;
            z-index: 99;
        }
        .dcpl-media-widget .overlay {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: end;
            align-items: center;
            border-radius: 8px;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));

            color: white;
            /* opacity: 0; */
            /* transition: all 0.5s ease; */
            padding: 24px;
            text-align: center;
        }
        
        .dcpl-media-widget .overlay .download-btn, .dcpl-media-widget .overlay p{ 
            opacity: 0;
            transition: ease all 0.3s;
            transform: translateY(100%);
        }
        .media-card:hover .overlay {
            /* opacity: 1; */
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
        }
        .media-card:hover .overlay .download-btn, .media-card:hover .overlay p {
            opacity: 1;
            transform: translateY(0);
        }
        .dcpl-media-widget .download-btn {
            background: transparent;
            border: 1px solid #fff;
            border-radius: 50%;
            align-content: center;
            width: 50px;
            /* position: absolute;
            top: 50%; */
            height: 50px;
            text-decoration: none;
        }
        .dcpl-media-widget .download-btn svg{ 
            width: 30px;
            height: 30px;
        }
        .dcpl-media-widget .download-btn:hover {
            background: #ddd;
        }
        .dcpl-media-widget .album-modal {
            position: fixed;
            z-index: 9999;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.5s ease-in-out forwards;
        }
        .dcpl-media-widget .album-modal-content {
            background: #fff;
            padding: 0px;
            border-radius: 10px;
            max-width: 90%;
            max-height: 80%;
            overflow-y: auto;
            position: relative;
        }
        .album-modal-content img {
            width: 100%;
            max-width: 300px;
        }
        .close-album-modal,
        .close-video-modal {
            position: absolute;
            top: 10px; right: 15px;
            font-size: 24px;
            z-index: 9;
            cursor: pointer;
        }


.dcpl-media-widget .heading-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}
.heading-wrapper .title , .heading-wrapper .tabs{
    flex: 1;
}
#album-images-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 100px;
    gap: 20px;
}
#album-images-container img{
    max-width: 300px; 
    max-height: 220px;
    object-fit: cover;
    min-height: 220px;
    border-radius: 4px; 

}

@media screen and (max-width: 1360px) { 
    
    #album-images-container{
        grid-template-columns: repeat(3, 1fr);
        padding: 20px 60px;
    }
}
@media screen and (max-width: 900px) {
    .dcpl-media-widget .heading-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    .dcpl-media-widget .tabs{
        flex-wrap: wrap;
        justify-content: center;
    }
    .dcpl-media-widget .tabs .tab-button {
        font-size: 18px;
    }
    .dcpl-media-widget .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #album-images-container{
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 60px;
    }
}
@media screen and (max-width: 672px) {
    
    .dcpl-media-widget .tabs .tab-button {
        font-size: 18px;
    }
    .dcpl-media-widget .media-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 32px;
        row-gap: 48px;
    }
    .dcpl-media-widget .heading-wrapper {
        margin-bottom: 64px;
    }
    .dcpl-media-widget .heading-wrapper .title{
        text-align: center;
    }
    #album-images-container{
        padding: 20px 30px;
    }
    #album-images-container img{
        min-height: 120px;
        max-height: 120px;
    }
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px); /* Optional: adds a slight slide-up effect */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* events widget css */
/* events css starts */

.custom-events-widget .events-stories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
/* Wrapper for the stories and events */
.events-stories-wrapper {
    display: flex;
    gap: 48px;
    margin-top: 30px;
}
.latest-stories, .calendar-events {
    flex: 1;
}
.upcoming-event {
    margin-bottom: 40px;
}
/* newly created  restructure css */
.custom-events-widget .latest-stories,
.custom-events-widget .calendar-events {
    flex: 1 1 45%;
    min-width: 300px;
}

.custom-events-widget ul {
    /* padding-left: 20px; */
}

.custom-events-widget .accordion-item {
    margin-bottom: 10px;
}
.custom-events-widget .accordion-item:not(:last-child) {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #D0D0D0;
}

.custom-events-widget .accordion-header {
    cursor: pointer;
    display: flex;
    gap: 16px;
}

.custom-events-widget .accordion-content {
    
    padding: 10px;
    background-color: #f9f9f9;
}

.custom-events-widget .accordion-header.active + .accordion-content {
    display: block;
}

/* events css ends here */
.upcoming-event .featured-event{
    display: flex;
    gap: 48px;
    margin-top: 32px;
}
.upcoming-event .event-details , .upcoming-event .event-image{
    flex: 1;
}
.upcoming-event .event-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;

}
.upcoming-event .event-details__top{
    display: flex;
    gap: 80px;
    margin: 32px 0 24px 0;
}
.upcoming-event .event-details__top p{
    display: flex;
    flex-direction: column;
}

.upcoming-event .event-details__top strong{ 
    font-size: 18px;
    font-weight: 500;
    color: #1C1C1C;
}
.event-description strong{
    font-size: 18px;
    font-weight: 500;
    color: #1C1C1C;
    margin-bottom: 8px;
}

.event-description {
    font-size: 16px;
    font-weight: 400;
}
.events-stories-wrapper .event-details h3 {
    font-size: 24px !important;
    font-weight: 400;
    margin-bottom: 16px;
}
.calendar-events-accordion .accordion-header .date{
    text-align: center;
    min-width: 65px;
    align-content: center;
}
.calendar-events-accordion .accordion-header .date .day{
    font-size: 40px;
    line-height: 60px;
    font-weight: 400;
    border-bottom: 1px solid #fff;
}

@media screen and (max-width: 900px) { 
    .upcoming-event .featured-event { 
        flex-direction: column;
    }
    .events-stories-wrapper{
        flex-direction: column-reverse;
    }
}
@media screen and (max-width: 592px) {  
    .latest-stories__item{
        flex-direction: column;
    }
    .latest-stories__item .latest-stories__image{
        width: 100%;
        height: 350px;
    }

}.custom-banner-slider .swiper-slide.banner-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    border-radius: 24px;
    align-items: end;
    justify-content: center;
}

.custom-banner-slider .banner-overlay {
    position: absolute;
    top: 0;
    border-radius: 24px;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));

    z-index: 1;
}

.custom-banner-slider .banner-content {
    position: relative;
    display: flex;
    /* flex-wrap: wrap; */
    gap: 32px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 64px 20px;
    z-index: 2;
    /* color: #fff; */
}

.banner-left, .banner-right {
    flex: 1 1 50%;
}

.banner-left h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.banner-right p {
    font-size: 18px;
    margin-bottom: 32px;
}

.banner-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--dcpl-lacc-primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 56px;
    transition: all 0.3s ease;
}

.banner-button:hover {
    background-color: var(--dcpl-lacc-secondary-color);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-banner-slider .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-left, .banner-right {
        flex: 1 1 100%;
    }
}

.custom-banner-slider .swiper-button-next::after, .custom-banner-slider .swiper-button-prev::after {
    mask-image: url('data:image/svg+xml,<svg fill="%23000000" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve" width="64px" height="64px"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><g><rect x="226.699" y="10.714" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -9.4041 199.3647)" width="18.506" height="200.64"></rect></g></g><g><g><path d="M212.025,0H43.975l256,256l-256,256h168.049l256.001-256L212.025,0z M204.359,493.494H88.651L326.145,256L88.651,18.506 h115.71L441.853,256L204.359,493.494z"></path></g></g></g></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 24px;
    background-color: #fff;
}
.swiper-wrapper{
    padding-bottom: 48px;
}




/**Team Section CSS */
.gl-team-slider {
    padding-bottom: 72px;
  }
 
  .gl-team-slider .team-content h2{
    font-size: 18px;
    font-weight: 400;
    color: #595959;
  }
  .gl-team-slider .swiper-button-next::after, .gl-team-slider .swiper-button-prev::after{
    display: none;
  }
  .gl-team-slider .team-email, .gl-team-slider .team-phone{
    text-align: center;
    color: #595959;
  }
  
  .gl-team-slider .team-email a, .gl-team-slider .team-phone a{ 
    color: #595959;
  }
 
.gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image,
.gl-team-grid .team-card .team-image {
  position: relative;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  /* Remove fixed dimensions to allow Elementor controls to work */
}

.gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image img,
.gl-team-grid .team-card .team-image img {
  object-fit: cover; 
  object-position: center top; /* This tells the browser to align the image to the top */
  display: block;
  transition: transform 0.3s ease;
  /* Remove width and height to let Elementor controls handle sizing */
}


  
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap,
  .gl-team-grid .team-card .team-image .social-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
    position: absolute;
    bottom: -18px;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-opener,
  .gl-team-grid .team-card .team-image .social-wrap .social-opener {
    transform: rotate(45deg);
    overflow: hidden;
    background-color: #fff;
    height: 35px;
    width: 35px;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-opener .social-links-opener,
  .gl-team-grid .team-card .team-image .social-wrap .social-opener .social-links-opener {
    transform: rotate(-45deg);
    background-color: transparent;
    color: #111926;
    font-size: 24px;
    font-weight: 700;
    padding: 0;
    height: 100%;
    width: 100%;
    border: none;
    cursor: pointer;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    padding-left: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks li a,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks li a {
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.active,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.active {
    visibility: visible;
    opacity: 1;
    list-style: none;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-circle li a,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-circle li a {
    border-radius: 50%;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-square li a,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-square li a {
    border-radius: 0;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-rounded li a,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-rounded li a {
    border-radius: 10px;
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-diamond li a,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-diamond li a {
    transform: rotate(45deg);
  }
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-diamond li a svg,
  .gl-team-grid .team-card .team-image .social-wrap .social-networks.gl-social-icons-shape-diamond li a svg {
    transform: rotate(-45deg);
  }
  
  .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-content,
  .gl-team-grid .team-card .team-content {
    text-align: center;
  }
  
  .gl-team-slider .swiper-button-prev svg, 
  .gl-team-slider .swiper-button-next svg {
    width: 12px;
  }
  
  /* Grid Layout Specific Styles */
  .gl-team-grid {
    display: grid;
    width: 100%;
    margin-bottom: 40px;
    justify-items: center; /* Center grid items */
    align-items: start; /* Align items to top */
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
    grid-template-rows: auto; /* Default auto rows */
    gap: 30px; /* Default gap */
    --desktop-columns: 3;
    --tablet-columns: 2;
    --mobile-columns: 1;
    --desktop-rows: auto;
    --tablet-rows: auto;
    --mobile-rows: auto;
    --column-gap: 30px;
    --row-gap: 0px;
  }
  
  /* Center the entire team section */
  .gl-team-slider,
  .gl-team-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Ensure swiper slides are centered */
  .gl-team-slider .swiper-wrapper {
    display: flex;
    align-items: center;
  }

  .gl-team-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Team Pagination */
  .team-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
  
  .team-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 5px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .team-pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
  }
  
  .team-pagination .page-numbers:hover:not(.current) {
    background-color: #ddd;
  }

  /* Responsive adjustments */
  @media (max-width: 767px) {
    .gl-team-grid {
      grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .gl-team-grid .team-card {
      margin-bottom: 20px;
    }
    
    .gl-team-slider {
      margin: 0 20px;
    }
    
    .gl-team-slider .swiper-button-prev,
    .gl-team-slider .swiper-button-next {
      width: 40px;
      height: 40px;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .gl-team-slider .swiper-button-prev {
      left: 10px;
    }
    
    .gl-team-slider .swiper-button-next {
      right: 10px;
    }
    
    /* Adjust team card width for mobile */
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card {
      max-width: 250px;
    }
    
    /* Remove hardcoded dimensions to allow Elementor controls */
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image,
    .gl-team-grid .team-card .team-image {
      /* Remove fixed dimensions */
    }
    
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image img,
    .gl-team-grid .team-card .team-image img {
      /* Remove fixed dimensions */
    }
  }
  
  @media (min-width: 768px) and (max-width: 1024px) {
    .gl-team-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Adjust team card width for tablet */
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card {
      max-width: 280px;
    }
  }

  /* Additional global styles for navigation to ensure visibility on all devices */
  .gl-team-slider .swiper-button-prev,
  .gl-team-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .gl-team-slider .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
  }
  
  .gl-team-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .gl-team-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #000;
  }


  

@media (max-width: 480px) {
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image,
    .gl-team-grid .team-card .team-image {
      /* Remove fixed dimensions to allow Elementor controls */
    }
    
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-image img,
    .gl-team-grid .team-card .team-image img {
      /* Remove fixed dimensions to allow Elementor controls */
    }
  }

/* Center team cards in slider */
.gl-team-slider .swiper-wrapper .swiper-slide .team-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text content */
  height: 100%;
  width: 100%; /* Ensure card takes full width of slide */
  max-width: 300px; /* Set a reasonable max-width for team cards */
  margin: 0 auto; /* Center the card */
  padding: 0 15px; /* Add padding to prevent text from touching edges */
}

/* Ensure slides have proper width for carousel */
.gl-team-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto; /* Let Swiper handle the width based on slidesPerView */
  flex-shrink: 0; /* Prevent slides from shrinking */
  min-width: 250px; /* Set minimum width to prevent overcrowding */
}

/* Center team content */
.gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-content,
.gl-team-grid .team-card .team-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 0; /* Add vertical padding */
}

/* Fix text spacing and prevent overlap */
.gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-content h2,
.gl-team-grid .team-card .team-content h2 {
  margin: 0 0 8px 0; /* Add proper spacing between name and designation */
  word-wrap: break-word; /* Allow long names to wrap */
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2; /* Improve line height for readability */
}

.gl-team-slider .swiper-wrapper .swiper-slide .team-card .team-content .title,
.gl-team-grid .team-card .team-content .title {
  margin: 0 0 10px 0; /* Add proper spacing */
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* Center team email and phone */
.gl-team-slider .team-email, 
.gl-team-slider .team-phone,
.gl-team-grid .team-email, 
.gl-team-grid .team-phone {
  text-align: center;
  width: 100%;
  margin: 5px 0; /* Add spacing between contact info */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.gl-team-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gl-team-grid .team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text content */
  padding: 15px; /* Add padding to prevent text from touching edges */
}

/* Team Grid Layout - Fix responsive behavior */
.gl-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always 4 columns for Team Grid */
    grid-template-rows: var(--grid-rows-desktop, auto);
    gap: var(--grid-column-gap-desktop, 30px) var(--grid-row-gap-desktop, 30px);
    justify-items: var(--grid-justify, center);
    align-items: var(--grid-align, start);
}

/* Responsive grid for Team Grid - Fix mobile and tablet layouts */
@media (max-width: 1024px) {
    .gl-team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        grid-template-rows: var(--grid-rows-tablet, auto);
        gap: var(--grid-column-gap-tablet, 30px) var(--grid-row-gap-tablet, 30px);
    }
}

@media (max-width: 767px) {
    .gl-team-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
        grid-template-rows: var(--grid-rows-mobile, auto);
        gap: var(--grid-column-gap-mobile, 30px) var(--grid-row-gap-mobile, 30px);
    }
    
    /* Improve mobile slider behavior */
    .gl-team-slider .swiper-wrapper .swiper-slide .team-card {
        max-width: 280px; /* Slightly smaller on mobile */
        padding: 0 10px;
    }
    
    .gl-team-slider .swiper-slide {
        min-width: 200px; /* Smaller minimum width on mobile */
    }
}

/* Fix slider container width and overflow */
.gl-team-slider {
    width: 100%;
    overflow: hidden; /* Prevent horizontal scroll */
    position: relative;
    padding: 0 50px; /* Add padding for navigation arrows */
}

.gl-team-slider .swiper-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Ensure proper spacing between slides */
.gl-team-slider .swiper-slide {
    margin-right: 0; /* Remove default margin */
    box-sizing: border-box;
}

/* Fix navigation positioning */
.gl-team-slider .swiper-button-prev,
.gl-team-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: #333;
    display: flex !important; /* Force display */
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    opacity: 1 !important; /* Force opacity */
    visibility: visible !important; /* Force visibility */
}

.gl-team-slider .swiper-button-prev:hover,
.gl-team-slider .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gl-team-slider .swiper-button-prev {
    left: 10px;
}

.gl-team-slider .swiper-button-next {
    right: 10px;
}

/* Ensure navigation arrows are visible even when disabled */
.gl-team-slider .swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* Fix pagination visibility */
.gl-team-slider .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: center;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

.gl-team-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gl-team-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #000;
}


