/* ==========================================================================
   Useful Links Cards
   ========================================================================== */

/* Hide mmenu social icons */
.mm-navbars_top .mm-navbar {
    display: none !important;
}

/* ==========================================================================
   Referral CTA - Professional Page
   ========================================================================== */

.referral-cta-section {
    background: linear-gradient(135deg, #008f70 0%, #00b894 50%, #00cec9 100%);
}

.referral-cta-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #fff;
}

.referral-cta-icon-circle svg,
.referral-cta-icon-circle i {
    font-size: 2.2rem;
    color: #fff !important;
    fill: #fff;
    width: 2.2rem;
    height: 2.2rem;
}

.referral-cta-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.referral-cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.referral-cta-btn {
    background-color: #fff;
    color: #008f70;
    border: none;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.referral-cta-btn:hover,
.referral-cta-btn:focus {
    background-color: #d4fff5;
    color: #006b54;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    border: none;
}

@media (max-width: 767.98px) {
    .referral-cta-icon-circle {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }

    .referral-cta-icon-circle i {
        font-size: 1.6rem;
    }

    .referral-cta-title {
        font-size: 1.3rem;
    }
}

.useful-links-section {
    background-color: #f8f9fa;
    padding: 0;
}

.useful-links-grid {
    margin: 0;
    justify-content: center;
}

.useful-links-grid > [class*="col"] {
    padding: 0;
}

.useful-links-heading {
    font-weight: 700;
}

/* Card */
.useful-link-card {
    display: flex;
    position: relative;
    border-radius: 0;
    padding: 3rem 1.25rem 2.5rem;
    min-height: 340px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.useful-link-card:hover,
.useful-link-card:focus {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    color: #fff;
    text-decoration: none;
}

/* Icon Circle */
.useful-link-icon-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.35s ease;
}

.useful-link-card:hover .useful-link-icon-circle {
    transform: scale(1.1);
}

.useful-link-icon {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Description */
.useful-link-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* CTA Button */
.useful-link-btn {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.useful-link-card:hover .useful-link-btn {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 767.98px) {
    .useful-link-card {
        min-height: 220px;
        padding: 1.5rem 1rem 1.25rem;
    }

    .useful-link-icon-circle {
        width: 100px;
        height: 100px;
    }

    .useful-link-icon {
        max-width: 50px;
        max-height: 50px;
    }

    .useful-link-btn {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .useful-link-card {
        min-height: 180px;
        padding: 1.25rem 0.75rem 1rem;
    }

    .useful-link-icon-circle {
        width: 80px;
        height: 80px;
        margin-bottom: 0.75rem;
    }

    .useful-link-icon {
        max-width: 40px;
        max-height: 40px;
    }
}
