.sej-author-top,
.sej-author-articles { --wf-accent:#f26522; --wf-dark:#111827; --wf-muted:#6b7280; }

.sej-author-container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* Profile */
.sej-author-top { padding:60px 0 40px; background:#f8f9fb; }
.sej-author-profile { display:flex; gap:32px; align-items:flex-start; }
.sej-author-avatar img { width:120px; height:120px; border-radius:50%; object-fit:cover; display:block; }
.sej-author-info { flex:1; min-width:0; }
.sej-author-info h1 { margin:0 0 6px; font-size:34px; color:var(--wf-dark); }
.author-position { margin:0 0 6px; font-size:18px; font-weight:600; color:var(--wf-accent); }
.author-experience { margin:0 0 16px; font-size:14px; color:var(--wf-muted); line-height:1.6; }
.sej-author-bio p { margin:0 0 14px; font-size:16px; line-height:1.75; color:#374151; }
.sej-author-social { display:flex; gap:12px; margin-top:18px; }
.sej-author-social a { width:40px; height:40px; border-radius:50%; background:#fff; border:1px solid #e5e7eb;
  display:flex; align-items:center; justify-content:center; color:var(--wf-dark); transition:.25s; }
.sej-author-social a:hover { background:var(--wf-accent); border-color:var(--wf-accent); color:#fff; }

/* Articles */
.sej-author-articles { padding:50px 0 70px; }
.sej-articles-heading { margin:0 0 30px; font-size:28px; color:var(--wf-dark); position:relative; padding-bottom:12px; }
.sej-articles-heading::after { content:""; position:absolute; left:0; bottom:0; width:60px; height:3px; background:var(--wf-accent); }

.sej-article-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.sej-article-card { background:#fff; border:1px solid #eceef2; border-radius:12px; overflow:hidden;
  transition:transform .25s, box-shadow .25s; }
.sej-article-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.08); }
.sej-article-thumb { display:block; aspect-ratio:16/9; overflow:hidden; }
.sej-article-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }
.sej-article-card:hover .sej-article-thumb img { transform:scale(1.05); }
.sej-article-content { padding:18px 20px 22px; }
.sej-article-content h3 { margin:0 0 10px; font-size:18px; line-height:1.4; }
.sej-article-content h3 a { color:var(--wf-dark); text-decoration:none; }
.sej-article-content h3 a:hover { color:var(--wf-accent); }
.sej-article-meta { font-size:13px; color:var(--wf-muted); }

/* Load more */
.sej-load-more-wrapper { text-align:center; margin-top:40px; }
.sej-load-more-btn { background:var(--wf-accent); color:#fff; border:0; padding:13px 38px; border-radius:50px;
  font-size:15px; font-weight:600; cursor:pointer; transition:.25s; }
.sej-load-more-btn:hover { filter:brightness(.92); }
.sej-load-more-btn:disabled { opacity:.6; cursor:wait; }

/* Responsive */
@media (max-width:991px){ .sej-article-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){
  .sej-author-profile{ flex-direction:column; align-items:center; text-align:center; }
  .sej-author-social{ justify-content:center; }
  .sej-article-grid{ grid-template-columns:1fr; }
  .sej-author-info h1{ font-size:26px; }
}


/* ===== HEADER FIX: dark band behind the transparent header ===== */
.sej-author-top {
  --hdr: 110px;                       /* height of the dark band, adjust if needed */
  position: relative;
  padding: calc(var(--hdr) + 50px) 0 40px;
  background: #ececed;
}

/* covers any gap/space the theme leaves above the section */
.sej-author-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 100%;
  height: 300px;
  background: #15131a;
  z-index: 0;
}

.sej-author-top .sej-author-container { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .sej-author-top { --hdr: 90px; }
}

/* ===== Header band = menu + 40px, author section starts after it ===== */
.sej-author-top {
  --hdr: 40px;              /* menu bottom (~80px) + 40px */
  --author-bg: #ececed;      /* your author section colour: change it here */

  background: var(--author-bg);   /* removes the old gradient */
  padding: calc(var(--hdr) + 40px) 0 40px;
}

/* dark band: sits behind the header and ends 40px below the menu */
.sej-author-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -300px;               /* also covers any gap above the section */
  bottom: auto;
  height: calc(var(--hdr) + 300px);
  background: #15131a;
  z-index: 0;
}

@media (max-width: 640px) {
  .sej-author-top { --hdr: 105px; }
}


/* 2. Designation line under the name */
.sej-author-top .author-position {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #000;
}

/* 3. Remove the line under "Articles" */
.sej-articles-heading { padding-bottom: 0; }
.sej-articles-heading::after { display: none; }

/* 4. No colour change on blog title hover */
.sej-article-content h3 a:hover { color: inherit; }

/* 5 & 6. Load More button */
.sej-load-more-wrapper .sej-load-more-btn {
  background: #ececed;
  color: #000;
  padding: 12px 20px;
  border: 0;
  border-radius: 50px;
  filter: none;
  transition: background .25s, color .25s;
}
.sej-load-more-wrapper .sej-load-more-btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 640px) {
  .sej-author-top { --hdr: 70px; }
}