/* ============================================================
   16ITBD — Modern Homepage Section System
   Loaded AFTER home-marketplace.css to isolate the homepage
   builder from legacy theme styles.
   ============================================================ */

.market-home,
.market-home *{box-sizing:border-box}

.market-home .dm-builder-section{
    position:relative;
    width:100%;
    padding:72px 0;
    margin:0;
    overflow:hidden;
    isolation:isolate;
}

.market-home .dm-builder-section + .dm-builder-section{
    border-top:1px solid rgba(15,42,58,.045);
}

.market-home .dm-builder-section .dm-container{
    position:relative;
    z-index:2;
}

.market-home .dm-section-soft{
    background:linear-gradient(180deg,#f8fbfc 0%,#ffffff 100%);
}

.market-home .dm-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin:0 0 30px;
}

.market-home .dm-section-head>div:first-child{max-width:760px}

.market-home .dm-section-head h2,
.market-home .dm-center-head h2,
.market-home .dm-why-title h2{
    margin:0;
    color:#0b2638;
    font-size:34px;
    line-height:1.15;
    letter-spacing:-.025em;
    font-weight:800;
}

.market-home .dm-section-head p,
.market-home .dm-center-head p,
.market-home .dm-why-title p{
    margin:8px 0 0;
    color:#6d7d89;
    font-size:14px;
    line-height:1.75;
}

.market-home .dm-section-kicker,
.market-home .dm-offer-kicker,
.market-home .dm-counter-intro>span,
.market-home .dm-app-copy>span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-bottom:9px;
    color:#0aae7d;
    font-size:11px;
    line-height:1;
    letter-spacing:.12em;
    text-transform:uppercase;
    font-weight:800;
}

.market-home .dm-view-all{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#079b70;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    transition:.2s ease;
}

.market-home .dm-view-all:hover{gap:11px;color:#057b5a}

/* ---------- Intro / Hero ---------- */
.market-home .dm-hero.dm-builder-section{
    padding:70px 0 64px;
    background:
        radial-gradient(circle at 100% 0%,rgba(31,208,161,.15),transparent 31%),
        linear-gradient(110deg,#f5fffc 0%,#f5fbfd 54%,#effcf8 100%);
}

.market-home .dm-hero-grid{
    min-height:520px;
    align-items:center;
}

.market-home .dm-hero-art{
    min-height:430px !important;
    display:flex;
    align-items:center;
    justify-content:center;
}

.market-home .dm-hero-art .main-art{
    width:min(100%,850px) !important;
    max-height:540px !important;
    object-fit:contain !important;
    filter:drop-shadow(0 24px 35px rgba(14,49,69,.12));
}

/* ---------- Categories ---------- */
.market-home [data-section="category"]{background:#fff}
.market-home .dm-category-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:16px;
}

.market-home .dm-category{
    min-width:0;
    min-height:148px;
    padding:22px 14px;
    border:1px solid #e5edf0;
    border-radius:16px;
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    box-shadow:0 8px 30px rgba(20,56,73,.035);
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}

.market-home .dm-category:hover{
    transform:translateY(-5px);
    border-color:#aee6d6;
    box-shadow:0 18px 38px rgba(20,56,73,.10);
}

.market-home .dm-category-icon{
    width:56px;
    height:56px;
    border-radius:15px;
    background:linear-gradient(145deg,#e9fbf5,#f5fffc);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:13px;
}

.market-home .dm-category-icon img{
    max-width:34px;
    max-height:34px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.market-home .dm-category strong{color:#102c3d;font-size:13px;line-height:1.35}
.market-home .dm-category span{margin-top:6px;color:#8a98a3;font-size:10px}

/* ---------- Featured products ---------- */
.market-home [data-section="product"]{
    background:linear-gradient(180deg,#f8fbfc,#ffffff);
}

.market-home .dm-product-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:18px;
}

.market-home .dm-product{
    min-width:0;
    overflow:hidden;
    border:1px solid #e5edf0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 32px rgba(18,52,69,.055);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.market-home .dm-product:hover{
    transform:translateY(-5px);
    border-color:#c8e9df;
    box-shadow:0 20px 45px rgba(18,52,69,.12);
}

.market-home .dm-product-img{
    position:relative;
    display:block;
    height:190px;
    overflow:hidden;
    background:linear-gradient(145deg,#f0f6f8,#e7f4f0);
}

.market-home .dm-product-img img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.market-home .dm-product:hover .dm-product-img img{transform:scale(1.035)}
.market-home .dm-product-body{padding:16px}
.market-home .dm-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:39px;color:#102c3d;font-size:14px;line-height:1.4;font-weight:800;text-decoration:none}
.market-home .dm-product-author{margin-top:7px;color:#84929d;font-size:10px}
.market-home .dm-rating{margin-top:10px;color:#ffad1f;font-size:10px}
.market-home .dm-rating span{color:#93a0aa}
.market-home .dm-product-price{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.market-home .dm-price{color:#0a9f75;font-size:17px;font-weight:900}
.market-home .dm-cart-btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:9px;background:#10b981;color:#fff;padding:0 11px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}
.market-home .dm-product-badge{position:absolute;left:10px;top:10px;z-index:2;border-radius:999px;background:#ff565f;color:#fff;padding:5px 9px;font-size:9px;font-weight:800}

/* ---------- Counter ---------- */
.market-home [data-section="countdown"]{
    background:#fff;
    padding-top:62px;
    padding-bottom:62px;
}

.market-home .dm-counter-wrap{
    width:100%;
    min-height:250px;
    margin:0;
    padding:40px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    display:grid !important;
    grid-template-columns:.82fr 1.55fr !important;
    gap:34px;
    align-items:center;
    overflow:hidden;
    position:relative;
    color:#fff;
    background:
        radial-gradient(circle at 95% 12%,rgba(42,220,171,.30),transparent 24%),
        linear-gradient(120deg,#072c3f 0%,#064d4a 58%,#0d8469 100%) !important;
    box-shadow:0 22px 60px rgba(6,45,62,.16);
}

.market-home .dm-counter-wrap:before,
.market-home .dm-counter-wrap:after{
    content:"";
    position:absolute;
    pointer-events:none;
    border-radius:50%;
}
.market-home .dm-counter-wrap:before{width:300px;height:300px;border:60px solid rgba(255,255,255,.035);right:-100px;top:-145px}
.market-home .dm-counter-wrap:after{width:170px;height:170px;background:rgba(65,229,183,.07);left:-65px;bottom:-85px}
.market-home .dm-counter-intro{position:relative;z-index:2}
.market-home .dm-counter-intro h2{max-width:370px;margin:7px 0 0;color:#fff;font-size:31px;line-height:1.18;font-weight:850;letter-spacing:-.025em}
.market-home .dm-counter-grid{position:relative;z-index:2;display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px}
.market-home .dm-counter-item{min-width:0;min-height:150px;padding:22px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.market-home .dm-counter-item strong{display:block;margin-bottom:11px;color:#83f0d1;font-size:36px;line-height:1;font-weight:900}
.market-home .dm-counter-item h4{margin:0 0 6px;color:#fff;font-size:14px;line-height:1.35;font-weight:800}
.market-home .dm-counter-item p{margin:0;color:rgba(255,255,255,.68);font-size:11px;line-height:1.55}

/* ---------- Special offer ---------- */
.market-home [data-section="special_offer"]{background:linear-gradient(180deg,#f8fbfc,#fff)}
.market-home .dm-offer-builder,
.market-home .dm-promo.dm-offer-builder{
    min-height:300px;
    border:0;
    border-radius:24px;
    display:grid !important;
    grid-template-columns:1.12fr .88fr !important;
    align-items:center;
    gap:30px;
    padding:42px 46px !important;
    overflow:hidden;
    position:relative;
    color:#fff;
    background:
        radial-gradient(circle at 90% 20%,rgba(33,220,168,.20),transparent 27%),
        linear-gradient(120deg,#082a3d 0%,#073f48 56%,#075f53 100%) !important;
    box-shadow:0 20px 55px rgba(7,47,63,.14);
}
.market-home .dm-offer-builder>div{position:relative;z-index:2}
.market-home .dm-offer-builder h3{margin:2px 0 12px;color:#fff;font-size:32px;line-height:1.15;letter-spacing:-.02em}
.market-home .dm-offer-builder p{max-width:590px;margin:0 0 22px;color:rgba(255,255,255,.72);font-size:13px;line-height:1.7}
.market-home .dm-offer-builder>img{position:relative;z-index:2;width:100%;max-height:235px;object-fit:contain;filter:drop-shadow(0 20px 28px rgba(0,0,0,.18))}

/* ---------- Recent product / marketplace panels ---------- */
.market-home [data-section="recent_product"]{background:#fff}
.market-home .dm-triple-grid{display:grid !important;grid-template-columns:1fr 1fr 1.05fr !important;gap:18px}
.market-home .dm-panel{min-width:0;border:1px solid #e4ecef;border-radius:18px;background:#fff;padding:22px;box-shadow:0 10px 34px rgba(18,52,69,.055)}
.market-home .dm-panel h3{margin:0;color:#102c3d;font-size:19px;font-weight:850}
.market-home .dm-panel>.sub{margin:5px 0 18px;color:#83919c;font-size:10px}
.market-home .dm-list-item{display:grid;grid-template-columns:28px 46px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #edf2f4}
.market-home .dm-list-item:first-of-type{border-top:0}
.market-home .dm-list-rank{width:26px;height:26px;border-radius:8px;background:#eff9f6;color:#0aa87b;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}
.market-home .dm-list-img{width:46px;height:38px;border-radius:8px;object-fit:cover;background:#edf5f4}
.market-home .dm-list-info{min-width:0}
.market-home .dm-list-info a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#193649;font-size:11px;font-weight:750;text-decoration:none}
.market-home .dm-list-info small{display:block;margin-top:4px;color:#8a98a2;font-size:9px}
.market-home .dm-list-info small i{color:#ffaf1e}
.market-home .dm-mini-cart{width:32px;height:32px;border:1px solid #dce9e5;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#0a9f75;text-decoration:none;background:#fbfefd}
.market-home .dm-bundle{display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#f4fbf9,#ffffff)}
.market-home .dm-bundle-icons{display:flex;gap:8px;margin:18px 0}
.market-home .dm-bundle-icon{width:42px;height:42px;border:1px solid #dcece7;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;color:#0aa77b;font-size:19px}
.market-home .dm-bundle ul{list-style:none;margin:0 0 20px;padding:0}
.market-home .dm-bundle li{margin:8px 0;color:#60727e;font-size:11px}
.market-home .dm-bundle li i{margin-right:7px;color:#10b981}

/* ---------- Mobile app ---------- */
.market-home [data-section="mobile_app"]{
    padding-top:66px;
    padding-bottom:66px;
    background:linear-gradient(180deg,#f8fbfc,#fff);
}
.market-home .dm-app-banner{
    width:100%;
    min-height:350px !important;
    max-height:none !important;
    margin:0;
    padding:46px 52px !important;
    border-radius:24px;
    display:grid !important;
    grid-template-columns:1.05fr .95fr !important;
    align-items:center !important;
    gap:32px;
    overflow:hidden !important;
    position:relative;
    color:#fff !important;
    background-color:#07384a !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
    box-shadow:0 22px 60px rgba(7,48,65,.18);
}
.market-home .dm-app-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,39,61,.17),transparent 55%);pointer-events:none}
.market-home .dm-app-copy,.market-home .dm-app-image{position:relative;z-index:2;min-width:0}
.market-home .dm-app-copy h2{margin:7px 0 4px;color:#fff !important;font-size:34px;line-height:1.15;font-weight:850;letter-spacing:-.025em}
.market-home .dm-app-copy h3{margin:0 0 11px;color:#aef3df !important;font-size:19px;line-height:1.35}
.market-home .dm-app-copy p{max-width:610px;margin:0;color:rgba(255,255,255,.72) !important;font-size:13px;line-height:1.75}
.market-home .dm-app-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.market-home .dm-app-buttons a{min-width:150px;min-height:50px;padding:8px 13px;border-radius:11px;background:#fff;color:#102c3d !important;display:flex;align-items:center;gap:9px;text-decoration:none;box-shadow:0 10px 25px rgba(0,0,0,.08)}
.market-home .dm-app-buttons i{font-size:23px}.market-home .dm-app-buttons span{font-size:9px;line-height:1.15}.market-home .dm-app-buttons strong{display:block;margin-top:2px;font-size:12px}
.market-home .dm-app-image{display:flex;align-items:flex-end;justify-content:center;align-self:stretch}
.market-home .dm-app-image img{display:block;width:auto !important;max-width:100% !important;height:auto !important;max-height:300px !important;object-fit:contain !important;filter:drop-shadow(0 25px 30px rgba(0,0,0,.22))}

/* ---------- Testimonials ---------- */
.market-home [data-section="testimonial"]{background:linear-gradient(180deg,#f7fafb,#fff)}
.market-home .dm-testimonial-grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:18px}
.market-home .dm-testimonial{min-width:0;min-height:230px;padding:24px;border:1px solid #e4ecef;border-radius:18px;background:#fff;box-shadow:0 10px 34px rgba(18,52,69,.055);display:flex;flex-direction:column}
.market-home .dm-testimonial .stars{color:#ffad1f;font-size:11px;letter-spacing:2px}
.market-home .dm-testimonial blockquote{margin:16px 0 22px;color:#526672;font-size:13px;line-height:1.75;font-style:normal;flex:1}
.market-home .dm-client{display:flex;align-items:center;gap:11px}.market-home .dm-client img{width:45px;height:45px;border-radius:50%;object-fit:cover;background:#eef4f4}.market-home .dm-client strong{display:block;color:#153548;font-size:12px}.market-home .dm-client span{display:block;margin-top:3px;color:#8a98a2;font-size:9px}

/* ---------- Blog ---------- */
.market-home [data-section="blog"]{background:#fff}
.market-home .dm-blog-grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:20px}
.market-home .dm-blog{min-width:0;overflow:hidden;border:1px solid #e4ecef;border-radius:18px;background:#fff;box-shadow:0 10px 34px rgba(18,52,69,.055);transition:.22s ease}
.market-home .dm-blog:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(18,52,69,.10)}
.market-home .dm-blog-img{height:210px;overflow:hidden;background:#eef5f4}.market-home .dm-blog-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.market-home .dm-blog:hover .dm-blog-img img{transform:scale(1.04)}
.market-home .dm-blog-body{padding:18px}.market-home .dm-blog-date{color:#0aa77b;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.market-home .dm-blog-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;color:#153548;font-size:15px;line-height:1.45;font-weight:800;text-decoration:none}.market-home .dm-blog-read{display:block;margin-top:12px;color:#8a98a2;font-size:9px}

/* ---------- Why choose us ---------- */
.market-home [data-section="why_choose"]{
    background:
        radial-gradient(circle at 0% 100%,rgba(37,211,161,.10),transparent 25%),
        linear-gradient(180deg,#f7fbfa,#fff);
}
.market-home .dm-why-title{text-align:center;max-width:760px;margin:0 auto 32px}.market-home .dm-why-title>span{display:inline-block;margin-bottom:8px;color:#0aa77b;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.market-home .dm-feature-grid{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:14px}
.market-home .dm-feature{min-width:0;min-height:190px;padding:22px 17px;border:1px solid #e1ece8;border-radius:17px;background:#fff;text-align:center;box-shadow:0 10px 32px rgba(18,52,69,.045);transition:.22s ease}.market-home .dm-feature:hover{transform:translateY(-4px);border-color:#bce6da;box-shadow:0 18px 40px rgba(18,52,69,.09)}
.market-home .dm-feature-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:15px;background:linear-gradient(145deg,#e3f8f1,#f4fffb);display:flex;align-items:center;justify-content:center;color:#08a879;font-size:20px}.market-home .dm-feature-icon img{max-width:27px;max-height:27px;width:auto;height:auto;object-fit:contain}.market-home .dm-feature strong{display:block;color:#153548;font-size:13px}.market-home .dm-feature p{margin:8px 0 0;color:#7d8c97;font-size:10px;line-height:1.6}

/* ---------- Partners ---------- */
.market-home [data-section="partner"]{background:linear-gradient(180deg,#f8fbfc,#fff)}
.market-home .dm-center-head{display:block !important;text-align:center !important;margin:0 auto 31px !important}.market-home .dm-center-head>div{max-width:720px;margin:0 auto}
.market-home .dm-partner-grid{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:14px}
.market-home .dm-partner-card{min-width:0;min-height:105px;padding:18px;border:1px solid #e4ecef;border-radius:15px;background:#fff;display:flex !important;align-items:center;justify-content:center;box-shadow:0 8px 28px rgba(18,52,69,.04);transition:.22s ease}.market-home .dm-partner-card:hover{transform:translateY(-4px);border-color:#b8e5d9;box-shadow:0 16px 36px rgba(18,52,69,.09)}.market-home .dm-partner-card img{display:block;max-width:100%;max-height:52px;width:auto;height:auto;object-fit:contain}

/* ---------- Team ---------- */
.market-home [data-section="team"]{background:#fff}
.market-home .dm-team-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:20px}
.market-home .dm-team-card{min-width:0;overflow:hidden;border:1px solid #e4ecef;border-radius:18px;background:#fff;box-shadow:0 10px 34px rgba(18,52,69,.055);transition:.22s ease}.market-home .dm-team-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(18,52,69,.11)}
.market-home .dm-team-photo{height:285px;position:relative;overflow:hidden;background:linear-gradient(145deg,#eff7f5,#e6f2ef)}.market-home .dm-team-photo>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.market-home .dm-team-card:hover .dm-team-photo>img{transform:scale(1.035)}
.market-home .dm-team-social{position:absolute;left:50%;bottom:15px;transform:translateX(-50%) translateY(8px);display:flex;gap:7px;opacity:0;transition:.22s ease}.market-home .dm-team-card:hover .dm-team-social{opacity:1;transform:translateX(-50%) translateY(0)}.market-home .dm-team-social a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#087d60;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.13);font-size:12px}
.market-home .dm-team-info{padding:18px;text-align:center}.market-home .dm-team-info h3{margin:0;color:#153548;font-size:16px;font-weight:850}.market-home .dm-team-info p{margin:5px 0 0;color:#81909b;font-size:10px}

/* ---------- Professional services ---------- */
.market-home [data-section="services"]{background:linear-gradient(180deg,#f8fbfc,#fff)}
.market-home .dm-services-banner{min-height:340px;padding:44px 48px;border:1px solid #dceae6;border-radius:24px;background:linear-gradient(105deg,#f5fffb 0%,#eefaf7 55%,#e7f6f3 100%) !important;display:grid !important;grid-template-columns:1.18fr .82fr !important;gap:35px;align-items:center;overflow:hidden;position:relative;box-shadow:0 18px 48px rgba(15,57,71,.08)}
.market-home .dm-services-banner h2{margin:5px 0 10px;color:#102c3d;font-size:33px;line-height:1.15;font-weight:850;letter-spacing:-.025em}.market-home .dm-services-banner p{max-width:650px;margin:0;color:#657984;font-size:13px;line-height:1.72}
.market-home .dm-service-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:20px 0 23px}.market-home .dm-service-pills span{display:flex;align-items:center;gap:8px;color:#385766;font-size:11px;font-weight:650}.market-home .dm-service-pills i{color:#0aae7d}
.market-home .dm-service-image{text-align:center}.market-home .dm-service-image img{display:block;margin:auto;max-width:100%;max-height:275px;object-fit:contain;filter:drop-shadow(0 22px 25px rgba(7,47,63,.12))}

/* ---------- Newsletter ---------- */
.market-home [data-section="newsletter"]{padding-top:45px;padding-bottom:60px;background:#fff}
.market-home .dm-newsletter{min-height:120px;padding:28px 32px;border-radius:20px;background:linear-gradient(110deg,#082d41,#07584f) !important;display:grid !important;grid-template-columns:1fr minmax(360px,.75fr) !important;gap:30px;align-items:center;color:#fff;box-shadow:0 18px 45px rgba(8,45,62,.15)}
.market-home .dm-newsletter-copy{display:flex;align-items:center;gap:15px}.market-home .dm-newsletter-icon{width:52px;height:52px;flex:0 0 52px;border-radius:15px;background:rgba(255,255,255,.10);display:flex;align-items:center;justify-content:center;color:#6fe4c1;font-size:21px}.market-home .dm-newsletter h3{margin:0;color:#fff;font-size:20px}.market-home .dm-newsletter p{margin:5px 0 0;color:rgba(255,255,255,.68);font-size:11px}.market-home .dm-newsletter form{height:48px;padding:4px;border-radius:11px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:4px}.market-home .dm-newsletter input{min-width:0;height:40px;padding:0 13px;border:0;outline:0;background:transparent;color:#1c3949;font-size:11px}.market-home .dm-newsletter button{height:40px;padding:0 18px;border:0;border-radius:8px;background:#10b981;color:#fff;font-size:11px;font-weight:800;cursor:pointer}

/* ---------- Shared buttons ---------- */
.market-home .dm-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:0 17px;text-decoration:none;font-size:11px;font-weight:800;transition:.2s ease}.market-home .dm-btn-primary{background:#10b981;color:#fff;border:1px solid #10b981}.market-home .dm-btn-primary:hover{background:#0c9d6d;color:#fff;transform:translateY(-1px)}

/* ---------- Responsive ---------- */
@media(max-width:1399px){
    .market-home .dm-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .market-home .dm-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
    .market-home .dm-category-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

@media(max-width:1199px){
    .market-home .dm-builder-section{padding:62px 0}
    .market-home .dm-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .market-home .dm-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .market-home .dm-counter-wrap{grid-template-columns:1fr !important}
    .market-home .dm-triple-grid{grid-template-columns:1fr 1fr !important}
    .market-home .dm-triple-grid .dm-panel:last-child{grid-column:1/-1}
    .market-home .dm-partner-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
    .market-home .dm-team-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}

@media(max-width:991px){
    .market-home .dm-section-head h2,.market-home .dm-center-head h2,.market-home .dm-why-title h2{font-size:29px}
    .market-home .dm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .market-home .dm-counter-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
    .market-home .dm-offer-builder,.market-home .dm-promo.dm-offer-builder{grid-template-columns:1fr 1fr !important;padding:34px !important}
    .market-home .dm-app-banner{grid-template-columns:1fr 1fr !important;padding:36px !important}
    .market-home .dm-testimonial-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .market-home .dm-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .market-home .dm-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .market-home .dm-partner-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
    .market-home .dm-team-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
    .market-home .dm-services-banner{grid-template-columns:1fr !important;padding:36px !important}.market-home .dm-service-image{display:none}
    .market-home .dm-newsletter{grid-template-columns:1fr !important}
}

@media(max-width:767px){
    .market-home .dm-builder-section{padding:48px 0}
    .market-home .dm-section-head{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:23px}
    .market-home .dm-section-head h2,.market-home .dm-center-head h2,.market-home .dm-why-title h2{font-size:25px}
    .market-home .dm-section-head p,.market-home .dm-center-head p,.market-home .dm-why-title p{font-size:12px}
    .market-home .dm-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .market-home .dm-category{min-height:125px;padding:16px 10px}.market-home .dm-category-icon{width:48px;height:48px}
    .market-home .dm-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.market-home .dm-product-img{height:145px}.market-home .dm-product-body{padding:12px}.market-home .dm-product-title{font-size:12px;min-height:34px}.market-home .dm-cart-btn{font-size:0;min-width:36px;padding:0}.market-home .dm-cart-btn i{font-size:11px}
    .market-home .dm-counter-wrap{padding:27px 20px}.market-home .dm-counter-intro h2{font-size:25px}.market-home .dm-counter-grid{grid-template-columns:1fr !important}.market-home .dm-counter-item{min-height:120px}
    .market-home .dm-offer-builder,.market-home .dm-promo.dm-offer-builder{grid-template-columns:1fr !important;padding:28px 22px !important}.market-home .dm-offer-builder h3{font-size:26px}.market-home .dm-offer-builder>img{max-height:180px}
    .market-home .dm-triple-grid{grid-template-columns:1fr !important}.market-home .dm-triple-grid .dm-panel:last-child{grid-column:auto}
    .market-home .dm-app-banner{grid-template-columns:1fr !important;min-height:auto !important;padding:29px 23px !important}.market-home .dm-app-copy h2{font-size:26px}.market-home .dm-app-image{margin-top:20px;min-height:180px}.market-home .dm-app-image img{max-height:230px !important}
    .market-home .dm-testimonial-grid{grid-template-columns:1fr !important}.market-home .dm-testimonial{min-height:0}
    .market-home .dm-blog-grid{grid-template-columns:1fr !important}.market-home .dm-blog-img{height:190px}
    .market-home .dm-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}.market-home .dm-feature{min-height:170px;padding:18px 12px}
    .market-home .dm-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}.market-home .dm-partner-card{min-height:86px}
    .market-home .dm-team-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}.market-home .dm-team-photo{height:220px}.market-home .dm-team-info{padding:13px}.market-home .dm-team-info h3{font-size:13px}
    .market-home .dm-services-banner{padding:27px 21px !important}.market-home .dm-services-banner h2{font-size:26px}.market-home .dm-service-pills{grid-template-columns:1fr}
    .market-home .dm-newsletter{padding:22px !important}.market-home .dm-newsletter-copy{align-items:flex-start}.market-home .dm-newsletter form{height:auto;grid-template-columns:1fr}.market-home .dm-newsletter input{height:42px}.market-home .dm-newsletter button{height:42px}
}

@media(max-width:480px){
    .market-home .dm-builder-section{padding:42px 0}
    .market-home .dm-product-grid{grid-template-columns:1fr 1fr}
    .market-home .dm-product-img{height:125px}
    .market-home .dm-feature-grid{grid-template-columns:1fr !important}
    .market-home .dm-team-grid{grid-template-columns:1fr !important}.market-home .dm-team-photo{height:300px}
    .market-home .dm-app-buttons a{width:100%}
    .market-home .dm-list-item{grid-template-columns:24px 40px minmax(0,1fr) 32px}.market-home .dm-list-img{width:40px;height:36px}
}

/* =========================================================
   FINAL WHITE FOOTER - 2026-09-24
   Loaded after home-marketplace.css, so these rules win.
   ========================================================= */
.market-home .dm-footer.dm-footer-clean{
    background:#fff !important;
    color:#637785 !important;
    padding:54px 0 0 !important;
    border-top:1px solid #e9f0f3 !important;
}

.market-home .dm-footer.dm-footer-clean .dm-container{
    width:min(100% - 64px,1380px);
}

.market-home .dm-footer.dm-footer-clean .dm-footer-grid{
    display:grid !important;
    grid-template-columns:1.55fr .9fr 1fr .9fr 1.35fr !important;
    gap:54px !important;
    align-items:start !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-grid > div{
    min-width:0;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-logo{
    display:inline-flex;
    align-items:center;
    margin-bottom:18px;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-logo img{
    display:block;
    width:auto !important;
    max-width:210px !important;
    max-height:66px !important;
    object-fit:contain;
    margin:0 !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-brand p{
    max-width:390px;
    margin:0 0 20px !important;
    color:#6d7f8a !important;
    font-size:13px !important;
    line-height:1.8 !important;
}

.market-home .dm-footer.dm-footer-clean h4{
    position:relative;
    display:inline-block;
    margin:5px 0 21px !important;
    padding-bottom:10px;
    color:#0e3041 !important;
    font-size:15px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
}

.market-home .dm-footer.dm-footer-clean h4:after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:28px;
    height:2px;
    border-radius:2px;
    background:#10b981;
}

.market-home .dm-footer.dm-footer-clean ul{
    list-style:none !important;
    padding:0 !important;
    margin:0 !important;
}

.market-home .dm-footer.dm-footer-clean li{
    margin:0 !important;
}

.market-home .dm-footer.dm-footer-clean li + li{
    margin-top:12px !important;
}

.market-home .dm-footer.dm-footer-clean a{
    color:#5b6f7d !important;
    font-size:13px !important;
    line-height:1.5;
    text-decoration:none !important;
    transition:color .2s ease,transform .2s ease !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-col li a{
    display:inline-flex;
    align-items:center;
    gap:7px;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-col li a:before{
    content:"›";
    color:#10b981;
    font-size:17px;
    line-height:1;
    transform:translateY(-1px);
}

.market-home .dm-footer.dm-footer-clean a:hover{
    color:#0aa377 !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-col li a:hover{
    transform:translateX(3px);
}

.market-home .dm-footer.dm-footer-clean .dm-social{
    display:flex !important;
    align-items:center;
    gap:10px !important;
    flex-wrap:wrap;
}

.market-home .dm-footer.dm-footer-clean .dm-social a{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:38px !important;
    height:38px !important;
    padding:0 !important;
    border:1px solid #dceae6 !important;
    border-radius:12px !important;
    background:#f3faf8 !important;
    color:#0d9874 !important;
    font-size:13px !important;
}

.market-home .dm-footer.dm-footer-clean .dm-social a:hover{
    background:#10b981 !important;
    border-color:#10b981 !important;
    color:#fff !important;
    transform:translateY(-2px) !important;
}

.market-home .dm-footer.dm-footer-clean .dm-contact-line{
    display:flex !important;
    align-items:flex-start !important;
    gap:11px !important;
    margin:0 !important;
    color:#5c7180 !important;
    font-size:13px !important;
    line-height:1.65 !important;
    overflow-wrap:anywhere;
}

.market-home .dm-footer.dm-footer-clean .dm-contact-line + .dm-contact-line{
    margin-top:13px !important;
}

.market-home .dm-footer.dm-footer-clean .dm-contact-line i{
    flex:0 0 18px;
    width:18px;
    margin-top:3px !important;
    color:#10b981 !important;
    text-align:center;
    font-size:13px !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-bottom{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:20px !important;
    margin-top:46px !important;
    padding:21px 0 24px !important;
    border-top:1px solid #e8eef1 !important;
    color:#7a8a95 !important;
    font-size:12px !important;
}

/* Payment image has intentionally been removed from the Blade footer. */
.market-home .dm-footer.dm-footer-clean .dm-footer-bottom img{
    display:none !important;
}

.market-home .dm-footer.dm-footer-clean .dm-footer-tagline{
    color:#506976;
    font-weight:700;
}

@media(max-width:1199px){
    .market-home .dm-footer.dm-footer-clean .dm-footer-grid{
        grid-template-columns:1.45fr 1fr 1fr !important;
        gap:38px 30px !important;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-brand{
        grid-column:1/-1;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-contact{
        grid-column:span 2;
    }
}

@media(max-width:767px){
    .market-home .dm-footer.dm-footer-clean{
        padding-top:38px !important;
    }
    .market-home .dm-footer.dm-footer-clean .dm-container{
        width:min(100% - 28px,1380px);
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-grid{
        grid-template-columns:1fr 1fr !important;
        gap:32px 20px !important;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-brand,
    .market-home .dm-footer.dm-footer-clean .dm-footer-contact{
        grid-column:1/-1;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-bottom{
        flex-direction:column !important;
        align-items:flex-start !important;
        margin-top:34px !important;
        padding:18px 0 22px !important;
    }
}

@media(max-width:480px){
    .market-home .dm-footer.dm-footer-clean .dm-footer-grid{
        grid-template-columns:1fr !important;
        gap:28px !important;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-brand,
    .market-home .dm-footer.dm-footer-clean .dm-footer-contact{
        grid-column:auto;
    }
    .market-home .dm-footer.dm-footer-clean .dm-footer-logo img{
        max-width:180px !important;
        max-height:58px !important;
    }
}

/* ===== Footer subtle technology background ===== */
.market-home .dm-footer{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background-color:#ffffff !important;
    background-image:url('../images/footer_light_bg.png') !important;
    background-repeat:no-repeat !important;
    background-position:center bottom !important;
    background-size:100% 100% !important;
}

.market-home .dm-footer::before{
    content:"" !important;
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background-image:
        radial-gradient(circle at 18% 35%, rgba(16,185,129,.11) 0 1.5px, transparent 1.7px),
        radial-gradient(circle at 72% 25%, rgba(8,96,110,.08) 0 1.3px, transparent 1.5px);
    background-size:24px 24px, 31px 31px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.32),rgba(0,0,0,.08));
    opacity:.45;
}

.market-home .dm-footer > .dm-container{
    position:relative;
    z-index:1;
}

/* keep footer content clean while the background graphic remains visible */
.market-home .dm-footer-grid > div{
    background:rgba(255,255,255,.82) !important;
    backdrop-filter:blur(2px);
}

@media (max-width:767px){
    .market-home .dm-footer{
        background-size:auto 100% !important;
        background-position:center bottom !important;
    }
    .market-home .dm-footer::before{opacity:.28;}
}

/* ===== Partner & Client logo normalization ===== */
.market-home [data-section="partner"]{
    padding-top:60px;
    padding-bottom:60px;
}

.market-home .dm-partner-grid{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:16px !important;
    align-items:stretch;
}

.market-home .dm-partner-card{
    min-width:0;
    min-height:136px !important;
    padding:22px 24px !important;
    border:1px solid #e3ecef !important;
    border-radius:18px !important;
    background:#fff !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    box-shadow:0 10px 28px rgba(18,52,69,.055) !important;
}

/* Any uploaded logo is forced into one consistent visual canvas. */
.market-home .dm-partner-card img{
    display:block !important;
    width:100% !important;
    height:82px !important;
    max-width:230px !important;
    max-height:82px !important;
    min-width:0 !important;
    object-fit:contain !important;
    object-position:center center !important;
    margin:0 auto !important;
    flex:none !important;
}

.market-home .dm-partner-card:hover{
    transform:translateY(-4px);
    border-color:#b7e3d7 !important;
    box-shadow:0 18px 38px rgba(18,52,69,.10) !important;
}

@media (max-width:1399px){
    .market-home .dm-partner-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
    .market-home .dm-partner-card{min-height:130px !important;}
}

@media (max-width:991px){
    .market-home .dm-partner-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
    .market-home .dm-partner-card{min-height:122px !important;padding:18px !important;}
    .market-home .dm-partner-card img{height:72px !important;max-height:72px !important;max-width:210px !important;}
}

@media (max-width:767px){
    .market-home [data-section="partner"]{padding-top:44px;padding-bottom:44px;}
    .market-home .dm-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
    .market-home .dm-partner-card{min-height:108px !important;padding:14px !important;border-radius:15px !important;}
    .market-home .dm-partner-card img{height:64px !important;max-height:64px !important;max-width:180px !important;}
}

@media (max-width:420px){
    .market-home .dm-partner-card{min-height:100px !important;padding:12px !important;}
    .market-home .dm-partner-card img{height:58px !important;max-height:58px !important;}
}

/* ===== Team image normalization: preserve any uploaded image size ===== */
.market-home [data-section="team"]{
    padding-top:60px;
    padding-bottom:60px;
}

.market-home .dm-team-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:20px !important;
    align-items:stretch;
}

.market-home .dm-team-card{
    min-width:0;
    overflow:hidden;
    border:1px solid #e4ecef !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 10px 34px rgba(18,52,69,.055) !important;
}

.market-home .dm-team-photo{
    position:relative !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3 !important;
    padding:14px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:linear-gradient(145deg,#eff8f5,#e8f3f0) !important;
}

/* Wide, portrait, square or very large image: never stretch or crop. */
.market-home .dm-team-photo > img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    border-radius:14px !important;
    margin:auto !important;
    background:#fff !important;
    transform:none !important;
}

.market-home .dm-team-card:hover .dm-team-photo > img{
    transform:none !important;
}

.market-home .dm-team-info{
    padding:18px 16px 20px !important;
    text-align:center !important;
}

@media (max-width:1199px){
    .market-home .dm-team-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}

@media (max-width:767px){
    .market-home [data-section="team"]{padding-top:44px;padding-bottom:44px;}
    .market-home .dm-team-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
    .market-home .dm-team-photo{padding:10px !important;aspect-ratio:4 / 3 !important;}
    .market-home .dm-team-info{padding:14px 10px 16px !important;}
}

@media (max-width:480px){
    .market-home .dm-team-grid{grid-template-columns:1fr !important;}
    .market-home .dm-team-photo{aspect-ratio:4 / 3 !important;}
}

/* ===== FINAL TEAM IMAGE FIX: image fills the whole photo area ===== */
.market-home .dm-team-photo{
    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 3 !important;
    padding:0 !important;
    overflow:hidden !important;
    display:block !important;
    background:#eef7f4 !important;
    border-radius:0 !important;
}

.market-home .dm-team-photo > img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:center top !important;
    border-radius:0 !important;
    margin:0 !important;
    background:transparent !important;
    transform:scale(1) !important;
    transition:transform .35s ease !important;
}

.market-home .dm-team-card:hover .dm-team-photo > img{
    transform:scale(1.035) !important;
}

/* Keep placeholders visually clean while real photos use full cover */
.market-home .dm-team-photo > img[src*="team-placeholder"]{
    object-fit:contain !important;
    object-position:center !important;
    padding:34px !important;
    background:linear-gradient(145deg,#eff8f5,#e8f3f0) !important;
}

@media (max-width:767px){
    .market-home .dm-team-photo{
        padding:0 !important;
        aspect-ratio:4 / 3 !important;
    }
    .market-home .dm-team-photo > img[src*="team-placeholder"]{
        padding:24px !important;
    }
}

@media (max-width:480px){
    .market-home .dm-team-photo{
        aspect-ratio:4 / 3 !important;
    }
}

/* ===== TEAM CARD PROPORTION FIX: narrower + taller like portrait team cards ===== */
@media (min-width:1200px){
    .market-home .dm-team-grid{
        grid-template-columns:repeat(4,minmax(0,320px)) !important;
        justify-content:center !important;
        gap:24px !important;
    }
}

.market-home .dm-team-card{
    width:100% !important;
    max-width:320px !important;
    margin:0 auto !important;
}

.market-home .dm-team-photo{
    width:100% !important;
    aspect-ratio:1 / 1.08 !important;
    height:auto !important;
    padding:0 !important;
    overflow:hidden !important;
    background:#eef7f4 !important;
}

.market-home .dm-team-photo > img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center 18% !important;
    transform:none !important;
}

.market-home .dm-team-card:hover .dm-team-photo > img{
    transform:scale(1.025) !important;
}

.market-home .dm-team-info{
    padding:18px 14px 20px !important;
}

/* Placeholder should remain centered and uncropped */
.market-home .dm-team-photo > img[src*="team-placeholder"]{
    object-fit:contain !important;
    object-position:center !important;
    padding:36px !important;
}

@media (max-width:1199px) and (min-width:768px){
    .market-home .dm-team-grid{
        grid-template-columns:repeat(3,minmax(0,300px)) !important;
        justify-content:center !important;
        gap:18px !important;
    }
    .market-home .dm-team-card{max-width:300px !important;}
    .market-home .dm-team-photo{aspect-ratio:1 / 1.08 !important;}
}

@media (max-width:767px){
    .market-home .dm-team-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:12px !important;
    }
    .market-home .dm-team-card{max-width:none !important;}
    .market-home .dm-team-photo{aspect-ratio:1 / 1.08 !important;}
}

@media (max-width:480px){
    .market-home .dm-team-grid{grid-template-columns:1fr !important;}
    .market-home .dm-team-card{max-width:320px !important;}
    .market-home .dm-team-photo{aspect-ratio:1 / 1.08 !important;}
}
