
/* HOME HERO 349 - FIXED ENQUEUE VERSION */

.cc-home-hero{padding:60px 0;background:#f5f7fa;}
.cc-home-hero__wrap{border-radius:18px;overflow:hidden;background:#fff;
box-shadow:0 10px 30px rgba(16,24,40,.08);border:1px solid rgba(16,24,40,.08);}

.cc-home-hero__media{height:380px;background-size:cover;background-position:center;}

.cc-home-hero__panel{padding:32px;text-align:center;}

.cc-home-hero__micro{
font-size:12px;letter-spacing:.08em;text-transform:uppercase;
color:#6b7280;margin-bottom:12px;
}

.cc-home-hero__title{
font-size:52px;line-height:1.05;margin-bottom:14px;font-weight:700;
}

.cc-home-hero__sub{
font-size:18px;color:#4b5563;margin-bottom:22px;
}

.cc-home-search__grid{
display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px;
}

.cc-home-search__control{
height:56px;border-radius:12px;border:1px solid rgba(16,24,40,.14);
padding:0 14px;background:#fff;font-size:14px;width:100%;
}

.cc-home-search__btn{
height:56px;border-radius:12px;border:0;background:#2563eb;
color:#fff;padding:0 22px;font-weight:700;white-space:nowrap;
}

.cc-home-trust{
display:flex;gap:18px;flex-wrap:wrap;
justify-content:center;margin-top:18px;
}

.cc-home-trust__item{font-size:14px;color:#111827;}

.cc-home-micro{
font-size:12px;color:#6b7280;margin-top:10px;
}


/* HOME SECTIONS (Latest, Buyer/Seller, Blog) */
.cc-home-section{padding:28px 0;}
@media (min-width: 992px){.cc-home-section{padding:38px 0;}}

.cc-home-section__head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;}
.cc-home-section__title{margin:0;font-size:18px;font-weight:700;color:#111827;}
.cc-home-section__link{font-size:13px;color:#2563eb;text-decoration:none;font-weight:600;}
.cc-home-section__link:hover{text-decoration:underline;}

.cc-home-cards{display:grid;grid-template-columns:1fr;gap:14px;}
@media (min-width: 768px){.cc-home-cards{grid-template-columns:repeat(2,1fr);}}
@media (min-width: 1100px){.cc-home-cards{grid-template-columns:repeat(4,1fr);}}

/* Buyer / Seller cards */
.cc-home-bs{display:grid;grid-template-columns:1fr;gap:14px;}
@media (min-width: 992px){.cc-home-bs{grid-template-columns:1fr 1fr;}}
.cc-home-bs__card{
  border:1px solid rgba(16,24,40,.10);
  border-radius:14px;background:#fff;padding:18px;
  box-shadow:0 6px 18px rgba(16,24,40,.05);
}
.cc-home-bs__title{margin:0 0 10px;font-size:16px;line-height:1.25;font-weight:800;color:#111827;}
.cc-home-bs__list{margin:0 0 12px 18px;color:#374151;font-size:13px;line-height:1.6;}
.cc-home-bs__btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;border-radius:12px;padding:0 14px;
  background:#2563eb;color:#fff;text-decoration:none;
  font-weight:800;font-size:13px;
}
.cc-home-bs__btn--dark{background:#111827;}

/* Blog cards */
.cc-home-blog{display:grid;grid-template-columns:1fr;gap:14px;}
@media (min-width: 992px){.cc-home-blog{grid-template-columns:repeat(3,1fr);}}
.cc-home-blog__card{
  border:1px solid rgba(16,24,40,.10);
  border-radius:14px;background:#fff;overflow:hidden;
  box-shadow:0 6px 18px rgba(16,24,40,.05);
}
.cc-home-blog__img img{display:block;width:100%;height:auto;}
.cc-home-blog__ph{height:160px;background:#f3f4f6;}
.cc-home-blog__body{padding:14px;}
.cc-home-blog__title{margin:0 0 8px;font-size:15px;line-height:1.25;font-weight:800;}
.cc-home-blog__title a{text-decoration:none;color:#111827;}
.cc-home-blog__excerpt{font-size:13px;color:#4b5563;line-height:1.5;}
.cc-home-blog__empty{
  font-size:13px;color:#6b7280;padding:14px;
  border:1px dashed rgba(16,24,40,.18);
  border-radius:14px;background:#fff;
}


/* HOME GRID FIX (force multi-column + consistent card height) */
.ccp3-home-grid{display:grid !important;grid-template-columns:1fr;gap:14px !important;}
@media (min-width: 768px){.ccp3-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width: 1100px){.ccp3-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}

/* Limit home card media height so it doesn't become "giant posters" */
.ccp3-home-grid .car-cc-gallery,
.ccp3-home-grid .car-cc-card__media,
.ccp3-home-grid .car-cc-card .car-cc-gallery{max-height:190px;overflow:hidden;border-top-left-radius:14px;border-top-right-radius:14px;}
.ccp3-home-grid .car-cc-gallery img{width:100%;height:190px;object-fit:cover;display:block;}


/* HOME HERO SEARCH – mobile override (prevent cramped grid) */
@media (max-width: 820px){
  .cc-home-search__grid{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .cc-home-search__btn{
    width: 100% !important;
    justify-content: center;
  }
  .cc-home-search__control{
    width: 100% !important;
    min-width: 0 !important;
  }
}
