/* =====================================================================
   CATEGORY GRID — Modern redesign of the "MUMBAI ESCORT CATEGORY LIST"
   (overrides the legacy .h_s9 rules in glass-content.css).
   Clean, attractive, fully responsive. No ribbons, no clutter.
   ===================================================================== */

/* ---------- Section wrapper ---------- */
html body section.h_s9 {
    position: relative !important;
    padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 8vw, 120px) !important;
    background:
        radial-gradient(ellipse 65% 45% at 50% 10%, rgba(252, 211, 77, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 65% 45% at 50% 95%, rgba(214, 40, 117, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #060300 0%, #100700 50%, #050300 100%) !important;
    border-top: 1px solid rgba(252, 211, 77, 0.22) !important;
    border-bottom: 1px solid rgba(252, 211, 77, 0.22) !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

html body section.h_s9::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(234, 179, 8, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    filter: none;
    transform: none;
    width: auto;
    height: auto;
    left: 0;
    top: 0;
}

/* ---------- Section header ---------- */
html body section.h_s9 .h_s9_1 {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

html body section.h_s9 .h_s9_1 > h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(26px, 4.2vw, 46px) !important;
    font-weight: 800 !important;
    font-style: italic !important;
    line-height: 1.15 !important;
    letter-spacing: 1.2px !important;
    text-align: center !important;
    background: linear-gradient(90deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 40px rgba(252, 211, 77, 0.2) !important;
    text-transform: uppercase !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    position: relative;
}

html body section.h_s9 .h_s9_1 > h3::before { content: none !important; display: none !important; }
html body section.h_s9 .h_s9_1 > h3::after {
    content: "";
    display: block;
    width: 200px;
    height: 14px;
    margin: 22px auto 44px;
    background:
        radial-gradient(circle at 50% 50%, #fbbf24 0, #fbbf24 3.5px, transparent 4px) center / 12px 12px no-repeat,
        linear-gradient(90deg, transparent 0%, rgba(214, 40, 117, 0.7) 15%, #fbbf24 50%, rgba(214, 40, 117, 0.7) 85%, transparent 100%) center / 100% 1px no-repeat;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.55));
}

/* ---------- Grid row (CSS Grid, responsive) ---------- */
html body section.h_s9 .h_s9_1 > .row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(16px, 2vw, 26px);
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100%;
    float: none !important;
}
html body section.h_s9 .h_s9_1 > .row::before,
html body section.h_s9 .h_s9_1 > .row::after {
    display: none !important;
    content: none !important;
}

/* ---------- Card wrapper ---------- */
html body section.h_s9 .patent-sec {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
    perspective: 1000px;
}

html body section.h_s9 .patent-sec:hover { z-index: 3; }

/* ---------- Card link — becomes the full card ---------- */
html body section.h_s9 .patent-sec > a {
    display: block !important;
    text-decoration: none !important;
    position: relative;
    border-radius: 18px !important;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, #100802 0%, #050300 100%) padding-box,
        linear-gradient(135deg, #fde68a 0%, #fbbf24 30%, #7c2d12 55%, #fbbf24 85%, #fde68a 100%) border-box !important;
    border: 1.5px solid transparent !important;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(252, 211, 77, 0.22) inset,
        0 0 30px rgba(252, 211, 77, 0.12);
    transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .3s ease;
    transform-style: preserve-3d;
}

html body section.h_s9 .patent-sec:hover > a {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow:
        0 36px 72px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(252, 211, 77, 0.7) inset,
        0 0 60px rgba(252, 211, 77, 0.45),
        0 0 90px rgba(214, 40, 117, 0.25);
}

/* gold shine sweeping across on hover */
html body section.h_s9 .patent-sec > a::before {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(253, 230, 138, 0.22), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 6;
    transition: left .9s ease;
}
html body section.h_s9 .patent-sec:hover > a::before { left: 130%; }

/* Modern "EXPLORE" badge replaces the old FEATURED ribbon */
html body section.h_s9 .patent-sec > a::after {
    content: "EXPLORE";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 5px 12px 5px 22px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #0a0600;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
html body section.h_s9 .patent-sec > a::after {
    /* arrow drawn with a pseudo-gradient in the padding-left area */
    background-image:
        radial-gradient(circle at 9px 50%, #0a0600 2.2px, transparent 2.6px),
        linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
    background-repeat: no-repeat, no-repeat;
}
html body section.h_s9 .patent-sec:hover > a::after {
    transform: translateX(3px) scale(1.05);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(252, 211, 77, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Kill the legacy FEATURED ribbon that sat on .card-p::before */
html body section.h_s9 .patent-sec .card-p::before {
    content: none !important;
    display: none !important;
}

/* ---------- Image container ---------- */
html body section.h_s9 .patent-sec .card-p {
    position: relative;
    background: #050300 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: none !important;
}

/* Bottom gradient overlay — also hides the baked-in "nikitabansal.net"
   watermark by going fully opaque over the bottom ~30% of each card */
html body section.h_s9 .patent-sec .card-p::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(6, 3, 0, 0.5) 55%,
        rgba(6, 3, 0, 0.92) 68%,
        rgba(6, 3, 0, 1) 78%,
        rgba(6, 3, 0, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

html body section.h_s9 .patent-sec img.img-sec-s {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 10% !important; /* favours the face, pushes watermark toward the opaque overlay */
    display: block !important;
    border-radius: 0 !important;
    transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .45s ease;
    filter: saturate(1.05) contrast(1.04);
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
}

html body section.h_s9 .patent-sec:hover img.img-sec-s {
    transform: scale(1.08);
    filter: saturate(1.15) contrast(1.08) brightness(1.04);
}

/* Hide decorative sprites that ship with a few cards */
html body section.h_s9 .patent-sec img.img-r { display: none !important; }

/* ---------- Details strip — now floats over the image at the bottom */
html body section.h_s9 .patent-sec .details-sec {
    position: absolute !important;
    left: 0; right: 0; bottom: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 14px 16px 18px !important;
    box-shadow: none !important;
    z-index: 4 !important;
    overflow: visible !important;
    text-align: center;
}

html body section.h_s9 .patent-sec .details-sec::before { display: none !important; }

html body section.h_s9 .patent-sec h5.text-name {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(14px, 1.25vw, 17px) !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 1.4px !important;
    text-transform: uppercase !important;
    color: #fff7e6 !important;
    background: linear-gradient(180deg, #fff7e6 0%, #fde68a 60%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
    line-height: 1.25 !important;
    display: block;
}

/* underline flourish under the name, grows on hover */
html body section.h_s9 .patent-sec h5.text-name::after {
    content: "";
    display: block;
    width: 32px;
    height: 1.5px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0.85;
    transition: width .4s ease;
}
html body section.h_s9 .patent-sec:hover h5.text-name::after {
    width: 80%;
}

/* extra meta lines if present */
html body section.h_s9 .patent-sec .details-sec > span {
    display: inline-block !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.7px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 6px 4px 0 !important;
    vertical-align: middle;
    color: #e6d6b0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    html body section.h_s9 .h_s9_1 > .row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 820px) {
    html body section.h_s9 .h_s9_1 > .row {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 16px;
    }
    html body section.h_s9 .patent-sec > a::after {
        padding: 4px 10px 4px 20px;
        font-size: 9px;
        letter-spacing: 2px;
    }
}

@media (max-width: 560px) {
    html body section.h_s9 .h_s9_1 > .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    html body section.h_s9 .patent-sec .details-sec { padding: 10px 10px 14px !important; }
    html body section.h_s9 .patent-sec h5.text-name {
        font-size: 12.5px !important;
        letter-spacing: 1px !important;
    }
    html body section.h_s9 .patent-sec h5.text-name::after { margin-top: 5px; }
    html body section.h_s9 .patent-sec > a::after {
        top: 8px; right: 8px;
        padding: 3px 8px 3px 18px;
        font-size: 8.5px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 380px) {
    html body section.h_s9 .h_s9_1 > .row { gap: 10px; }
    html body section.h_s9 .patent-sec h5.text-name { font-size: 11.5px !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html body section.h_s9 .patent-sec,
    html body section.h_s9 .patent-sec > a,
    html body section.h_s9 .patent-sec img.img-sec-s {
        transition: none !important;
    }
    html body section.h_s9 .patent-sec:hover > a { transform: none; }
    html body section.h_s9 .patent-sec:hover img.img-sec-s { transform: none; }
}
