.certificate-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.certificate-box {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.certificate-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    /* optional background */
    margin: 0 auto 15px;
    /* center horizontally + spacing */
    flex-shrink: 0;
}

.certificate-avatar i {
    font-size: 32px;
    /* icon size inside circle */
}

.certificate-box .role {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;

    font-family: inherit;
    /* normal font */
    font-weight: 400;
    /* normal weight */
}

.government-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    transition: 0.35s;
    height: 100%;
    border: 1px solid #eef2f7;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.government-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #0d6efd;
}

.government-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.government-logo img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.government-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    font-family: "Kantumruy Pro", sans-serif !important;
}

.government-card p {
    color: #6c757d;
    min-height: 48px;
    margin-bottom: 20px;
    font-size: 15px;
}

.government-card span {
    color: #0d6efd;
    font-weight: 600;
}

.government-card:hover span {
    letter-spacing: 0.5px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* subtle background accent */
.testimonial-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(0, 123, 255, 0.08);
    border-radius: 50%;
}

/* ===== TOP SECTION ===== */
.testimonial-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* ===== BIG CIRCLE IMAGE ===== */
.avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;

    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.avatar:hover img {
    transform: scale(1.08);
}

/* ===== USER INFO ===== */
.user-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.user-info span {
    font-size: 13px;
    color: #777;
}

/* ===== RATING ===== */
.rating {
    margin: 10px 0;
}

.rating i {
    color: #ddd;
    font-size: 14px;
}

.rating i.active {
    color: #f5b50a;
}

/* ===== TEXT ===== */
.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-top: 10px;
}

/* ===== QUOTE ICON ===== */
.quote-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.08;
}

.quote-icon img {
    width: 60px;
}
.choose__img-wrap-two {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    transform: translateX(10%);
}

.choose__img-wrap-two .img-title {
    margin-top: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    line-height: 1.4;
    font-family: "Kantumruy Pro", sans-serif !important;
}

/* Large Tablet */
@media (max-width: 991px) {
    .choose__img-wrap-two {
        transform: translateX(0);
    }

    .choose__img-wrap-two .img-title {
        font-size: 22px;
    }
}

/* Tablet */
@media (max-width: 767px) {
    .choose__img-wrap-two {
        transform: translateX(0);
        padding: 0 15px;
    }

    .choose__img-wrap-two .mask__img img {
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    .choose__img-wrap-two .img-title {
        font-size: 20px;
        margin-top: 18px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .choose__img-wrap-two {
        transform: none;
        padding: 0 12px;
    }

    .choose__img-wrap-two .mask__img {
        margin-bottom: 8px; /* reduce gap */
    }

    .choose__img-wrap-two .mask__img img {
        width: 100%;
        max-width: 320px;
        height: 100%;
        display: block; /* removes inline image whitespace */
    }

    .choose__img-wrap-two .img-title {
        margin-top: -18px;
        margin-bottom: 26px;
        font-size: 18px;
        line-height: 1.4;
        text-align: center;
    }
}
