/*!
Theme Name: Outgrid Child
Theme URI: https://uicore.co
Description: Multi-Purpose Elementor WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: outgrid
Version: 1.0.0
Text Domain: outgrid
*/

 /* Add your custom style here */

/*********************************************
 * TEAM MEMBERS – GRID
 *********************************************/

.team-grid-wrapper {
    width: 100%;
}
.team-grid {
    display: grid;
    gap: 20px;
}

/* Responsive default layout */
@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*********************************************
 * TEAM CARD (Shared between grid + slider)
 *********************************************/

.team-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Image wrapper */
.team-card__image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* placeholder */
.team-card__img--placeholder {
    background: #eee;
}

/* Titles */
.team-card__title {
    font-size: 16px;
    color: #1a5490;
    font-weight: 600;
    margin: 0 0 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card__name {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 0;
}

/*********************************************
 * SLIDER CUSTOMIZE (Swiper container)
 *********************************************/

.team-slider {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 10px;
}

.team-slider .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

/* Navigation buttons */
.team-slider .swiper-button-next,
.team-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #1a5490;
}

.team-slider .swiper-button-next:after,
.team-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Pagination bullets */
.team-slider .swiper-pagination-bullet {
    background: #ccc;
    width: 8px;
    height: 8px;
}

.team-slider .swiper-pagination-bullet-active {
    background: #1a5490;
}

/*********************************************
 * MODAL (Popup)
 *********************************************/

.team-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 9999;
    padding: 20px;
}

.team-modal__dialog {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: popUp .3s ease;
}

/* Modal content layout */
.team-modal__body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.team-modal__media {
    flex: 1 1 300px;
}
.team-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal__content {
    flex: 1 1 380px;
    padding: 25px;
}

/* Modal Titles */
.team-modal__title {
    font-size: 18px;
    color: #1a5490;
    margin: 0 0 8px;
}

.team-modal__name {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 14px;
}

.team-modal__text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Close button */
.team-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/*********************************************
 * ANIMATION
 *********************************************/
@keyframes popUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/*********************************************
 * MOBILE
 *********************************************/

@media (max-width: 767px) {
    .team-card {
        padding: 10px;
    }

    .team-card__title {
        font-size: 14px;
        min-height: 30px;
    }

    .team-card__name {
        font-size: 16px;
    }

    .team-modal__dialog {
        width: 100%;
        border-radius: 10px;
    }

    .team-modal__content {
        padding: 15px;
    }

    .team-modal__name {
        font-size: 20px;
    }
}
