﻿/* ================= GLOBAL ================= */
body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0f172a;
    overflow-x: hidden;
}


/* ================= HERO ================= */
.hero-section {
    position: relative;
    padding: 85px 20px 75px;
    text-align: center;
    background: linear-gradient(rgba(15,23,42,0.72), rgba(15,23,42,0.78)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
}


/* BADGE */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.10);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}


/* TITLE */
.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
}

    .hero-title span {
        color: #93c5fd;
    }


/* SUBTITLE */
.hero-subtitle {
    max-width: 820px;
    margin: auto;
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.7;
    margin-top: 12px;
}


/* ================= SEARCH WRAP ================= */
.search-wrap {
    max-width: 760px;
    margin: 28px auto 0;
    position: relative;
}


/* SEARCH BOX */
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 18px;
    padding: 8px 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

    .big-search:focus-within {
        box-shadow: 0 0 0 4px rgba(147, 197, 253, .32), 0 18px 34px rgba(0,0,0,.22);
    }


/* ICON */
.search-icon {
    font-size: 18px;
    color: #64748b;
    padding: 0 10px;
}


/* INPUT */
.big-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px 6px;
}


/* BUTTON */
.big-search button {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

    .big-search button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(37,99,235,0.25);
    }


/* =========================================================
   SUGGESTION BOX
   ONLY SUGGESTION DESIGN
   ========================================================= */

#suggestBox {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    margin: 0;
    padding: 4px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    display: none;
    z-index: 999999;
    overflow: hidden;
    text-align: left !important;
}


    /* =========================================================
   SUGGESTION ITEM
   ========================================================= */

    #suggestBox .s-item {
        width: 100%;
        display: block !important;
        margin: 0;
        padding: 12px 16px !important;
        background: #fff !important;
        border: 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer;
        color: #0f172a;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 1.4;
        text-align: left !important;
        transition: background .18s ease, box-shadow .18s ease;
    }


        /* LAST ITEM */

        #suggestBox .s-item:last-child {
            border-bottom: none !important;
        }


    /* =========================================================
   MAIN ROW
   ========================================================= */

    #suggestBox .s-item-main {
        width: 100%;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
        text-align: left !important;
    }


    /* =========================================================
   ICON
   ========================================================= */

    #suggestBox .s-icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1px;
        background: #f7f2e8;
        border-radius: 8px;
        color: #9a743b;
        font-size: 14px;
    }

        #suggestBox .s-icon i {
            color: #9a743b !important;
            font-size: 14px;
        }


    /* =========================================================
   CONTENT
   ========================================================= */

    #suggestBox .s-content {
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }


    /* =========================================================
   TITLE
   ========================================================= */

    #suggestBox .s-title {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        color: #0f172a !important;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        text-align: left !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =========================================================
   META
   ========================================================= */

    #suggestBox .s-meta {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.4;
        text-align: left !important;
    }


        /* =========================================================
   META SEPARATOR
   ========================================================= */

        #suggestBox .s-meta > span:not(:last-child)::after {
            content: "•";
            margin-left: 7px;
            margin-right: 7px;
            color: #cbd5e1;
        }


    /* =========================================================
   RESULT TYPE
   ========================================================= */

    #suggestBox .s-type {
        color: #9a743b !important;
        font-weight: 700;
    }


    /* =========================================================
   HIGHLIGHT
   ========================================================= */

    #suggestBox mark {
        background: transparent !important;
        color: #926f37 !important;
        font-weight: 800;
        border-bottom: 2px solid #d4b06a;
        padding: 0;
    }


    /* =========================================================
   HOVER
   ========================================================= */

    #suggestBox .s-item:hover {
        background: #f8fafc !important;
        box-shadow: inset 3px 0 0 #b38a4a !important;
    }


    /* =========================================================
   ACTIVE ITEM
   ========================================================= */

    #suggestBox .s-item.is-active {
        background: #f8f5ee !important;
        box-shadow: inset 3px 0 0 #b38a4a !important;
    }

        #suggestBox .s-item.is-active .s-title {
            color: #0b1f36 !important;
        }


/* =========================================================
   TRUST CARDS
   ========================================================= */

.trust-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

    .trust-card i {
        font-size: 28px;
        color: #2563eb;
        margin-bottom: 10px;
    }

    .trust-card h5 {
        font-size: 16px;
        font-weight: 700;
    }


/* ================= FEATURE ================= */

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: 0.25s;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    }

    .feature-card i {
        font-size: 34px;
        color: #2563eb;
        margin-bottom: 12px;
    }

    .feature-card h5 {
        font-size: 16px;
        font-weight: 700;
    }


/* ================= LAW CARDS ================= */

.law-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.law-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(15,23,42,0.25), rgba(15,23,42,0.85) );
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}


/* ================= CTA ================= */

.cta-section {
    background: linear-gradient( 135deg, #1d4ed8, #0f172a );
    border-radius: 22px;
    padding: 55px 20px;
    text-align: center;
    color: #fff;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    background: #fff;
    color: #1d4ed8;
    text-decoration: none;
    margin-top: 15px;
}


/* ================= DOMAIN CARD ================= */

.domain-card {
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .domain-card .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 20px;
        background: linear-gradient( to top, rgba(0,0,0,0.7), transparent );
        color: #fff;
    }


/* =========================================================
   INDIAJUDGMENTSAI HOMEPAGE
   ========================================================= */

.hero-section {
    padding: 108px 20px 94px;
    background: linear-gradient( 90deg, rgba(7, 23, 40, .95), rgba(11, 31, 54, .78) ), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=85');
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: .22;
        pointer-events: none;
        background-image: radial-gradient( circle at 17% 22%, #c6a462 0 1px, transparent 1.5px ), radial-gradient( circle at 80% 70%, #c6a462 0 1px, transparent 1.5px );
        background-size: 37px 37px, 51px 51px;
    }

    .hero-section > * {
        position: relative;
    }

.public-hero {
    display: flex;
    align-items: center;
    min-height: 505px;
}

.hero-badge {
    color: #f7e6bf;
    border: 1px solid rgba(218, 190, 134, .55);
    background: rgba(179, 138, 74, .16);
    letter-spacing: .4px;
}

.hero-title {
    max-width: 850px;
    margin: 0 auto;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp( 2.5rem, 5vw, 4.6rem );
    font-weight: 700;
}

    .hero-title span {
        color: #e3c17e;
    }

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 710px;
}

.big-search {
    border: 1px solid rgba(179,138,74,.55);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 22px 45px rgba(0,0,0,.25);
}

    .big-search button {
        background: #0b1f36;
        border: 1px solid #b38a4a;
        border-radius: 8px;
    }

.trust-card,
.feature-card {
    background: #fffdf8;
    border: 1px solid #ddd4c4;
    box-shadow: 0 8px 22px rgba(11,31,54,.06);
}

    .trust-card i,
    .feature-card i {
        color: #9a743b;
    }

    .feature-card:hover {
        border-color: #b38a4a;
        box-shadow: 0 15px 30px rgba(11,31,54,.1);
    }

.section-title {
    color: #0b1f36;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.cta-section {
    background: linear-gradient( 120deg, #0b1f36, #183d5d );
    border: 1px solid #b38a4a;
}

.cta-btn {
    color: #0b1f36;
}


/* =========================================================
   SEARCH-FIRST HOMEPAGE
   ========================================================= */

.public-hero,
.public-hero *,
.public-hero *::before,
.public-hero *::after {
    box-sizing: border-box;
}

.public-hero {
    background: #0b1f36;
    border-bottom: 3px solid #b38a4a;
    min-height: 0;
    padding: 55px 20px 68px;
}

    .public-hero::before {
        display: none;
    }

    .public-hero > .container {
        width: 100%;
    }

    .public-hero .hero-badge {
        margin-bottom: 13px;
    }

.home-search-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 0 68px;
    text-align: center;
    width: 100%;
}

    .home-search-shell > .hero-subtitle {
        display: none;
    }

.public-hero .hero-title {
    color: #fff !important;
    font-size: clamp( 2.25rem, 4.3vw, 4rem );
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0;
    max-width: none;
}

    .public-hero .hero-title span {
        color: #e3c17e !important;
    }

.public-hero > .container > .hero-subtitle {
    color: #dbe3e7 !important;
    font-size: 1rem;
    line-height: 1.65;
    margin: 16px auto 0;
    max-width: 650px;
}

.search-wrap {
    margin: 31px auto 0;
    max-width: 1180px;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.big-search {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    box-shadow: 0 11px 27px rgba(0,0,0,.2);
    display: flex;
    gap: 12px;
    min-height: 64px;
    padding: 8px 20px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

    .big-search:focus-within {
        border-color: #b38a4a;
        box-shadow: 0 0 0 3px rgba(179,138,74,.2), 0 11px 27px rgba(0,0,0,.2);
    }

.search-icon {
    color: #8a6931;
    flex: 0 0 auto;
    font-size: 16px;
    padding: 0;
}

.big-search input {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #162535 !important;
    flex: 1 1 auto;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    font-size: 16px;
    min-width: 0;
    outline: 0;
    padding: 12px 0 !important;
    width: 100%;
}

    .big-search input::placeholder {
        color: #7b858d !important;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:768px) {

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .search-wrap {
        max-width: 100%;
        padding: 0 10px;
    }

    .big-search {
        padding: 8px 12px;
    }

    .search-icon {
        display: block;
    }

    .public-hero {
        padding: 35px 14px 0;
    }

        .public-hero .hero-badge {
            margin-bottom: 11px;
        }

    .home-search-shell {
        padding: 0 0 46px;
    }

    .public-hero .hero-title {
        font-size: clamp( 2rem, 9vw, 2.55rem );
        line-height: 1.13;
    }

        .public-hero .hero-title span {
            display: block;
            margin-top: 3px;
        }

    .public-hero > .container > .hero-subtitle {
        font-size: .92rem;
        margin-top: 14px;
    }

    .search-wrap {
        margin-top: 23px;
    }

    .big-search {
        border-radius: 9px;
        gap: 10px;
        min-height: 56px;
        padding: 5px 14px;
    }

        .big-search input {
            font-size: 16px;
            padding: 10px 0 !important;
        }

    .search-icon {
        font-size: 15px;
    }


    /* =========================================
       SUGGESTION MOBILE
       ========================================= */

    #suggestBox {
        border-radius: 10px;
        margin-top: 7px;
    }

        #suggestBox .s-item {
            padding: 11px 14px !important;
        }

        #suggestBox .s-item-main {
            gap: 10px;
        }

        #suggestBox .s-icon {
            flex: 0 0 29px;
            width: 29px;
            height: 29px;
            font-size: 12px;
        }

            #suggestBox .s-icon i {
                font-size: 12px;
            }

        #suggestBox .s-title {
            font-size: 13px;
        }

        #suggestBox .s-meta {
            font-size: 11px;
        }

    .home-search-open .chat-support,
    .home-search-open .ai-chat {
        opacity: 0;
        pointer-events: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media(max-width:374px) {

    .public-hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-search-shell {
        padding-bottom: 40px;
    }

    .big-search {
        padding-left: 12px;
        padding-right: 12px;
    }

        .big-search input {
            font-size: 14px;
        }

    #suggestBox .s-item {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
