/* ==========================================================
   AVATAR RATING WIDGET
========================================================== */

.avatar-group-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 24px;
}

.avatar-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.avatar-item,
.avatar-counter {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    margin-left: -10px;
    background: #ffa201;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-item:first-child {
    margin-left: 0;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-counter span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stars {
    display: flex;
    gap: 2px;
    color: #ffa201;
    font-size: 16px;
    line-height: 1;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #16243d;
    line-height: 1.3;
}


/* ==========================================================
   VIDEO PROFILE CARD
========================================================== */

.ementor-profile-container {
    max-width: 500px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    box-sizing: border-box;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    
}

.ementor-profile-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
}

.ementor-image-section {
    flex: 0 0 auto;
}

.ementor-profile-img {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ementor-text-section {
    flex: 1;
    min-width: 0;
}

.ementor-intro-text {
    font-size: 14px;
    color: #d47f1f;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.4;
}

.ementor-main-text {
    font-size: 16px;
    color: #071b4d;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.ementor-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffa201;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .3s ease;
}

.ementor-video-link:hover {
    color: #ff7a1a;
}

.ementor-video-link svg {
    flex-shrink: 0;
    transition: transform .3s ease;
}

.ementor-video-link:hover svg {
    transform: translateX(3px);
}


/* ==========================================================
   DMA WHY CHOOSE CARDS
========================================================== */

.dma-why-cards {
    display: grid;
    gap: 20px;
}

.dma-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.dma-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dma-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dma-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.dma-why-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    height: 100%;
}

.dma-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border-color: #ffd6bd;
}

.dma-why-icon {
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3eb;
    color: #ff6b1a;
    transition: all .3s ease;
    flex-shrink: 0;
}

.dma-why-icon i,
.dma-why-icon svg {
    color: inherit;
    fill: currentColor;
}

.dma-why-card:hover .dma-why-icon {
    background: #ff6b1a;
    color: #fff;
}

.dma-why-content {
    width: 100%;
}

.dma-why-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #071b4d;
}

.dma-why-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #65708a;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {

    .dma-cols-4,
    .dma-cols-3,
    .dma-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dma-cols-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .avatar-group-container {
        gap: 12px;
    }

    .avatar-item,
    .avatar-counter {
        width: 38px;
        height: 38px;
        margin-left: -9px;
    }

    .rating-text {
        font-size: 13px;
    }

    .ementor-profile-container {
        max-width: 100%;
        padding: 14px 16px;
    }

    .ementor-profile-content {
        gap: 14px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .dma-cols-1,
    .dma-cols-2,
    .dma-cols-3,
    .dma-cols-4 {
        grid-template-columns: 1fr;
    }

    .dma-why-cards {
        gap: 15px;
    }

    .dma-why-card {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
        padding: 18px;
    }

    .dma-why-icon {
        margin: 0;
    }

    .dma-why-content {
        flex: 1;
    }

    .dma-why-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .dma-why-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .avatar-group-container {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .avatar-item,
    .avatar-counter {
        width: 34px;
        height: 34px;
        margin-left: -8px;
    }

    .avatar-counter span {
        font-size: 11px;
    }

    .stars {
        justify-content: center;
        font-size: 14px;
    }

    .rating-text {
        font-size: 12px;
        white-space: normal;
    }

    .ementor-profile-container {
        padding: 14px;
    }

    .ementor-profile-content {
        gap: 12px;
    }

    .ementor-profile-img {
        width: 58px;
        height: 58px;
    }

    .ementor-main-text {
        font-size: 14px;
        margin-bottom: 10px;
    }
}


/* ==========================================================
   SMALL DEVICES
========================================================== */

@media (max-width: 380px) {

    .avatar-group-container {
        flex-direction: column;
    }

    .avatar-item,
    .avatar-counter {
        width: 32px;
        height: 32px;
    }

    .ementor-profile-content {
        flex-direction: column;
        text-align: center;
    }

    .ementor-video-link {
        justify-content: center;
    }
}