/* ==================================================
   CATEGORY PAGE
================================================== */


/* ==================================================
   CATEGORY HERO
================================================== */

.category-hero {

    position: relative;

    overflow: hidden;

    padding: 105px 0 90px;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(79, 70, 229, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(129, 140, 248, 0.08),
            transparent 28%
        ),
        #f8fafc;
}


/* subtle background glow */

.category-hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    right: -120px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.06);

    filter: blur(10px);

    pointer-events: none;
}


.category-hero-container {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);

    align-items: center;

    gap: 70px;
}


.category-hero-content {

    position: relative;

    z-index: 2;

    max-width: 700px;
}


/* ==================================================
   EYEBROW
================================================== */

.section-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.section-eyebrow::before {

    content: "";

    width: 22px;
    height: 2px;

    border-radius: 10px;

    background: #4f46e5;
}


/* ==================================================
   HERO TITLE
================================================== */

.category-hero h1 {

    max-width: 700px;

    margin: 0;

    color: #111827;

    font-size:
        clamp(44px, 6vw, 72px);

    line-height: 1.04;

    letter-spacing: -0.05em;
}


.category-hero-description {

    max-width: 610px;

    margin: 24px 0 0;

    color: #64748b;

    font-size: 17px;

    line-height: 1.8;
}


/* ==================================================
   HERO ACTIONS
================================================== */

.category-hero-actions {

    display: flex;

    align-items: center;

    gap: 22px;

    margin-top: 32px;
}


.hero-primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 11px;

    background: #4f46e5;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 22px
        rgba(79, 70, 229, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.hero-primary-button:hover {

    transform: translateY(-2px);

    background: #4338ca;

    box-shadow:
        0 12px 28px
        rgba(79, 70, 229, 0.25);
}


.hero-scroll-hint {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 600;
}


.hero-scroll-hint > span {

    color: #64748b;
}


/* ==================================================
   HERO VISUAL
================================================== */

.category-hero-visual {

    position: relative;

    min-height: 390px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* ==================================================
   HERO ORBITS
================================================== */

.hero-orbit {

    position: absolute;

    border: 1px solid
        rgba(99, 102, 241, 0.12);

    border-radius: 50%;

    pointer-events: none;
}


.hero-orbit-one {

    width: 410px;
    height: 410px;
}


.hero-orbit-two {

    width: 300px;
    height: 300px;
}


/* ==================================================
   HERO PREVIEW CARD
================================================== */

.hero-category-preview {

    position: relative;

    z-index: 3;

    width: min(330px, 78%);

    padding: 27px;

    background:
        rgba(255, 255, 255, 0.92);

    border:
        1px solid
        rgba(226, 232, 240, 0.9);

    border-radius: 22px;

    box-shadow:
        0 30px 70px
        rgba(15, 23, 42, 0.12);

    backdrop-filter: blur(12px);

    text-align: center;
}


.preview-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 22px;
}


.preview-label {

    color: #4f46e5;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.05em;
}


.preview-count {

    color: #94a3b8;

    font-size: 10px;

    font-weight: 600;
}


.preview-main-icon {

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #e0e7ff
        );

    color: #4f46e5;

    font-size: 26px;

    box-shadow:
        0 8px 20px
        rgba(79, 70, 229, 0.08);
}


.hero-category-preview strong {

    display: block;

    color: #111827;

    font-size: 20px;

    letter-spacing: -0.025em;
}


.hero-category-preview p {

    max-width: 230px;

    margin: 9px auto 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.7;
}


.preview-lines {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-top: 21px;
}


.preview-lines span {

    display: block;

    height: 5px;

    border-radius: 20px;

    background: #f1f5f9;
}


.preview-lines span:nth-child(1) {

    width: 82%;

    margin: auto;
}


.preview-lines span:nth-child(2) {

    width: 65%;

    margin: auto;
}


.preview-lines span:nth-child(3) {

    width: 48%;

    margin: auto;
}


/* ==================================================
   FLOATING CATEGORY TAGS
================================================== */

.floating-category {

    position: absolute;

    z-index: 4;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    background: #ffffff;

    border:
        1px solid
        #e2e8f0;

    border-radius: 10px;

    color: #475569;

    font-size: 10px;

    font-weight: 700;

    box-shadow:
        0 12px 28px
        rgba(15, 23, 42, 0.08);

    animation:
        categoryFloat 5s ease-in-out infinite;
}


.floating-category span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 7px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 11px;
}


.floating-one {

    top: 42px;

    left: 5px;

    animation-delay: 0s;
}


.floating-two {

    right: 0;

    top: 135px;

    animation-delay: 1.3s;
}


.floating-three {

    bottom: 43px;

    left: 35px;

    animation-delay: 2.3s;
}


@keyframes categoryFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-7px);

    }

}


/* ==================================================
   CATEGORIES SECTION
================================================== */

.categories-section {

    padding: 105px 0;
}


.categories-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}


.categories-heading h2 {

    margin: 0;

    color: #111827;

    font-size: 42px;

    line-height: 1.1;

    letter-spacing: -0.04em;
}


/* ==================================================
   CATEGORY COUNT
================================================== */

.category-header-meta {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 30px;

    background: #ffffff;
}


.category-count-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4f46e5;

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.08);
}


.category-count {

    color: #64748b;

    font-size: 11px;

    font-weight: 650;
}


/* ==================================================
   CATEGORY GRID
================================================== */

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 17px;
}


/* ==================================================
   CATEGORY CARD
================================================== */

.category-card {

    position: relative;

    min-height: 275px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 25px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        #e2e8f0;

    border-radius: 18px;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* subtle corner glow */

.category-card::before {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    top: -70px;
    right: -70px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.08);

    opacity: 0;

    transition:
        opacity 0.25s ease;
}


.category-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(79, 70, 229, 0.28);

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.09);
}


.category-card:hover::before {

    opacity: 1;
}


/* ==================================================
   CARD TOP
================================================== */

.category-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.category-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #e0e7ff
        );

    color: #4f46e5;

    font-size: 21px;

    font-weight: 700;

    transition:
        transform 0.25s ease;
}


.category-card:hover .category-icon {

    transform:
        scale(1.05)
        rotate(-3deg);
}


.category-arrow {

    color: #94a3b8;

    font-size: 19px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.category-card:hover .category-arrow {

    color: #4f46e5;

    transform:
        translate(4px, -4px);
}


/* ==================================================
   CARD CONTENT
================================================== */

.category-card-content {

    margin-top: 28px;
}


.category-card h3 {

    margin: 0 0 9px;

    color: #111827;

    font-size: 19px;

    line-height: 1.35;

    letter-spacing: -0.025em;
}


.category-card p {

    max-width: 260px;

    margin: 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.75;
}


/* ==================================================
   CARD FOOTER
================================================== */

.category-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 18px;

    margin-top: 22px;

    border-top:
        1px solid
        #f1f5f9;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 700;
}


.category-card-footer span:last-child {

    transition:
        transform 0.2s ease;
}


.category-card:hover
.category-card-footer span:last-child {

    transform:
        translateX(4px);
}


/* ==================================================
   CTA
================================================== */

.category-cta {

    padding: 0 0 105px;
}


.category-cta-card {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding: 58px 62px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1e1b4b 100%
        );

    border-radius: 24px;

    box-shadow:
        0 22px 55px
        rgba(15, 23, 42, 0.12);
}


/* decorative glow */

.category-cta-card::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -110px;
    top: -170px;

    border-radius: 50%;

    background:
        rgba(129, 140, 248, 0.14);

    pointer-events: none;
}


.category-cta-content {

    position: relative;

    z-index: 2;
}


.category-cta-card .section-eyebrow {

    color: #a5b4fc;
}


.category-cta-card .section-eyebrow::before {

    background: #a5b4fc;
}


.category-cta-card h2 {

    max-width: 650px;

    margin: 0;

    color: #ffffff;

    font-size: 34px;

    line-height: 1.25;

    letter-spacing: -0.035em;
}


.category-cta-card p {

    max-width: 590px;

    margin: 14px 0 0;

    color: #94a3b8;

    font-size: 13px;

    line-height: 1.7;
}


.category-cta-action {

    position: relative;

    z-index: 2;

    flex-shrink: 0;
}


.cta-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 45px;

    padding: 0 21px;

    background: #ffffff;

    color: #111827;

    border-radius: 11px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.cta-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.20);
}


/* ==================================================
   BURMESE TYPOGRAPHY
================================================== */

html[lang="my"] .category-hero h1 {

    font-family:
        "Noto Sans Myanmar",
        "Myanmar Text",
        sans-serif;

    font-size:
        clamp(34px, 4vw, 48px);

    line-height: 1.45;

    letter-spacing: -0.025em;

    max-width: 780px;
}


html[lang="my"] .category-hero p,
html[lang="my"] .category-card h3,
html[lang="my"] .category-card p,
html[lang="my"] .category-card-footer,
html[lang="my"] .category-cta-card h2,
html[lang="my"] .category-cta-card p,
html[lang="my"] .hero-primary-button {

    font-family:
        "Noto Sans Myanmar",
        "Myanmar Text",
        sans-serif;
}


html[lang="my"] .category-card h3 {

    line-height: 1.55;
}


html[lang="my"] .category-card p {

    line-height: 1.9;
}


html[lang="my"] .category-cta-card h2 {

    line-height: 1.55;
}


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

@media (max-width: 1100px) {

    .category-hero-container {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .category-hero-content {

        max-width: 760px;

    }


    .category-hero-visual {

        min-height: 350px;

    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


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

@media (max-width: 700px) {

    .category-hero {

        padding: 70px 0 65px;

    }


    .category-hero-container {

        gap: 35px;

    }


    .category-hero h1 {

        font-size: 42px;

        line-height: 1.08;

    }


    .category-hero-description {

        margin-top: 18px;

        font-size: 14px;

        line-height: 1.8;

    }


    .category-hero-actions {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

        margin-top: 25px;

    }


    .hero-primary-button {

        width: auto;

        min-height: 44px;

    }


    .category-hero-visual {

        min-height: 330px;

    }


    .hero-orbit-one {

        width: 320px;
        height: 320px;

    }


    .hero-orbit-two {

        width: 235px;
        height: 235px;

    }


    .hero-category-preview {

        width: min(300px, 82%);

        padding: 23px;

    }


    .floating-one {

        left: 0;

        top: 35px;

    }


    .floating-two {

        right: 0;

        top: 105px;

    }


    .floating-three {

        left: 10px;

        bottom: 30px;

    }


    .categories-section {

        padding: 70px 0;

    }


    .categories-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

        margin-bottom: 28px;

    }


    .categories-heading h2 {

        font-size: 34px;

    }


    .category-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

    }


    .category-card {

        min-height: 255px;

        padding: 18px;

        border-radius: 15px;

    }


    .category-icon {

        width: 42px;
        height: 42px;

        border-radius: 12px;

        font-size: 18px;

    }


    .category-arrow {

        font-size: 16px;

    }


    .category-card-content {

        margin-top: 20px;

    }


    .category-card h3 {

        font-size: 14px;

        line-height: 1.45;

    }


    .category-card p {

        font-size: 10px;

        line-height: 1.7;

    }


    .category-card-footer {

        padding-top: 14px;

        margin-top: 16px;

        font-size: 9px;

    }


    .category-cta {

        padding-bottom: 70px;

    }


    .category-cta-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 25px;

        padding: 38px 25px;

        border-radius: 20px;

    }


    .category-cta-card h2 {

        font-size: 27px;

        line-height: 1.35;

    }


    .category-cta-card p {

        font-size: 11px;

        line-height: 1.75;

    }


    .cta-button {

        width: 100%;

    }

}


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

@media (max-width: 400px) {

    .category-hero h1 {

        font-size: 37px;

    }


    .category-grid {

        gap: 10px;

    }


    .category-card {

        min-height: 245px;

        padding: 15px;

    }


    .category-card h3 {

        font-size: 13px;

    }


    .category-card p {

        font-size: 9px;

    }


    .floating-category {

        padding: 7px 9px;

        font-size: 8px;

    }


    .floating-category span {

        width: 19px;
        height: 19px;

        font-size: 9px;

    }

}