/* ============================================================
   FORUM THEME — rebuilt to match the Dr. Nebila Dhieb site
   (Home / Contact reference: black + cream/white + deep green +
   soft gold, serif-italic accents over bold sans headlines)
   No markup logic touched — visual layer only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500;1,600&family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* -- brand tokens, sampled from the Home / Contact pages -- */
  --f-black:        #101010;
  --f-black-soft:   #1a1a1a;
  --f-white:        #ffffff;
  --f-cream:        #efe4d0;
  --f-cream-soft:   #f7f2e6;
  --f-green:        #17322c;
  --f-green-2:      #204a41;
  --f-gold:         #b58f5a;
  --f-gold-soft:    #dcc9a4;
  --f-gray:         #7d7a74;
  --f-border:        #e7e1d3;

  --f-font-display: 'Playfair Display', serif;   /* italic accents */
  --f-font-heading: 'Poppins', sans-serif;        /* bold headlines */
  --f-font-body:    'Inter', sans-serif;          /* body copy */

  --f-radius-lg: 18px;
  --f-radius-md: 12px;
  --f-radius-pill: 999px;
}

.forum-scope,
.forum-hero-section,
.forums-categories-section,
.forum-recommended-topics-section,
.forum-question-section,
.topics-title-section,
.topics-filters-section,
.feed-card,
.topics-post-card,
.forums-featured-card,
.forum-recommended-topics__card,
/*.community-info-card{
  font-family: var(--f-font-body);
  color: var(--f-black-soft);
}
*/
/* ---------- generic headline treatment ---------- */
.forum-hero-section h1,
.forum-question-section h1,
.forums-featured-section h2,
.forums-categories-section h2,
.forum-recommended-topics-section h2,
.topics-title-section h1{
  font-family: var(--f-font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--f-black);
}

/* an italic serif "eyebrow" line — reuse the site's Playfair accent */
.forum-hero-section h1 span:first-child,
.forum-question-section h1 span:first-child{
  font-family: var(--f-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 0.6em;
  display: block;
  color: var(--f-gray);
  margin-bottom: 6px;
}

p, span, div{ font-family: var(--f-font-body); }

/* ============================================================
   HERO — "Need help? Create a topic in the forum..."
   ============================================================ */
.forum-hero-section{
  background: var(--f-cream-soft);
  border-radius: var(--f-radius-lg);
  padding: 56px 40px;
  overflow: hidden;
}
.forum-hero-section__container{ position: relative; z-index: 2; }
.forum-hero-section h1{
  font-size: 40px;
  line-height: 1.15;
}
.forum-hero-section h1 span:last-child{
  font-family: var(--f-font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--f-green);
}
.forum-hero-section p{
  color: var(--f-gray);
  max-width: 420px;
}
.forum-hero-section .search-input{
  border-radius: var(--f-radius-pill) !important;
  border: 1px solid var(--f-border);
  box-shadow: 0 6px 24px rgba(16,16,16,0.06);
  max-width: 460px;
}
.forum-hero-section .search-input input{
  background: transparent;
  font-family: var(--f-font-body);
  font-size: 14px;
}
.forum-hero-section .search-input input::placeholder{ color: #a3a09a; }
.forum-hero-section .search-input button{
  background: var(--f-green);
  padding: 10px 26px;
  font-family: var(--f-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
}
.forum-hero-section .search-input button:hover{ background: var(--f-green-2); }

.forum-hero-section__image{
  position: relative;
  border-radius: var(--f-radius-lg);
  overflow: hidden;
}
.forum-hero-section__image img{
  filter: grayscale(0.05);
}
/* soft brand-colored veil so any stock illustration reads as "ours" */
.forum-hero-section__image::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(16,16,16,0) 45%, rgba(16,16,16,.35) 100%);
  pointer-events:none;
}

/* ============================================================
   STAT STRIP — Forums / Topics / Posts / Members
   ============================================================ */
.forum-stat-section{
  background:#264734 !important;
  border-radius: var(--f-radius-lg);
  padding: 34px 20px;
}
.forum-stat-section .font-30{
  font-family: var(--f-font-heading);
  font-weight: 800;
  color: var(--f-white) !important;
  font-size: 30px;
}
.forum-stat-section .font-16{
  color: var(--f-gold-soft) !important;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 11px;
  margin-top: 4px;
}
.forum-stat-icon{
  width: 30px; height: 30px;
  filter: invert(1) brightness(2) sepia(1.4) saturate(1) hue-rotate(2deg);
  opacity: .85;
  margin-bottom: 6px;
}
.forum-stat-section .col-6{ position: relative; }
.forum-stat-section .col-6:not(:last-child)::after{
  content:"";
  position:absolute; right:0; top:15%; bottom:15%;
  width:1px; background: rgba(255,255,255,.12);
}

/* ============================================================
   FEATURED TOPICS
   ============================================================ */
.forums-featured-section h2{ font-size: 30px; }
.forums-featured-section p{ color: var(--f-gray); font-family: var(--f-font-display); font-style: italic; }

.forums-featured-card{
  border: 1px solid var(--f-border) !important;
  border-radius: var(--f-radius-md) !important;
  box-shadow: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.forums-featured-card:hover{
  border-color: var(--f-green) !important;
  transform: translateY(-2px);
}
.forums-featured-card-icon{
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--f-cream-soft);
  flex-shrink: 0;
}
.forums-featured-card h4{
  font-family: var(--f-font-heading);
  font-weight: 700;
  color: var(--f-black);
}
.forums-featured-card h4:hover{ color: var(--f-green); }
.forums-featured-card p{ color: var(--f-gray); }
.user-avatar-card{
  width: 28px; height: 28px;
  border: 2px solid var(--f-white);
  margin-left: -8px;
}
.user-avatar-card:first-child{ margin-left: 0; }
.topics-count{
  width: 28px; height: 28px;
  background: var(--f-cream-soft);
  color: var(--f-black);
  font-weight: 600;
}
.forums-featured-bg-box{ display: none; } /* drop the old template's decorative blob */

/* ============================================================
   FORUM CATEGORY LISTS
   ============================================================ */
.forums-categories-section h2{ font-size: 30px; }
.forums-categories-section p{ font-family: var(--f-font-display); font-style: italic; color: var(--f-gray); }

.forums-categories-card{
  border: 1px solid var(--f-border) !important;
  box-shadow: none !important;
  border-radius: var(--f-radius-md) !important;
}
.forums-categories-card__title{
  font-family: var(--f-font-heading);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--f-border);
  position: relative;
  padding-left: 14px;
}
.forums-categories-card__title::before{
  content:"";
  position:absolute; left:0; top:2px; bottom:14px;
  width: 3px;
  background: var(--f-gold);
  border-radius: 2px;
}
.forums-categories-card__icon{
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--f-cream-soft);
  overflow: hidden;
}
.forums-categories-card a .font-14.text-secondary{
  font-family: var(--f-font-heading);
  font-weight: 600;
  color: var(--f-black) !important;
}
.forums-categories-card a:hover .font-14.text-secondary{ color: var(--f-green) !important; }
.forums-categories-card p.text-gray{ color: var(--f-gray) !important; }
.row.align-items-center.my-15 + .row.align-items-center.my-15{
  border-top: 1px solid var(--f-border);
  padding-top: 15px;
}

/* ============================================================
   RECOMMENDED TOPICS
   ============================================================ */
.forum-recommended-topics-section h2{ font-size: 30px; }
.forum-recommended-topics-section > .text-center > p{
  font-family: var(--f-font-display); font-style: italic; color: var(--f-gray);
}
.forum-recommended-topics__card{
  border: 1px solid var(--f-border);
  box-shadow: none !important;
}
.forum-recommended-topics__icon{
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--f-cream-soft);
  overflow: hidden;
}
.forum-recommended-topics__card h4{
  font-family: var(--f-font-heading);
  font-weight: 700;
  color: var(--f-black);
}
.forum-recommended-topics__lists a{ color: var(--f-gray); }
.forum-recommended-topics__lists a:hover{ color: var(--f-green); }
.forum-recommended-topics__lists a i{ color: var(--f-gold) !important; }
.forums-recommended-topics-bg-box{ display: none; }

/* ============================================================
   "HAVE A QUESTION?" CTA BAND
   ============================================================ */
.forum-question-section{
  background: var(--f-green) !important;
  border-radius: var(--f-radius-lg);
  overflow: hidden;
}
.forum-question-section h1{ color: var(--f-white); font-size: 32px; }
.forum-question-section h1 span:first-child{ color: var(--f-gold-soft); }
.forum-question-section p{ color: rgba(255,255,255,.7); }
.forum-question-section .btn.text-white{
  background: var(--f-gold);
  border: none;
  border-radius: var(--f-radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
}
.forum-question-section .btn.text-white:hover{ background: var(--f-gold-soft); }
.forum-question-section .custom-hover-style{
  border: 1px solid rgba(255,255,255,.35);
  color: var(--f-white) !important;
  border-radius: var(--f-radius-pill);
  padding: 12px 28px;
}
.forum-question-section .custom-hover-style:hover{ background: rgba(255,255,255,.08); }

/* ============================================================
   FORUM LISTING PAGE (single forum, topic feed)
   ============================================================ */
.topics-title-section{
  background: var(--f-black) !important;
}
.topics-title-section h1{ color: var(--f-white); font-size: 30px; }
.topics-title-section p{ color: rgba(255,255,255,.65); }
.topics-title-section .breadcrumb a,
.topics-title-section .breadcrumb li{ color: rgba(255,255,255,.55) !important; }
.topics-title-section .breadcrumb li.font-weight-bold{ color: var(--f-gold-soft) !important; }

.quick-post-box{
  display:flex; align-items:center; gap:12px;
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-pill);
  padding: 12px 20px;
}
.quick-post-box__avatar{
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
}
.quick-post-box__input{
  color: var(--f-gray);
  font-size: 14px;
}
.quick-post-box:hover{ border-color: var(--f-green); }

.topics-filters-section{
  border: 1px solid var(--f-border) !important;
  box-shadow: none !important;
}
.pill-filters{ display:flex; gap:8px; }
.pill-filter{
  font-family: var(--f-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--f-gray);
  padding: 8px 18px;
  border-radius: var(--f-radius-pill);
  border: 1px solid var(--f-border);
}
.pill-filter.active{
  background: var(--f-green);
  color: var(--f-white);
  border-color: var(--f-green);
}
.input-search-topic{
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-pill) 0 0 var(--f-radius-pill);
  font-size: 13px;
}
.pill-filters-toggle{
  background: var(--f-green);
  border-radius: 0 var(--f-radius-pill) var(--f-radius-pill) 0;
  width: 42px; height: 42px;
  display:flex; align-items:center; justify-content:center;
}
.pill-filters-toggle svg{ stroke: var(--f-white); }

/* -- feed cards (topic list) -- */
.feed-card{
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 18px;
  margin-top: 15px;
}
.feed-card--pinned{ border-color: var(--f-gold); background: var(--f-cream-soft); }
.feed-card__header{ display:flex; align-items:center; justify-content:space-between; }
.feed-card__author{ display:flex; align-items:center; gap:10px; }
.feed-card__author img{ width:38px; height:38px; border-radius:50%; object-fit:cover; }
.feed-card__author-name{ font-family: var(--f-font-heading); font-weight:600; font-size:14px; color:var(--f-black); }
.feed-card__meta{ font-size:12px; color: var(--f-gray); }
.feed-card__pin-badge{
  display:flex; align-items:center; gap:4px;
  background: var(--f-gold); color:#fff;
  font-size:11px; font-weight:600;
  padding: 4px 10px; border-radius: var(--f-radius-pill);
}
.feed-card__body{ display:flex; justify-content:space-between; gap:16px; margin-top:14px; }
.feed-card__title{ font-family: var(--f-font-heading); font-weight:700; font-size:16px; color:var(--f-black); }
.feed-card__excerpt{ color: var(--f-gray); font-size:13px; margin-top:6px; }
.feed-card__thumb{ width:88px; height:88px; border-radius:10px; object-fit:cover; flex-shrink:0; }
.feed-card:hover .feed-card__title{ color: var(--f-green); }
.feed-card__footer{
  display:flex; align-items:center; gap:22px;
  margin-top:16px; padding-top:14px;
  border-top: 1px solid var(--f-border);
  font-size:12px; color: var(--f-gray);
}
.like-btn{
  display:flex; align-items:center; gap:6px;
  background:none; border:none; color: var(--f-gray);
}
.like-btn:hover{ color: var(--f-gold); }
.feed-card__avatars img{ width:24px; height:24px; border-radius:50%; object-fit:cover; }

.topics-not-result{
  border: 1px dashed var(--f-border) !important;
  box-shadow: none !important;
}
.topics-not-result h3{ font-family: var(--f-font-heading); color: var(--f-black); }

/* ============================================================
   TOPIC / POST CARDS (topic detail thread)
   ============================================================ */
.topics-post-card{
  border: 1px solid var(--f-border) !important;
  box-shadow: none !important;
}
.topics-post-card .bg-info-light{ background: var(--f-cream-soft) !important; }
.user-avatar{ border: 2px solid transparent; }
.user-avatar.green-ring{ border-color: var(--f-gold); }
.topics-post-card h4.text-secondary{
  font-family: var(--f-font-heading);
  font-weight: 700;
  color: var(--f-black) !important;
}
.topics-post-card span.bg-info-light{
  background: var(--f-cream-soft) !important;
  border-color: var(--f-border) !important;
  color: var(--f-gray) !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px !important;
}
.topic-post-description{ color: var(--f-black-soft); line-height: 1.7; font-size: 14px; }
.post-quotation{ background: var(--f-cream-soft) !important; border-color: var(--f-border) !important; }
.post-quotation-icon{ background: var(--f-green); }
.post-quotation-icon img{ filter: brightness(0) invert(1); }

.topic-post-like-btn .badge-icon{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--f-border);
  color: var(--f-gray);
}
.topic-post-like-btn .badge-icon.liked{
  background: var(--f-green); border-color: var(--f-green); color: #fff;
}
.topic-post-like-btn .badge-icon.liked svg{ fill:#fff; stroke:#fff; }

.reply-login-close-card{
  border: 1px dashed var(--f-border) !important;
}
.reply-login-close-card h4{ font-family: var(--f-font-heading); color: var(--f-black); }

/* reply form */
#summernote + .note-editor,
textarea#summernote{
  border-radius: var(--f-radius-md);
}
.js-save-post,
button.btn-primary{
  background: var(--f-green) !important;
  border-color: var(--f-green) !important;
  border-radius: var(--f-radius-pill);
  font-weight: 600;
}
.js-save-post:hover,
button.btn-primary:hover{ background: var(--f-green-2) !important; }

/* ============================================================
   SIDEBAR — community info card
   ============================================================ */
/* ============================================================
   COMMUNITY CARD — sidebar, site-wide
   ============================================================ */
.community-card{
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16,16,16,0.05);
}

/* -- banner: brand gradient strip, logo sits centered on top -- */
.community-card__banner{
  position: relative;
  height: 72px;
  background: linear-gradient(135deg, var(--f-green) 0%, var(--f-green-2) 60%, var(--f-gold) 140%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.community-card__logo-wrap{
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--f-white);
  border: 4px solid var(--f-white);
  box-shadow: 0 4px 14px rgba(16,16,16,0.15);
  overflow: hidden;
  transform: translateY(38px);
  flex-shrink: 0;
}

.community-card__logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* -- body -- */
.community-card__body{
  padding: 46px 20px 20px;
  text-align: center;
}

.community-card__title{
  font-family: var(--f-font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--f-black);
  margin: 0 0 2px;
}

.community-card__url{
  display: block;
  font-family: var(--f-font-body);
  font-size: 11.5px;
  color: var(--f-gray);
  margin-bottom: 12px;
}

.community-card__desc{
  font-family: var(--f-font-body);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--f-gray);
  margin: 0 0 18px;
}

/* -- stats row -- */
.community-card__stats{
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--f-border);
  border-bottom: 1px solid var(--f-border);
  margin-bottom: 18px;
}

.community-card__stat{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.community-card__stat:not(:last-child)::after{
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--f-border);
}

.community-card__stat strong{
  font-family: var(--f-font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--f-black);
}

.community-card__stat span{
  font-family: var(--f-font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--f-gray);
}

/* -- CTA -- */
.community-card__cta{
  display: block;
  width: 100%;
  text-align: center;
  background: var(--f-green);
  color: var(--f-white) !important;
  font-family: var(--f-font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--f-radius-pill);
  transition: background .2s ease, transform .2s ease;
}

.community-card__cta:hover{
  background: var(--f-green-2);
  transform: translateY(-1px);
}

@media (max-width: 767px){
  .community-card__logo-wrap{ width: 64px; height: 64px; transform: translateY(32px); }
  .community-card__body{ padding: 40px 16px 16px; }
}
/* ============================================================
   SUBFORUM CARDS — grid layout
   ============================================================ */
.forums-categories-group{
  border: 1px solid var(--f-border) !important;
  box-shadow: none !important;
  border-radius: var(--f-radius-md) !important;
}

.forums-subforum-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.subforum-card{
  display: flex;
  flex-direction: column;
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.subforum-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: var(--f-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.subforum-card:hover{
  transform: translateY(-4px);
  border-color: var(--f-green);
  box-shadow: 0 12px 28px rgba(16,16,16,0.08);
}
.subforum-card:hover::before{ transform: scaleX(1); }

.subforum-card__top{ flex-grow: 1; }

.subforum-card__icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--f-cream-soft);
  margin-bottom: 12px;
}

.subforum-card__link{ display: block; }
.subforum-card__title{
  font-family: var(--f-font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--f-black);
  margin: 0 0 6px;
  transition: color .2s ease;
}
.subforum-card:hover .subforum-card__title{ color: var(--f-green); }

.subforum-card__desc{
  font-family: var(--f-font-body);
  font-size: 12.5px;
  color: var(--f-gray);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subforum-card__stats{
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--f-border);
}
.subforum-card__stat{ display: flex; flex-direction: column; }
.subforum-card__stat-num{
  font-family: var(--f-font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--f-black);
}
.subforum-card__stat-label{
  font-size: 10.5px;
  color: var(--f-gray);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 2px;
}

.subforum-card__last-post{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--f-border);
}
.subforum-card__last-post-avatar img{
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.subforum-card__last-post-info{ min-width: 0; }
.subforum-card__last-post-title{
  display: block;
  font-family: var(--f-font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--f-black-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subforum-card__last-post-title:hover{ color: var(--f-green); }
.subforum-card__last-post-meta{
  font-size: 11px;
  color: var(--f-gray);
  margin-top: 2px;
}

.subforum-card__empty{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--f-border);
  font-size: 11.5px;
  color: var(--f-gray);
  font-style: italic;
  font-family: var(--f-font-display);
}

/* ---------- responsive ---------- */
@media (max-width: 991px){
  .forums-subforum-grid{ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 767px){
  .forums-subforum-grid{ grid-template-columns: 1fr; gap: 12px; }
  .subforum-card{ padding: 16px; }
}

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.rounded-lg{ border-radius: var(--f-radius-lg) !important; }
.rounded-sm{ border-radius: 10px !important; }
.text-secondary{ color: var(--f-black) !important; }
.text-primary{ color: var(--f-green) !important; }
.text-gray{ color: var(--f-gray) !important; }
.bg-info-light{ background: var(--f-cream-soft) !important; }
a{ text-decoration: none; }

@media (max-width: 767px){
  .forum-hero-section{ padding: 32px 20px; text-align:center; }
  .forum-hero-section h1{ font-size: 28px; }
  .forum-hero-section .search-input{ margin-left:auto; margin-right:auto; }
  .forum-question-section h1{ font-size: 24px; }
  .feed-card__thumb{ width: 64px; height: 64px; }
  

}
.subforum-card{
  display: flex;
  flex-direction: column;
  background: var(--f-white);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.subforum-card:hover{
  transform: translateY(-4px);
  border-color: var(--f-green);
  box-shadow: 0 12px 28px rgba(16,16,16,0.08);
}

/* -- cover: standard 16:9 banner -- */
.subforum-card__cover{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--f-cream-soft);
}
.subforum-card__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.subforum-card:hover .subforum-card__cover img{
  transform: scale(1.05);
}

/* -- header: logo overlapping the cover, title beside it -- */
.subforum-card__header{
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 18px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.subforum-card__logo{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--f-white);
  border: 3px solid var(--f-white);
  box-shadow: 0 4px 12px rgba(16,16,16,.14);
  overflow: hidden;
  flex-shrink: 0;
}
.subforum-card__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subforum-card__link{ display: block; }
.subforum-card__title{
  font-family: var(--f-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--f-black);
  margin: 0 0 6px;
  transition: color .2s ease;
}
.subforum-card:hover .subforum-card__title{ color: var(--f-green); }

/* -- body -- */
.subforum-card__content{
  padding: 14px 18px 18px;
}

.subforum-card__desc{
  font-family: var(--f-font-body);
  font-size: 12.5px;
  color: var(--f-gray);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subforum-card__stats-line{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--f-font-body);
  font-size: 13px;
  color: var(--f-gray);
}
.subforum-card__stats-line strong{
  font-weight: 700;
  color: var(--f-black);
}
.subforum-card__stats-line .dot{ color: var(--f-border); font-weight: 700; }

/* -- last post -- */
.subforum-card__last-post{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--f-border);
}
.subforum-card__last-post-avatar img{ width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.subforum-card__last-post-info{ min-width: 0; }
.subforum-card__last-post-title{
  display: block;
  font-family: var(--f-font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--f-black-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subforum-card__last-post-title:hover{ color: var(--f-green); }
.subforum-card__last-post-meta{ font-size: 11px; color: var(--f-gray); margin-top: 2px; }

.subforum-card__empty{
  margin: 0 18px 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--f-border);
  font-size: 11.5px;
  color: var(--f-gray);
  font-style: italic;
  font-family: var(--f-font-display);
}