/* ═══════════════════════════════════════════════════════════════════
   RANSOMWARE PROFILE — Layout CSS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables (light mode — default) ──────────────────────────── */
:root {
  --rw-red:          #c73b35;
  --rw-dark:         #111111;
  --rw-card:         #f0f2f4;
  --rw-border:       rgba(17,17,17,0.08);
  --rw-code-bg:      #1d2433;
  --rw-text:         #333333;
  --rw-text-muted:   #666666;
  --rw-text-strong:  #111111;
  --rw-bg:           #ffffff;
  --rw-row-even:     rgba(0,0,0,0.025);
  --rw-row-hover:    rgba(56,107,183,0.05);
  --rw-td-border:    rgba(0,0,0,0.07);
  --rw-inline-code-bg:    rgba(0,0,0,0.07);
  --rw-inline-code-color: #1a1a1a;
  --rw-pill-bg:      #f0f2f4;
  --rw-pill-color:   #333333;
  --rw-pill-border:  rgba(0,0,0,0.08);
  --rw-pill-label:   #111111;
  --rw-tag-color:    #555555;
  --rw-tag-label-color: #111111;
  --rw-divider:      rgba(0,0,0,0.08);
  --rw-accordion-bg: #ffffff;
  --rw-accordion-hover-bg: #f0f2f4;
  --rw-shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --rw-shadow-card:  0 16px 40px rgba(0,0,0,0.10);
}

/* ── Variables (dark mode override) ────────────────────────────── */
[data-bs-theme=dark] {
  --rw-dark:         #f0f2f4;
  --rw-card:         #1e2130;
  --rw-border:       rgba(255,255,255,0.08);
  --rw-text:         #c0c8d8;
  --rw-text-muted:   #8899aa;
  --rw-text-strong:  #f0f2f4;
  --rw-bg:           #13151e;
  --rw-row-even:     rgba(255,255,255,0.03);
  --rw-row-hover:    rgba(56,107,183,0.10);
  --rw-td-border:    rgba(255,255,255,0.06);
  --rw-inline-code-bg:    rgba(255,255,255,0.08);
  --rw-inline-code-color: #e0e8f0;
  --rw-pill-bg:      #1e2130;
  --rw-pill-color:   #c0c8d8;
  --rw-pill-border:  rgba(255,255,255,0.08);
  --rw-pill-label:   #f0f2f4;
  --rw-tag-color:    #99aabb;
  --rw-tag-label-color: #f0f2f4;
  --rw-divider:      rgba(255,255,255,0.08);
  --rw-accordion-bg: #1e2130;
  --rw-accordion-hover-bg: #252838;
  --rw-shadow-sm:    0 1px 3px rgba(0,0,0,0.30);
  --rw-shadow-card:  0 16px 40px rgba(0,0,0,0.40);
}

/* ── Hero image ─────────────────────────────────────────────────── */
.rw-hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
}

.rw-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.rw-severity-badge {
  position: absolute;
  bottom: 20px;
  left: 24px;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.rw-severity-badge.rw-severity-critical { background: rgba(180,0,0,.85);    color: #fff; }
.rw-severity-badge.rw-severity-high     { background: rgba(199,59,53,.85);  color: #fff; }
.rw-severity-badge.rw-severity-medium   { background: rgba(230,140,0,.85);  color: #fff; }
.rw-severity-badge.rw-severity-low      { background: rgba(40,160,80,.85);  color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — Nextmind exact replication
   ═══════════════════════════════════════════════════════════════════ */

.page-single-sidebar {
  font-family: "Sora", sans-serif;
}

/* Card container */
.page-single-sidebar .project-category-list {
  background-color: var(--rw-card);
  border-radius: 20px;
  margin-bottom: 30px;
  padding: 0;
  overflow: hidden;
}

/* Card title */
.page-single-sidebar .project-category-list h3 {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--rw-dark);
  line-height: 1.2;
  padding: 30px 30px 20px;
  margin: 0;
}

.page-single-sidebar .project-category-list h3 i {
  margin-right: 8px;
  background: linear-gradient(90deg, var(--accent-secondary-color, #386bb7) 0%, var(--accent-color, #e24c4a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* List */
.page-single-sidebar .project-category-list ul {
  list-style: none;
  padding: 0 30px 30px;
  margin: 0;
}

/* Each row */
.page-single-sidebar .project-category-list ul li {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--rw-text);
  background-color: var(--rw-bg);
  border-radius: 10px;
  padding: 18px 20px !important;
  margin-bottom: 20px;
  overflow: hidden;
  transition: 0.4s ease-in-out;
  z-index: 1;
}

.page-single-sidebar .project-category-list ul li:last-child {
  margin-bottom: 0;
}

/* Hover gradient fill */
.page-single-sidebar .project-category-list ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(90deg, var(--accent-secondary-color, #386bb7) 0%, var(--accent-color, #e24c4a) 100%);
  transition: 0.4s ease-in-out;
  z-index: -1;
}

.page-single-sidebar .project-category-list ul li:hover { color: #fff; }
.page-single-sidebar .project-category-list ul li:hover::before { height: 100%; }

/* Value span (right side) */
.page-single-sidebar .project-category-list ul li span {
  font-weight: 400;
  font-size: 16px;
  color: var(--rw-text);
  text-align: right;
  transition: color 0.3s;
}

.page-single-sidebar .project-category-list ul li:hover span { color: #fff; }

/* Dark web badge */
.rw-dark-web {
  font-size: 14px;
  color: var(--rw-red) !important;
}

.page-single-sidebar .project-category-list ul li:hover .rw-dark-web { color: #fff !important; }

/* ── CTA Box ─────────────────────────────────────────────────────── */
.sidebar-cta-box {
  background: linear-gradient(135deg, var(--accent-secondary-color, #386bb7) 0%, var(--accent-color, #e24c4a) 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  overflow: hidden;
}

.sidebar-cta-contact h3 {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.sidebar-cta-contact p {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-cta-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cta-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
}

.sidebar-cta-contact ul li:last-child { margin-bottom: 0; }

.sidebar-cta-contact ul li img,
.sidebar-cta-contact ul li i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-cta-contact ul li a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sidebar-cta-contact ul li a:hover { opacity: 0.8; }

/* ── Section pills ──────────────────────────────────────────────── */
.rw-section-label { margin-bottom: 12px; }

.rw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
  color: #fff;
}

.rw-section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rw-dark);
}

[data-bs-theme=dark] .rw-section-title {
  color: #f0f2f4 !important;
}

.rw-section-desc {
  color: var(--rw-text-muted);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Offer section ──────────────────────────────────────────────── */
.rw-offer-section { margin-bottom: 64px; }

.rw-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) { .rw-offer-grid { grid-template-columns: 1fr; } }

.rw-offer-card {
  background: var(--rw-card);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.rw-offer-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.rw-offer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.rw-offer-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rw-dark);
}

.rw-offer-body p {
  font-size: 13px;
  color: var(--rw-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.rw-rules-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rw-rules-link:hover { text-decoration: underline; }

/* ── Timeline ───────────────────────────────────────────────────── */
.rw-timeline-section { margin-bottom: 64px; }

.rw-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.rw-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary-color));
  opacity: 0.3;
}

.rw-timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.rw-timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary-color));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.rw-timeline-body { padding-top: 12px; }

.rw-timeline-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rw-dark);
}

.rw-timeline-body p {
  font-size: 14px;
  color: var(--rw-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Detection rules accordion ──────────────────────────────────── */
.rw-rules-section { margin-bottom: 64px; }

.rw-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-accordion-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rw-border);
  background: var(--rw-accordion-bg);
}

.rw-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.rw-accordion-header:hover { background: var(--rw-accordion-hover-bg); }

.rw-accordion-header.active { background: var(--rw-dark); }
.rw-accordion-header.active .rw-rule-name { color: #fff; }
.rw-accordion-header.active .rw-accordion-chevron { color: #fff; transform: rotate(180deg); }

.rw-accordion-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rw-rule-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--rw-dark);
}

.rw-rule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rw-badge-s1 {
  background: linear-gradient(to right, var(--accent-color), var(--accent-secondary-color));
  color: #fff;
}

.rw-badge-sev-critical { background: #fde8e8; color: #b91c1c; }
.rw-badge-sev-high     { background: #fde8e8; color: #c73b35; }
.rw-badge-sev-medium   { background: #fef3c7; color: #b45309; }
.rw-badge-sev-low      { background: #d1fae5; color: #065f46; }
.rw-badge-tactic       { background: #ede9fe; color: #5b21b6; }

/* Dark mode severity badges */
[data-bs-theme=dark] .rw-badge-sev-critical { background: rgba(185,28,28,0.2);  color: #fca5a5; }
[data-bs-theme=dark] .rw-badge-sev-high     { background: rgba(199,59,53,0.2);  color: #fca5a5; }
[data-bs-theme=dark] .rw-badge-sev-medium   { background: rgba(180,83,9,0.2);   color: #fcd34d; }
[data-bs-theme=dark] .rw-badge-sev-low      { background: rgba(6,95,70,0.2);    color: #6ee7b7; }
[data-bs-theme=dark] .rw-badge-tactic       { background: rgba(91,33,182,0.2);  color: #c4b5fd; }

.rw-accordion-chevron {
  font-size: 14px;
  color: var(--rw-text-muted);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.rw-accordion-body {
  display: none;
  padding: 0 24px 24px;
  background: var(--rw-accordion-bg);
}

.rw-accordion-body.open { display: block; }

.rw-rule-desc {
  font-size: 14px;
  color: var(--rw-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-top: 4px;
}

/* ── Code block ─────────────────────────────────────────────────── */
.rw-code-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.rw-code-toolbar {
  background: #1d2433;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rw-code-lang {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.rw-copy-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.rw-copy-btn:hover { background: rgba(255,255,255,0.2); }

.rw-code-wrap pre[class*="language-"] {
  margin: 0;
  border-radius: 0;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.65;
  background: var(--rw-code-bg) !important;
  padding: 20px 20px;
  overflow-x: auto;
}

/* ── Tags ───────────────────────────────────────────────────────── */
.rw-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rw-divider);
}

.rw-tag {
  background: var(--rw-card);
  color: var(--rw-tag-color);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ── Listing page cards ─────────────────────────────────────────── */
.rw-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

@media (max-width: 991px) { .rw-listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px)  { .rw-listing-grid { grid-template-columns: 1fr; } }

.rw-card {
  background: var(--rw-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rw-border);
  transition: box-shadow 0.25s, transform 0.25s;
}

.rw-card:hover {
  box-shadow: var(--rw-shadow-card);
  transform: translateY(-4px);
}

.rw-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rw-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,255,255,0.4);
}

.rw-card-body { padding: 24px; }

.rw-card-severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.rw-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rw-dark);
}

.rw-card-body p {
  font-size: 13px;
  color: var(--rw-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.rw-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--rw-border);
  font-size: 12px;
  color: var(--rw-text-muted);
}

.rw-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── FAQ section spacing ────────────────────────────────────────── */
.rw-faq-block { margin-bottom: 60px; }

/* ── Badges inside accordion button ────────────────────────────── */
.rw-rule-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-right: 16px;
}

.faq-accordion .accordion-button .rw-rule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Badges always keep their colors regardless of accordion state */
.faq-accordion .accordion-button .rw-badge-s1,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-s1 {
  background: linear-gradient(to right, var(--accent-color), var(--accent-secondary-color)) !important;
  color: #fff !important;
}

.faq-accordion .accordion-button .rw-badge-sev-critical,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-critical { background: #fde8e8 !important; color: #b91c1c !important; }
.faq-accordion .accordion-button .rw-badge-sev-high,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-high     { background: #fde8e8 !important; color: #c73b35 !important; }
.faq-accordion .accordion-button .rw-badge-sev-medium,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-medium   { background: #fef3c7 !important; color: #b45309 !important; }
.faq-accordion .accordion-button .rw-badge-sev-low,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-low      { background: #d1fae5 !important; color: #065f46 !important; }
.faq-accordion .accordion-button .rw-badge-tactic,
.faq-accordion .accordion-button:not(.collapsed) .rw-badge-tactic        { background: #ede9fe !important; color: #5b21b6 !important; }

[data-bs-theme=dark] .faq-accordion .accordion-button .rw-badge-sev-critical,
[data-bs-theme=dark] .faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-critical { background: rgba(185,28,28,0.2) !important;  color: #fca5a5 !important; }
[data-bs-theme=dark] .faq-accordion .accordion-button .rw-badge-sev-high,
[data-bs-theme=dark] .faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-high     { background: rgba(199,59,53,0.2) !important;  color: #fca5a5 !important; }
[data-bs-theme=dark] .faq-accordion .accordion-button .rw-badge-sev-medium,
[data-bs-theme=dark] .faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-medium   { background: rgba(180,83,9,0.2) !important;   color: #fcd34d !important; }
[data-bs-theme=dark] .faq-accordion .accordion-button .rw-badge-sev-low,
[data-bs-theme=dark] .faq-accordion .accordion-button:not(.collapsed) .rw-badge-sev-low      { background: rgba(6,95,70,0.2) !important;    color: #6ee7b7 !important; }
[data-bs-theme=dark] .faq-accordion .accordion-button .rw-badge-tactic,
[data-bs-theme=dark] .faq-accordion .accordion-button:not(.collapsed) .rw-badge-tactic        { background: rgba(91,33,182,0.2) !important;  color: #c4b5fd !important; }

/* ── Post Tags + Social Share ───────────────────────────────────── */
.rw-post-tag-links {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rw-divider);
}

.rw-post-tags { margin-bottom: 16px; }

.rw-tag-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.rw-tag-label {
  color: var(--rw-tag-label-color) !important;
  font-weight: 600;
  margin-right: 4px;
  text-transform: capitalize;
}

.rw-tag-links a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1em;
  background: linear-gradient(90deg, var(--accent-color, #386bb7) 0%, var(--accent-secondary-color, #e24c4a) 50%, var(--accent-color, #386bb7) 100%);
  background-size: 200%;
  background-position: left center;
  color: #fff !important;
  border-radius: 100px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background-position 0.3s ease-in-out;
}

.rw-tag-links a:hover { background-position: right center; color: #fff !important; }

/* Social share */
.rw-post-social { text-align: right; }

@media (max-width: 767px) { .rw-post-social { text-align: left; margin-top: 16px; } }

.rw-post-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 767px) { .rw-post-social ul { justify-content: flex-start; } }

.rw-post-social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-color, #386bb7) 0%, var(--accent-secondary-color, #e24c4a) 50%, var(--accent-color, #386bb7) 100%);
  background-size: 200%;
  background-position: left center;
  color: #fff !important;
  text-decoration: none;
  transition: background-position 0.3s ease-in-out, transform 0.2s ease;
}

.rw-post-social ul li a:hover { background-position: right center; transform: translateY(-2px); }
.rw-post-social ul li a i { font-size: 16px; color: inherit !important; }

/* ── Spacing ─────────────────────────────────────────────────────── */
.page-single-content { padding-bottom: 80px; }

.main-content .container,
.page-content .container,
.rw-profile-container.container {
  padding-bottom: 80px;
}

/* ── Status badge ────────────────────────────────────────────────── */
.rw-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.rw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rw-status-active  { background: rgba(16,185,129,0.15); color: #10b981; }
.rw-status-inactive { background: rgba(156,163,175,0.15); color: #9ca3af; }

.rw-status-active .rw-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
  animation: rw-pulse 2s infinite;
}

.rw-status-inactive .rw-status-dot { background: #9ca3af; }

@keyframes rw-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ── Profile pills row ───────────────────────────────────────────── */
.rw-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.rw-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  background: var(--rw-pill-bg);
  color: var(--rw-pill-color);
  border: 1px solid var(--rw-pill-border);
}

.rw-profile-pill .rw-pill-label { font-weight: 700; color: var(--rw-pill-label); }

.rw-profile-pill.rw-pill-status-active {
  background: rgba(16,185,129,0.12);
  color: #065f46;
  border-color: rgba(16,185,129,0.3);
}

[data-bs-theme=dark] .rw-profile-pill.rw-pill-status-active {
  color: #6ee7b7;
}

.rw-profile-pill.rw-pill-status-inactive {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
  border-color: rgba(156,163,175,0.3);
}

.rw-profile-pill.rw-pill-dark-web {
  background: rgba(199,59,53,0.08);
  color: var(--rw-red);
  border-color: rgba(199,59,53,0.2);
}

/* ── Profile tabs ────────────────────────────────────────────────── */
.rw-profile-tabs { margin-bottom: 32px; }
.rw-profile-tabs .what-we-do-nav { margin-bottom: 24px; }
.rw-profile-tabs .tab-pane { display: none; }
.rw-profile-tabs .tab-pane.show.active { display: block; }

/* ── Markdown tables inside .project-entry ──────────────────────── */
.project-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--rw-shadow-sm);
}

.project-entry thead tr {
  background: linear-gradient(90deg, var(--accent-color, #386bb7), var(--accent-secondary-color, #e24c4a));
}

.project-entry th {
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border: none !important;
}

.project-entry td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rw-td-border) !important;
  color: var(--rw-text) !important;
  vertical-align: top;
  line-height: 1.5;
  background: var(--rw-bg);
}

/* ── Fix: td strong visible in dark mode ────────────────────────── */
.project-entry td strong {
  color: var(--rw-text-strong) !important;
}

.project-entry tbody tr:last-child td { border-bottom: none !important; }

.project-entry tbody tr:nth-child(even) td { background: var(--rw-row-even); }

.project-entry tbody tr:hover td { background: var(--rw-row-hover); }

/* ── Content badges ─────────────────────────────────────────────── */
.badge-success { display: inline-block; border-radius: 20px; font-size: 13px; padding: 2px 8px; background: #2d7a2d; color: #fff; font-weight: 600; }
.badge-warning { display: inline-block; border-radius: 20px; font-size: 13px; padding: 2px 8px; background: #d97706; color: #fff; font-weight: 600; }
.badge-default { display: inline-block; border-radius: 20px; font-size: 13px; padding: 2px 8px; background: #6b7280; color: #fff; font-weight: 600; }

/* ── Inline code — dark/light aware ─────────────────────────────── */
.project-entry code.highlighter-rouge,
.project-entry code.language-plaintext,
.project-entry td code.highlighter-rouge,
.project-entry td code.language-plaintext {
  background: var(--rw-inline-code-bg) !important;
  color: var(--rw-inline-code-color) !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
