
/* ==========================================
   WEB EXPORT - GLASSMORPHISM CATEGORIES
   Brand: Blue, Navy, White + Orange Accent
=========================================== */

.we-category-section {
    position: relative;
    isolation: isolate;
    padding: 65px 20px 75px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 5% 10%, rgba(65, 145, 225, 0.10), transparent 36%),
        radial-gradient(ellipse at 95% 90%, rgba(23, 105, 170, 0.09), transparent 35%),
        linear-gradient(135deg, #F7FAFF 0%, #EEF5FF 50%, #F8FBFF 100%);
}

.we-category-section *,
.we-category-section *::before,
.we-category-section *::after {
    box-sizing: border-box;
}

/* Decorative background shapes */

.we-category-section::before,
.we-category-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.we-category-section::before {
    width: 360px;
    height: 360px;
    top: 100px;
    left: -230px;
    border: 1px solid rgba(23, 105, 170, 0.12);
    box-shadow:
        0 0 0 35px rgba(23, 105, 170, 0.025),
        0 0 0 75px rgba(23, 105, 170, 0.02);
}

.we-category-section::after {
    width: 300px;
    height: 300px;
    right: -180px;
    bottom: 20px;
    background: rgba(69, 142, 224, 0.06);
    filter: blur(2px);
}

.we-category-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* ---------- Section heading ---------- */

.we-category-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.we-category-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 15px;
    padding: 9px 16px;
    border: 1px solid rgba(23, 105, 170, 0.12);
    border-radius: 50px;
    color: #1769AA;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 15px rgba(23, 105, 170, 0.06);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.we-category-label i {
    font-size: 15px;
}

.we-category-heading h2 {
    margin: 0;
    color: #172B4D;
    font-size: clamp(29px, 3.2vw, 43px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.we-category-heading h2 span {
    color: #1769AA;
}

.we-category-heading-line {
    width: 62px;
    height: 4px;
    margin: 17px auto 18px;
    border-radius: 10px;
    background: #F47735;
}

.we-category-heading p {
    margin: 0;
    color: #586B88;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Category grid ---------- */

.we-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

/* ---------- Glass category card ---------- */

.we-category-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 225px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        0 8px 24px rgba(26, 69, 121, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Soft highlight on the card */

.we-category-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.55),
        rgba(231, 242, 255, 0.18)
    );
    pointer-events: none;
}

/* Decorative category watermark */

.we-category-watermark {
    position: absolute;
    z-index: -1;
    top: 28px;
    right: -8px;
    color: rgba(23, 105, 170, 0.055);
    font-size: 94px;
    line-height: 1;
    transform: rotate(-10deg);
    transition:
        transform 0.35s ease,
        color 0.35s ease;
    pointer-events: none;
}

/* Hover state */

.we-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(23, 105, 170, 0.28);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 18px 35px rgba(23, 83, 143, 0.12),
        inset 0 1px 0 #FFFFFF;
}

.we-category-card:hover .we-category-watermark {
    color: rgba(23, 105, 170, 0.09);
    transform: rotate(0deg) scale(1.08);
}

/* ---------- Category icon ---------- */

.we-category-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 17px;
    color: #1769AA;
    background: linear-gradient(145deg, #FFFFFF, #E8F2FF);
    box-shadow:
        0 5px 14px rgba(23, 105, 170, 0.09),
        inset 0 1px 0 #FFFFFF;
    transition:
        transform 0.3s ease,
        border-radius 0.3s ease;
}

.we-category-icon i {
    font-size: 27px;
    line-height: 1;
}

.we-category-card:hover .we-category-icon {
    transform: translateY(-2px);
    border-radius: 50%;
}

/* Category icon variations: subtle tints */

.we-category-icon.icon-green {
    color: #168B70;
    background: linear-gradient(145deg, #FFFFFF, #E6F8F1);
}

.we-category-icon.icon-blue {
    color: #1769AA;
    background: linear-gradient(145deg, #FFFFFF, #E7F1FF);
}

.we-category-icon.icon-orange {
    color: #D96B27;
    background: linear-gradient(145deg, #FFFFFF, #FFF0E5);
}

.we-category-icon.icon-purple {
    color: #6654B5;
    background: linear-gradient(145deg, #FFFFFF, #F0ECFF);
}

.we-category-icon.icon-teal {
    color: #138B92;
    background: linear-gradient(145deg, #FFFFFF, #E4F8F8);
}

.we-category-icon.icon-pink {
    color: #C64E82;
    background: linear-gradient(145deg, #FFFFFF, #FFEAF2);
}

/* ---------- Category title ---------- */

.we-category-card h3 {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 0 15px;
    color: #172B4D;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
    letter-spacing: -0.2px;
    overflow-wrap: anywhere;
}

/* Bottom link */

.we-category-link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1769AA;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.we-category-link i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.we-category-card:hover .we-category-link i {
    transform: translate(3px, -2px);
}

/* ---------- View more card ---------- */

.we-category-view-all {
    justify-content: center;
    border-color: rgba(23, 105, 170, 0.45);
    background: linear-gradient(
        145deg,
        #1769AA 0%,
        #12558B 100%
    );
    box-shadow: 0 12px 28px rgba(23, 105, 170, 0.2);
}

.we-category-view-all::before {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0)
    );
}

.we-category-view-all .we-category-icon {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.we-category-view-all h3 {
    color: #FFFFFF;
}

.we-category-view-all .we-category-link {
    color: rgba(255, 255, 255, 0.9);
}

.we-category-view-all .we-category-watermark {
    color: rgba(255, 255, 255, 0.08);
}

.we-category-view-all:hover {
    border-color: #1769AA;
    background: linear-gradient(
        145deg,
        #287DBB 0%,
        #1769AA 100%
    );
    box-shadow: 0 18px 35px rgba(23, 105, 170, 0.26);
}

.we-category-view-all:hover .we-category-watermark {
    color: rgba(255, 255, 255, 0.13);
}

/* ---------- Laptop and smaller desktops ---------- */

@media (max-width: 1250px) {
    .we-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .we-category-card {
        min-height: 220px;
        padding: 22px 17px 18px;
    }
}

/* ---------- Tablet ---------- */

@media (max-width: 991px) {
    .we-category-section {
        padding: 55px 18px 60px;
    }

    .we-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .we-category-card {
        min-height: 215px;
    }

    .we-category-heading {
        margin-bottom: 32px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
    .we-category-section {
        padding: 42px 13px 48px;
    }

    .we-category-heading {
        margin-bottom: 26px;
    }

    .we-category-label {
        margin-bottom: 12px;
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .we-category-heading h2 {
        font-size: clamp(27px, 7vw, 34px);
        letter-spacing: -0.7px;
    }

    .we-category-heading-line {
        margin: 13px auto;
    }

    .we-category-heading p {
        font-size: 14px;
        line-height: 1.6;
    }

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

    .we-category-card {
        min-height: 205px;
        padding: 17px 13px 15px;
        border-radius: 16px;
    }

    .we-category-icon {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .we-category-icon i {
        font-size: 23px;
    }

    .we-category-card h3 {
        margin-bottom: 13px;
        font-size: 14px;
        line-height: 1.45;
    }

    .we-category-link {
        gap: 4px;
        font-size: 10px;
    }

    .we-category-link i {
        font-size: 12px;
    }

    .we-category-watermark {
        top: 30px;
        right: -8px;
        font-size: 70px;
    }

    .we-category-view-all {
        min-height: 205px;
    }
}

/* ---------- Very small phones ---------- */

@media (max-width: 360px) {
    .we-category-grid {
        gap: 9px;
    }

    .we-category-card {
        min-height: 195px;
        padding: 14px 10px;
    }

    .we-category-card h3 {
        font-size: 13px;
    }

    .we-category-link {
        font-size: 9px;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    .we-category-card,
    .we-category-icon,
    .we-category-watermark,
    .we-category-link i {
        transition: none;
    }
}
