/**
 * Ambassadors - Frontend Styles
 */

/* Wrapper */
.amb-wrapper {
    font-family: inherit;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: transparent;
    text-align: center;
}

/* Section */
.amb-section {
    margin-top: 20px;
}

/* Category Title */
.amb-category-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 50px 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.amb-category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* Grid */
.amb-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin: 0 auto;
    max-width: 980px;
}

/* Item */
.amb-item {
    flex: 0 0 280px;
    margin-bottom: 30px;
}

/* Card */
.amb-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.amb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(4, 151, 185, 0.15);
}

/* Image */
.amb-image-wrapper {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.amb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    display: block;
}

.amb-card:hover .amb-image {
    transform: scale(1.05);
}

/* Content */
.amb-content {
    padding: 0px 20px 25px 20px;
    margin: -25px 0px 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 0px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
}

.amb-country {
    font-size: 15px;
    font-weight: 800;
    color: #0497b9;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 5px 0 5px 0;
}

.amb-name {
    font-size: 19px;
    font-weight: 700;
    color: #1A2B4C;
    margin: 0 !important;
    line-height: 1.3;
}

.amb-title {
    font-size: 14px;
    color: #64748b;
    margin: 5px 0 5px !important;
    font-weight: 500;
    line-height: 1.4;
    min-height: 40px;
    max-width: 90%;
}

/* Actions */
.amb-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.amb-linkedin {
    color: #0077b5;
    font-size: 24px;
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.amb-linkedin:hover {
    color: #0497b9;
}

.amb-bio-btn {
    background: transparent;
    border: 1px solid #0497b9;
    color: #0497b9;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}

.amb-bio-btn:hover {
    background: #0497b9;
    color: white;
}

/* Modal */
.amb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.amb-modal-overlay.is-active {
    display: flex;
}

.amb-modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
    animation: ambModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ambModalPop {
    from {
        transform: translateY(20px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.amb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.amb-modal-close:hover {
    color: #1e293b;
    transform: rotate(90deg);
}

.amb-modal-name {
    font-size: 24px;
    color: #1A2B4C;
    margin: 0 0 5px 0 !important;
    font-weight: 800;
}

.amb-modal-country {
    font-size: 14px;
    font-weight: 700;
    color: #0497b9;
    margin: 0 0 15px 0 !important;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amb-modal-title {
    font-size: 15px;
    color: #475569;
    font-weight: 500;
    margin: 0 0 25px 0 !important;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.amb-modal-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.amb-modal-bio p {
    margin-bottom: 15px !important;
}

/* Responsive */
@media (max-width: 960px) {
    .amb-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .amb-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin-bottom: 20px;
    }

    .amb-image-wrapper {
        height: 350px;
    }

    .amb-content {
        margin: -45px 0px 0px 0px;
    }

    .amb-country {
        margin: 7px 0 5px 0;
    }
}