:root{
    --theme:#b20000;
    /* --theme:#F63049; */
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background-color: rgba(248,248,248);
}

.th-bg{
    background-color: var(--theme);
    color: white;
}

.th-btn{
    background-color: var(--theme);
    color: white;
    transition: all 0.3s ease;

}
a{
    text-decoration: none;
}

.th-heading{
    color: var(--theme);
}

.th-btn:hover{
    border: 1px solid var(--theme);
    color: var(--theme);
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}


.jd-desktop {
    display: block;
}

.jd-mobile {
    display: none;
}


.jd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid #eee;
}

.jd-logo {
    height: 34px;
}

.jd-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.jd-actions a,
.jd-actions span {
    color: #111;
    text-decoration: none;
}

.jd-actions .free {
    color: var(--theme);
    font-weight: 600;
}

.jd-actions small {
    background: var(--theme);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    margin-left: 4px;
    border-radius: 3px;
}

.jd-actions .login {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
}

.jd-search-wrap {
    padding: 30px 28px;
}

.jd-search-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.jd-search-wrap h1 span {
    color: #1a73e8;
}

.jd-search {
    display: flex;
    gap: 16px;
    max-width: 900px;
}

.jd-location,
.jd-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 14px;
}

.jd-location {
    width: 220px;
}

.jd-location input,
.jd-input input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
}

.jd-location i {
    margin-right: 8px;
}

.jd-input i {
    color: #1a73e8;
    margin-right: 10px;
}

.jd-input button {
    background: #ff5a00;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 968px) {
    .jd-desktop {
        display: none;
    }

    .jd-mobile {
        display: block;
    }

    .m-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-bottom: 1px solid #eee;
    }

    .m-header img {
        height: 28px;
    }

    .m-right {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .m-adv {
        border: 1px solid #1a73e8;
        background: #fff;
        color: #1a73e8;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 14px;
    }

    .m-right i {
        font-size: 18px;
    }

    .m-search {
        margin: 12px;
        border: 1px solid #ccc;
        border-radius: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .m-search input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 15px;
    }

    .m-search i {
        color: #1a73e8;
    }
}

.jd-hero {
    display: flex;
    gap: 16px;
    padding: 5px;
}

.jd-slider,
.jd-cards {
    width: 100%;
}

.jd-slider {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 520px;
}

.jd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.6s ease;
}

.jd-slide.active {
    opacity: 1;
}

.jd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jd-slide-content {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #083b66;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.95);
}

.jd-slide-content h2 {
    font-size: 32px;
    margin: 0 0 12px;
}

.jd-slide-content button {
    background: #0a3d8f;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* arrows */
.jd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.jd-arrow.left {
    left: 12px;
}

.jd-arrow.right {
    right: 12px;
}

/* dots */
.jd-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.jd-dots span {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.4;
    border-radius: 50%;
}

.jd-dots span.active {
    opacity: 1;
}

/* ================= RIGHT CARDS GRID ================= */
.jd-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ================= CARD ================= */
.jd-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    height: 280px;
    cursor: pointer;
}

.jd-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jd-card img {
    transition: 0.4s ease;
}

.jd-card:hover img {
    transform: scale(1.05);
}

/* overlay */
.jd-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.2)
    );
}

/* text on image */
.jd-card-content {
    position: absolute;
    left: 16px;
    bottom: 20px;
    z-index: 2;
}

.jd-card-content h3 {
    margin: 0;
    font-size: 22px;
}

.jd-card-content p {
    margin: 6px 0 0;
    font-size: 15px;
}

/* hover explore */
.jd-explore {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: 0.3s;
}

.jd-card:hover .jd-explore {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1024px) {
    .jd-hero {
        flex-direction: column;
    }
    .jd-slider {
        height: 320px;
    }

    .jd-slider,
    .jd-cards {
        width: 100%;
    }

    .jd-cards {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .jd-card {
        min-width: 220px;
        height: 240px;
    }
}



.jd-categories {

    padding: 60px 24px;
}

.jd-cat-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.jd-cat {
    text-align: center;
    cursor: pointer;
}

.jd-cat img {
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #ddd;
    object-fit: cover;
    background: #fff;
    transition: 0.25s;
}

.jd-cat span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

/* hover */
.jd-cat:hover img {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* wedding highlight */
.jd-cat.highlight img {
    border: 2px solid #ff4da6;
}

/* popular */
.jd-cat.popular {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jd-cat.popular i {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* ================= RESPONSIVE ================= */
/* ================= MOBILE CATEGORY OPTIMIZATION ================= */
@media (max-width: 1031px) {
    .jd-categories {
        padding: 30px 18px;
    }

    .jd-cat-grid {
        grid-template-columns: repeat(7, 1fr);
        /* 👈 more items per row */
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .jd-categories {
        padding: 20px 12px;
    }

    .jd-cat-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 👈 more items per row */
        gap: 10px;
    }

    .jd-cat {
        text-align: center;
    }

    .jd-cat img {
        width: 40px;
        height: 40px;
        padding: 8px;
        border-radius: 12px;
    }

    .jd-cat span {
        font-size: 11px;
        margin-top: 6px;
        line-height: 1.2;
    }

    .jd-cat.popular i {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 12px;
    }
}

/* EXTRA SMALL DEVICES (very compact like Justdial app) */
@media (max-width: 480px) {
    .jd-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        /* 👈 maximum fit */
        gap: 8px;
    }

    .jd-cat img {
        width: 34px;
        height: 34px;
        padding: 6px;
    }

    .jd-cat span {
        font-size: 10px;
    }

    .jd-cat.popular i {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* services  */
/* ================= SERVICES SECTION ================= */

.jd-blocks {
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.jd-block {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.jd-block h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

/* items – desktop */
.jd-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.jd-item {
    text-align: center;
}

.jd-item img {
    width: 100%;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
}

.jd-item span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}


@media (max-width: 768px) {
    .jd-blocks {
        grid-template-columns: 1fr;
    }
    .jd-items {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .jd-items::-webkit-scrollbar {
        display: none;
    }

    .jd-item {
        min-width: 120px;
        /* item width control */
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .jd-item img {
        height: 70px;
    }

    .jd-item span {
        font-size: 11px;
    }
}

/* ================= COMMON CARD ================= */
.jd-service-wrapper {
    /* max-width:1200px; */
    margin: 30px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: hidden;
}

.jd-service-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    padding: 24px;
    gap: 24px;
}

.jd-service-left h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.jd-service-left p {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.jd-service-left a {
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

/* ================= ICON GRID ================= */
.jd-service-items {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.jd-service-item {
    text-align: center;
    text-decoration: none;
    color: #111;
}

.jd-service-icon {
    width: 72px;
    height: 72px;
    border: 1px solid #ddd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background: #fff;
    transition: 0.25s;
}

.jd-service-item:hover .jd-service-icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.jd-service-icon img {
    width: 40px;
    height: 40px;
}

.jd-service-item span {
    display: block;
    font-size: 14px;
}

.jd-sub {
    font-size: 12px;
    color: green;
    margin-top: 4px;
}

/* divider */
.jd-divider {
    height: 1px;
    background: #eee;
}

@media (max-width: 768px) {
    .jd-service-row {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .jd-service-items {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .jd-service-item {
        min-width: 90px;
        scroll-snap-align: start;
    }

    .jd-service-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .jd-service-icon img {
        width: 30px;
        height: 30px;
    }

    .jd-service-item span {
        font-size: 12px;
    }

    .jd-sub {
        font-size: 11px;
    }
}

.jd-trending-wrap {
    margin: 30px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    position: relative;
}

.jd-trending-head h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jd-new {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
}

.jd-trending-head p {
    margin: 6px 0 18px;
    font-size: 14px;
    color: #555;
}

.jd-trending-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.jd-trending-card {
    display: flex;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s;
}

.jd-trending-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.jd-trending-card img {
    width: 110px;
    height: 100%;
    object-fit: cover;
}

.jd-trending-content {
    padding: 14px;
}

.jd-trending-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.jd-trending-content span {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
}


@media (max-width: 768px) {
    .jd-trending-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }
    .jd-slider{
        height: 220px;
    }

    .jd-trending-scroll::-webkit-scrollbar {
        display: none;
    }

    .jd-trending-card {
        min-width: 260px;
        scroll-snap-align: start;
    }
}
