/* =====================================================
   NJOFTIMFALAS 2.0 — MAIN STYLES
   Version 1.1
===================================================== */

:root{
  --njf-primary:#124A59;
  --njf-primary-2:#0F766E;
  --njf-white:#FFFFFF;
  --njf-bg:#F8FAFC;
  --njf-text:#1F2937;
  --njf-muted:#6B7280;
  --njf-border:#E5E7EB;
  --njf-radius-sm:8px;
  --njf-radius-md:16px;
  --njf-radius-lg:24px;
  --njf-shadow-sm:0 8px 24px rgba(18,74,89,.08);
  --njf-shadow-md:0 16px 40px rgba(18,74,89,.12);
  --njf-transition:.22s ease;
}

body{background:var(--njf-bg);color:var(--njf-text);}
img{max-width:100%;height:auto;}

/* HOME 2.0 */
.njf-v2-home{background:#f8fafc;color:#1f2937;}
.njf-v2-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;}
.njf-v2-section{padding:72px 0;}

.njf-v2-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.11),transparent 30%),
    linear-gradient(135deg,#124a59 0%,#0f6672 100%);
  padding:84px 0 72px;
}

.njf-v2-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:64px;
  align-items:center;
}

.njf-v2-hero-content{position:relative;z-index:2;}

.njf-v2-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  color:#d5edf2;
  font-size:13px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.njf-v2-eyebrow::before{
  content:"";
  width:30px;
  height:2px;
  background:currentColor;
  border-radius:10px;
  opacity:.8;
}

.njf-v2-eyebrow-dark{color:#0f766e;}

.njf-v2-hero h1{
  max-width:720px;
  margin:0 0 20px;
  color:#fff;
  font-size:clamp(42px,5.5vw,72px);
  font-weight:800;
  line-height:1.02;
  letter-spacing:-2.2px;
}

.njf-v2-hero-content>p{
  max-width:620px;
  margin:0 0 32px;
  color:#d5edf2;
  font-size:19px;
  line-height:1.65;
}

.njf-v2-search{
  max-width:720px;
  margin-bottom:22px;
  padding:10px;
  background:#fff;
  border-radius:20px;
  box-shadow:0 22px 55px rgba(7,35,42,.2);
}

.njf-v2-search .directorist-search-form,
.njf-v2-search .directorist-search-form-box,
.njf-v2-search .directorist-search-contents{
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

.njf-v2-primary-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:14px 24px;
  border-radius:15px;
  background:#fff;
  color:#124a59!important;
  text-decoration:none!important;
  font-size:15px;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:0 12px 28px rgba(5,35,42,.14);
  transition:transform .22s ease,box-shadow .22s ease;
}

.njf-v2-primary-button:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(5,35,42,.22);
}

.njf-v2-hero-visual{position:relative;min-height:470px;}

.njf-v2-collage{
  position:absolute;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  border:6px solid rgba(255,255,255,.92);
  background:
    linear-gradient(145deg,rgba(18,74,89,.08),rgba(15,118,110,.24)),
    #dce8eb;
  box-shadow:0 26px 60px rgba(4,29,36,.25);
}

.njf-v2-collage span{
  width:100%;
  padding:16px;
  color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.62));
  font-size:14px;
  font-weight:800;
}

.njf-v2-collage-main{
  inset:34px 82px 22px 0;
  border-radius:28px;
  transform:rotate(-2deg);
}

.njf-v2-collage-small{
  width:190px;
  height:190px;
  right:0;
  border-radius:22px;
}

.njf-v2-collage-top{top:0;transform:rotate(5deg);}
.njf-v2-collage-bottom{bottom:0;transform:rotate(-4deg);}

.njf-v2-section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.njf-v2-section-heading h2{
  margin:0;
  color:#18242b;
  font-size:clamp(28px,3vw,40px);
  line-height:1.12;
  letter-spacing:-1px;
}

.njf-v2-section-heading>a{
  color:#0f766e!important;
  text-decoration:none!important;
  font-weight:800!important;
}

.njf-v2-category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.njf-v2-category-card{
  display:flex;
  flex-direction:column;
  min-height:195px;
  padding:26px;
  border:1px solid #e1e8eb;
  border-radius:22px;
  background:#fff;
  color:#1f2937!important;
  text-decoration:none!important;
  box-shadow:0 12px 34px rgba(25,50,58,.06);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.njf-v2-category-card:hover{
  transform:translateY(-5px);
  border-color:rgba(15,118,110,.35);
  box-shadow:0 20px 45px rgba(25,50,58,.11);
}

.njf-v2-category-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin-bottom:28px;
  border-radius:16px;
  background:#e7f4f3;
  color:#0f766e;
  font-size:26px;
  font-weight:800;
}

.njf-v2-category-card strong{
  color:#17242b;
  font-size:20px;
  line-height:1.25;
}

.njf-v2-category-card small{
  margin-top:8px;
  color:#687881;
  font-size:14px;
  line-height:1.55;
}

.njf-v2-premium-section,.njf-v2-blog-section{background:#fff;}

.njf-v2-placeholder{
  min-height:220px;
  display:grid;
  place-content:center;
  gap:8px;
  padding:32px;
  border:1px dashed #b8c9ce;
  border-radius:22px;
  background:#f8fbfc;
  text-align:center;
}

.njf-v2-placeholder strong{color:#17343d;font-size:20px;}
.njf-v2-placeholder span{color:#6d7d84;}

.njf-v2-ad-section,.njf-v2-adsense-section{
  padding:28px 0;
  background:#fff;
}

.njf-v2-ad-placeholder,.njf-v2-adsense-placeholder{
  display:grid;
  place-items:center;
  min-height:120px;
  padding:20px;
  border-radius:18px;
  text-align:center;
  font-weight:800;
}

.njf-v2-ad-placeholder{
  border:1px solid rgba(15,118,110,.22);
  background:linear-gradient(135deg,#e9f6f5,#f5fbfb);
  color:#0f766e;
}

.njf-v2-adsense-placeholder{
  border:1px dashed #c8d2d6;
  background:#f4f6f7;
  color:#7b888d;
}

.njf-v2-latest-section{background:#f8fafc;}

.njf-v2-trust-section{
  padding:54px 0;
  background:#edf4f5;
}

.njf-v2-trust-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.njf-v2-trust-grid>div{
  padding:22px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(25,50,58,.05);
}

.njf-v2-trust-grid strong,.njf-v2-trust-grid span{display:block;}
.njf-v2-trust-grid strong{margin-bottom:7px;color:#143f49;font-size:16px;}
.njf-v2-trust-grid span{color:#718087;font-size:13px;}

.njf-v2-final-cta{
  padding:82px 0;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.1),transparent 28%),
    #124a59;
  text-align:center;
}

.njf-v2-final-cta h2{
  margin:0 0 12px;
  color:#fff;
  font-size:clamp(30px,4vw,48px);
}

.njf-v2-final-cta p{
  max-width:620px;
  margin:0 auto 28px;
  color:#d5edf2;
  font-size:17px;
}

.njf-v2-primary-button-light{min-width:220px;}

/* Directorist listing area inside Home 2.0 */
.njf-v2-listings-wrap .directorist-archive-filters-wrap,
.njf-v2-listings-wrap .directorist-listing-top-wrap,
.njf-v2-listings-wrap .directorist-header-bar,
.njf-v2-listings-wrap .directorist-archive-sidebar{
  display:none!important;
}

.njf-v2-listings-wrap .directorist-row{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0!important;
}

.njf-v2-listings-wrap [class*="directorist-col-"]{
  width:auto!important;
  max-width:none!important;
  flex:none!important;
  padding:0!important;
}

.njf-v2-listings-wrap .directorist-listing-single{
  height:100%;
}

.njf-v2-listings-wrap .directorist-listing-single--bg{
  height:100%;
  overflow:hidden;
  border:1px solid var(--njf-border)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:var(--njf-shadow-sm)!important;
  transition:transform var(--njf-transition),box-shadow var(--njf-transition)!important;
}

.njf-v2-listings-wrap .directorist-listing-single--bg:hover{
  transform:translateY(-5px)!important;
  box-shadow:var(--njf-shadow-md)!important;
}

.njf-v2-listings-wrap .directorist-thumnail-card{
  height:190px!important;
  overflow:hidden!important;
}

.njf-v2-listings-wrap .directorist-thumnail-card img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transition:transform .35s ease!important;
}

.njf-v2-listings-wrap .directorist-listing-single--bg:hover .directorist-thumnail-card img{
  transform:scale(1.05)!important;
}

.njf-v2-listings-wrap .directorist-listing-single__content{
  padding:16px 16px 8px!important;
  background:#fff!important;
}

.njf-v2-listings-wrap .directorist-listing-title{
  margin:0 0 8px!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.35!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.njf-v2-listings-wrap .directorist-listing-title a{
  color:#17242b!important;
  text-decoration:none!important;
}

.njf-v2-listings-wrap .directorist-listing-price{
  color:var(--njf-primary)!important;
  font-size:19px!important;
  font-weight:800!important;
}

.njf-v2-listings-wrap .directorist-listing-single__meta{
  padding:8px 16px 16px!important;
  background:#fff!important;
}

@media(max-width:900px){
  .njf-v2-hero-grid{grid-template-columns:1fr;gap:44px;}
  .njf-v2-hero-content{text-align:center;}
  .njf-v2-hero h1,.njf-v2-hero-content>p,.njf-v2-search{margin-left:auto;margin-right:auto;}
  .njf-v2-hero-visual{min-height:390px;max-width:620px;width:100%;margin:0 auto;}
  .njf-v2-category-grid{grid-template-columns:1fr;}
  .njf-v2-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .njf-v2-listings-wrap .directorist-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media(max-width:600px){
  .njf-v2-shell{width:min(100% - 24px,1180px);}
  .njf-v2-section{padding:52px 0;}
  .njf-v2-hero{padding:52px 0 46px;}
  .njf-v2-hero h1{font-size:40px;letter-spacing:-1.4px;}
  .njf-v2-hero-content>p{font-size:16px;}
  .njf-v2-hero-visual{min-height:300px;}
  .njf-v2-collage-main{inset:28px 48px 18px 0;border-radius:22px;}
  .njf-v2-collage-small{width:128px;height:128px;border-width:4px;border-radius:17px;}
  .njf-v2-section-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px;}
  .njf-v2-category-card{min-height:170px;padding:22px;}
  .njf-v2-trust-grid{grid-template-columns:1fr;}
  .njf-v2-placeholder{min-height:180px;padding:24px 16px;}
  .njf-v2-listings-wrap .directorist-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .njf-v2-listings-wrap .directorist-thumnail-card{height:130px!important;}
  .njf-v2-listings-wrap .directorist-listing-single__content{padding:12px 12px 6px!important;}
  .njf-v2-listings-wrap .directorist-listing-title{font-size:13px!important;}
  .njf-v2-listings-wrap .directorist-listing-price{font-size:15px!important;}
  .njf-v2-listings-wrap .directorist-listing-single__meta{padding:6px 12px 12px!important;}
}