/* video */
.agj-about-video {
    border-radius: 10px;
    overflow: hidden;
}

/* agents */
.agent-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    user-select: none;
}

.agent-container.is-centered {
    justify-content: center;
}

.agent-container::-webkit-scrollbar {
    display: none;
}

.agent-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.agent-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.card {
    background: white;
    width: 256px;
    min-width: 256px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    display: grid;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 100%;
    height: 256px;
    object-fit: cover;
}

.card > .agent-title {
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-gap: 4px;
}

.card > .agent-title > h3 {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
}

.card > .agent-title > p {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 14px;
    color: var(--agj-green);
    margin: 0;
}

.card > .dropdown {
    position: relative;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-gap: 6px;
    transition: height 0.3s ease;
    overflow: hidden;
    height: 0;
}

.card:hover > .dropdown {
    height: 64px;
}

.card:hover > .dropdown:before {
    opacity: 1;
}

.card > .dropdown:before {
    content: '';
    height: 1px;
    width: 175px;
    background: #ddd;
    position: absolute;
    top: 0;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card > .dropdown > p {
    margin: 0;
    font-size: 16px;
    line-height: 16px;
}


/* team photo gallery carousel */
.agj-team-photo-gallery {
    display: block;
    overflow: hidden;
    position: relative;
}

.agj-team-gallery-track {
    display: flex;
    will-change: transform;
    transition: transform 0.6s ease-in-out;
}

.agj-team-gallery-track > figure {
    min-width: 100%;
    flex-basis: 100%;
    flex-shrink: 0;
    margin: 0;
}

.agj-team-photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.agj-team-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}

.agj-team-gallery-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.agj-team-gallery-dots button.active {
    background: var(--agj-green);
}


@media (max-width: 768px) {
    .agent-container {
        padding: 20px 16px;
        gap: 16px;
    }
}
