/* =========================================================
   Types of WordPress Websites
   Premium CMS Section
   ========================================================= */

.wp-types-premium {
    position: relative;
    overflow: hidden;
    padding: 100px 0 95px;
    background:
        radial-gradient(circle at 88% 16%, rgba(54, 127, 245, .11), transparent 27%),
        radial-gradient(circle at 10% 86%, rgba(117, 83, 228, .08), transparent 27%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #ffffff 100%);
    isolation: isolate;
}

.wp-types-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(33, 104, 210, .025) 1px, transparent 1px),
        linear-gradient(rgba(33, 104, 210, .025) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
}

.wp-types-premium__pattern {
    position: absolute;
    width: 430px;
    height: 430px;
    left: -285px;
    top: 18%;
    border: 1px solid rgba(36, 111, 232, .09);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(36,111,232,.025),
        0 0 0 90px rgba(36,111,232,.018);
    z-index: -2;
}

.wp-types-premium__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.wp-types-premium__glow--one {
    width: 300px;
    height: 300px;
    right: -160px;
    top: -100px;
    background: rgba(44, 126, 247, .08);
}

.wp-types-premium__glow--two {
    width: 350px;
    height: 350px;
    left: -190px;
    bottom: -180px;
    background: rgba(112, 80, 228, .07);
}

/* Header */
.wp-types-premium__header {
    max-width: 850px;
    margin: 0 auto 48px;
    text-align: center;
}

.wp-types-premium__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    padding: 7px 15px 7px 8px;
    border: 1px solid rgba(37, 111, 235, .14);
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 10px 28px rgba(31, 82, 150, .07);
    color: #1268eb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.wp-types-premium__badge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f2ff;
    color: #1268eb;
    font-size: 13px;
}

.wp-types-premium__title {
    margin: 0 0 16px;
    color: #071b3a;
    font-size: clamp(36px, 4.2vw, 57px);
    line-height: 1.07;
    font-weight: 850;
    letter-spacing: -1.9px;
}

.wp-types-premium__description {
    max-width: 740px;
    margin: 0 auto;
    color: #637592;
    font-size: 16px;
    line-height: 1.75;
}

/* Grid */
.wp-types-premium__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.wp-types-premium__card {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 21px 21px;
    border: 1px solid rgba(37, 109, 224, .10);
    border-radius: 21px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 17px 42px rgba(28, 73, 135, .075);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.wp-types-premium__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1268ef, #7755e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.wp-types-premium__card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 135px;
    height: 135px;
    border: 22px solid rgba(28, 107, 232, .035);
    border-radius: 50%;
}

.wp-types-premium__card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 110, 234, .22);
    box-shadow: 0 26px 55px rgba(28, 73, 135, .14);
}

.wp-types-premium__card:hover::before {
    transform: scaleX(1);
}

.wp-types-premium__card-number {
    position: absolute;
    right: 17px;
    top: 15px;
    color: #b2bfd1;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.wp-types-premium__icon-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.wp-types-premium__icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #e7f1ff, #f5f9ff);
    border: 1px solid rgba(36, 110, 231, .10);
    box-shadow:
        0 12px 27px rgba(26, 103, 225, .12),
        inset 0 1px 0 #fff;
    color: #1268ef;
    font-size: 25px;
}

.wp-types-premium__card:nth-child(2) .wp-types-premium__icon {
    color: #7050df;
    background: linear-gradient(145deg, #eee9ff, #faf8ff);
}

.wp-types-premium__card:nth-child(3) .wp-types-premium__icon {
    color: #0da37a;
    background: linear-gradient(145deg, #e2faf2, #f5fffc);
}

.wp-types-premium__card:nth-child(4) .wp-types-premium__icon {
    color: #e58b18;
    background: linear-gradient(145deg, #fff0db, #fffaf2);
}

.wp-types-premium__card:nth-child(5) .wp-types-premium__icon {
    color: #e3457c;
    background: linear-gradient(145deg, #ffe7ef, #fff7fa);
}

.wp-types-premium__card:nth-child(6) .wp-types-premium__icon {
    color: #0f8ba9;
    background: linear-gradient(145deg, #e0f8fc, #f3fdff);
}

.wp-types-premium__card:nth-child(7) .wp-types-premium__icon {
    color: #6f50db;
    background: linear-gradient(145deg, #eeeaff, #faf8ff);
}

.wp-types-premium__card:nth-child(8) .wp-types-premium__icon {
    color: #07966d;
    background: linear-gradient(145deg, #e1faf1, #f4fffb);
}

.wp-types-premium__card-title {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    color: #091e3d;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.wp-types-premium__card-description {
    position: relative;
    z-index: 2;
    margin: 0 0 20px;
    color: #667a98;
    font-size: 12px;
    line-height: 1.65;
}

.wp-types-premium__link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    color: #1268eb;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.wp-types-premium__link i {
    transition: transform .25s ease;
}

.wp-types-premium__link:hover {
    color: #0755d2;
}

.wp-types-premium__link:hover i {
    transform: translateX(4px);
}

/* CTA */
.wp-types-premium__cta-wrap {
    max-width: 1050px;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 45px auto 0;
    padding: 14px 17px 14px 20px;
    border: 1px solid rgba(35, 108, 224, .10);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 15px 36px rgba(28,73,135,.07);
    backdrop-filter: blur(10px);
}

.wp-types-premium__cta-note {
    display: flex;
    align-items: center;
    gap: 13px;
}

.wp-types-premium__cta-note-icon {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #e9f2ff;
    color: #1268eb;
    font-size: 18px;
}

.wp-types-premium__cta-note strong {
    display: block;
    margin-bottom: 3px;
    color: #0a2040;
    font-size: 13px;
    font-weight: 800;
}

.wp-types-premium__cta-note span {
    color: #73849d;
    font-size: 10.5px;
}

.wp-types-premium__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 53px;
    padding: 6px 8px 6px 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #1268f3, #397ef4);
    box-shadow: 0 15px 32px rgba(18,104,243,.22);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.wp-types-premium__cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 22px 43px rgba(18,104,243,.30);
}

.wp-types-premium__cta-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #1268f3;
}

/* Tablet */
@media (max-width: 1199.98px) {
    .wp-types-premium {
        padding: 85px 0 80px;
    }

    .wp-types-premium__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .wp-types-premium__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wp-types-premium__cta-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .wp-types-premium {
        padding: 63px 0 62px;
    }

    .wp-types-premium__header {
        margin-bottom: 34px;
    }

    .wp-types-premium__badge {
        font-size: 9px;
        letter-spacing: .07em;
    }

    .wp-types-premium__title {
        font-size: clamp(30px, 9vw, 40px);
        letter-spacing: -1.2px;
    }

    .wp-types-premium__description {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .wp-types-premium__grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .wp-types-premium__card {
        min-height: 220px;
        padding: 20px;
        border-radius: 17px;
    }

    .wp-types-premium__icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 21px;
    }

    .wp-types-premium__icon-wrap {
        margin-bottom: 17px;
    }

    .wp-types-premium__card-title {
        font-size: 16px;
    }

    .wp-types-premium__card-description {
        font-size: 11.5px;
    }

    .wp-types-premium__cta-wrap {
        padding: 15px;
        border-radius: 17px;
    }

    .wp-types-premium__cta-note {
        align-items: flex-start;
    }

    .wp-types-premium__cta-note strong {
        font-size: 11.5px;
    }

    .wp-types-premium__cta-note span {
        font-size: 10px;
        line-height: 1.5;
    }

    .wp-types-premium__cta {
        width: 100%;
        justify-content: space-between;
        padding-left: 18px;
    }
}

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