
/* =========================================
   JAGADHATRI MEDICARE
   PREMIUM BUSINESS CREDENTIALS
========================================= */

.credentials-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0,184,169,.07), transparent 35%),
        radial-gradient(circle at bottom left, rgba(13,110,253,.07), transparent 35%),
        linear-gradient(135deg, #f7faff 0%, #edf5fb 55%, #ffffff 100%);
}

.credentials-section::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -190px;
    left: -120px;
    border-radius: 50%;
    background: rgba(13,110,253,.07);
    filter: blur(80px);
    pointer-events: none;
}

.credentials-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    right: -150px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(0,184,169,.07);
    filter: blur(80px);
    pointer-events: none;
}

.credentials-section .container {
    position: relative;
    z-index: 2;
}

/* =========================================
   HEADING
========================================= */

.credentials-section .credentials-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.credentials-section .credentials-tag {
    display: inline-block;
    padding: 9px 22px;
    margin-bottom: 18px;
    border-radius: 50px;
    background: #e7f2fb;
    color: #087f8c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.credentials-section .credentials-heading h2 {
    color: #102f4f;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.credentials-section .credentials-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #68788a;
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================
   FIVE CARDS - DESKTOP
========================================= */

.credentials-section .credentials-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* =========================================
   PREMIUM CARD
========================================= */

.credentials-section .credential-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 235px;
    padding: 25px 12px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(16,47,79,.055);

    transition: transform .4s ease,
                box-shadow .4s ease,
                border-color .4s ease;
}

.credentials-section .credential-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,#087f8c,#1674ce);
    transform: translateX(-50%);
    transition: width .4s ease;
    border-radius: 0 0 5px 5px;
}

.credentials-section .credential-card:hover {
    transform: translateY(-9px);
    border-color: #c9dfe9;
    box-shadow: 0 22px 45px rgba(16,47,79,.11);
}

.credentials-section .credential-card:hover::before {
    width: 65%;
}

/* =========================================
   LOGO
========================================= */

.credentials-section .credential-logo {
    width: 100%;
    height: 105px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.credentials-section .credential-logo img {
    display: block;
    width: 100%;
    max-width: 155px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: auto;
    transition: transform .4s ease;
}

.credentials-section .credential-card:hover .credential-logo img {
    transform: scale(1.08);
}

/* =========================================
   CARD TEXT
========================================= */

.credentials-section .credential-card h4 {
    color: #123b62;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 8px;
}

.credentials-section .credential-card span {
    color: #8492a3;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .credentials-section {
        padding: 80px 0;
    }

    .credentials-section .credentials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .credentials-section .credentials-heading h2 {
        font-size: 34px;
    }

    .credentials-section .credential-card {
        min-height: 220px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .credentials-section {
        padding: 65px 0;
    }

    .credentials-section .credentials-heading {
        margin-bottom: 35px;
    }

    .credentials-section .credentials-heading h2 {
        font-size: 26px;
        line-height: 1.4;
    }

    .credentials-section .credentials-heading p {
        font-size: 14px;
    }

    .credentials-section .credentials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .credentials-section .credential-card {
        min-height: 185px;
        padding: 18px 9px;
        border-radius: 15px;
    }

    .credentials-section .credential-logo {
        height: 75px;
        margin-bottom: 14px;
    }

    .credentials-section .credential-logo img {
        max-width: 120px;
        max-height: 65px;
    }

    .credentials-section .credential-card h4 {
        font-size: 14px;
    }

    .credentials-section .credential-card span {
        font-size: 11px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .credentials-section *,
    .credentials-section *::before,
    .credentials-section *::after {
        transition: none !important;
        animation: none !important;
    }
}
