/* ============================================================
   DELDURE HOMEPAGE
   External homepage-only stylesheet.
   Load after /static/css/site12.css.
   ============================================================ */

/* =========================================================
   DELDURE HOMEPAGE BODY ONLY
   No header/footer selectors. Safe for SiteMesh shared layout.
   ========================================================= */
.dd-home-body{--ink:#101a38;--muted:#66708a;--blue:#2878ff;--violet:#7657ff;--line:#e7ebf7;--soft:#f7f9ff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;width:100%;overflow:hidden}
.dd-home-body *{box-sizing:border-box}.dd-wrap{width:min(1160px,calc(100% - 40px));margin:0 auto}
.dd-hero{position:relative;padding:58px 0 28px;background:radial-gradient(circle at 7% 48%,rgba(53,145,255,.16),transparent 18%),radial-gradient(circle at 94% 42%,rgba(119,88,255,.14),transparent 19%),linear-gradient(135deg,#f7faff 0%,#eef4ff 45%,#faf7ff 100%);border-bottom:1px solid #edf0f8}
.dd-hero:before{content:"";position:absolute;left:-10%;right:-10%;bottom:-120px;height:220px;border-radius:50%;background:rgba(255,255,255,.78);transform:rotate(-6deg)}
.dd-hero-content{position:relative;z-index:2;text-align:center}
.dd-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #dce5ff;border-radius:99px;background:#fff;color:#5262a5;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;box-shadow:0 7px 22px rgba(38,65,140,.07)}
.dd-hero h1{font-size:52px;line-height:1.02;letter-spacing:-2.8px;margin:17px 0 12px;color:var(--ink)}
.dd-hero h1 span{background:linear-gradient(90deg,#267cff,#7256ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.dd-hero-copy{max-width:720px;margin:0 auto 25px;color:#5d6984;font-size:16px;line-height:1.6}
.dd-main-search{width:min(930px,100%);height:70px;margin:0 auto;background:#fff;border:1px solid #dfe6fb;border-radius:22px;display:flex;align-items:center;padding:7px 8px 7px 18px;box-shadow:0 20px 55px rgba(54,78,151,.15);text-align:left}
.dd-main-search-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#f0edff;color:#7656ff;font-size:18px;flex:none}
.dd-main-search input{border:0;outline:0;flex:1;min-width:0;padding:0 15px;font-size:15px;color:var(--ink);background:transparent}
.dd-main-search input::placeholder{color:#8992a7}
.dd-main-search-location{height:38px;min-width:145px;padding:0 15px;border-left:1px solid #e1e6f2;color:#68748c;font-size:12px;display:flex;align-items:center;gap:7px}
.dd-main-search button{height:54px;border:0;border-radius:15px;padding:0 24px;background:linear-gradient(135deg,#247cff,#7654ff);color:#fff;font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 9px 24px rgba(77,91,255,.22)}
.dd-quick{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:13px auto 0}.dd-quick a{padding:8px 12px;border:1px solid #e1e6f2;border-radius:99px;background:rgba(255,255,255,.85);color:#58647d!important;text-decoration:none!important;font-size:10px;font-weight:700}
.dd-ad-top{min-height:20px;margin:12px auto 4px;text-align:center;position:relative;z-index:3}.dd-section{padding:28px 0 10px}.dd-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dd-section-head h2{font-size:21px;letter-spacing:-.6px;margin:0}.dd-section-head a{font-size:12px;font-weight:800;color:#5066d8!important;text-decoration:none!important}
.dd-cat-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.dd-cat{display:block;text-align:center;padding:14px 6px;border:1px solid var(--line);border-radius:16px;background:#fff;text-decoration:none!important;box-shadow:0 7px 20px rgba(40,65,130,.045);transition:.2s}.dd-cat:hover{transform:translateY(-3px);box-shadow:0 12px 27px rgba(40,65,130,.10);border-color:#d7def5}.dd-cat-icon{width:42px;height:42px;margin:0 auto 8px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#eef3ff,#f3edff);color:#5d64d9;font-size:18px;font-weight:900}.dd-cat-name{font-size:11px;font-weight:800;color:#202b48;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dd-cat-sub{font-size:9px;color:#818ba0;margin-top:3px}
.dd-popular-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.dd-popular{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;text-decoration:none!important;box-shadow:0 8px 24px rgba(40,65,130,.06);transition:.2s}.dd-popular:hover{transform:translateY(-4px);box-shadow:0 15px 35px rgba(40,65,130,.11)}.dd-popular-img{height:125px;background:linear-gradient(135deg,#eef3ff,#f7f1ff);overflow:hidden}.dd-popular-img img{width:100%;height:100%;object-fit:cover}.dd-popular-body{padding:12px}.dd-popular-title{font-size:13px;font-weight:800;color:#17213e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dd-popular-meta{font-size:10px;color:#778198;margin-top:5px}
.dd-ai-panel{margin:18px 0;border:1px solid #dfe2ff;border-radius:22px;padding:25px 28px;display:flex;align-items:center;gap:20px;background:radial-gradient(circle at 88% 20%,rgba(111,87,255,.13),transparent 27%),linear-gradient(110deg,#f4f2ff,#f7fbff)}.dd-ai-icon{width:72px;height:72px;border-radius:23px;display:grid;place-items:center;background:linear-gradient(135deg,#e8ddff,#e7f6ff);font-size:34px;flex:none}.dd-ai-copy{flex:1}.dd-ai-copy h3{margin:0 0 5px;font-size:19px}.dd-ai-copy p{margin:0;color:#6c7690;font-size:12px;line-height:1.55}.dd-ai-btn{display:inline-block;margin-top:12px;padding:9px 14px;border-radius:11px;background:linear-gradient(135deg,#287bff,#7355ff);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:800}.dd-ai-examples{display:flex;flex-direction:column;gap:7px;min-width:290px}.dd-ai-example{padding:9px 12px;border:1px solid #e3e7f5;border-radius:11px;background:#fff;color:#5c6680;font-size:10px}
.dd-trending{display:flex;gap:9px;overflow:auto;padding-bottom:5px}.dd-trend{min-width:200px;padding:11px 14px;border:1px solid var(--line);border-radius:99px;background:#fff;color:#56627b;font-size:10px;font-weight:700}.dd-trend b{color:#23a96e;margin-right:6px}.dd-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:18px 0 35px;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fafbff}.dd-stat{text-align:center;padding:17px;border-right:1px solid var(--line)}.dd-stat:last-child{border-right:0}.dd-stat strong{display:block;font-size:22px;letter-spacing:-1px}.dd-stat span{font-size:10px;color:#748097}
.dd-ad-bottom{min-height:30px;margin:8px auto 25px;text-align:center}
@media(max-width:1050px){.dd-cat-grid{grid-template-columns:repeat(4,1fr)}.dd-main-search-location{display:none}.dd-popular-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.dd-wrap{width:calc(100% - 24px)}.dd-hero{padding:38px 0 24px}.dd-hero h1{font-size:39px;letter-spacing:-2px}.dd-hero-copy{font-size:14px}.dd-main-search{height:62px;border-radius:19px;padding-left:11px}.dd-main-search-icon{width:36px;height:36px}.dd-main-search input{font-size:13px;padding:0 9px}.dd-main-search button{height:48px;padding:0 14px;border-radius:13px}.dd-cat-grid{grid-template-columns:repeat(4,1fr);gap:7px}.dd-cat{padding:11px 3px}.dd-cat-icon{width:35px;height:35px;border-radius:11px;font-size:15px}.dd-cat-name{font-size:9px}.dd-popular-grid{grid-template-columns:1fr 1fr;gap:9px}.dd-popular-img{height:95px}.dd-popular-body{padding:9px}.dd-popular-title{font-size:11px}.dd-ai-panel{padding:18px;gap:12px;align-items:flex-start;flex-wrap:wrap}.dd-ai-icon{width:55px;height:55px;border-radius:18px;font-size:26px}.dd-ai-copy{min-width:calc(100% - 70px)}.dd-ai-copy h3{font-size:16px}.dd-ai-examples{width:100%;min-width:0}.dd-stats{grid-template-columns:repeat(2,1fr)}.dd-stat:nth-child(2){border-right:0}.dd-stat:nth-child(-n+2){border-bottom:1px solid var(--line)}}

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

.ddm-home-body{--ink:#101a38;--line:#e7ebf7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;width:100%;overflow:hidden}
.ddm-home-body *{box-sizing:border-box}.ddm-wrap{width:calc(100% - 24px);margin:0 auto}
.ddm-hero{padding:75px 0 22px;background:radial-gradient(circle at 92% 12%,rgba(117,84,255,.16),transparent 28%),radial-gradient(circle at 5% 60%,rgba(39,132,255,.13),transparent 30%),linear-gradient(180deg,#f8faff,#fff)}
.ddm-eyebrow{display:inline-flex;padding:7px 10px;border:1px solid #dce5ff;border-radius:99px;background:#fff;color:#5262a5;font-size:9px;font-weight:800;text-transform:uppercase}
.ddm-hero h1{font-size:36px;line-height:1.04;letter-spacing:-1.9px;margin:14px 0 10px}.ddm-hero h1 span{display:block;background:linear-gradient(90deg,#267cff,#7256ff);-webkit-background-clip:text;background-clip:text;color:transparent}.ddm-hero p{font-size:13px;line-height:1.55;color:#66708a;margin:0 0 17px}
.ddm-search{height:58px;display:flex;align-items:center;background:#fff;border:1px solid #dfe6fb;border-radius:18px;padding:6px 6px 6px 13px;box-shadow:0 15px 38px rgba(54,78,151,.13)}.ddm-search input{flex:1;min-width:0;border:0;outline:0;font-size:12px;padding:0 8px;background:transparent}.ddm-search button{height:46px;border:0;border-radius:13px;padding:0 15px;background:linear-gradient(135deg,#247cff,#7654ff);color:#fff;font-weight:800;font-size:11px}
.ddm-quick{display:flex;gap:6px;overflow:auto;margin-top:9px;padding-bottom:2px}.ddm-quick a{white-space:nowrap;padding:7px 9px;border:1px solid #e1e6f2;border-radius:99px;background:#fff;color:#58647d!important;text-decoration:none!important;font-size:9px;font-weight:700}
.ddm-section{padding:20px 0 4px}.ddm-section h2{font-size:18px;letter-spacing:-.4px;margin:0 0 11px}.ddm-head{display:flex;justify-content:space-between;align-items:center}.ddm-head a{font-size:10px;font-weight:800;color:#5066d8!important;text-decoration:none!important}
.ddm-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.ddm-cat{padding:10px 3px;border:1px solid var(--line);border-radius:13px;background:#fff;text-align:center;text-decoration:none!important}.ddm-cat-icon{width:33px;height:33px;margin:0 auto 5px;border-radius:10px;background:#f0f2ff;display:grid;place-items:center;font-size:14px}.ddm-cat-name{font-size:8.5px;font-weight:800;color:#202b48;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddm-popular{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ddm-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;text-decoration:none!important;box-shadow:0 6px 17px rgba(40,65,130,.05)}.ddm-card-img{height:92px;background:#f2f5ff}.ddm-card-img img{width:100%;height:100%;object-fit:cover}.ddm-card-body{padding:8px}.ddm-card-title{font-size:10px;font-weight:800;color:#17213e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ddm-card-meta{font-size:8px;color:#7b8499;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddm-ai{border:1px solid #dfe2ff;border-radius:18px;padding:15px;background:linear-gradient(110deg,#f4f2ff,#f7fbff)}.ddm-ai-top{display:flex;gap:10px;align-items:center}.ddm-ai-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#e9e1ff;font-size:25px;flex:none}.ddm-ai h3{font-size:15px;margin:0 0 3px}.ddm-ai p{font-size:9px;line-height:1.5;color:#6d7690;margin:0}.ddm-ai-btn{display:block;margin-top:11px;padding:9px;border-radius:10px;text-align:center;background:linear-gradient(135deg,#287bff,#7355ff);color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:800}.ddm-example{margin-top:7px;padding:8px 9px;background:#fff;border:1px solid #e3e7f5;border-radius:9px;font-size:8.5px;color:#58637d}
.ddm-trending{display:flex;flex-direction:column;gap:6px}.ddm-trend{padding:9px 11px;border:1px solid var(--line);border-radius:99px;background:#fff;color:#56627b;font-size:9px;font-weight:700}.ddm-trend b{color:#23a96e;margin-right:5px}.ddm-stats{display:grid;grid-template-columns:1fr 1fr;margin:15px 0 22px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--line);gap:1px}.ddm-stat{background:#fff;text-align:center;padding:12px}.ddm-stat strong{display:block;font-size:17px}.ddm-stat span{font-size:8px;color:#707a90}.ddm-ad{text-align:center;min-height:10px;margin:7px 0}

/* ============================================================
   HOMEPAGE: HIDE LEGACY SHARED HEADER SEARCH
   CSS ONLY - NO JAVASCRIPT
   ============================================================ */

body:has(.dd-home-body) .search.header13,
body:has(.dd-home-body) div.search.header13 {
    display: none !important;
    visibility: hidden !important;
}

body:has(.ddm-home-body) #searchHeaderMobile,
body:has(.ddm-home-body) div#searchHeaderMobile {
    display: none !important;
    visibility: hidden !important;
}

/* Compatibility with alternate homepage wrappers. */
body:has(.deldure-home) .search.header13,
body:has(.deldure-home-mobile) #searchHeaderMobile {
    display: none !important;
    visibility: hidden !important;
}


/* ============================================================
   HOMEPAGE STATS ENHANCEMENT
   Original homepage CSS above is intentionally preserved.
   Only the 3-stat presentation is overridden.
   ============================================================ */

.dd-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin:20px 0 35px;
    border-radius:20px;
    background:linear-gradient(135deg,#fbfcff,#f7f9ff);
    box-shadow:0 10px 28px rgba(40,65,130,.06);
}

.dd-stat{
    min-height:112px;
    padding:18px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-right:1px solid #e1e6f3;
    background:rgba(255,255,255,.45);
}

.dd-stat:last-child{border-right:0}

.dd-stat-icon{
    width:28px;
    height:28px;
    margin-bottom:5px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#eef3ff,#eee9ff);
    color:#5267d9;
    font-size:11px;
    font-weight:900;
}

.dd-stat strong{
    font-size:25px;
    line-height:1.05;
    letter-spacing:-1px;
    color:#101a38;
}

.dd-stat span{
    display:block;
    margin-top:5px;
    font-size:10px;
    font-weight:800;
    color:#53617d;
}

.dd-stat small{
    display:block;
    max-width:245px;
    margin-top:3px;
    font-size:9px;
    line-height:1.35;
    color:#7b8498;
}

@media(max-width:700px){
    .dd-stats{
        grid-template-columns:repeat(3,minmax(0,1fr));
        margin:15px 0 22px;
        border-radius:14px;
        gap:0;
    }

    .dd-stat{
        min-height:94px;
        padding:10px 4px;
        border-right:1px solid var(--line)!important;
        border-bottom:0!important;
    }

    .dd-stat:last-child{border-right:0!important}

    .dd-stat-icon{
        width:22px;
        height:22px;
        margin-bottom:4px;
        border-radius:7px;
        font-size:8px;
    }

    .dd-stat strong{
        font-size:16px;
        letter-spacing:-.5px;
    }

    .dd-stat span{
        margin-top:3px;
        font-size:7.5px;
        line-height:1.2;
    }

    .dd-stat small{
        margin-top:2px;
        font-size:6.5px;
        line-height:1.2;
    }
}
