/* =========================================================================
   SME MODULE - shared front-end styles
   Reuses the site's existing --primary-color CSS variable so the module
   feels native to the rest of ronakpublication.com rather than bolted on.
   ========================================================================= */

:root{
  --sme-ink:#111827;
  --sme-muted:#6b7280;
  --sme-line:#e5e7eb;
  --sme-surface:#f8fafc;
  --sme-dark:#0f172a;
  --sme-radius:14px;
}

.sme-section{padding:64px 0;}
.sme-section.sme-tight{padding:44px 0;}
.sme-section-head{max-width:680px;margin:0 auto 40px;text-align:center;}
.sme-eyebrow{display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary-color,#f14341);margin-bottom:10px;}
.sme-heading{font-size:32px;font-weight:700;color:var(--sme-ink);margin:0 0 12px;line-height:1.25;}
.sme-sub{color:var(--sme-muted);font-size:16px;line-height:1.7;margin:0;}

/* ---------- Hero ---------- */
.sme-hero{background:linear-gradient(135deg,var(--sme-dark) 0%,#1e293b 100%);color:#fff;padding:90px 0 80px;position:relative;overflow:hidden;}
.sme-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(600px 300px at 85% 10%, rgba(241,67,65,.18), transparent 60%);}
.sme-hero-inner{position:relative;max-width:760px;}
.sme-hero h1{font-size:44px;font-weight:800;line-height:1.2;margin:0 0 18px;}
.sme-hero p{font-size:17px;color:#cbd5e1;line-height:1.75;margin:0 0 30px;max-width:640px;}
.sme-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.sme-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:10px;font-weight:600;font-size:15px;text-decoration:none;transition:.2s;border:2px solid transparent;}
.sme-btn-primary{background:var(--primary-color,#f14341);color:#fff;}
.sme-btn-primary:hover{filter:brightness(1.08);color:#fff;}
.sme-btn-outline{border-color:rgba(255,255,255,.35);color:#fff;}
.sme-btn-outline:hover{background:rgba(255,255,255,.1);color:#fff;}
.sme-btn-dark{background:var(--sme-dark);color:#fff;}
.sme-btn-dark:hover{filter:brightness(1.15);color:#fff;}

/* ---------- Stats ---------- */
.sme-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:36px;}
.sme-stat{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:24px 18px;text-align:center;}
.sme-stat .num{font-size:30px;font-weight:800;color:var(--primary-color,#f14341);}
.sme-stat .lbl{font-size:13.5px;color:var(--sme-muted);margin-top:4px;}

/* ---------- Category / Subject / Service cards ---------- */
.sme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.sme-grid.sme-cols-3{grid-template-columns:repeat(3,1fr);}
.sme-card{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:26px 22px;text-decoration:none;color:var(--sme-ink);display:block;transition:.2s;height:100%;}
.sme-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px -12px rgba(15,23,42,.18);border-color:transparent;color:var(--sme-ink);}
.sme-card-icon{width:48px;height:48px;border-radius:12px;background:rgba(241,67,65,.1);color:var(--primary-color,#f14341);display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:16px;}
.sme-card h4{font-size:16.5px;font-weight:700;margin:0 0 6px;}
.sme-card p{font-size:13.5px;color:var(--sme-muted);margin:0;}

/* ---------- How it works ---------- */
.sme-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;counter-reset:sme-step;}
.sme-step{position:relative;padding-top:8px;}
.sme-step .n{width:42px;height:42px;border-radius:50%;background:var(--sme-dark);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:16px;}
.sme-step h5{font-size:16px;font-weight:700;margin:0 0 6px;}
.sme-step p{font-size:13.5px;color:var(--sme-muted);margin:0;}

/* ---------- Why choose / bullet list ---------- */
.sme-check-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
.sme-check-list li{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:var(--sme-ink);}
.sme-check-list li:before{content:"\2713";flex:0 0 22px;height:22px;width:22px;border-radius:50%;background:rgba(241,67,65,.12);color:var(--primary-color,#f14341);font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:700;}

/* ---------- Join CTA band ---------- */
.sme-cta-band{background:var(--sme-dark);border-radius:20px;padding:50px 46px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;}
.sme-cta-band h3{font-size:26px;font-weight:800;margin:0 0 8px;}
.sme-cta-band p{color:#cbd5e1;margin:0;max-width:520px;}

/* ---------- Find-an-expert list page ---------- */
.sme-filter-bar{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:18px;margin-bottom:26px;}
.sme-filter-main input[type=text]{width:100%;padding:13px 16px;border:1px solid var(--sme-line);border-radius:10px;font-size:15px;}
.sme-filter-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px;}
.sme-filter-box h6{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--sme-muted);margin:0 0 8px;font-weight:700;}
.sme-filter-search{width:100%;padding:9px 12px;border:1px solid var(--sme-line);border-radius:8px;font-size:13.5px;margin-bottom:8px;}
.sme-scroll-box{max-height:190px;overflow-y:auto;border:1px solid var(--sme-line);border-radius:8px;padding:10px 12px;background:var(--sme-surface);}
.sme-scroll-box label{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--sme-ink);padding:4px 0;cursor:pointer;}
.sme-scroll-box .sme-empty{color:var(--sme-muted);font-size:13px;}

.sme-result-count{font-size:14px;color:var(--sme-muted);margin-bottom:16px;}
.sme-expert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.sme-expert-card{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:24px;text-align:center;transition:.2s;position:relative;}
.sme-expert-card:hover{box-shadow:0 14px 30px -12px rgba(15,23,42,.16);transform:translateY(-2px);}
.sme-expert-photo{width:84px;height:84px;border-radius:50%;object-fit:cover;margin:0 auto 14px;border:3px solid var(--sme-surface);background:var(--sme-surface);}
.sme-expert-card h5{font-size:16.5px;font-weight:700;margin:0 0 4px;}
.sme-expert-card .org{font-size:13px;color:var(--sme-muted);margin-bottom:10px;}
.sme-verified-badge{display:inline-flex;align-items:center;gap:4px;background:#48e1195c;color:#1e6c06;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;position:absolute;top:16px;right:16px;}
.sme-tag-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:14px;}
.sme-tag{background:var(--sme-surface);border:1px solid var(--sme-line);color:var(--sme-ink);font-size:11.5px;padding:4px 10px;border-radius:20px;}
.sme-expert-card .sme-btn{width:100%;justify-content:center;padding:10px;font-size:14px;}

.sme-pagination{display:flex;justify-content:center;gap:6px;margin-top:34px;flex-wrap:wrap;}
.sme-pagination a,.sme-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:8px;border:1px solid var(--sme-line);color:var(--sme-ink);text-decoration:none;font-size:14px;}
.sme-pagination a:hover{background:var(--sme-surface);}
.sme-pagination .active{background:var(--primary-color,#f14341);border-color:var(--primary-color,#f14341);color:#fff;}
.sme-pagination .disabled{opacity:.4;pointer-events:none;}

.sme-no-results{text-align:center;padding:60px 20px;color:var(--sme-muted);}

/* ---------- Details page ---------- */
.sme-profile-card{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:30px;text-align:center;}
.sme-profile-photo{width:150px;height:150px;border-radius:50%;object-fit:cover;margin:0 auto 18px;border:4px solid var(--sme-surface);}
.sme-profile-card h2{font-size:22px;font-weight:800;margin:0 0 4px;}
.sme-basic-info{list-style:none;margin:22px 0 0;padding:0;text-align:left;}
.sme-basic-info li{display:flex;gap:10px;padding:9px 0;border-bottom:1px dashed var(--sme-line);font-size:14px;color:var(--sme-ink);}
.sme-basic-info li b{color:var(--sme-muted);font-weight:600;min-width:110px;}
.sme-about-box{background:#fff;border:1px solid var(--sme-line);border-radius:var(--sme-radius);padding:28px;margin-bottom:22px;}
.sme-about-box h4{font-size:18px;font-weight:700;margin:0 0 12px;}

/* ---------- Sticky filter search bar (used inside sidebar too on list page) ---------- */
.sme-main-search{position:relative;}
.sme-main-search i{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--sme-muted);}
.sme-main-search input{padding-left:42px;}

@media (max-width:991px){
  .sme-stats{grid-template-columns:repeat(2,1fr);}
  .sme-grid{grid-template-columns:repeat(2,1fr);}
  .sme-steps{grid-template-columns:repeat(2,1fr);}
  .sme-expert-grid{grid-template-columns:repeat(2,1fr);}
  .sme-filter-cols{grid-template-columns:1fr;}
  .sme-check-list{grid-template-columns:1fr;}
}
@media (max-width:576px){
  .sme-hero h1{font-size:30px;}
  .sme-stats{grid-template-columns:1fr 1fr;}
  .sme-grid{grid-template-columns:1fr;}
  .sme-steps{grid-template-columns:1fr;}
  .sme-expert-grid{grid-template-columns:1fr;}
  .sme-cta-band{padding:32px 24px;}
}


.sme-sub-menu{background:#0f172a;position:relative;z-index:5;}
.sme-sub-menu-list{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;gap:2px;}
.sme-sub-menu-list li a{display:block;padding:13px 20px;color:#cbd5e1;font-size:14.5px;font-weight:500;text-decoration:none;transition:.2s;border-bottom:3px solid transparent;}
.sme-sub-menu-list li a:hover{color:#fff;background:rgba(255,255,255,.06);}
.sme-sub-menu-list li.active a{color:#fff;border-bottom-color:var(--primary-color,#f14341);background:rgba(255,255,255,.06);}
@media(max-width:767px){.sme-sub-menu-list{overflow-x:auto;flex-wrap:nowrap;}.sme-sub-menu-list li a{white-space:nowrap;padding:12px 14px;}}


.sme-default-padding{padding-left: 50px; padding-right: 50px;}